コード例 #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    global::Google.Ads.GoogleAds.V2.Resources.AdGroupLabel subBuilder = new global::Google.Ads.GoogleAds.V2.Resources.AdGroupLabel();
                    if (operationCase_ == OperationOneofCase.Create)
                    {
                        subBuilder.MergeFrom(Create);
                    }
                    input.ReadMessage(subBuilder);
                    Create = subBuilder;
                    break;
                }

                case 18: {
                    Remove = input.ReadString();
                    break;
                }
                }
            }
        }
コード例 #2
0
        public void MergeFrom(AdGroupLabelOperation other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.OperationCase)
            {
            case OperationOneofCase.Create:
                if (Create == null)
                {
                    Create = new global::Google.Ads.GoogleAds.V2.Resources.AdGroupLabel();
                }
                Create.MergeFrom(other.Create);
                break;

            case OperationOneofCase.Remove:
                Remove = other.Remove;
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }