示例#1
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: {
                    global::Google.Ads.GoogleAds.V4.Resources.Ad subBuilder = new global::Google.Ads.GoogleAds.V4.Resources.Ad();
                    if (operationCase_ == OperationOneofCase.Update)
                    {
                        subBuilder.MergeFrom(Update);
                    }
                    input.ReadMessage(subBuilder);
                    Update = subBuilder;
                    break;
                }

                case 18: {
                    if (updateMask_ == null)
                    {
                        UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
                    }
                    input.ReadMessage(UpdateMask);
                    break;
                }
                }
            }
        }
示例#2
0
        public void MergeFrom(AdOperation other)
        {
            if (other == null)
            {
                return;
            }
            if (other.updateMask_ != null)
            {
                if (updateMask_ == null)
                {
                    UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
                }
                UpdateMask.MergeFrom(other.UpdateMask);
            }
            switch (other.OperationCase)
            {
            case OperationOneofCase.Update:
                if (Update == null)
                {
                    Update = new global::Google.Ads.GoogleAds.V4.Resources.Ad();
                }
                Update.MergeFrom(other.Update);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
示例#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 24: {
                    Status = (global::Google.Ads.GoogleAds.V4.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus)input.ReadEnum();
                    break;
                }

                case 34: {
                    string value = _single_adGroup_codec.Read(input);
                    if (adGroup_ == null || value != "")
                    {
                        AdGroup = value;
                    }
                    break;
                }

                case 42: {
                    if (ad_ == null)
                    {
                        Ad = new global::Google.Ads.GoogleAds.V4.Resources.Ad();
                    }
                    input.ReadMessage(Ad);
                    break;
                }

                case 50: {
                    if (policySummary_ == null)
                    {
                        PolicySummary = new global::Google.Ads.GoogleAds.V4.Resources.AdGroupAdPolicySummary();
                    }
                    input.ReadMessage(PolicySummary);
                    break;
                }

                case 56: {
                    AdStrength = (global::Google.Ads.GoogleAds.V4.Enums.AdStrengthEnum.Types.AdStrength)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
示例#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 24: {
                    Status = (global::Google.Ads.GoogleAds.V4.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus)input.ReadEnum();
                    break;
                }

                case 34: {
                    string value = _single_adGroup_codec.Read(ref input);
                    if (adGroup_ == null || value != "")
                    {
                        AdGroup = value;
                    }
                    break;
                }

                case 42: {
                    if (ad_ == null)
                    {
                        Ad = new global::Google.Ads.GoogleAds.V4.Resources.Ad();
                    }
                    input.ReadMessage(Ad);
                    break;
                }

                case 50: {
                    if (policySummary_ == null)
                    {
                        PolicySummary = new global::Google.Ads.GoogleAds.V4.Resources.AdGroupAdPolicySummary();
                    }
                    input.ReadMessage(PolicySummary);
                    break;
                }

                case 56: {
                    AdStrength = (global::Google.Ads.GoogleAds.V4.Enums.AdStrengthEnum.Types.AdStrength)input.ReadEnum();
                    break;
                }
                }
            }
        }
示例#5
0
 public void MergeFrom(AdGroupAd other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.Status != global::Google.Ads.GoogleAds.V4.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified)
     {
         Status = other.Status;
     }
     if (other.adGroup_ != null)
     {
         if (adGroup_ == null || other.AdGroup != "")
         {
             AdGroup = other.AdGroup;
         }
     }
     if (other.ad_ != null)
     {
         if (ad_ == null)
         {
             Ad = new global::Google.Ads.GoogleAds.V4.Resources.Ad();
         }
         Ad.MergeFrom(other.Ad);
     }
     if (other.policySummary_ != null)
     {
         if (policySummary_ == null)
         {
             PolicySummary = new global::Google.Ads.GoogleAds.V4.Resources.AdGroupAdPolicySummary();
         }
         PolicySummary.MergeFrom(other.PolicySummary);
     }
     if (other.AdStrength != global::Google.Ads.GoogleAds.V4.Enums.AdStrengthEnum.Types.AdStrength.Unspecified)
     {
         AdStrength = other.AdStrength;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#6
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: {
                    global::Google.Ads.GoogleAds.V4.Resources.Ad subBuilder = new global::Google.Ads.GoogleAds.V4.Resources.Ad();
                    if (operationCase_ == OperationOneofCase.Update)
                    {
                        subBuilder.MergeFrom(Update);
                    }
                    input.ReadMessage(subBuilder);
                    Update = subBuilder;
                    break;
                }

                case 18: {
                    if (updateMask_ == null)
                    {
                        UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
                    }
                    input.ReadMessage(UpdateMask);
                    break;
                }
                }
            }
    #endif
        }