Class Interval.Builder (2.10.0)

Stay organized with collections Save and categorize content based on your preferences.
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