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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > InitialPublishRequestImplements
InitialPublishRequestOrBuilderStatic Fields
CLIENT_ID_FIELD_NUMBER
public static final int CLIENT_ID_FIELD_NUMBER
Type | Description |
int |
PARTITION_FIELD_NUMBER
public static final int PARTITION_FIELD_NUMBER
Type | Description |
int |
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static InitialPublishRequest getDefaultInstance()
Type | Description |
InitialPublishRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static InitialPublishRequest.Builder newBuilder()
Type | Description |
InitialPublishRequest.Builder |
newBuilder(InitialPublishRequest prototype)
public static InitialPublishRequest.Builder newBuilder(InitialPublishRequest prototype)
Name | Description |
prototype | InitialPublishRequest |
Type | Description |
InitialPublishRequest.Builder |
parseDelimitedFrom(InputStream input)
public static InitialPublishRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
InitialPublishRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
InitialPublishRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static InitialPublishRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
InitialPublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
InitialPublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static InitialPublishRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
InitialPublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
InitialPublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static InitialPublishRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
InitialPublishRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
InitialPublishRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static InitialPublishRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
InitialPublishRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
InitialPublishRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static InitialPublishRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
InitialPublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InitialPublishRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
InitialPublishRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<InitialPublishRequest> parser()
Type | Description |
Parser<InitialPublishRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
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;
Type | Description |
ByteString | The clientId. |
getDefaultInstanceForType()
public InitialPublishRequest getDefaultInstanceForType()
Type | Description |
InitialPublishRequest |
getParserForType()
public Parser<InitialPublishRequest> getParserForType()
Type | Description |
Parser<InitialPublishRequest> |
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;
Type | Description |
long | The partition. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getTopic()
public String getTopic()
The topic to which messages will be written.
string topic = 1;
Type | Description |
String | The topic. |
getTopicBytes()
public ByteString getTopicBytes()
The topic to which messages will be written.
string topic = 1;
Type | Description |
ByteString | The bytes for topic. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public InitialPublishRequest.Builder newBuilderForType()
Type | Description |
InitialPublishRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected InitialPublishRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
InitialPublishRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public InitialPublishRequest.Builder toBuilder()
Type | Description |
InitialPublishRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |