public final class DateRange extends GeneratedMessageV3 implements DateRangeOrBuilder
A representation of usage or invoice date ranges.
Protobuf type google.cloud.channel.v1.DateRange
Static Fields
INVOICE_END_DATE_FIELD_NUMBER
public static final int INVOICE_END_DATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INVOICE_START_DATE_FIELD_NUMBER
public static final int INVOICE_START_DATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
USAGE_END_DATE_TIME_FIELD_NUMBER
public static final int USAGE_END_DATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
USAGE_START_DATE_TIME_FIELD_NUMBER
public static final int USAGE_START_DATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static DateRange getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DateRange.Builder newBuilder()
newBuilder(DateRange prototype)
public static DateRange.Builder newBuilder(DateRange prototype)
public static DateRange parseDelimitedFrom(InputStream input)
public static DateRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DateRange parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DateRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DateRange parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DateRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DateRange parseFrom(CodedInputStream input)
public static DateRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DateRange parseFrom(InputStream input)
public static DateRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DateRange parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DateRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DateRange> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public DateRange getDefaultInstanceForType()
getInvoiceEndDate()
public Date getInvoiceEndDate()
The latest invoice date (exclusive).
If your product uses monthly invoices, and this value is not the beginning
of a month, this will adjust the date to the first day of the following
month.
.google.type.Date invoice_end_date = 4;
Returns |
---|
Type | Description |
com.google.type.Date | The invoiceEndDate.
|
getInvoiceEndDateOrBuilder()
public DateOrBuilder getInvoiceEndDateOrBuilder()
The latest invoice date (exclusive).
If your product uses monthly invoices, and this value is not the beginning
of a month, this will adjust the date to the first day of the following
month.
.google.type.Date invoice_end_date = 4;
Returns |
---|
Type | Description |
com.google.type.DateOrBuilder | |
getInvoiceStartDate()
public Date getInvoiceStartDate()
The earliest invoice date (inclusive).
If your product uses monthly invoices, and this value is not the beginning
of a month, this will adjust the date 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()
public DateOrBuilder getInvoiceStartDateOrBuilder()
The earliest invoice date (inclusive).
If your product uses monthly invoices, and this value is not the beginning
of a month, this will adjust the date to the first day of the given month.
.google.type.Date invoice_start_date = 3;
Returns |
---|
Type | Description |
com.google.type.DateOrBuilder | |
getParserForType()
public Parser<DateRange> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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 |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
com.google.type.DateTimeOrBuilder | |
hasInvoiceEndDate()
public boolean hasInvoiceEndDate()
The latest invoice date (exclusive).
If your product uses monthly invoices, and this value is not the beginning
of a month, this will adjust the date to the first day of the following
month.
.google.type.Date invoice_end_date = 4;
Returns |
---|
Type | Description |
boolean | Whether the invoiceEndDate field is set.
|
hasInvoiceStartDate()
public boolean hasInvoiceStartDate()
The earliest invoice date (inclusive).
If your product uses monthly invoices, and this value is not the beginning
of a month, this will adjust the date 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()
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()
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DateRange.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DateRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public DateRange.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides