Package com.google.type
Class Interval.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
com.google.type.Interval.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,IntervalOrBuilder
,Cloneable
- Enclosing class:
- Interval
public static final class Interval.Builder
extends com.google.protobuf.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
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Optional.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Optional.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Timestamp
Optional.com.google.protobuf.Timestamp.Builder
Optional.com.google.protobuf.TimestampOrBuilder
Optional.com.google.protobuf.Timestamp
Optional.com.google.protobuf.Timestamp.Builder
Optional.com.google.protobuf.TimestampOrBuilder
Optional.boolean
Optional.boolean
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeEndTime
(com.google.protobuf.Timestamp value) Optional.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeStartTime
(com.google.protobuf.Timestamp value) Optional.final Interval.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setEndTime
(com.google.protobuf.Timestamp value) Optional.setEndTime
(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartTime
(com.google.protobuf.Timestamp value) Optional.setStartTime
(com.google.protobuf.Timestamp.Builder builderForValue) Optional.final Interval.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
setField
public Interval.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
setRepeatedField
public Interval.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
addRepeatedField
public Interval.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Interval.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
mergeFrom
public Interval.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Interval.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasStartTime
in interfaceIntervalOrBuilder
- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.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;
- Specified by:
getStartTime
in interfaceIntervalOrBuilder
- Returns:
- The startTime.
-
setStartTime
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
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;
-
mergeStartTime
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;
-
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;
-
getStartTimeBuilder
public com.google.protobuf.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 com.google.protobuf.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;
- Specified by:
getStartTimeOrBuilder
in interfaceIntervalOrBuilder
-
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;
- Specified by:
hasEndTime
in interfaceIntervalOrBuilder
- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.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;
- Specified by:
getEndTime
in interfaceIntervalOrBuilder
- Returns:
- The endTime.
-
setEndTime
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
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;
-
mergeEndTime
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;
-
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;
-
getEndTimeBuilder
public com.google.protobuf.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 com.google.protobuf.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;
- Specified by:
getEndTimeOrBuilder
in interfaceIntervalOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
-