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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DateRangebuild()DateRangebuildPartial()DateRange.Builderclear()DateRange.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DateRange.BuilderclearInvoiceEndDate()The latest invoice date (inclusive).DateRange.BuilderclearInvoiceStartDate()The earliest invoice date (inclusive).DateRange.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DateRange.BuilderclearUsageEndDateTime()The latest usage date time (exclusive).DateRange.BuilderclearUsageStartDateTime()The earliest usage date time (inclusive).DateRange.Builderclone()DateRangegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.type.DategetInvoiceEndDate()The latest invoice date (inclusive).com.google.type.Date.BuildergetInvoiceEndDateBuilder()The latest invoice date (inclusive).com.google.type.DateOrBuildergetInvoiceEndDateOrBuilder()The latest invoice date (inclusive).com.google.type.DategetInvoiceStartDate()The earliest invoice date (inclusive).com.google.type.Date.BuildergetInvoiceStartDateBuilder()The earliest invoice date (inclusive).com.google.type.DateOrBuildergetInvoiceStartDateOrBuilder()The earliest invoice date (inclusive).com.google.type.DateTimegetUsageEndDateTime()The latest usage date time (exclusive).com.google.type.DateTime.BuildergetUsageEndDateTimeBuilder()The latest usage date time (exclusive).com.google.type.DateTimeOrBuildergetUsageEndDateTimeOrBuilder()The latest usage date time (exclusive).com.google.type.DateTimegetUsageStartDateTime()The earliest usage date time (inclusive).com.google.type.DateTime.BuildergetUsageStartDateTimeBuilder()The earliest usage date time (inclusive).com.google.type.DateTimeOrBuildergetUsageStartDateTimeOrBuilder()The earliest usage date time (inclusive).booleanhasInvoiceEndDate()The latest invoice date (inclusive).booleanhasInvoiceStartDate()The earliest invoice date (inclusive).booleanhasUsageEndDateTime()The latest usage date time (exclusive).booleanhasUsageStartDateTime()The earliest usage date time (inclusive).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DateRange.BuildermergeFrom(DateRange other)DateRange.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DateRange.BuildermergeFrom(com.google.protobuf.Message other)DateRange.BuildermergeInvoiceEndDate(com.google.type.Date value)The latest invoice date (inclusive).DateRange.BuildermergeInvoiceStartDate(com.google.type.Date value)The earliest invoice date (inclusive).DateRange.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DateRange.BuildermergeUsageEndDateTime(com.google.type.DateTime value)The latest usage date time (exclusive).DateRange.BuildermergeUsageStartDateTime(com.google.type.DateTime value)The earliest usage date time (inclusive).DateRange.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DateRange.BuildersetInvoiceEndDate(com.google.type.Date value)The latest invoice date (inclusive).DateRange.BuildersetInvoiceEndDate(com.google.type.Date.Builder builderForValue)The latest invoice date (inclusive).DateRange.BuildersetInvoiceStartDate(com.google.type.Date value)The earliest invoice date (inclusive).DateRange.BuildersetInvoiceStartDate(com.google.type.Date.Builder builderForValue)The earliest invoice date (inclusive).DateRange.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DateRange.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DateRange.BuildersetUsageEndDateTime(com.google.type.DateTime value)The latest usage date time (exclusive).DateRange.BuildersetUsageEndDateTime(com.google.type.DateTime.Builder builderForValue)The latest usage date time (exclusive).DateRange.BuildersetUsageStartDateTime(com.google.type.DateTime value)The earliest usage date time (inclusive).DateRange.BuildersetUsageStartDateTime(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
clear
public DateRange.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
getDefaultInstanceForType
public DateRange getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DateRange build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DateRange buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DateRange.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
setField
public DateRange.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
clearField
public DateRange.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
clearOneof
public DateRange.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
setRepeatedField
public DateRange.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
addRepeatedField
public DateRange.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
mergeFrom
public DateRange.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DateRange.Builder>
-
mergeFrom
public DateRange.Builder mergeFrom(DateRange other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasUsageStartDateTimein 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:
getUsageStartDateTimein 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:
getUsageStartDateTimeOrBuilderin 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:
hasUsageEndDateTimein 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:
getUsageEndDateTimein 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:
getUsageEndDateTimeOrBuilderin 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:
hasInvoiceStartDatein 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:
getInvoiceStartDatein 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:
getInvoiceStartDateOrBuilderin 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:
hasInvoiceEndDatein 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:
getInvoiceEndDatein 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:
getInvoiceEndDateOrBuilderin interfaceDateRangeOrBuilder
-
setUnknownFields
public final DateRange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
mergeUnknownFields
public final DateRange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DateRange.Builder>
-
-