Send feedback
Class CommitCursorRequest.Builder (1.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.11.0 keyboard_arrow_down
public static final class CommitCursorRequest . Builder extends GeneratedMessageV3 . Builder<CommitCursorRequest . Builder > implements CommitCursorRequestOrBuilder
Request for CommitCursor.
Protobuf type google.cloud.pubsublite.v1.CommitCursorRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CommitCursorRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CommitCursorRequest build ()
Returns
buildPartial()
public CommitCursorRequest buildPartial ()
Returns
clear()
public CommitCursorRequest . Builder clear ()
Returns
Overrides
clearCursor()
public CommitCursorRequest . Builder clearCursor ()
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public CommitCursorRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CommitCursorRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearPartition()
public CommitCursorRequest . Builder 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
clearSubscription()
public CommitCursorRequest . Builder clearSubscription ()
The subscription for which to update the cursor.
string subscription = 1;
Returns
clone()
public CommitCursorRequest . Builder clone ()
Returns
Overrides
getCursor()
public Cursor getCursor ()
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Returns
Type Description Cursor
The cursor.
getCursorBuilder()
public Cursor . Builder getCursorBuilder ()
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Returns
getCursorOrBuilder()
public CursorOrBuilder getCursorOrBuilder ()
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Returns
getDefaultInstanceForType()
public CommitCursorRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
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;
Returns
Type Description long
The partition.
getSubscription()
public String getSubscription ()
The subscription for which to update the cursor.
string subscription = 1;
Returns
Type Description String
The subscription.
getSubscriptionBytes()
public ByteString getSubscriptionBytes ()
The subscription for which to update the cursor.
string subscription = 1;
Returns
Type Description ByteString
The bytes for subscription.
hasCursor()
public boolean hasCursor ()
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Returns
Type Description boolean
Whether the cursor field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeCursor(Cursor value)
public CommitCursorRequest . Builder mergeCursor ( Cursor value )
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Parameter
Returns
mergeFrom(CommitCursorRequest other)
public CommitCursorRequest . Builder mergeFrom ( CommitCursorRequest other )
Parameter
Returns
public CommitCursorRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CommitCursorRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CommitCursorRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setCursor(Cursor value)
public CommitCursorRequest . Builder setCursor ( Cursor value )
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Parameter
Returns
setCursor(Cursor.Builder builderForValue)
public CommitCursorRequest . Builder setCursor ( Cursor . Builder builderForValue )
The new value for the committed cursor.
.google.cloud.pubsublite.v1.Cursor cursor = 3;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CommitCursorRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setPartition(long value)
public CommitCursorRequest . Builder setPartition ( long value )
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;
Parameter
Name Description value
long
The partition to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CommitCursorRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setSubscription(String value)
public CommitCursorRequest . Builder setSubscription ( String value )
The subscription for which to update the cursor.
string subscription = 1;
Parameter
Name Description value
String
The subscription to set.
Returns
setSubscriptionBytes(ByteString value)
public CommitCursorRequest . Builder setSubscriptionBytes ( ByteString value )
The subscription for which to update the cursor.
string subscription = 1;
Parameter
Name Description value
ByteString
The bytes for subscription to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CommitCursorRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]