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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Interval.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Interval buildPartial()
clear()
public Interval.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public Interval.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Interval.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public Interval.Builder clone()
Overrides
getDefaultInstanceForType()
public Interval getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
public Interval.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Interval.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(Interval other)
public Interval.Builder mergeFrom(Interval other)
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Interval.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public Interval.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Interval.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Interval.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides