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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Interval.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Interval buildPartial()
Returns
clear()
public Interval.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public Interval.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Interval.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public Interval.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Interval getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
public Interval.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Interval.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(Interval other)
public Interval.Builder mergeFrom(Interval other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Interval.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public Interval.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Interval.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final Interval.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides