Package com.google.pubsub.v1
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 typegoogle.pubsub.v1.SeekRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SeekRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SeekRequestbuild()SeekRequestbuildPartial()SeekRequest.Builderclear()SeekRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SeekRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SeekRequest.BuilderclearSnapshot()The snapshot to seek to.SeekRequest.BuilderclearSubscription()Required.SeekRequest.BuilderclearTarget()SeekRequest.BuilderclearTime()The time to seek to.SeekRequest.Builderclone()SeekRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetSnapshot()The snapshot to seek to.com.google.protobuf.ByteStringgetSnapshotBytes()The snapshot to seek to.StringgetSubscription()Required.com.google.protobuf.ByteStringgetSubscriptionBytes()Required.SeekRequest.TargetCasegetTargetCase()com.google.protobuf.TimestampgetTime()The time to seek to.com.google.protobuf.Timestamp.BuildergetTimeBuilder()The time to seek to.com.google.protobuf.TimestampOrBuildergetTimeOrBuilder()The time to seek to.booleanhasSnapshot()The snapshot to seek to.booleanhasTime()The time to seek to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SeekRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SeekRequest.BuildermergeFrom(com.google.protobuf.Message other)SeekRequest.BuildermergeFrom(SeekRequest other)SeekRequest.BuildermergeTime(com.google.protobuf.Timestamp value)The time to seek to.SeekRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SeekRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SeekRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SeekRequest.BuildersetSnapshot(String value)The snapshot to seek to.SeekRequest.BuildersetSnapshotBytes(com.google.protobuf.ByteString value)The snapshot to seek to.SeekRequest.BuildersetSubscription(String value)Required.SeekRequest.BuildersetSubscriptionBytes(com.google.protobuf.ByteString value)Required.SeekRequest.BuildersetTime(com.google.protobuf.Timestamp value)The time to seek to.SeekRequest.BuildersetTime(com.google.protobuf.Timestamp.Builder builderForValue)The time to seek to.SeekRequest.BuildersetUnknownFields(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, internalGetMutableMapField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
clear
public SeekRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
getDefaultInstanceForType
public SeekRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SeekRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SeekRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SeekRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
setField
public SeekRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
clearField
public SeekRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
clearOneof
public SeekRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
setRepeatedField
public SeekRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
addRepeatedField
public SeekRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
mergeFrom
public SeekRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SeekRequest.Builder>
-
mergeFrom
public SeekRequest.Builder mergeFrom(SeekRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SeekRequest.Builder>- Throws:
IOException
-
getTargetCase
public SeekRequest.TargetCase getTargetCase()
- Specified by:
getTargetCasein interfaceSeekRequestOrBuilder
-
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:
getSubscriptionin interfaceSeekRequestOrBuilder- 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:
getSubscriptionBytesin interfaceSeekRequestOrBuilder- 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()
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;- Specified by:
hasTimein interfaceSeekRequestOrBuilder- Returns:
- Whether the time field is set.
-
getTime
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;- Specified by:
getTimein interfaceSeekRequestOrBuilder- Returns:
- The time.
-
setTime
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;
-
setTime
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;
-
mergeTime
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;
-
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;
-
getTimeBuilder
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;
-
getTimeOrBuilder
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;- Specified by:
getTimeOrBuilderin interfaceSeekRequestOrBuilder
-
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) = { ... }- Specified by:
hasSnapshotin interfaceSeekRequestOrBuilder- Returns:
- Whether the snapshot field is set.
-
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) = { ... }- Specified by:
getSnapshotin interfaceSeekRequestOrBuilder- Returns:
- The snapshot.
-
getSnapshotBytes
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 [(.google.api.resource_reference) = { ... }- Specified by:
getSnapshotBytesin interfaceSeekRequestOrBuilder- Returns:
- The bytes for snapshot.
-
setSnapshot
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) = { ... }- Parameters:
value- The snapshot to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setSnapshotBytes
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 [(.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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
mergeUnknownFields
public final SeekRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SeekRequest.Builder>
-
-