Class DateRange.Builder (3.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DateRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DateRange.Builder
Overrides

build()

public DateRange build()
Returns
TypeDescription
DateRange

buildPartial()

public DateRange buildPartial()
Returns
TypeDescription
DateRange

clear()

public DateRange.Builder clear()
Returns
TypeDescription
DateRange.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DateRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DateRange.Builder
Overrides

clearInvoiceEndDate()

public DateRange.Builder clearInvoiceEndDate()

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
TypeDescription
DateRange.Builder

clearInvoiceStartDate()

public DateRange.Builder clearInvoiceStartDate()

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
TypeDescription
DateRange.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DateRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DateRange.Builder

clone()

public DateRange.Builder clone()
Returns
TypeDescription
DateRange.Builder
Overrides

getDefaultInstanceForType()

public DateRange getDefaultInstanceForType()
Returns
TypeDescription
DateRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

The invoiceEndDate.

getInvoiceEndDateBuilder()

public Date.Builder getInvoiceEndDateBuilder()

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
TypeDescription
com.google.type.Date.Builder

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

The invoiceStartDate.

getInvoiceStartDateBuilder()

public Date.Builder getInvoiceStartDateBuilder()

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
TypeDescription
com.google.type.Date.Builder

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DateRange other)

public DateRange.Builder mergeFrom(DateRange other)
Parameter
NameDescription
otherDateRange
Returns
TypeDescription
DateRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DateRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DateRange.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DateRange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DateRange.Builder
Overrides

mergeInvoiceEndDate(Date value)

public DateRange.Builder mergeInvoiceEndDate(Date value)

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;

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
DateRange.Builder

mergeInvoiceStartDate(Date value)

public DateRange.Builder mergeInvoiceStartDate(Date value)

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;

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
DateRange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DateRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuecom.google.type.DateTime
Returns
TypeDescription
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
NameDescription
valuecom.google.type.DateTime
Returns
TypeDescription
DateRange.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DateRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DateRange.Builder
Overrides

setInvoiceEndDate(Date value)

public DateRange.Builder setInvoiceEndDate(Date value)

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;

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
DateRange.Builder

setInvoiceEndDate(Date.Builder builderForValue)

public DateRange.Builder setInvoiceEndDate(Date.Builder builderForValue)

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;

Parameter
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
DateRange.Builder

setInvoiceStartDate(Date value)

public DateRange.Builder setInvoiceStartDate(Date value)

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;

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
DateRange.Builder

setInvoiceStartDate(Date.Builder builderForValue)

public DateRange.Builder setInvoiceStartDate(Date.Builder builderForValue)

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;

Parameter
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
DateRange.Builder

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

public DateRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DateRange.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DateRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuecom.google.type.DateTime
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.DateTime.Builder
Returns
TypeDescription
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
NameDescription
valuecom.google.type.DateTime
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.DateTime.Builder
Returns
TypeDescription
DateRange.Builder