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 Type
    Method
    Description
    Optional.
    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 interface IntervalOrBuilder
      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 interface IntervalOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public Interval.Builder setStartTime(com.google.protobuf.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 [json_name = "startTime"];
    • setStartTime

      public Interval.Builder setStartTime(com.google.protobuf.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 [json_name = "startTime"];
    • mergeStartTime

      public Interval.Builder mergeStartTime(com.google.protobuf.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 [json_name = "startTime"];
    • 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 [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 interface IntervalOrBuilder
      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 interface IntervalOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public Interval.Builder setEndTime(com.google.protobuf.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 [json_name = "endTime"];
    • setEndTime

      public Interval.Builder setEndTime(com.google.protobuf.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 [json_name = "endTime"];
    • mergeEndTime

      public Interval.Builder mergeEndTime(com.google.protobuf.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 [json_name = "endTime"];
    • 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 [json_name = "endTime"];