Class TimeTarget.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
com.google.cloud.pubsublite.proto.TimeTarget.Builder
All Implemented Interfaces:
TimeTargetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TimeTarget

public static final class TimeTarget.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder> implements TimeTargetOrBuilder
 A target publish or event time. Can be used for seeking to or retrieving the
 corresponding cursor.
 
Protobuf type google.cloud.pubsublite.v1.TimeTarget
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    Request the cursor of the first message with event time greater than or equal to `event_time`.
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
    Request the cursor of the first message with publish time greater than or equal to `publish_time`.
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Timestamp
    Request the cursor of the first message with event time greater than or equal to `event_time`.
    com.google.protobuf.Timestamp.Builder
    Request the cursor of the first message with event time greater than or equal to `event_time`.
    com.google.protobuf.TimestampOrBuilder
    Request the cursor of the first message with event time greater than or equal to `event_time`.
    com.google.protobuf.Timestamp
    Request the cursor of the first message with publish time greater than or equal to `publish_time`.
    com.google.protobuf.Timestamp.Builder
    Request the cursor of the first message with publish time greater than or equal to `publish_time`.
    com.google.protobuf.TimestampOrBuilder
    Request the cursor of the first message with publish time greater than or equal to `publish_time`.
     
    boolean
    Request the cursor of the first message with event time greater than or equal to `event_time`.
    boolean
    Request the cursor of the first message with publish time greater than or equal to `publish_time`.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    mergeEventTime(com.google.protobuf.Timestamp value)
    Request the cursor of the first message with event time greater than or equal to `event_time`.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergePublishTime(com.google.protobuf.Timestamp value)
    Request the cursor of the first message with publish time greater than or equal to `publish_time`.
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setEventTime(com.google.protobuf.Timestamp value)
    Request the cursor of the first message with event time greater than or equal to `event_time`.
    setEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
    Request the cursor of the first message with event time greater than or equal to `event_time`.
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setPublishTime(com.google.protobuf.Timestamp value)
    Request the cursor of the first message with publish time greater than or equal to `publish_time`.
    setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue)
    Request the cursor of the first message with publish time greater than or equal to `publish_time`.
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    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 class com.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
    • clear

      public TimeTarget.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<TimeTarget.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<TimeTarget.Builder>
    • getDefaultInstanceForType

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

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

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

      public TimeTarget.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<TimeTarget.Builder>
    • setField

      public TimeTarget.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<TimeTarget.Builder>
    • clearField

      public TimeTarget.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<TimeTarget.Builder>
    • clearOneof

      public TimeTarget.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<TimeTarget.Builder>
    • setRepeatedField

      public TimeTarget.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<TimeTarget.Builder>
    • addRepeatedField

      public TimeTarget.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<TimeTarget.Builder>
    • mergeFrom

      public TimeTarget.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<TimeTarget.Builder>
    • mergeFrom

      public TimeTarget.Builder mergeFrom(TimeTarget other)
    • isInitialized

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

      public TimeTarget.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<TimeTarget.Builder>
      Throws:
      IOException
    • getTimeCase

      public TimeTarget.TimeCase getTimeCase()
      Specified by:
      getTimeCase in interface TimeTargetOrBuilder
    • clearTime

      public TimeTarget.Builder clearTime()
    • hasPublishTime

      public boolean hasPublishTime()
       Request the cursor of the first message with publish time greater than or
       equal to `publish_time`. All messages thereafter are guaranteed to have
       publish times >= `publish_time`.
       
      .google.protobuf.Timestamp publish_time = 1;
      Specified by:
      hasPublishTime in interface TimeTargetOrBuilder
      Returns:
      Whether the publishTime field is set.
    • getPublishTime

      public com.google.protobuf.Timestamp getPublishTime()
       Request the cursor of the first message with publish time greater than or
       equal to `publish_time`. All messages thereafter are guaranteed to have
       publish times >= `publish_time`.
       
      .google.protobuf.Timestamp publish_time = 1;
      Specified by:
      getPublishTime in interface TimeTargetOrBuilder
      Returns:
      The publishTime.
    • setPublishTime

      public TimeTarget.Builder setPublishTime(com.google.protobuf.Timestamp value)
       Request the cursor of the first message with publish time greater than or
       equal to `publish_time`. All messages thereafter are guaranteed to have
       publish times >= `publish_time`.
       
      .google.protobuf.Timestamp publish_time = 1;
    • setPublishTime

      public TimeTarget.Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Request the cursor of the first message with publish time greater than or
       equal to `publish_time`. All messages thereafter are guaranteed to have
       publish times >= `publish_time`.
       
      .google.protobuf.Timestamp publish_time = 1;
    • mergePublishTime

      public TimeTarget.Builder mergePublishTime(com.google.protobuf.Timestamp value)
       Request the cursor of the first message with publish time greater than or
       equal to `publish_time`. All messages thereafter are guaranteed to have
       publish times >= `publish_time`.
       
      .google.protobuf.Timestamp publish_time = 1;
    • clearPublishTime

      public TimeTarget.Builder clearPublishTime()
       Request the cursor of the first message with publish time greater than or
       equal to `publish_time`. All messages thereafter are guaranteed to have
       publish times >= `publish_time`.
       
      .google.protobuf.Timestamp publish_time = 1;
    • getPublishTimeBuilder

      public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder()
       Request the cursor of the first message with publish time greater than or
       equal to `publish_time`. All messages thereafter are guaranteed to have
       publish times >= `publish_time`.
       
      .google.protobuf.Timestamp publish_time = 1;
    • getPublishTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder()
       Request the cursor of the first message with publish time greater than or
       equal to `publish_time`. All messages thereafter are guaranteed to have
       publish times >= `publish_time`.
       
      .google.protobuf.Timestamp publish_time = 1;
      Specified by:
      getPublishTimeOrBuilder in interface TimeTargetOrBuilder
    • hasEventTime

      public boolean hasEventTime()
       Request the cursor of the first message with event time greater than or
       equal to `event_time`. If messages are missing an event time, the publish
       time is used as a fallback. As event times are user supplied, subsequent
       messages may have event times less than `event_time` and should be
       filtered by the client, if necessary.
       
      .google.protobuf.Timestamp event_time = 2;
      Specified by:
      hasEventTime in interface TimeTargetOrBuilder
      Returns:
      Whether the eventTime field is set.
    • getEventTime

      public com.google.protobuf.Timestamp getEventTime()
       Request the cursor of the first message with event time greater than or
       equal to `event_time`. If messages are missing an event time, the publish
       time is used as a fallback. As event times are user supplied, subsequent
       messages may have event times less than `event_time` and should be
       filtered by the client, if necessary.
       
      .google.protobuf.Timestamp event_time = 2;
      Specified by:
      getEventTime in interface TimeTargetOrBuilder
      Returns:
      The eventTime.
    • setEventTime

      public TimeTarget.Builder setEventTime(com.google.protobuf.Timestamp value)
       Request the cursor of the first message with event time greater than or
       equal to `event_time`. If messages are missing an event time, the publish
       time is used as a fallback. As event times are user supplied, subsequent
       messages may have event times less than `event_time` and should be
       filtered by the client, if necessary.
       
      .google.protobuf.Timestamp event_time = 2;
    • setEventTime

      public TimeTarget.Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Request the cursor of the first message with event time greater than or
       equal to `event_time`. If messages are missing an event time, the publish
       time is used as a fallback. As event times are user supplied, subsequent
       messages may have event times less than `event_time` and should be
       filtered by the client, if necessary.
       
      .google.protobuf.Timestamp event_time = 2;
    • mergeEventTime

      public TimeTarget.Builder mergeEventTime(com.google.protobuf.Timestamp value)
       Request the cursor of the first message with event time greater than or
       equal to `event_time`. If messages are missing an event time, the publish
       time is used as a fallback. As event times are user supplied, subsequent
       messages may have event times less than `event_time` and should be
       filtered by the client, if necessary.
       
      .google.protobuf.Timestamp event_time = 2;
    • clearEventTime

      public TimeTarget.Builder clearEventTime()
       Request the cursor of the first message with event time greater than or
       equal to `event_time`. If messages are missing an event time, the publish
       time is used as a fallback. As event times are user supplied, subsequent
       messages may have event times less than `event_time` and should be
       filtered by the client, if necessary.
       
      .google.protobuf.Timestamp event_time = 2;
    • getEventTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEventTimeBuilder()
       Request the cursor of the first message with event time greater than or
       equal to `event_time`. If messages are missing an event time, the publish
       time is used as a fallback. As event times are user supplied, subsequent
       messages may have event times less than `event_time` and should be
       filtered by the client, if necessary.
       
      .google.protobuf.Timestamp event_time = 2;
    • getEventTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
       Request the cursor of the first message with event time greater than or
       equal to `event_time`. If messages are missing an event time, the publish
       time is used as a fallback. As event times are user supplied, subsequent
       messages may have event times less than `event_time` and should be
       filtered by the client, if necessary.
       
      .google.protobuf.Timestamp event_time = 2;
      Specified by:
      getEventTimeOrBuilder in interface TimeTargetOrBuilder
    • setUnknownFields

      public final TimeTarget.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<TimeTarget.Builder>
    • mergeUnknownFields

      public final TimeTarget.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<TimeTarget.Builder>