示例#1
0
 public void MergeFrom(CampaignExtensionSetting other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.ExtensionType != global::Google.Ads.GoogleAds.V9.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified)
     {
         ExtensionType = other.ExtensionType;
     }
     if (other.HasCampaign)
     {
         Campaign = other.Campaign;
     }
     extensionFeedItems_.Add(other.extensionFeedItems_);
     if (other.Device != global::Google.Ads.GoogleAds.V9.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified)
     {
         Device = other.Device;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#2
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 16: {
                    ExtensionType = (global::Google.Ads.GoogleAds.V9.Enums.ExtensionTypeEnum.Types.ExtensionType)input.ReadEnum();
                    break;
                }

                case 32: {
                    Device = (global::Google.Ads.GoogleAds.V9.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice)input.ReadEnum();
                    break;
                }

                case 42: {
                    extensionFeedItems_.AddEntriesFrom(ref input, _repeated_extensionFeedItems_codec);
                    break;
                }
                }
            }
        }
示例#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 16: {
                    ExtensionType = (global::Google.Ads.GoogleAds.V9.Enums.ExtensionTypeEnum.Types.ExtensionType)input.ReadEnum();
                    break;
                }

                case 40: {
                    Device = (global::Google.Ads.GoogleAds.V9.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice)input.ReadEnum();
                    break;
                }

                case 50: {
                    Campaign = input.ReadString();
                    break;
                }

                case 58: {
                    extensionFeedItems_.AddEntriesFrom(input, _repeated_extensionFeedItems_codec);
                    break;
                }
                }
            }
    #endif
        }