예제 #1
0
 public void MergeFrom(CustomerManagerLink other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.managerCustomer_ != null)
     {
         if (managerCustomer_ == null || other.ManagerCustomer != "")
         {
             ManagerCustomer = other.ManagerCustomer;
         }
     }
     if (other.managerLinkId_ != null)
     {
         if (managerLinkId_ == null || other.ManagerLinkId != 0L)
         {
             ManagerLinkId = other.ManagerLinkId;
         }
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 26: {
                    string value = _single_clientCustomer_codec.Read(input);
                    if (clientCustomer_ == null || value != "")
                    {
                        ClientCustomer = value;
                    }
                    break;
                }

                case 34: {
                    long?value = _single_managerLinkId_codec.Read(input);
                    if (managerLinkId_ == null || value != 0L)
                    {
                        ManagerLinkId = value;
                    }
                    break;
                }

                case 40: {
                    status_ = (global::Google.Ads.GoogleAds.V0.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus)input.ReadEnum();
                    break;
                }

                case 50: {
                    bool?value = _single_hidden_codec.Read(input);
                    if (hidden_ == null || value != false)
                    {
                        Hidden = value;
                    }
                    break;
                }
                }
            }
        }