Class Interval.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
    • clone

      public Interval.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
    • setField

      public Interval.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
    • clearField

      public Interval.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
    • clearOneof

      public Interval.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
    • addRepeatedField

      public Interval.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Interval.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.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 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 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(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(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(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 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;
      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 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(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(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(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 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;
      Specified by:
      getEndTimeOrBuilder in interface IntervalOrBuilder
    • setUnknownFields

      public final Interval.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>
    • mergeUnknownFields

      public final Interval.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Interval.Builder>