Class Interval.Builder (2.34.0)

public static final class Interval.Builder extends GeneratedMessageV3.Builder<Interval.Builder> implements IntervalOrBuilder

Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).

The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.

Protobuf type google.type.Interval

Implements

IntervalOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Interval build()
Returns
TypeDescription
Interval

buildPartial()

public Interval buildPartial()
Returns
TypeDescription
Interval

clear()

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

clearEndTime()

public Interval.Builder clearEndTime()

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Interval.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Interval.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Interval.Builder
Overrides

clearStartTime()

public Interval.Builder clearStartTime()

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Interval.Builder

clone()

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

getDefaultInstanceForType()

public Interval getDefaultInstanceForType()
Returns
TypeDescription
Interval

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public Interval.Builder mergeEndTime(Timestamp value)

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Interval.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Interval other)

public Interval.Builder mergeFrom(Interval other)
Parameter
NameDescription
otherInterval
Returns
TypeDescription
Interval.Builder

mergeStartTime(Timestamp value)

public Interval.Builder mergeStartTime(Timestamp value)

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Interval.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Interval.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Interval.Builder
Overrides

setEndTime(Timestamp value)

public Interval.Builder setEndTime(Timestamp value)

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Interval.Builder

setEndTime(Timestamp.Builder builderForValue)

public Interval.Builder setEndTime(Timestamp.Builder builderForValue)

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Interval.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartTime(Timestamp value)

public Interval.Builder setStartTime(Timestamp value)

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Interval.Builder

setStartTime(Timestamp.Builder builderForValue)

public Interval.Builder setStartTime(Timestamp.Builder builderForValue)

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Interval.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Interval.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Interval.Builder
Overrides