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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InitialPartitionAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public InitialPartitionAssignmentRequest build()
Returns
buildPartial()
public InitialPartitionAssignmentRequest buildPartial()
Returns
clear()
public InitialPartitionAssignmentRequest.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public InitialPartitionAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InitialPartitionAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSubscription()
public InitialPartitionAssignmentRequest.Builder clearSubscription()
The subscription name. Structured like:
projects/<project number>/locations/<zone name>/subscriptions/<subscription
id>
string subscription = 1;
Returns
clone()
public InitialPartitionAssignmentRequest.Builder clone()
Returns
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
getDefaultInstanceForType()
public InitialPartitionAssignmentRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(InitialPartitionAssignmentRequest other)
public InitialPartitionAssignmentRequest.Builder mergeFrom(InitialPartitionAssignmentRequest other)
Parameter
Returns
public InitialPartitionAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InitialPartitionAssignmentRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InitialPartitionAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public InitialPartitionAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InitialPartitionAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final InitialPartitionAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides