Class InitialPartitionAssignmentRequest.Builder (1.9.4)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InitialPartitionAssignmentRequest build()
Returns
TypeDescription
InitialPartitionAssignmentRequest

buildPartial()

public InitialPartitionAssignmentRequest buildPartial()
Returns
TypeDescription
InitialPartitionAssignmentRequest

clear()

public InitialPartitionAssignmentRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
InitialPartitionAssignmentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public InitialPartitionAssignmentRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
ByteString

The clientId.

getDefaultInstanceForType()

public InitialPartitionAssignmentRequest getDefaultInstanceForType()
Returns
TypeDescription
InitialPartitionAssignmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSubscription()

public String getSubscription()

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

string subscription = 1;

Returns
TypeDescription
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
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(InitialPartitionAssignmentRequest other)

public InitialPartitionAssignmentRequest.Builder mergeFrom(InitialPartitionAssignmentRequest other)
Parameter
NameDescription
otherInitialPartitionAssignmentRequest
Returns
TypeDescription
InitialPartitionAssignmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InitialPartitionAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueByteString

The clientId to set.

Returns
TypeDescription
InitialPartitionAssignmentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public InitialPartitionAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The subscription to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subscription to set.

Returns
TypeDescription
InitialPartitionAssignmentRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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