Example #1
0
 public void MergeFrom(AdTextAsset other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HasText)
     {
         Text = other.Text;
     }
     if (other.PinnedField != global::Google.Ads.GoogleAds.V9.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified)
     {
         PinnedField = other.PinnedField;
     }
     if (other.AssetPerformanceLabel != global::Google.Ads.GoogleAds.V9.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified)
     {
         AssetPerformanceLabel = other.AssetPerformanceLabel;
     }
     if (other.policySummaryInfo_ != null)
     {
         if (policySummaryInfo_ == null)
         {
             PolicySummaryInfo = new global::Google.Ads.GoogleAds.V9.Common.AdAssetPolicySummary();
         }
         PolicySummaryInfo.MergeFrom(other.PolicySummaryInfo);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #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 16: {
                    PinnedField = (global::Google.Ads.GoogleAds.V9.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType)input.ReadEnum();
                    break;
                }

                case 34: {
                    Text = input.ReadString();
                    break;
                }

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

                case 50: {
                    if (policySummaryInfo_ == null)
                    {
                        PolicySummaryInfo = new global::Google.Ads.GoogleAds.V9.Common.AdAssetPolicySummary();
                    }
                    input.ReadMessage(PolicySummaryInfo);
                    break;
                }
                }
            }
    #endif
        }
Example #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 16: {
                    PinnedField = (global::Google.Ads.GoogleAds.V9.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType)input.ReadEnum();
                    break;
                }

                case 34: {
                    Text = input.ReadString();
                    break;
                }

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

                case 50: {
                    if (policySummaryInfo_ == null)
                    {
                        PolicySummaryInfo = new global::Google.Ads.GoogleAds.V9.Common.AdAssetPolicySummary();
                    }
                    input.ReadMessage(PolicySummaryInfo);
                    break;
                }
                }
            }
        }