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
Modifier and Type | Method and Description |
---|---|
SeekRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
SeekRequest |
build() |
SeekRequest |
buildPartial() |
SeekRequest.Builder |
clear() |
SeekRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SeekRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SeekRequest.Builder |
clearSnapshot()
The snapshot to seek to.
|
SeekRequest.Builder |
clearSubscription()
The subscription to affect.
|
SeekRequest.Builder |
clearTarget() |
SeekRequest.Builder |
clearTime()
The time to seek to.
|
SeekRequest.Builder |
clone() |
SeekRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getSnapshot()
The snapshot to seek to.
|
SnapshotName |
getSnapshotAsSnapshotName() |
com.google.protobuf.ByteString |
getSnapshotBytes()
The snapshot to seek to.
|
java.lang.String |
getSubscription()
The subscription to affect.
|
SubscriptionName |
getSubscriptionAsSubscriptionName() |
com.google.protobuf.ByteString |
getSubscriptionBytes()
The subscription to affect.
|
SeekRequest.TargetCase |
getTargetCase() |
com.google.protobuf.Timestamp |
getTime()
The time to seek to.
|
com.google.protobuf.Timestamp.Builder |
getTimeBuilder()
The time to seek to.
|
com.google.protobuf.TimestampOrBuilder |
getTimeOrBuilder()
The time to seek to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SeekRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SeekRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
SeekRequest.Builder |
mergeFrom(SeekRequest other) |
SeekRequest.Builder |
mergeTime(com.google.protobuf.Timestamp value)
The time to seek to.
|
SeekRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SeekRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
SeekRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
SeekRequest.Builder |
setSnapshot(java.lang.String value)
The snapshot to seek to.
|
SeekRequest.Builder |
setSnapshotBytes(com.google.protobuf.ByteString value)
The snapshot to seek to.
|
SeekRequest.Builder |
setSnapshotWithSnapshotName(SnapshotName value) |
SeekRequest.Builder |
setSubscription(java.lang.String value)
The subscription to affect.
|
SeekRequest.Builder |
setSubscriptionBytes(com.google.protobuf.ByteString value)
The subscription to affect.
|
SeekRequest.Builder |
setSubscriptionWithSubscriptionName(SubscriptionName value) |
SeekRequest.Builder |
setTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time to seek to.
|
SeekRequest.Builder |
setTime(com.google.protobuf.Timestamp value)
The time to seek to.
|
SeekRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownField
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public SeekRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public SeekRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public SeekRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public SeekRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public SeekRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public SeekRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public SeekRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public SeekRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public SeekRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public SeekRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public SeekRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SeekRequest.Builder>
public SeekRequest.Builder mergeFrom(SeekRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public SeekRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SeekRequest.Builder>
java.io.IOException
public SeekRequest.TargetCase getTargetCase()
getTargetCase
in interface SeekRequestOrBuilder
public SeekRequest.Builder clearTarget()
public java.lang.String getSubscription()
The subscription to affect.
string subscription = 1;
getSubscription
in interface SeekRequestOrBuilder
public com.google.protobuf.ByteString getSubscriptionBytes()
The subscription to affect.
string subscription = 1;
getSubscriptionBytes
in interface SeekRequestOrBuilder
public SeekRequest.Builder setSubscription(java.lang.String value)
The subscription to affect.
string subscription = 1;
public SeekRequest.Builder clearSubscription()
The subscription to affect.
string subscription = 1;
public SeekRequest.Builder setSubscriptionBytes(com.google.protobuf.ByteString value)
The subscription to affect.
string subscription = 1;
public com.google.protobuf.Timestamp getTime()
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;
getTime
in interface SeekRequestOrBuilder
public SeekRequest.Builder setTime(com.google.protobuf.Timestamp value)
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;
public SeekRequest.Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;
public SeekRequest.Builder mergeTime(com.google.protobuf.Timestamp value)
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;
public SeekRequest.Builder clearTime()
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;
public com.google.protobuf.Timestamp.Builder getTimeBuilder()
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;
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()
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;
getTimeOrBuilder
in interface SeekRequestOrBuilder
public java.lang.String getSnapshot()
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;
getSnapshot
in interface SeekRequestOrBuilder
public com.google.protobuf.ByteString getSnapshotBytes()
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;
getSnapshotBytes
in interface SeekRequestOrBuilder
public SeekRequest.Builder setSnapshot(java.lang.String value)
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;
public SeekRequest.Builder clearSnapshot()
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;
public SeekRequest.Builder setSnapshotBytes(com.google.protobuf.ByteString value)
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;
public final SeekRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public final SeekRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
public final SeekRequest.Builder setSubscriptionWithSubscriptionName(SubscriptionName value)
public final SubscriptionName getSubscriptionAsSubscriptionName()
public final SeekRequest.Builder setSnapshotWithSnapshotName(SnapshotName value)
public final SnapshotName getSnapshotAsSnapshotName()