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

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

                case 26: {
                    IssueYear = input.ReadString();
                    break;
                }

                case 32: {
                    IssueMonth = (global::Google.Ads.GoogleAds.V5.Enums.MonthOfYearEnum.Types.MonthOfYear)input.ReadEnum();
                    break;
                }
                }
            }
        }
Beispiel #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: {
                    CustomerId = input.ReadString();
                    break;
                }

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

                case 26: {
                    IssueYear = input.ReadString();
                    break;
                }

                case 32: {
                    IssueMonth = (global::Google.Ads.GoogleAds.V5.Enums.MonthOfYearEnum.Types.MonthOfYear)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
Beispiel #3
0
 public void MergeFrom(ListInvoicesRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.CustomerId.Length != 0)
     {
         CustomerId = other.CustomerId;
     }
     if (other.BillingSetup.Length != 0)
     {
         BillingSetup = other.BillingSetup;
     }
     if (other.IssueYear.Length != 0)
     {
         IssueYear = other.IssueYear;
     }
     if (other.IssueMonth != global::Google.Ads.GoogleAds.V5.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified)
     {
         IssueMonth = other.IssueMonth;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }