Class InitialCommitCursorRequest.Builder (1.8.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InitialCommitCursorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InitialCommitCursorRequest.Builder
Overrides

build()

public InitialCommitCursorRequest build()
Returns
TypeDescription
InitialCommitCursorRequest

buildPartial()

public InitialCommitCursorRequest buildPartial()
Returns
TypeDescription
InitialCommitCursorRequest

clear()

public InitialCommitCursorRequest.Builder clear()
Returns
TypeDescription
InitialCommitCursorRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InitialCommitCursorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InitialCommitCursorRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InitialCommitCursorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InitialCommitCursorRequest.Builder
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
TypeDescription
InitialCommitCursorRequest.Builder

This builder for chaining.

clearSubscription()

public InitialCommitCursorRequest.Builder clearSubscription()

The subscription for which to manage committed cursors.

string subscription = 1;

Returns
TypeDescription
InitialCommitCursorRequest.Builder

This builder for chaining.

clone()

public InitialCommitCursorRequest.Builder clone()
Returns
TypeDescription
InitialCommitCursorRequest.Builder
Overrides

getDefaultInstanceForType()

public InitialCommitCursorRequest getDefaultInstanceForType()
Returns
TypeDescription
InitialCommitCursorRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
long

The partition.

getSubscription()

public String getSubscription()

The subscription for which to manage committed cursors.

string subscription = 1;

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

The subscription for which to manage committed cursors.

string subscription = 1;

Returns
TypeDescription
ByteString

The bytes for subscription.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InitialCommitCursorRequest other)

public InitialCommitCursorRequest.Builder mergeFrom(InitialCommitCursorRequest other)
Parameter
NameDescription
otherInitialCommitCursorRequest
Returns
TypeDescription
InitialCommitCursorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InitialCommitCursorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InitialCommitCursorRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InitialCommitCursorRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InitialCommitCursorRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InitialCommitCursorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InitialCommitCursorRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InitialCommitCursorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InitialCommitCursorRequest.Builder
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
NameDescription
valuelong

The partition to set.

Returns
TypeDescription
InitialCommitCursorRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InitialCommitCursorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InitialCommitCursorRequest.Builder
Overrides

setSubscription(String value)

public InitialCommitCursorRequest.Builder setSubscription(String value)

The subscription for which to manage committed cursors.

string subscription = 1;

Parameter
NameDescription
valueString

The subscription to set.

Returns
TypeDescription
InitialCommitCursorRequest.Builder

This builder for chaining.

setSubscriptionBytes(ByteString value)

public InitialCommitCursorRequest.Builder setSubscriptionBytes(ByteString value)

The subscription for which to manage committed cursors.

string subscription = 1;

Parameter
NameDescription
valueByteString

The bytes for subscription to set.

Returns
TypeDescription
InitialCommitCursorRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InitialCommitCursorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InitialCommitCursorRequest.Builder
Overrides