Exemple #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: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 18: {
                    Feed = input.ReadString();
                    break;
                }

                case 24: {
                    FeedItemSetId = input.ReadInt64();
                    break;
                }

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

                case 42: {
                    global::Google.Ads.GoogleAds.V8.Common.DynamicLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V8.Common.DynamicLocationSetFilter();
                    if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter)
                    {
                        subBuilder.MergeFrom(DynamicLocationSetFilter);
                    }
                    input.ReadMessage(subBuilder);
                    DynamicLocationSetFilter = subBuilder;
                    break;
                }

                case 50: {
                    global::Google.Ads.GoogleAds.V8.Common.DynamicAffiliateLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V8.Common.DynamicAffiliateLocationSetFilter();
                    if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter)
                    {
                        subBuilder.MergeFrom(DynamicAffiliateLocationSetFilter);
                    }
                    input.ReadMessage(subBuilder);
                    DynamicAffiliateLocationSetFilter = subBuilder;
                    break;
                }

                case 64: {
                    Status = (global::Google.Ads.GoogleAds.V8.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemple #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 10: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 18: {
                    Feed = input.ReadString();
                    break;
                }

                case 24: {
                    FeedItemSetId = input.ReadInt64();
                    break;
                }

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

                case 42: {
                    global::Google.Ads.GoogleAds.V8.Common.DynamicLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V8.Common.DynamicLocationSetFilter();
                    if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter)
                    {
                        subBuilder.MergeFrom(DynamicLocationSetFilter);
                    }
                    input.ReadMessage(subBuilder);
                    DynamicLocationSetFilter = subBuilder;
                    break;
                }

                case 50: {
                    global::Google.Ads.GoogleAds.V8.Common.DynamicAffiliateLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V8.Common.DynamicAffiliateLocationSetFilter();
                    if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter)
                    {
                        subBuilder.MergeFrom(DynamicAffiliateLocationSetFilter);
                    }
                    input.ReadMessage(subBuilder);
                    DynamicAffiliateLocationSetFilter = subBuilder;
                    break;
                }

                case 64: {
                    Status = (global::Google.Ads.GoogleAds.V8.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }