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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InitialPartitionAssignmentRequest.BuilderImplements
InitialPartitionAssignmentRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InitialPartitionAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
InitialPartitionAssignmentRequest.Builder |
build()
public InitialPartitionAssignmentRequest build()
Type | Description |
InitialPartitionAssignmentRequest |
buildPartial()
public InitialPartitionAssignmentRequest buildPartial()
Type | Description |
InitialPartitionAssignmentRequest |
clear()
public InitialPartitionAssignmentRequest.Builder clear()
Type | Description |
InitialPartitionAssignmentRequest.Builder |
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;
Type | Description |
InitialPartitionAssignmentRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public InitialPartitionAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
InitialPartitionAssignmentRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public InitialPartitionAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
InitialPartitionAssignmentRequest.Builder |
clearSubscription()
public InitialPartitionAssignmentRequest.Builder clearSubscription()
The subscription name. Structured like: projects/<project number>/locations/<zone name>/subscriptions/<subscription id>
string subscription = 1;
Type | Description |
InitialPartitionAssignmentRequest.Builder | This builder for chaining. |
clone()
public InitialPartitionAssignmentRequest.Builder clone()
Type | Description |
InitialPartitionAssignmentRequest.Builder |
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;
Type | Description |
ByteString | The clientId. |
getDefaultInstanceForType()
public InitialPartitionAssignmentRequest getDefaultInstanceForType()
Type | Description |
InitialPartitionAssignmentRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getSubscription()
public String getSubscription()
The subscription name. Structured like: projects/<project number>/locations/<zone name>/subscriptions/<subscription id>
string subscription = 1;
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;
Type | Description |
ByteString | The bytes for subscription. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(InitialPartitionAssignmentRequest other)
public InitialPartitionAssignmentRequest.Builder mergeFrom(InitialPartitionAssignmentRequest other)
Name | Description |
other | InitialPartitionAssignmentRequest |
Type | Description |
InitialPartitionAssignmentRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InitialPartitionAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
InitialPartitionAssignmentRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public InitialPartitionAssignmentRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
InitialPartitionAssignmentRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InitialPartitionAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
InitialPartitionAssignmentRequest.Builder |
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;
Name | Description |
value | ByteString The clientId to set. |
Type | Description |
InitialPartitionAssignmentRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public InitialPartitionAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
InitialPartitionAssignmentRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InitialPartitionAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
InitialPartitionAssignmentRequest.Builder |
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;
Name | Description |
value | String The subscription to set. |
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;
Name | Description |
value | ByteString The bytes for subscription to set. |
Type | Description |
InitialPartitionAssignmentRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final InitialPartitionAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
InitialPartitionAssignmentRequest.Builder |