Class DateRange (3.23.0)

public final class DateRange extends GeneratedMessageV3 implements DateRangeOrBuilder

A representation of usage or invoice date ranges.

Protobuf type google.cloud.channel.v1.DateRange

Implements

DateRangeOrBuilder

Static Fields

INVOICE_END_DATE_FIELD_NUMBER

public static final int INVOICE_END_DATE_FIELD_NUMBER
Field Value
TypeDescription
int

INVOICE_START_DATE_FIELD_NUMBER

public static final int INVOICE_START_DATE_FIELD_NUMBER
Field Value
TypeDescription
int

USAGE_END_DATE_TIME_FIELD_NUMBER

public static final int USAGE_END_DATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

USAGE_START_DATE_TIME_FIELD_NUMBER

public static final int USAGE_START_DATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DateRange getDefaultInstance()
Returns
TypeDescription
DateRange

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DateRange.Builder newBuilder()
Returns
TypeDescription
DateRange.Builder

newBuilder(DateRange prototype)

public static DateRange.Builder newBuilder(DateRange prototype)
Parameter
NameDescription
prototypeDateRange
Returns
TypeDescription
DateRange.Builder

parseDelimitedFrom(InputStream input)

public static DateRange parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DateRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DateRange parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DateRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DateRange parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DateRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DateRange parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DateRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DateRange parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DateRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DateRange parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DateRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DateRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DateRange> parser()
Returns
TypeDescription
Parser<DateRange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DateRange getDefaultInstanceForType()
Returns
TypeDescription
DateRange

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;

Returns
TypeDescription
com.google.type.Date

The invoiceEndDate.

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;

Returns
TypeDescription
com.google.type.DateOrBuilder

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;

Returns
TypeDescription
com.google.type.Date

The invoiceStartDate.

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;

Returns
TypeDescription
com.google.type.DateOrBuilder

getParserForType()

public Parser<DateRange> getParserForType()
Returns
TypeDescription
Parser<DateRange>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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;

Returns
TypeDescription
com.google.type.DateTime

The usageEndDateTime.

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;

Returns
TypeDescription
com.google.type.DateTimeOrBuilder

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;

Returns
TypeDescription
com.google.type.DateTime

The usageStartDateTime.

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;

Returns
TypeDescription
com.google.type.DateTimeOrBuilder

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;

Returns
TypeDescription
boolean

Whether the invoiceEndDate field is set.

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;

Returns
TypeDescription
boolean

Whether the invoiceStartDate field is set.

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;

Returns
TypeDescription
boolean

Whether the usageEndDateTime field is set.

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;

Returns
TypeDescription
boolean

Whether the usageStartDateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DateRange.Builder newBuilderForType()
Returns
TypeDescription
DateRange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DateRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DateRange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DateRange.Builder toBuilder()
Returns
TypeDescription
DateRange.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException