Class InitialPartitionAssignmentRequest.Builder (1.13.3)

public static final class InitialPartitionAssignmentRequest.Builder extends GeneratedMessageV3.Builder<InitialPartitionAssignmentRequest.Builder> implements InitialPartitionAssignmentRequestOrBuilder

The first 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.InitialPartitionAssignmentRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InitialPartitionAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides

build()

public InitialPartitionAssignmentRequest build()
Returns
Type Description
InitialPartitionAssignmentRequest

buildPartial()

public InitialPartitionAssignmentRequest buildPartial()
Returns
Type Description
InitialPartitionAssignmentRequest

clear()

public InitialPartitionAssignmentRequest.Builder clear()
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides

clearClientId()

public InitialPartitionAssignmentRequest.Builder clearClientId()

An opaque, unique client identifier. This field must be exactly 16 bytes long and is interpreted as an unsigned 128 bit integer. Other size values will be rejected and the stream will be failed with a non-retryable error.

This field is large enough to fit a uuid from standard uuid algorithms like uuid1 or uuid4, which should be used to generate this number. The same identifier should be reused following disconnections with retryable stream errors.

bytes client_id = 2;

Returns
Type Description
InitialPartitionAssignmentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InitialPartitionAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InitialPartitionAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides

clearSubscription()

public InitialPartitionAssignmentRequest.Builder clearSubscription()

The subscription name. Structured like: projects/<project number>/locations/<zone name>/subscriptions/<subscription id>

string subscription = 1;

Returns
Type Description
InitialPartitionAssignmentRequest.Builder

This builder for chaining.

clone()

public InitialPartitionAssignmentRequest.Builder clone()
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides

getClientId()

public ByteString getClientId()

An opaque, unique client identifier. This field must be exactly 16 bytes long and is interpreted as an unsigned 128 bit integer. Other size values will be rejected and the stream will be failed with a non-retryable error.

This field is large enough to fit a uuid from standard uuid algorithms like uuid1 or uuid4, which should be used to generate this number. The same identifier should be reused following disconnections with retryable stream errors.

bytes client_id = 2;

Returns
Type Description
ByteString

The clientId.

getDefaultInstanceForType()

public InitialPartitionAssignmentRequest getDefaultInstanceForType()
Returns
Type Description
InitialPartitionAssignmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSubscription()

public String getSubscription()

The subscription name. Structured like: projects/<project number>/locations/<zone name>/subscriptions/<subscription id>

string subscription = 1;

Returns
Type Description
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

The subscription name. Structured like: projects/<project number>/locations/<zone name>/subscriptions/<subscription id>

string subscription = 1;

Returns
Type Description
ByteString

The bytes for subscription.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InitialPartitionAssignmentRequest other)

public InitialPartitionAssignmentRequest.Builder mergeFrom(InitialPartitionAssignmentRequest other)
Parameter
Name Description
other InitialPartitionAssignmentRequest
Returns
Type Description
InitialPartitionAssignmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InitialPartitionAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InitialPartitionAssignmentRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InitialPartitionAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides

setClientId(ByteString value)

public InitialPartitionAssignmentRequest.Builder setClientId(ByteString value)

An opaque, unique client identifier. This field must be exactly 16 bytes long and is interpreted as an unsigned 128 bit integer. Other size values will be rejected and the stream will be failed with a non-retryable error.

This field is large enough to fit a uuid from standard uuid algorithms like uuid1 or uuid4, which should be used to generate this number. The same identifier should be reused following disconnections with retryable stream errors.

bytes client_id = 2;

Parameter
Name Description
value ByteString

The clientId to set.

Returns
Type Description
InitialPartitionAssignmentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InitialPartitionAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides

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

public InitialPartitionAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides

setSubscription(String value)

public InitialPartitionAssignmentRequest.Builder setSubscription(String value)

The subscription name. Structured like: projects/<project number>/locations/<zone name>/subscriptions/<subscription id>

string subscription = 1;

Parameter
Name Description
value String

The subscription to set.

Returns
Type Description
InitialPartitionAssignmentRequest.Builder

This builder for chaining.

setSubscriptionBytes(ByteString value)

public InitialPartitionAssignmentRequest.Builder setSubscriptionBytes(ByteString value)

The subscription name. Structured like: projects/<project number>/locations/<zone name>/subscriptions/<subscription id>

string subscription = 1;

Parameter
Name Description
value ByteString

The bytes for subscription to set.

Returns
Type Description
InitialPartitionAssignmentRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InitialPartitionAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InitialPartitionAssignmentRequest.Builder
Overrides