public static final class InitialPublishRequest.Builder extends GeneratedMessageV3.Builder<InitialPublishRequest.Builder> implements InitialPublishRequestOrBuilder
The first request that must be sent on a newly-opened stream.
Protobuf type google.cloud.pubsublite.v1.InitialPublishRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InitialPublishRequest.BuilderImplements
InitialPublishRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InitialPublishRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
InitialPublishRequest.Builder |
build()
public InitialPublishRequest build()
Type | Description |
InitialPublishRequest |
buildPartial()
public InitialPublishRequest buildPartial()
Type | Description |
InitialPublishRequest |
clear()
public InitialPublishRequest.Builder clear()
Type | Description |
InitialPublishRequest.Builder |
clearClientId()
public InitialPublishRequest.Builder clearClientId()
Unique identifier for a publisher client. If set, enables publish idempotency within a publisher client session. The length of this field must be exactly 16 bytes long and should be populated with a 128 bit uuid, generated by standard uuid algorithms like uuid1 or uuid4. The same identifier should be reused following disconnections with retryable stream errors.
bytes client_id = 3;
Type | Description |
InitialPublishRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public InitialPublishRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
InitialPublishRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public InitialPublishRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
InitialPublishRequest.Builder |
clearPartition()
public InitialPublishRequest.Builder clearPartition()
The partition within the topic to which messages will be written.
Partitions are zero indexed, so partition
must be in the range [0,
topic.num_partitions).
int64 partition = 2;
Type | Description |
InitialPublishRequest.Builder | This builder for chaining. |
clearTopic()
public InitialPublishRequest.Builder clearTopic()
The topic to which messages will be written.
string topic = 1;
Type | Description |
InitialPublishRequest.Builder | This builder for chaining. |
clone()
public InitialPublishRequest.Builder clone()
Type | Description |
InitialPublishRequest.Builder |
getClientId()
public ByteString getClientId()
Unique identifier for a publisher client. If set, enables publish idempotency within a publisher client session. The length of this field must be exactly 16 bytes long and should be populated with a 128 bit uuid, generated by standard uuid algorithms like uuid1 or uuid4. The same identifier should be reused following disconnections with retryable stream errors.
bytes client_id = 3;
Type | Description |
ByteString | The clientId. |
getDefaultInstanceForType()
public InitialPublishRequest getDefaultInstanceForType()
Type | Description |
InitialPublishRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getPartition()
public long getPartition()
The partition within the topic to which messages will be written.
Partitions are zero indexed, so partition
must be in the range [0,
topic.num_partitions).
int64 partition = 2;
Type | Description |
long | The partition. |
getTopic()
public String getTopic()
The topic to which messages will be written.
string topic = 1;
Type | Description |
String | The topic. |
getTopicBytes()
public ByteString getTopicBytes()
The topic to which messages will be written.
string topic = 1;
Type | Description |
ByteString | The bytes for topic. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(InitialPublishRequest other)
public InitialPublishRequest.Builder mergeFrom(InitialPublishRequest other)
Name | Description |
other | InitialPublishRequest |
Type | Description |
InitialPublishRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InitialPublishRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
InitialPublishRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public InitialPublishRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
InitialPublishRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InitialPublishRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
InitialPublishRequest.Builder |
setClientId(ByteString value)
public InitialPublishRequest.Builder setClientId(ByteString value)
Unique identifier for a publisher client. If set, enables publish idempotency within a publisher client session. The length of this field must be exactly 16 bytes long and should be populated with a 128 bit uuid, generated by standard uuid algorithms like uuid1 or uuid4. The same identifier should be reused following disconnections with retryable stream errors.
bytes client_id = 3;
Name | Description |
value | ByteString The clientId to set. |
Type | Description |
InitialPublishRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public InitialPublishRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
InitialPublishRequest.Builder |
setPartition(long value)
public InitialPublishRequest.Builder setPartition(long value)
The partition within the topic to which messages will be written.
Partitions are zero indexed, so partition
must be in the range [0,
topic.num_partitions).
int64 partition = 2;
Name | Description |
value | long The partition to set. |
Type | Description |
InitialPublishRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InitialPublishRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
InitialPublishRequest.Builder |
setTopic(String value)
public InitialPublishRequest.Builder setTopic(String value)
The topic to which messages will be written.
string topic = 1;
Name | Description |
value | String The topic to set. |
Type | Description |
InitialPublishRequest.Builder | This builder for chaining. |
setTopicBytes(ByteString value)
public InitialPublishRequest.Builder setTopicBytes(ByteString value)
The topic to which messages will be written.
string topic = 1;
Name | Description |
value | ByteString The bytes for topic to set. |
Type | Description |
InitialPublishRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final InitialPublishRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
InitialPublishRequest.Builder |