Class TimeInterval.Builder (0.83.0)

publicstaticfinalclass TimeInterval.BuilderextendsGeneratedMessageV3.Builder<TimeInterval.Builder>implementsTimeIntervalOrBuilder

A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.

Protobuf type google.cloud.bigquery.migration.v2alpha.TimeInterval

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicTimeInterval.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TimeInterval.Builder
Overrides

build()

publicTimeIntervalbuild()
Returns
Type Description
TimeInterval

buildPartial()

publicTimeIntervalbuildPartial()
Returns
Type Description
TimeInterval

clear()

publicTimeInterval.Builderclear()
Returns
Type Description
TimeInterval.Builder
Overrides

clearEndTime()

publicTimeInterval.BuilderclearEndTime()

Required. The end of the time interval.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimeInterval.Builder

clearField(Descriptors.FieldDescriptor field)

publicTimeInterval.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TimeInterval.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicTimeInterval.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TimeInterval.Builder
Overrides

clearStartTime()

publicTimeInterval.BuilderclearStartTime()

Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimeInterval.Builder

clone()

publicTimeInterval.Builderclone()
Returns
Type Description
TimeInterval.Builder
Overrides

getDefaultInstanceForType()

publicTimeIntervalgetDefaultInstanceForType()
Returns
Type Description
TimeInterval

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTime()

publicTimestampgetEndTime()

Required. The end of the time interval.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

publicTimestamp.BuildergetEndTimeBuilder()

Required. The end of the time interval.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getEndTimeOrBuilder()

publicTimestampOrBuildergetEndTimeOrBuilder()

Required. The end of the time interval.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getStartTime()

publicTimestampgetStartTime()

Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

publicTimestamp.BuildergetStartTimeBuilder()

Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getStartTimeOrBuilder()

publicTimestampOrBuildergetStartTimeOrBuilder()

Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

hasEndTime()

publicbooleanhasEndTime()

Required. The end of the time interval.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

publicbooleanhasStartTime()

Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

publicTimeInterval.BuildermergeEndTime(Timestampvalue)

Required. The end of the time interval.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeInterval.Builder

mergeFrom(TimeInterval other)

publicTimeInterval.BuildermergeFrom(TimeIntervalother)
Parameter
Name Description
other TimeInterval
Returns
Type Description
TimeInterval.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicTimeInterval.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeInterval.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicTimeInterval.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
TimeInterval.Builder
Overrides

mergeStartTime(Timestamp value)

publicTimeInterval.BuildermergeStartTime(Timestampvalue)

Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeInterval.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalTimeInterval.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TimeInterval.Builder
Overrides

setEndTime(Timestamp value)

publicTimeInterval.BuildersetEndTime(Timestampvalue)

Required. The end of the time interval.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeInterval.Builder

setEndTime(Timestamp.Builder builderForValue)

publicTimeInterval.BuildersetEndTime(Timestamp.BuilderbuilderForValue)

Required. The end of the time interval.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeInterval.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicTimeInterval.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TimeInterval.Builder
Overrides

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

publicTimeInterval.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TimeInterval.Builder
Overrides

setStartTime(Timestamp value)

publicTimeInterval.BuildersetStartTime(Timestampvalue)

Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeInterval.Builder

setStartTime(Timestamp.Builder builderForValue)

publicTimeInterval.BuildersetStartTime(Timestamp.BuilderbuilderForValue)

Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeInterval.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalTimeInterval.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TimeInterval.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.