Class DateRange.Builder (3.53.0)

public static final class DateRange.Builder extends GeneratedMessageV3.Builder<DateRange.Builder> implements DateRangeOrBuilder

A representation of usage or invoice date ranges.

Protobuf type google.cloud.channel.v1.DateRange

Implements

DateRangeOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DateRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DateRange.Builder
Overrides

build()

public DateRange build()
Returns
Type Description
DateRange

buildPartial()

public DateRange buildPartial()
Returns
Type Description
DateRange

clear()

public DateRange.Builder clear()
Returns
Type Description
DateRange.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DateRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DateRange.Builder
Overrides

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;

Returns
Type Description
DateRange.Builder

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;

Returns
Type Description
DateRange.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DateRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DateRange.Builder
Overrides

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;

Returns
Type Description
DateRange.Builder

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;

Returns
Type Description
DateRange.Builder

clone()

public DateRange.Builder clone()
Returns
Type Description
DateRange.Builder
Overrides

getDefaultInstanceForType()

public DateRange getDefaultInstanceForType()
Returns
Type Description
DateRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

The invoiceEndDate.

getInvoiceEndDateBuilder()

public 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;

Returns
Type Description
com.google.type.Date.Builder

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

The invoiceStartDate.

getInvoiceStartDateBuilder()

public 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;

Returns
Type Description
com.google.type.Date.Builder

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

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.

getUsageEndDateTimeBuilder()

public 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;

Returns
Type Description
com.google.type.DateTime.Builder

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.

getUsageStartDateTimeBuilder()

public 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;

Returns
Type Description
com.google.type.DateTime.Builder

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 (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()

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()

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DateRange other)

public DateRange.Builder mergeFrom(DateRange other)
Parameter
Name Description
other DateRange
Returns
Type Description
DateRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DateRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DateRange.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DateRange.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DateRange.Builder
Overrides

mergeInvoiceEndDate(Date value)

public DateRange.Builder mergeInvoiceEndDate(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;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
DateRange.Builder

mergeInvoiceStartDate(Date value)

public DateRange.Builder mergeInvoiceStartDate(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;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
DateRange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DateRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DateRange.Builder
Overrides

mergeUsageEndDateTime(DateTime value)

public DateRange.Builder mergeUsageEndDateTime(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;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
DateRange.Builder

mergeUsageStartDateTime(DateTime value)

public DateRange.Builder mergeUsageStartDateTime(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;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
DateRange.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DateRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DateRange.Builder
Overrides

setInvoiceEndDate(Date value)

public DateRange.Builder setInvoiceEndDate(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;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
DateRange.Builder

setInvoiceEndDate(Date.Builder builderForValue)

public DateRange.Builder setInvoiceEndDate(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;

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
DateRange.Builder

setInvoiceStartDate(Date value)

public DateRange.Builder setInvoiceStartDate(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;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
DateRange.Builder

setInvoiceStartDate(Date.Builder builderForValue)

public DateRange.Builder setInvoiceStartDate(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;

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
DateRange.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DateRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DateRange.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DateRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DateRange.Builder
Overrides

setUsageEndDateTime(DateTime value)

public DateRange.Builder setUsageEndDateTime(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;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
DateRange.Builder

setUsageEndDateTime(DateTime.Builder builderForValue)

public DateRange.Builder setUsageEndDateTime(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;

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
DateRange.Builder

setUsageStartDateTime(DateTime value)

public DateRange.Builder setUsageStartDateTime(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;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
DateRange.Builder

setUsageStartDateTime(DateTime.Builder builderForValue)

public DateRange.Builder setUsageStartDateTime(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;

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
DateRange.Builder