public static final class SeekRequest.Builder extends GeneratedMessage.Builder<SeekRequest.Builder> implements SeekRequestOrBuilder Request for the Seek method.
Protobuf type google.pubsub.v1.SeekRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SeekRequest.BuilderImplements
SeekRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SeekRequest build()| Returns | |
|---|---|
| Type | Description |
SeekRequest |
|
buildPartial()
public SeekRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
SeekRequest |
|
clear()
public SeekRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
|
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 | |
|---|---|
| Type | Description |
SeekRequest.Builder |
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 | |
|---|---|
| Type | Description |
SeekRequest.Builder |
This builder for chaining. |
clearTarget()
public SeekRequest.Builder clearTarget()| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
|
getDefaultInstanceForType()
public SeekRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SeekRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The snapshot. |
getSnapshotBytes()
public 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for snapshot. |
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 | |
|---|---|
| Type | Description |
SeekRequest.TargetCase |
|
getTime()
public 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];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The time. |
getTimeBuilder()
public 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];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getTimeOrBuilder()
public 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];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the snapshot field is set. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the time field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SeekRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SeekRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
|
mergeFrom(SeekRequest other)
public SeekRequest.Builder mergeFrom(SeekRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
SeekRequest |
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
|
mergeTime(Timestamp value)
public SeekRequest.Builder mergeTime(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];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
|
setSnapshot(String value)
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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe snapshot to set. |
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
This builder for chaining. |
setSnapshotBytes(ByteString value)
public SeekRequest.Builder setSnapshotBytes(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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for snapshot to set. |
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
This builder for chaining. |
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 |
StringThe subscription to set. |
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
This builder for chaining. |
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 |
ByteStringThe bytes for subscription to set. |
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
This builder for chaining. |
setTime(Timestamp value)
public SeekRequest.Builder setTime(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];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
|
setTime(Timestamp.Builder builderForValue)
public SeekRequest.Builder setTime(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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
SeekRequest.Builder |
|