Package com.google.type
Class Interval.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Interval,Interval.Builder>
com.google.type.Interval.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,IntervalOrBuilder
,Cloneable
- Enclosing class:
- Interval
public static final class Interval.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Interval,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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionOptional.Optional.com.google.protobuf.Timestamp
Optional.com.google.protobuf.Timestamp
Optional.boolean
Optional.boolean
Optional.mergeEndTime
(com.google.protobuf.Timestamp value) Optional.mergeStartTime
(com.google.protobuf.Timestamp value) Optional.setEndTime
(com.google.protobuf.Timestamp value) Optional.setEndTime
(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setStartTime
(com.google.protobuf.Timestamp value) Optional.setStartTime
(com.google.protobuf.Timestamp.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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 [json_name = "startTime"];
- 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 [json_name = "startTime"];
- 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 [json_name = "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 [json_name = "startTime"];
-
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 [json_name = "startTime"];
-
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 [json_name = "startTime"];
-
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 [json_name = "endTime"];
- 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 [json_name = "endTime"];
- 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 [json_name = "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 [json_name = "endTime"];
-
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 [json_name = "endTime"];
-
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 [json_name = "endTime"];
-