Exemplo n.º 1
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.V3.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.V3.Resources.Ad();
                    }
                    input.ReadMessage(Ad);
                    break;
                }

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

                case 56: {
                    AdStrength = (global::Google.Ads.GoogleAds.V3.Enums.AdStrengthEnum.Types.AdStrength)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
Exemplo n.º 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 24: {
                    Status = (global::Google.Ads.GoogleAds.V3.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.V3.Resources.Ad();
                    }
                    input.ReadMessage(Ad);
                    break;
                }

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

                case 56: {
                    AdStrength = (global::Google.Ads.GoogleAds.V3.Enums.AdStrengthEnum.Types.AdStrength)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemplo n.º 3
0
 public void MergeFrom(AdGroupAd other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.Status != 0)
     {
         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.V3.Resources.Ad();
         }
         Ad.MergeFrom(other.Ad);
     }
     if (other.policySummary_ != null)
     {
         if (policySummary_ == null)
         {
             PolicySummary = new global::Google.Ads.GoogleAds.V3.Resources.AdGroupAdPolicySummary();
         }
         PolicySummary.MergeFrom(other.PolicySummary);
     }
     if (other.AdStrength != 0)
     {
         AdStrength = other.AdStrength;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }