public static final class SeekRequest.Builder extends GeneratedMessageV3.Builder<SeekRequest.Builder> implements SeekRequestOrBuilder
Request for the Seek
method.
Protobuf type google.pubsub.v1.SeekRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SeekRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SeekRequest build()
Returns
buildPartial()
public SeekRequest buildPartial()
Returns
clear()
public SeekRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SeekRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SeekRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSnapshot()
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 [(.google.api.resource_reference) = { ... }
Returns
clearSubscription()
public SeekRequest.Builder clearSubscription()
Required. The subscription to affect.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearTarget()
public SeekRequest.Builder clearTarget()
Returns
clearTime()
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;
Returns
clone()
public SeekRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SeekRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getSnapshot()
public 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 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The snapshot.
|
getSnapshotBytes()
public 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 [(.google.api.resource_reference) = { ... }
Returns
getSubscription()
public String getSubscription()
Required. The subscription to affect.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The subscription.
|
getSubscriptionBytes()
public ByteString getSubscriptionBytes()
Required. The subscription to affect.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
ByteString | The bytes for subscription.
|
getTargetCase()
public SeekRequest.TargetCase getTargetCase()
Returns
getTime()
public 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;
Returns
getTimeBuilder()
public 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;
Returns
getTimeOrBuilder()
public 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;
Returns
hasSnapshot()
public boolean hasSnapshot()
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.resource_reference) = { ... }
Returns
Type | Description |
boolean | Whether the snapshot field is set.
|
hasTime()
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;
Returns
Type | Description |
boolean | Whether the time field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public SeekRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SeekRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(SeekRequest other)
public SeekRequest.Builder mergeFrom(SeekRequest other)
Parameter
Returns
mergeTime(Timestamp value)
public SeekRequest.Builder mergeTime(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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SeekRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SeekRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SeekRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSnapshot(String value)
public SeekRequest.Builder setSnapshot(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 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The snapshot to set.
|
Returns
setSnapshotBytes(ByteString value)
public SeekRequest.Builder setSnapshotBytes(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 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for snapshot to set.
|
Returns
setSubscription(String value)
public SeekRequest.Builder setSubscription(String value)
Required. The subscription to affect.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The subscription to set.
|
Returns
setSubscriptionBytes(ByteString value)
public SeekRequest.Builder setSubscriptionBytes(ByteString value)
Required. The subscription to affect.
string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for subscription to set.
|
Returns
setTime(Timestamp value)
public SeekRequest.Builder setTime(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;
Parameter
Returns
setTime(Timestamp.Builder builderForValue)
public SeekRequest.Builder setTime(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;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SeekRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides