Class Interval.Builder (2.48.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Interval.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Interval.Builder
Overrides

build()

public Interval build()
Returns
Type Description
Interval

buildPartial()

public Interval buildPartial()
Returns
Type Description
Interval

clear()

public Interval.Builder clear()
Returns
Type Description
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
Type Description
Interval.Builder

clearField(Descriptors.FieldDescriptor field)

public Interval.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Interval.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Interval.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
Interval.Builder

clone()

public Interval.Builder clone()
Returns
Type Description
Interval.Builder
Overrides

getDefaultInstanceForType()

public Interval getDefaultInstanceForType()
Returns
Type Description
Interval

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
Interval.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Interval.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Interval.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Interval.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Interval.Builder
Overrides

mergeFrom(Interval other)

public Interval.Builder mergeFrom(Interval other)
Parameter
Name Description
other Interval
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
Interval.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Interval.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Interval.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Interval.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Interval.Builder
Overrides

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

public Interval.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Interval.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Interval.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Interval.Builder
Overrides