Class SeekRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
com.google.pubsub.v1.SeekRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SeekRequestOrBuilder, Cloneable
Enclosing class:
SeekRequest

public static final class SeekRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder> implements SeekRequestOrBuilder
 Request for the `Seek` method.
 
Protobuf type google.pubsub.v1.SeekRequest
  • 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<SeekRequest.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public SeekRequest.Builder mergeFrom(SeekRequest other)
    • isInitialized

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

      public SeekRequest.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<SeekRequest.Builder>
      Throws:
      IOException
    • getTargetCase

      public SeekRequest.TargetCase getTargetCase()
      Specified by:
      getTargetCase in interface SeekRequestOrBuilder
    • clearTarget

      public SeekRequest.Builder clearTarget()
    • getSubscription

      public String getSubscription()
       Required. The subscription to affect.
       
      string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getSubscription in interface SeekRequestOrBuilder
      Returns:
      The subscription.
    • getSubscriptionBytes

      public com.google.protobuf.ByteString getSubscriptionBytes()
       Required. The subscription to affect.
       
      string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getSubscriptionBytes in interface SeekRequestOrBuilder
      Returns:
      The bytes for subscription.
    • setSubscription

      public SeekRequest.Builder setSubscription(String value)
       Required. The subscription to affect.
       
      string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The subscription to set.
      Returns:
      This builder for chaining.
    • clearSubscription

      public SeekRequest.Builder clearSubscription()
       Required. The subscription to affect.
       
      string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSubscriptionBytes

      public SeekRequest.Builder setSubscriptionBytes(com.google.protobuf.ByteString value)
       Required. The subscription to affect.
       
      string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for subscription to set.
      Returns:
      This builder for chaining.
    • hasTime

      public boolean hasTime()
       Optional. The time to seek to.
       Messages retained in the subscription that were published before this
       time are marked as acknowledged, and messages retained in the
       subscription that were published after this time are marked as
       unacknowledged. Note that this operation affects only those messages
       retained in the subscription (configured by the combination of
       `message_retention_duration` and `retain_acked_messages`). For example,
       if `time` corresponds to a point before the message retention
       window (or to a point before the system's notion of the subscription
       creation time), only retained messages will be marked as unacknowledged,
       and already-expunged messages will not be restored.
       
      .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTime in interface SeekRequestOrBuilder
      Returns:
      Whether the time field is set.
    • getTime

      public com.google.protobuf.Timestamp getTime()
       Optional. The time to seek to.
       Messages retained in the subscription that were published before this
       time are marked as acknowledged, and messages retained in the
       subscription that were published after this time are marked as
       unacknowledged. Note that this operation affects only those messages
       retained in the subscription (configured by the combination of
       `message_retention_duration` and `retain_acked_messages`). For example,
       if `time` corresponds to a point before the message retention
       window (or to a point before the system's notion of the subscription
       creation time), only retained messages will be marked as unacknowledged,
       and already-expunged messages will not be restored.
       
      .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTime in interface SeekRequestOrBuilder
      Returns:
      The time.
    • setTime

      public SeekRequest.Builder setTime(com.google.protobuf.Timestamp value)
       Optional. The time to seek to.
       Messages retained in the subscription that were published before this
       time are marked as acknowledged, and messages retained in the
       subscription that were published after this time are marked as
       unacknowledged. Note that this operation affects only those messages
       retained in the subscription (configured by the combination of
       `message_retention_duration` and `retain_acked_messages`). For example,
       if `time` corresponds to a point before the message retention
       window (or to a point before the system's notion of the subscription
       creation time), only retained messages will be marked as unacknowledged,
       and already-expunged messages will not be restored.
       
      .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setTime

      public SeekRequest.Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. The time to seek to.
       Messages retained in the subscription that were published before this
       time are marked as acknowledged, and messages retained in the
       subscription that were published after this time are marked as
       unacknowledged. Note that this operation affects only those messages
       retained in the subscription (configured by the combination of
       `message_retention_duration` and `retain_acked_messages`). For example,
       if `time` corresponds to a point before the message retention
       window (or to a point before the system's notion of the subscription
       creation time), only retained messages will be marked as unacknowledged,
       and already-expunged messages will not be restored.
       
      .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTime

      public SeekRequest.Builder mergeTime(com.google.protobuf.Timestamp value)
       Optional. The time to seek to.
       Messages retained in the subscription that were published before this
       time are marked as acknowledged, and messages retained in the
       subscription that were published after this time are marked as
       unacknowledged. Note that this operation affects only those messages
       retained in the subscription (configured by the combination of
       `message_retention_duration` and `retain_acked_messages`). For example,
       if `time` corresponds to a point before the message retention
       window (or to a point before the system's notion of the subscription
       creation time), only retained messages will be marked as unacknowledged,
       and already-expunged messages will not be restored.
       
      .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearTime

      public SeekRequest.Builder clearTime()
       Optional. The time to seek to.
       Messages retained in the subscription that were published before this
       time are marked as acknowledged, and messages retained in the
       subscription that were published after this time are marked as
       unacknowledged. Note that this operation affects only those messages
       retained in the subscription (configured by the combination of
       `message_retention_duration` and `retain_acked_messages`). For example,
       if `time` corresponds to a point before the message retention
       window (or to a point before the system's notion of the subscription
       creation time), only retained messages will be marked as unacknowledged,
       and already-expunged messages will not be restored.
       
      .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getTimeBuilder

      public com.google.protobuf.Timestamp.Builder getTimeBuilder()
       Optional. The time to seek to.
       Messages retained in the subscription that were published before this
       time are marked as acknowledged, and messages retained in the
       subscription that were published after this time are marked as
       unacknowledged. Note that this operation affects only those messages
       retained in the subscription (configured by the combination of
       `message_retention_duration` and `retain_acked_messages`). For example,
       if `time` corresponds to a point before the message retention
       window (or to a point before the system's notion of the subscription
       creation time), only retained messages will be marked as unacknowledged,
       and already-expunged messages will not be restored.
       
      .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()
       Optional. The time to seek to.
       Messages retained in the subscription that were published before this
       time are marked as acknowledged, and messages retained in the
       subscription that were published after this time are marked as
       unacknowledged. Note that this operation affects only those messages
       retained in the subscription (configured by the combination of
       `message_retention_duration` and `retain_acked_messages`). For example,
       if `time` corresponds to a point before the message retention
       window (or to a point before the system's notion of the subscription
       creation time), only retained messages will be marked as unacknowledged,
       and already-expunged messages will not be restored.
       
      .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTimeOrBuilder in interface SeekRequestOrBuilder
    • hasSnapshot

      public boolean hasSnapshot()
       Optional. The snapshot to seek to. The snapshot's topic must be the same
       as that of the provided subscription. Format is
       `projects/{project}/snapshots/{snap}`.
       
      string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      hasSnapshot in interface SeekRequestOrBuilder
      Returns:
      Whether the snapshot field is set.
    • getSnapshot

      public String getSnapshot()
       Optional. The snapshot to seek to. The snapshot's topic must be the same
       as that of the provided subscription. Format is
       `projects/{project}/snapshots/{snap}`.
       
      string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSnapshot in interface SeekRequestOrBuilder
      Returns:
      The snapshot.
    • getSnapshotBytes

      public com.google.protobuf.ByteString getSnapshotBytes()
       Optional. The snapshot to seek to. The snapshot's topic must be the same
       as that of the provided subscription. Format is
       `projects/{project}/snapshots/{snap}`.
       
      string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSnapshotBytes in interface SeekRequestOrBuilder
      Returns:
      The bytes for snapshot.
    • setSnapshot

      public SeekRequest.Builder setSnapshot(String value)
       Optional. The snapshot to seek to. The snapshot's topic must be the same
       as that of the provided subscription. Format is
       `projects/{project}/snapshots/{snap}`.
       
      string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The snapshot to set.
      Returns:
      This builder for chaining.
    • clearSnapshot

      public SeekRequest.Builder clearSnapshot()
       Optional. The snapshot to seek to. The snapshot's topic must be the same
       as that of the provided subscription. Format is
       `projects/{project}/snapshots/{snap}`.
       
      string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSnapshotBytes

      public SeekRequest.Builder setSnapshotBytes(com.google.protobuf.ByteString value)
       Optional. The snapshot to seek to. The snapshot's topic must be the same
       as that of the provided subscription. Format is
       `projects/{project}/snapshots/{snap}`.
       
      string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for snapshot to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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