Ejemplo n.º 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 != global::Google.Ads.GoogleAds.V5.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified)
     {
         Status = other.Status;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 2
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.V5.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
Ejemplo n.º 3
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.V5.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus)input.ReadEnum();
                    break;
                }
                }
            }
        }