Class DateRange

  • All Implemented Interfaces:
    DateRangeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class DateRange
    extends com.google.protobuf.GeneratedMessageV3
    implements DateRangeOrBuilder
     A representation of usage or invoice date ranges.
     
    Protobuf type google.cloud.channel.v1.DateRange
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DateRange.Builder
      A representation of usage or invoice date ranges.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • USAGE_START_DATE_TIME_FIELD_NUMBER

        public static final int USAGE_START_DATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • USAGE_END_DATE_TIME_FIELD_NUMBER

        public static final int USAGE_END_DATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INVOICE_START_DATE_FIELD_NUMBER

        public static final int INVOICE_START_DATE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INVOICE_END_DATE_FIELD_NUMBER

        public static final int INVOICE_END_DATE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static DateRange parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DateRange parseFrom​(ByteBuffer data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DateRange parseFrom​(com.google.protobuf.ByteString data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DateRange parseFrom​(com.google.protobuf.ByteString data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DateRange parseFrom​(byte[] data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DateRange parseFrom​(byte[] data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DateRange parseFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected DateRange.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static DateRange getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<DateRange> parser()
      • getParserForType

        public com.google.protobuf.Parser<DateRange> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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