Send feedback
Class InitialPublishRequest.Builder (1.5.5)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.5.5 keyboard_arrow_down
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]