Class DateRange (3.53.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 (deprecated)

public static final int INVOICE_END_DATE_FIELD_NUMBER
Field Value
Type Description
int

INVOICE_START_DATE_FIELD_NUMBER (deprecated)

public static final int INVOICE_START_DATE_FIELD_NUMBER
Field Value
Type Description
int

USAGE_END_DATE_TIME_FIELD_NUMBER (deprecated)

public static final int USAGE_END_DATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

USAGE_START_DATE_TIME_FIELD_NUMBER (deprecated)

public static final int USAGE_START_DATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance() (deprecated)

public static DateRange getDefaultInstance()
Returns
Type Description
DateRange

getDescriptor() (deprecated)

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder() (deprecated)

public static DateRange.Builder newBuilder()
Returns
Type Description
DateRange.Builder

newBuilder(DateRange prototype) (deprecated)

public static DateRange.Builder newBuilder(DateRange prototype)
Parameter
Name Description
prototype DateRange
Returns
Type Description
DateRange.Builder

parseDelimitedFrom(InputStream input) (deprecated)

public static DateRange parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DateRange
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) (deprecated)

public static DateRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DateRange
Exceptions
Type Description
IOException

parseFrom(byte[] data) (deprecated)

public static DateRange parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) (deprecated)

public static DateRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data) (deprecated)

public static DateRange parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) (deprecated)

public static DateRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input) (deprecated)

public static DateRange parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DateRange
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) (deprecated)

public static DateRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DateRange
Exceptions
Type Description
IOException

parseFrom(InputStream input) (deprecated)

public static DateRange parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DateRange
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) (deprecated)

public static DateRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DateRange
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data) (deprecated)

public static DateRange parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) (deprecated)

public static DateRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parser() (deprecated)

public static Parser<DateRange> parser()
Returns
Type Description
Parser<DateRange>

Methods

equals(Object obj) (deprecated)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType() (deprecated)

public DateRange getDefaultInstanceForType()
Returns
Type Description
DateRange

getInvoiceEndDate() (deprecated)

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
Type Description
com.google.type.Date

The invoiceEndDate.

getInvoiceEndDateOrBuilder() (deprecated)

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
Type Description
com.google.type.DateOrBuilder

getInvoiceStartDate() (deprecated)

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
Type Description
com.google.type.Date

The invoiceStartDate.

getInvoiceStartDateOrBuilder() (deprecated)

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
Type Description
com.google.type.DateOrBuilder

getParserForType() (deprecated)

public Parser<DateRange> getParserForType()
Returns
Type Description
Parser<DateRange>
Overrides

getSerializedSize() (deprecated)

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUsageEndDateTime() (deprecated)

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
Type Description
com.google.type.DateTime

The usageEndDateTime.

getUsageEndDateTimeOrBuilder() (deprecated)

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
Type Description
com.google.type.DateTimeOrBuilder

getUsageStartDateTime() (deprecated)

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
Type Description
com.google.type.DateTime

The usageStartDateTime.

getUsageStartDateTimeOrBuilder() (deprecated)

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
Type Description
com.google.type.DateTimeOrBuilder

hasInvoiceEndDate() (deprecated)

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
Type Description
boolean

Whether the invoiceEndDate field is set.

hasInvoiceStartDate() (deprecated)

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
Type Description
boolean

Whether the invoiceStartDate field is set.

hasUsageEndDateTime() (deprecated)

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
Type Description
boolean

Whether the usageEndDateTime field is set.

hasUsageStartDateTime() (deprecated)

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
Type Description
boolean

Whether the usageStartDateTime field is set.

hashCode() (deprecated)

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable() (deprecated)

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized() (deprecated)

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType() (deprecated)

public DateRange.Builder newBuilderForType()
Returns
Type Description
DateRange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent) (deprecated)

protected DateRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DateRange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) (deprecated)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder() (deprecated)

public DateRange.Builder toBuilder()
Returns
Type Description
DateRange.Builder

writeTo(CodedOutputStream output) (deprecated)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException