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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InitialPartitionAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public InitialPartitionAssignmentRequest build()
buildPartial()
public InitialPartitionAssignmentRequest buildPartial()
clear()
public InitialPartitionAssignmentRequest.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public InitialPartitionAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InitialPartitionAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSubscription()
public InitialPartitionAssignmentRequest.Builder clearSubscription()
The subscription name. Structured like:
projects/<project number>/locations/<zone name>/subscriptions/<subscription
id>
string subscription = 1;
clone()
public InitialPartitionAssignmentRequest.Builder clone()
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;
getDefaultInstanceForType()
public InitialPartitionAssignmentRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(InitialPartitionAssignmentRequest other)
public InitialPartitionAssignmentRequest.Builder mergeFrom(InitialPartitionAssignmentRequest other)
public InitialPartitionAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public InitialPartitionAssignmentRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InitialPartitionAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public InitialPartitionAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InitialPartitionAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final InitialPartitionAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides