public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    interval_     = input.ReadEnum();
                    intervalCase_ = IntervalOneofCase.DateInterval;
                    break;
                }

                case 18: {
                    global::Google.Ads.GoogleAds.V3.Common.DateRange subBuilder = new global::Google.Ads.GoogleAds.V3.Common.DateRange();
                    if (intervalCase_ == IntervalOneofCase.DateRange)
                    {
                        subBuilder.MergeFrom(DateRange);
                    }
                    input.ReadMessage(subBuilder);
                    DateRange = subBuilder;
                    break;
                }
                }
            }
        }
Exemple #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 8: {
                    interval_     = input.ReadEnum();
                    intervalCase_ = IntervalOneofCase.DateInterval;
                    break;
                }

                case 18: {
                    global::Google.Ads.GoogleAds.V3.Common.DateRange subBuilder = new global::Google.Ads.GoogleAds.V3.Common.DateRange();
                    if (intervalCase_ == IntervalOneofCase.DateRange)
                    {
                        subBuilder.MergeFrom(DateRange);
                    }
                    input.ReadMessage(subBuilder);
                    DateRange = subBuilder;
                    break;
                }
                }
            }
        }
Exemple #3
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 8: {
                    interval_     = input.ReadEnum();
                    intervalCase_ = IntervalOneofCase.DateInterval;
                    break;
                }

                case 18: {
                    global::Google.Ads.GoogleAds.V3.Common.DateRange subBuilder = new global::Google.Ads.GoogleAds.V3.Common.DateRange();
                    if (intervalCase_ == IntervalOneofCase.DateRange)
                    {
                        subBuilder.MergeFrom(DateRange);
                    }
                    input.ReadMessage(subBuilder);
                    DateRange = subBuilder;
                    break;
                }
                }
            }
    #endif
        }
        public void MergeFrom(KeywordPlanForecastPeriod other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.IntervalCase)
            {
            case IntervalOneofCase.DateInterval:
                DateInterval = other.DateInterval;
                break;

            case IntervalOneofCase.DateRange:
                if (DateRange == null)
                {
                    DateRange = new global::Google.Ads.GoogleAds.V3.Common.DateRange();
                }
                DateRange.MergeFrom(other.DateRange);
                break;
            }

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