void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 18: { DisplayName = input.ReadString(); break; } case 34: { if (productLevelConfig_ == null) { ProductLevelConfig = new global::Google.Cloud.Retail.V2.ProductLevelConfig(); } input.ReadMessage(ProductLevelConfig); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 18: { DisplayName = input.ReadString(); break; } case 34: { if (productLevelConfig_ == null) { ProductLevelConfig = new global::Google.Cloud.Retail.V2.ProductLevelConfig(); } input.ReadMessage(ProductLevelConfig); break; } } } #endif }
public void MergeFrom(Catalog other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } if (other.productLevelConfig_ != null) { if (productLevelConfig_ == null) { ProductLevelConfig = new global::Google.Cloud.Retail.V2.ProductLevelConfig(); } ProductLevelConfig.MergeFrom(other.ProductLevelConfig); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }