Class CommitCursorRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CommitCursorRequest.Builder>
com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder
- All Implemented Interfaces:
CommitCursorRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CommitCursorRequest
public static final class CommitCursorRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CommitCursorRequest.Builder>
implements CommitCursorRequestOrBuilder
Request for CommitCursor.Protobuf type
google.cloud.pubsublite.v1.CommitCursorRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The new value for the committed cursor.The partition for which to update the cursor.The subscription for which to update the cursor.The new value for the committed cursor.The new value for the committed cursor.The new value for the committed cursor.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe partition for which to update the cursor.The subscription for which to update the cursor.com.google.protobuf.ByteStringThe subscription for which to update the cursor.booleanThe new value for the committed cursor.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCursor(Cursor value) The new value for the committed cursor.mergeFrom(CommitCursorRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The new value for the committed cursor.setCursor(Cursor.Builder builderForValue) The new value for the committed cursor.setPartition(long value) The partition for which to update the cursor.setSubscription(String value) The subscription for which to update the cursor.setSubscriptionBytes(com.google.protobuf.ByteString value) The subscription for which to update the cursor.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CommitCursorRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CommitCursorRequest.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.GeneratedMessage.Builder<CommitCursorRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitCursorRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CommitCursorRequest.Builder>
-
mergeFrom
public CommitCursorRequest.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<CommitCursorRequest.Builder>- Throws:
IOException
-
getSubscription
The subscription for which to update the cursor.
string subscription = 1;- Specified by:
getSubscriptionin interfaceCommitCursorRequestOrBuilder- Returns:
- The subscription.
-
getSubscriptionBytes
public com.google.protobuf.ByteString getSubscriptionBytes()The subscription for which to update the cursor.
string subscription = 1;- Specified by:
getSubscriptionBytesin interfaceCommitCursorRequestOrBuilder- Returns:
- The bytes for subscription.
-
setSubscription
The subscription for which to update the cursor.
string subscription = 1;- Parameters:
value- The subscription to set.- Returns:
- This builder for chaining.
-
clearSubscription
The subscription for which to update the cursor.
string subscription = 1;- Returns:
- This builder for chaining.
-
setSubscriptionBytes
The subscription for which to update the cursor.
string subscription = 1;- Parameters:
value- The bytes for subscription to set.- Returns:
- This builder for chaining.
-
getPartition
public long getPartition()The partition for which to update the cursor. Partitions are zero indexed, so `partition` must be in the range [0, topic.num_partitions).
int64 partition = 2;- Specified by:
getPartitionin interfaceCommitCursorRequestOrBuilder- Returns:
- The partition.
-
setPartition
The partition for which to update the cursor. Partitions are zero indexed, so `partition` must be in the range [0, topic.num_partitions).
int64 partition = 2;- Parameters:
value- The partition to set.- Returns:
- This builder for chaining.
-
clearPartition
The partition for which to update the cursor. Partitions are zero indexed, so `partition` must be in the range [0, topic.num_partitions).
int64 partition = 2;- Returns:
- This builder for chaining.
-
hasCursor
public boolean hasCursor()The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;- Specified by:
hasCursorin interfaceCommitCursorRequestOrBuilder- Returns:
- Whether the cursor field is set.
-
getCursor
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;- Specified by:
getCursorin interfaceCommitCursorRequestOrBuilder- Returns:
- The cursor.
-
setCursor
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3; -
setCursor
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3; -
mergeCursor
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3; -
clearCursor
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3; -
getCursorBuilder
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3; -
getCursorOrBuilder
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;- Specified by:
getCursorOrBuilderin interfaceCommitCursorRequestOrBuilder
-