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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InitialPublishRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public InitialPublishRequest build()
Returns
buildPartial()
public InitialPublishRequest buildPartial()
Returns
clear()
public InitialPublishRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public InitialPublishRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InitialPublishRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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;
Returns
clearTopic()
public InitialPublishRequest.Builder clearTopic()
The topic to which messages will be written.
string topic = 1;
Returns
clone()
public InitialPublishRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public InitialPublishRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(InitialPublishRequest other)
public InitialPublishRequest.Builder mergeFrom(InitialPublishRequest other)
Parameter
Returns
public InitialPublishRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InitialPublishRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InitialPublishRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InitialPublishRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InitialPublishRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final InitialPublishRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides