Class InitialPublishRequest (1.12.22)

public final class InitialPublishRequest extends GeneratedMessageV3 implements InitialPublishRequestOrBuilder

The first request that must be sent on a newly-opened stream.

Protobuf type google.cloud.pubsublite.v1.InitialPublishRequest

Static Fields

CLIENT_ID_FIELD_NUMBER

public static final int CLIENT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PARTITION_FIELD_NUMBER

public static final int PARTITION_FIELD_NUMBER
Field Value
TypeDescription
int

TOPIC_FIELD_NUMBER

public static final int TOPIC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InitialPublishRequest getDefaultInstance()
Returns
TypeDescription
InitialPublishRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static InitialPublishRequest.Builder newBuilder()
Returns
TypeDescription
InitialPublishRequest.Builder

newBuilder(InitialPublishRequest prototype)

public static InitialPublishRequest.Builder newBuilder(InitialPublishRequest prototype)
Parameter
NameDescription
prototypeInitialPublishRequest
Returns
TypeDescription
InitialPublishRequest.Builder

parseDelimitedFrom(InputStream input)

public static InitialPublishRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InitialPublishRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static InitialPublishRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InitialPublishRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InitialPublishRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InitialPublishRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InitialPublishRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InitialPublishRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static InitialPublishRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InitialPublishRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static InitialPublishRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InitialPublishRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InitialPublishRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<InitialPublishRequest> parser()
Returns
TypeDescription
Parser<InitialPublishRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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;

Returns
TypeDescription
ByteString

The clientId.

getDefaultInstanceForType()

public InitialPublishRequest getDefaultInstanceForType()
Returns
TypeDescription
InitialPublishRequest

getParserForType()

public Parser<InitialPublishRequest> getParserForType()
Returns
TypeDescription
Parser<InitialPublishRequest>
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
TypeDescription
long

The partition.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTopic()

public String getTopic()

The topic to which messages will be written.

string topic = 1;

Returns
TypeDescription
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

The topic to which messages will be written.

string topic = 1;

Returns
TypeDescription
ByteString

The bytes for topic.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public InitialPublishRequest.Builder newBuilderForType()
Returns
TypeDescription
InitialPublishRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InitialPublishRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
InitialPublishRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public InitialPublishRequest.Builder toBuilder()
Returns
TypeDescription
InitialPublishRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException