Package com.google.cloud.channel.v1
Class DateRange.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
- com.google.cloud.channel.v1.DateRange.Builder
-
- All Implemented Interfaces:
DateRangeOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- DateRange
public static final class DateRange.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder> implements DateRangeOrBuilder
A representation of usage or invoice date ranges.
Protobuf typegoogle.cloud.channel.v1.DateRange
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateRange.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DateRange
build()
DateRange
buildPartial()
DateRange.Builder
clear()
DateRange.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DateRange.Builder
clearInvoiceEndDate()
The latest invoice date (inclusive).DateRange.Builder
clearInvoiceStartDate()
The earliest invoice date (inclusive).DateRange.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DateRange.Builder
clearUsageEndDateTime()
The latest usage date time (exclusive).DateRange.Builder
clearUsageStartDateTime()
The earliest usage date time (inclusive).DateRange.Builder
clone()
DateRange
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.type.Date
getInvoiceEndDate()
The latest invoice date (inclusive).com.google.type.Date.Builder
getInvoiceEndDateBuilder()
The latest invoice date (inclusive).com.google.type.DateOrBuilder
getInvoiceEndDateOrBuilder()
The latest invoice date (inclusive).com.google.type.Date
getInvoiceStartDate()
The earliest invoice date (inclusive).com.google.type.Date.Builder
getInvoiceStartDateBuilder()
The earliest invoice date (inclusive).com.google.type.DateOrBuilder
getInvoiceStartDateOrBuilder()
The earliest invoice date (inclusive).com.google.type.DateTime
getUsageEndDateTime()
The latest usage date time (exclusive).com.google.type.DateTime.Builder
getUsageEndDateTimeBuilder()
The latest usage date time (exclusive).com.google.type.DateTimeOrBuilder
getUsageEndDateTimeOrBuilder()
The latest usage date time (exclusive).com.google.type.DateTime
getUsageStartDateTime()
The earliest usage date time (inclusive).com.google.type.DateTime.Builder
getUsageStartDateTimeBuilder()
The earliest usage date time (inclusive).com.google.type.DateTimeOrBuilder
getUsageStartDateTimeOrBuilder()
The earliest usage date time (inclusive).boolean
hasInvoiceEndDate()
The latest invoice date (inclusive).boolean
hasInvoiceStartDate()
The earliest invoice date (inclusive).boolean
hasUsageEndDateTime()
The latest usage date time (exclusive).boolean
hasUsageStartDateTime()
The earliest usage date time (inclusive).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DateRange.Builder
mergeFrom(DateRange other)
DateRange.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DateRange.Builder
mergeFrom(com.google.protobuf.Message other)
DateRange.Builder
mergeInvoiceEndDate(com.google.type.Date value)
The latest invoice date (inclusive).DateRange.Builder
mergeInvoiceStartDate(com.google.type.Date value)
The earliest invoice date (inclusive).DateRange.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DateRange.Builder
mergeUsageEndDateTime(com.google.type.DateTime value)
The latest usage date time (exclusive).DateRange.Builder
mergeUsageStartDateTime(com.google.type.DateTime value)
The earliest usage date time (inclusive).DateRange.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DateRange.Builder
setInvoiceEndDate(com.google.type.Date value)
The latest invoice date (inclusive).DateRange.Builder
setInvoiceEndDate(com.google.type.Date.Builder builderForValue)
The latest invoice date (inclusive).DateRange.Builder
setInvoiceStartDate(com.google.type.Date value)
The earliest invoice date (inclusive).DateRange.Builder
setInvoiceStartDate(com.google.type.Date.Builder builderForValue)
The earliest invoice date (inclusive).DateRange.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DateRange.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DateRange.Builder
setUsageEndDateTime(com.google.type.DateTime value)
The latest usage date time (exclusive).DateRange.Builder
setUsageEndDateTime(com.google.type.DateTime.Builder builderForValue)
The latest usage date time (exclusive).DateRange.Builder
setUsageStartDateTime(com.google.type.DateTime value)
The earliest usage date time (inclusive).DateRange.Builder
setUsageStartDateTime(com.google.type.DateTime.Builder builderForValue)
The earliest usage date time (inclusive).-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
clear
public DateRange.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
getDefaultInstanceForType
public DateRange getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DateRange build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DateRange buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DateRange.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
setField
public DateRange.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
clearField
public DateRange.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
clearOneof
public DateRange.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
setRepeatedField
public DateRange.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
addRepeatedField
public DateRange.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
mergeFrom
public DateRange.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DateRange.Builder>
-
mergeFrom
public DateRange.Builder mergeFrom(DateRange other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
mergeFrom
public DateRange.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DateRange.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasUsageStartDateTime
in interfaceDateRangeOrBuilder
- Returns:
- Whether the usageStartDateTime field is set.
-
getUsageStartDateTime
public com.google.type.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;
- Specified by:
getUsageStartDateTime
in interfaceDateRangeOrBuilder
- Returns:
- The usageStartDateTime.
-
setUsageStartDateTime
public DateRange.Builder setUsageStartDateTime(com.google.type.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;
-
setUsageStartDateTime
public DateRange.Builder setUsageStartDateTime(com.google.type.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;
-
mergeUsageStartDateTime
public DateRange.Builder mergeUsageStartDateTime(com.google.type.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;
-
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;
-
getUsageStartDateTimeBuilder
public com.google.type.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;
-
getUsageStartDateTimeOrBuilder
public com.google.type.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;
- Specified by:
getUsageStartDateTimeOrBuilder
in interfaceDateRangeOrBuilder
-
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;
- Specified by:
hasUsageEndDateTime
in interfaceDateRangeOrBuilder
- Returns:
- Whether the usageEndDateTime field is set.
-
getUsageEndDateTime
public com.google.type.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;
- Specified by:
getUsageEndDateTime
in interfaceDateRangeOrBuilder
- Returns:
- The usageEndDateTime.
-
setUsageEndDateTime
public DateRange.Builder setUsageEndDateTime(com.google.type.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;
-
setUsageEndDateTime
public DateRange.Builder setUsageEndDateTime(com.google.type.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;
-
mergeUsageEndDateTime
public DateRange.Builder mergeUsageEndDateTime(com.google.type.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;
-
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;
-
getUsageEndDateTimeBuilder
public com.google.type.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;
-
getUsageEndDateTimeOrBuilder
public com.google.type.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;
- Specified by:
getUsageEndDateTimeOrBuilder
in interfaceDateRangeOrBuilder
-
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;
- Specified by:
hasInvoiceStartDate
in interfaceDateRangeOrBuilder
- Returns:
- Whether the invoiceStartDate field is set.
-
getInvoiceStartDate
public com.google.type.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;
- Specified by:
getInvoiceStartDate
in interfaceDateRangeOrBuilder
- Returns:
- The invoiceStartDate.
-
setInvoiceStartDate
public DateRange.Builder setInvoiceStartDate(com.google.type.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;
-
setInvoiceStartDate
public DateRange.Builder setInvoiceStartDate(com.google.type.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;
-
mergeInvoiceStartDate
public DateRange.Builder mergeInvoiceStartDate(com.google.type.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;
-
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;
-
getInvoiceStartDateBuilder
public com.google.type.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;
-
getInvoiceStartDateOrBuilder
public com.google.type.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;
- Specified by:
getInvoiceStartDateOrBuilder
in interfaceDateRangeOrBuilder
-
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;
- Specified by:
hasInvoiceEndDate
in interfaceDateRangeOrBuilder
- Returns:
- Whether the invoiceEndDate field is set.
-
getInvoiceEndDate
public com.google.type.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;
- Specified by:
getInvoiceEndDate
in interfaceDateRangeOrBuilder
- Returns:
- The invoiceEndDate.
-
setInvoiceEndDate
public DateRange.Builder setInvoiceEndDate(com.google.type.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;
-
setInvoiceEndDate
public DateRange.Builder setInvoiceEndDate(com.google.type.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;
-
mergeInvoiceEndDate
public DateRange.Builder mergeInvoiceEndDate(com.google.type.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;
-
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;
-
getInvoiceEndDateBuilder
public com.google.type.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;
-
getInvoiceEndDateOrBuilder
public com.google.type.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;
- Specified by:
getInvoiceEndDateOrBuilder
in interfaceDateRangeOrBuilder
-
setUnknownFields
public final DateRange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
mergeUnknownFields
public final DateRange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
-