Class DateRange.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DateRange.Builder>
com.google.cloud.channel.v1.DateRange.Builder
All Implemented Interfaces:
DateRangeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DateRange

public static final class DateRange.Builder extends com.google.protobuf.GeneratedMessage.Builder<DateRange.Builder> implements DateRangeOrBuilder
 A representation of usage or invoice date ranges.
 
Protobuf type google.cloud.channel.v1.DateRange
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DateRange.Builder>
    • clear

      public DateRange.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DateRange.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DateRange.Builder>
    • getDefaultInstanceForType

      public DateRange getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DateRange build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DateRange buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DateRange.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DateRange.Builder>
    • mergeFrom

      public DateRange.Builder mergeFrom(DateRange other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DateRange.Builder>
    • mergeFrom

      public DateRange.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DateRange.Builder>
      Throws:
      IOException
    • hasUsageStartDateTime

      public boolean hasUsageStartDateTime()
       The earliest usage date time (inclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage start date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_start_date_time = 1;
      Specified by:
      hasUsageStartDateTime in interface DateRangeOrBuilder
      Returns:
      Whether the usageStartDateTime field is set.
    • getUsageStartDateTime

      public DateTime getUsageStartDateTime()
       The earliest usage date time (inclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage start date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_start_date_time = 1;
      Specified by:
      getUsageStartDateTime in interface DateRangeOrBuilder
      Returns:
      The usageStartDateTime.
    • setUsageStartDateTime

      public DateRange.Builder setUsageStartDateTime(DateTime value)
       The earliest usage date time (inclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage start date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_start_date_time = 1;
    • setUsageStartDateTime

      public DateRange.Builder setUsageStartDateTime(DateTime.Builder builderForValue)
       The earliest usage date time (inclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage start date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_start_date_time = 1;
    • mergeUsageStartDateTime

      public DateRange.Builder mergeUsageStartDateTime(DateTime value)
       The earliest usage date time (inclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage start date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_start_date_time = 1;
    • clearUsageStartDateTime

      public DateRange.Builder clearUsageStartDateTime()
       The earliest usage date time (inclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage start date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_start_date_time = 1;
    • getUsageStartDateTimeBuilder

      public DateTime.Builder getUsageStartDateTimeBuilder()
       The earliest usage date time (inclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage start date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_start_date_time = 1;
    • getUsageStartDateTimeOrBuilder

      public DateTimeOrBuilder getUsageStartDateTimeOrBuilder()
       The earliest usage date time (inclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage start date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_start_date_time = 1;
      Specified by:
      getUsageStartDateTimeOrBuilder in interface DateRangeOrBuilder
    • hasUsageEndDateTime

      public boolean hasUsageEndDateTime()
       The latest usage date time (exclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage end date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_end_date_time = 2;
      Specified by:
      hasUsageEndDateTime in interface DateRangeOrBuilder
      Returns:
      Whether the usageEndDateTime field is set.
    • getUsageEndDateTime

      public DateTime getUsageEndDateTime()
       The latest usage date time (exclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage end date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_end_date_time = 2;
      Specified by:
      getUsageEndDateTime in interface DateRangeOrBuilder
      Returns:
      The usageEndDateTime.
    • setUsageEndDateTime

      public DateRange.Builder setUsageEndDateTime(DateTime value)
       The latest usage date time (exclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage end date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_end_date_time = 2;
    • setUsageEndDateTime

      public DateRange.Builder setUsageEndDateTime(DateTime.Builder builderForValue)
       The latest usage date time (exclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage end date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_end_date_time = 2;
    • mergeUsageEndDateTime

      public DateRange.Builder mergeUsageEndDateTime(DateTime value)
       The latest usage date time (exclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage end date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_end_date_time = 2;
    • clearUsageEndDateTime

      public DateRange.Builder clearUsageEndDateTime()
       The latest usage date time (exclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage end date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_end_date_time = 2;
    • getUsageEndDateTimeBuilder

      public DateTime.Builder getUsageEndDateTimeBuilder()
       The latest usage date time (exclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage end date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_end_date_time = 2;
    • getUsageEndDateTimeOrBuilder

      public DateTimeOrBuilder getUsageEndDateTimeOrBuilder()
       The latest usage date time (exclusive).
      
       If you use time groupings (daily, weekly, etc), each group uses
       midnight to midnight (Pacific time). The usage end date is
       rounded down to include all usage from the specified date. We recommend
       that clients pass `usage_start_date_time` in Pacific time.
       
      .google.type.DateTime usage_end_date_time = 2;
      Specified by:
      getUsageEndDateTimeOrBuilder in interface DateRangeOrBuilder
    • hasInvoiceStartDate

      public boolean hasInvoiceStartDate()
       The earliest invoice date (inclusive).
      
       If this value is not the first day of a month, this will move it back to
       the first day of the given month.
       
      .google.type.Date invoice_start_date = 3;
      Specified by:
      hasInvoiceStartDate in interface DateRangeOrBuilder
      Returns:
      Whether the invoiceStartDate field is set.
    • getInvoiceStartDate

      public Date getInvoiceStartDate()
       The earliest invoice date (inclusive).
      
       If this value is not the first day of a month, this will move it back to
       the first day of the given month.
       
      .google.type.Date invoice_start_date = 3;
      Specified by:
      getInvoiceStartDate in interface DateRangeOrBuilder
      Returns:
      The invoiceStartDate.
    • setInvoiceStartDate

      public DateRange.Builder setInvoiceStartDate(Date value)
       The earliest invoice date (inclusive).
      
       If this value is not the first day of a month, this will move it back to
       the first day of the given month.
       
      .google.type.Date invoice_start_date = 3;
    • setInvoiceStartDate

      public DateRange.Builder setInvoiceStartDate(Date.Builder builderForValue)
       The earliest invoice date (inclusive).
      
       If this value is not the first day of a month, this will move it back to
       the first day of the given month.
       
      .google.type.Date invoice_start_date = 3;
    • mergeInvoiceStartDate

      public DateRange.Builder mergeInvoiceStartDate(Date value)
       The earliest invoice date (inclusive).
      
       If this value is not the first day of a month, this will move it back to
       the first day of the given month.
       
      .google.type.Date invoice_start_date = 3;
    • clearInvoiceStartDate

      public DateRange.Builder clearInvoiceStartDate()
       The earliest invoice date (inclusive).
      
       If this value is not the first day of a month, this will move it back to
       the first day of the given month.
       
      .google.type.Date invoice_start_date = 3;
    • getInvoiceStartDateBuilder

      public Date.Builder getInvoiceStartDateBuilder()
       The earliest invoice date (inclusive).
      
       If this value is not the first day of a month, this will move it back to
       the first day of the given month.
       
      .google.type.Date invoice_start_date = 3;
    • getInvoiceStartDateOrBuilder

      public DateOrBuilder getInvoiceStartDateOrBuilder()
       The earliest invoice date (inclusive).
      
       If this value is not the first day of a month, this will move it back to
       the first day of the given month.
       
      .google.type.Date invoice_start_date = 3;
      Specified by:
      getInvoiceStartDateOrBuilder in interface DateRangeOrBuilder
    • hasInvoiceEndDate

      public boolean hasInvoiceEndDate()
       The latest invoice date (inclusive).
      
       If this value is not the last day of a month, this will move it forward to
       the last day of the given month.
       
      .google.type.Date invoice_end_date = 4;
      Specified by:
      hasInvoiceEndDate in interface DateRangeOrBuilder
      Returns:
      Whether the invoiceEndDate field is set.
    • getInvoiceEndDate

      public Date getInvoiceEndDate()
       The latest invoice date (inclusive).
      
       If this value is not the last day of a month, this will move it forward to
       the last day of the given month.
       
      .google.type.Date invoice_end_date = 4;
      Specified by:
      getInvoiceEndDate in interface DateRangeOrBuilder
      Returns:
      The invoiceEndDate.
    • setInvoiceEndDate

      public DateRange.Builder setInvoiceEndDate(Date value)
       The latest invoice date (inclusive).
      
       If this value is not the last day of a month, this will move it forward to
       the last day of the given month.
       
      .google.type.Date invoice_end_date = 4;
    • setInvoiceEndDate

      public DateRange.Builder setInvoiceEndDate(Date.Builder builderForValue)
       The latest invoice date (inclusive).
      
       If this value is not the last day of a month, this will move it forward to
       the last day of the given month.
       
      .google.type.Date invoice_end_date = 4;
    • mergeInvoiceEndDate

      public DateRange.Builder mergeInvoiceEndDate(Date value)
       The latest invoice date (inclusive).
      
       If this value is not the last day of a month, this will move it forward to
       the last day of the given month.
       
      .google.type.Date invoice_end_date = 4;
    • clearInvoiceEndDate

      public DateRange.Builder clearInvoiceEndDate()
       The latest invoice date (inclusive).
      
       If this value is not the last day of a month, this will move it forward to
       the last day of the given month.
       
      .google.type.Date invoice_end_date = 4;
    • getInvoiceEndDateBuilder

      public Date.Builder getInvoiceEndDateBuilder()
       The latest invoice date (inclusive).
      
       If this value is not the last day of a month, this will move it forward to
       the last day of the given month.
       
      .google.type.Date invoice_end_date = 4;
    • getInvoiceEndDateOrBuilder

      public DateOrBuilder getInvoiceEndDateOrBuilder()
       The latest invoice date (inclusive).
      
       If this value is not the last day of a month, this will move it forward to
       the last day of the given month.
       
      .google.type.Date invoice_end_date = 4;
      Specified by:
      getInvoiceEndDateOrBuilder in interface DateRangeOrBuilder