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: {
                    if (product_ == null)
                    {
                        Product = new global::Google.Cloud.Retail.V2.Product();
                    }
                    input.ReadMessage(Product);
                    break;
                }

                case 18: {
                    if (updateMask_ == null)
                    {
                        UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
                    }
                    input.ReadMessage(UpdateMask);
                    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: {
                    if (product_ == null)
                    {
                        Product = new global::Google.Cloud.Retail.V2.Product();
                    }
                    input.ReadMessage(Product);
                    break;
                }

                case 18: {
                    if (updateMask_ == null)
                    {
                        UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
                    }
                    input.ReadMessage(UpdateMask);
                    break;
                }
                }
            }
    #endif
        }
        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: {
                    Parent = input.ReadString();
                    break;
                }

                case 18: {
                    if (product_ == null)
                    {
                        Product = new global::Google.Cloud.Retail.V2.Product();
                    }
                    input.ReadMessage(Product);
                    break;
                }

                case 26: {
                    ProductId = input.ReadString();
                    break;
                }
                }
            }
        }
 public void MergeFrom(UpdateProductRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.product_ != null)
     {
         if (product_ == null)
         {
             Product = new global::Google.Cloud.Retail.V2.Product();
         }
         Product.MergeFrom(other.Product);
     }
     if (other.updateMask_ != null)
     {
         if (updateMask_ == null)
         {
             UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
         }
         UpdateMask.MergeFrom(other.UpdateMask);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(CreateProductRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Parent.Length != 0)
     {
         Parent = other.Parent;
     }
     if (other.product_ != null)
     {
         if (product_ == null)
         {
             Product = new global::Google.Cloud.Retail.V2.Product();
         }
         Product.MergeFrom(other.Product);
     }
     if (other.ProductId.Length != 0)
     {
         ProductId = other.ProductId;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }