Send feedback
Class InitialCommitCursorRequest.Builder (1.6.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.6.0 keyboard_arrow_down
public static final class InitialCommitCursorRequest . Builder extends GeneratedMessageV3 . Builder<InitialCommitCursorRequest . Builder > implements InitialCommitCursorRequestOrBuilder
The first streaming request that must be sent on a newly-opened stream. The
client must wait for the response before sending subsequent requests on the
stream.
Protobuf type google.cloud.pubsublite.v1.InitialCommitCursorRequest
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InitialCommitCursorRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public InitialCommitCursorRequest build ()
Returns
buildPartial()
public InitialCommitCursorRequest buildPartial ()
Returns
clear()
public InitialCommitCursorRequest . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public InitialCommitCursorRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InitialCommitCursorRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearPartition()
public InitialCommitCursorRequest . Builder clearPartition ()
The partition for which to manage committed cursors. Partitions are zero
indexed, so partition
must be in the range [0, topic.num_partitions).
int64 partition = 2;
Returns
clearSubscription()
public InitialCommitCursorRequest . Builder clearSubscription ()
The subscription for which to manage committed cursors.
string subscription = 1;
Returns
clone()
public InitialCommitCursorRequest . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public InitialCommitCursorRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getPartition()
public long getPartition ()
The partition for which to manage committed cursors. 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 manage committed cursors.
string subscription = 1;
Returns
Type Description String The subscription.
getSubscriptionBytes()
public ByteString getSubscriptionBytes ()
The subscription for which to manage committed cursors.
string subscription = 1;
Returns
Type Description ByteString The bytes for subscription.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(InitialCommitCursorRequest other)
public InitialCommitCursorRequest . Builder mergeFrom ( InitialCommitCursorRequest other )
Parameter
Returns
public InitialCommitCursorRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InitialCommitCursorRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InitialCommitCursorRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InitialCommitCursorRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setPartition(long value)
public InitialCommitCursorRequest . Builder setPartition ( long value )
The partition for which to manage committed cursors. 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 InitialCommitCursorRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setSubscription(String value)
public InitialCommitCursorRequest . Builder setSubscription ( String value )
The subscription for which to manage committed cursors.
string subscription = 1;
Parameter
Name Description value String
The subscription to set.
Returns
setSubscriptionBytes(ByteString value)
public InitialCommitCursorRequest . Builder setSubscriptionBytes ( ByteString value )
The subscription for which to manage committed cursors.
string subscription = 1;
Parameter
Name Description value ByteString
The bytes for subscription to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final InitialCommitCursorRequest . 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-27 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-27 UTC."],[],[]]