Class 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.GeneratedMessageV3.Builder<DateRange.Builder>
    implements DateRangeOrBuilder
     A representation of usage or invoice date ranges.
     
    Protobuf type google.cloud.channel.v1.DateRange
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public DateRange.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
      • setField

        public DateRange.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
      • clearField

        public DateRange.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
      • clearOneof

        public DateRange.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
      • setRepeatedField

        public DateRange.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
      • addRepeatedField

        public DateRange.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DateRange.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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 com.google.type.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​(com.google.type.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​(com.google.type.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​(com.google.type.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 com.google.type.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 com.google.type.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 com.google.type.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​(com.google.type.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​(com.google.type.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​(com.google.type.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 com.google.type.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 com.google.type.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 com.google.type.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​(com.google.type.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​(com.google.type.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​(com.google.type.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 com.google.type.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 com.google.type.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 com.google.type.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​(com.google.type.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​(com.google.type.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​(com.google.type.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 com.google.type.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 com.google.type.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
      • setUnknownFields

        public final DateRange.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
      • mergeUnknownFields

        public final DateRange.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>