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 16: {
                    Id = input.ReadInt64();
                    break;
                }

                case 24: {
                    Status = (global::Google.Ads.GoogleAds.V10.Enums.AudienceStatusEnum.Types.AudienceStatus)input.ReadEnum();
                    break;
                }

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

                case 42: {
                    Description = input.ReadString();
                    break;
                }

                case 50: {
                    dimensions_.AddEntriesFrom(input, _repeated_dimensions_codec);
                    break;
                }

                case 58: {
                    if (exclusionDimension_ == null)
                    {
                        ExclusionDimension = new global::Google.Ads.GoogleAds.V10.Common.AudienceExclusionDimension();
                    }
                    input.ReadMessage(ExclusionDimension);
                    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 16: {
                    Id = input.ReadInt64();
                    break;
                }

                case 24: {
                    Status = (global::Google.Ads.GoogleAds.V10.Enums.AudienceStatusEnum.Types.AudienceStatus)input.ReadEnum();
                    break;
                }

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

                case 42: {
                    Description = input.ReadString();
                    break;
                }

                case 50: {
                    dimensions_.AddEntriesFrom(ref input, _repeated_dimensions_codec);
                    break;
                }

                case 58: {
                    if (exclusionDimension_ == null)
                    {
                        ExclusionDimension = new global::Google.Ads.GoogleAds.V10.Common.AudienceExclusionDimension();
                    }
                    input.ReadMessage(ExclusionDimension);
                    break;
                }
                }
            }
        }
Exemplo n.º 3
0
 public void MergeFrom(Audience other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.Id != 0L)
     {
         Id = other.Id;
     }
     if (other.Status != global::Google.Ads.GoogleAds.V10.Enums.AudienceStatusEnum.Types.AudienceStatus.Unspecified)
     {
         Status = other.Status;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     dimensions_.Add(other.dimensions_);
     if (other.exclusionDimension_ != null)
     {
         if (exclusionDimension_ == null)
         {
             ExclusionDimension = new global::Google.Ads.GoogleAds.V10.Common.AudienceExclusionDimension();
         }
         ExclusionDimension.MergeFrom(other.ExclusionDimension);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }