Class Interval.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 Type
    Method
    Description
     
     
     
    Optional.
    Optional.
     
    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.GeneratedMessage.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.
    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.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Interval.Builder>
    • clear

      public Interval.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Interval.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Interval.Builder>
    • getDefaultInstanceForType

      public Interval getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Interval build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Interval buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Interval.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Interval.Builder>
    • mergeFrom

      public Interval.Builder mergeFrom(Interval other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Interval.Builder>
    • mergeFrom

      public Interval.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 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;
      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;
    • 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;
    • 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;
    • 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;
    • 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 interface IntervalOrBuilder
    • 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 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;
      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;
    • 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;
    • 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;
    • 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;
    • 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 interface IntervalOrBuilder