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);
 }
Beispiel #2
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 != global::Google.Ads.GoogleAds.V3.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified)
     {
         Status = other.Status;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #3
0
        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: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 26: {
                    string value = _single_managerCustomer_codec.Read(input);
                    if (managerCustomer_ == null || value != "")
                    {
                        ManagerCustomer = 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.V3.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
Beispiel #4
0
        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: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 26: {
                    string value = _single_managerCustomer_codec.Read(ref input);
                    if (managerCustomer_ == null || value != "")
                    {
                        ManagerCustomer = value;
                    }
                    break;
                }

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

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