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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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 InitialPublishRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public InitialPublishRequest build()
buildPartial()
public InitialPublishRequest buildPartial()
clear()
public InitialPublishRequest.Builder clear()
Overrides
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;
clearField(Descriptors.FieldDescriptor field)
public InitialPublishRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InitialPublishRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
clearTopic()
public InitialPublishRequest.Builder clearTopic()
The topic to which messages will be written.
string topic = 1;
clone()
public InitialPublishRequest.Builder clone()
Overrides
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;
getDefaultInstanceForType()
public InitialPublishRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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;
Returns |
---|
Type | Description |
long | The partition.
|
getTopic()
The topic to which messages will be written.
string topic = 1;
Returns |
---|
Type | Description |
String | The topic.
|
getTopicBytes()
public ByteString getTopicBytes()
The topic to which messages will be written.
string topic = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for topic.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(InitialPublishRequest other)
public InitialPublishRequest.Builder mergeFrom(InitialPublishRequest other)
public InitialPublishRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public InitialPublishRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InitialPublishRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
Parameter |
---|
Name | Description |
value | ByteString
The clientId to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public InitialPublishRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
Parameter |
---|
Name | Description |
value | long
The partition to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InitialPublishRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTopic(String value)
public InitialPublishRequest.Builder setTopic(String value)
The topic to which messages will be written.
string topic = 1;
Parameter |
---|
Name | Description |
value | String
The topic to set.
|
setTopicBytes(ByteString value)
public InitialPublishRequest.Builder setTopicBytes(ByteString value)
The topic to which messages will be written.
string topic = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for topic to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final InitialPublishRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides