Esempio n. 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.FeedItemTarget subBuilder = new global::Google.Ads.GoogleAds.V4.Resources.FeedItemTarget();
                    if (operationCase_ == OperationOneofCase.Create)
                    {
                        subBuilder.MergeFrom(Create);
                    }
                    input.ReadMessage(subBuilder);
                    Create = subBuilder;
                    break;
                }

                case 18: {
                    Remove = input.ReadString();
                    break;
                }
                }
            }
        }
Esempio n. 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: {
                    global::Google.Ads.GoogleAds.V4.Resources.FeedItemTarget subBuilder = new global::Google.Ads.GoogleAds.V4.Resources.FeedItemTarget();
                    if (operationCase_ == OperationOneofCase.Create)
                    {
                        subBuilder.MergeFrom(Create);
                    }
                    input.ReadMessage(subBuilder);
                    Create = subBuilder;
                    break;
                }

                case 18: {
                    Remove = input.ReadString();
                    break;
                }
                }
            }
    #endif
        }