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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CLIENT_ID_FIELD_NUMBER
public static final int CLIENT_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PARTITION_FIELD_NUMBER
public static final int PARTITION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static InitialPublishRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static InitialPublishRequest.Builder newBuilder()
newBuilder(InitialPublishRequest prototype)
public static InitialPublishRequest.Builder newBuilder(InitialPublishRequest prototype)
public static InitialPublishRequest parseDelimitedFrom(InputStream input)
public static InitialPublishRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static InitialPublishRequest parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static InitialPublishRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseFrom(CodedInputStream input)
public static InitialPublishRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseFrom(InputStream input)
public static InitialPublishRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static InitialPublishRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<InitialPublishRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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()
getParserForType()
public Parser<InitialPublishRequest> getParserForType()
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.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public InitialPublishRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected InitialPublishRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public InitialPublishRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides