public final class MessagePublishRequest extends GeneratedMessageV3 implements MessagePublishRequestOrBuilder
Request to publish messages to the topic.
Protobuf type google.cloud.pubsublite.v1.MessagePublishRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MessagePublishRequestImplements
MessagePublishRequestOrBuilderStatic Fields
FIRST_SEQUENCE_NUMBER_FIELD_NUMBER
public static final int FIRST_SEQUENCE_NUMBER_FIELD_NUMBER
Type | Description |
int |
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static MessagePublishRequest getDefaultInstance()
Type | Description |
MessagePublishRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static MessagePublishRequest.Builder newBuilder()
Type | Description |
MessagePublishRequest.Builder |
newBuilder(MessagePublishRequest prototype)
public static MessagePublishRequest.Builder newBuilder(MessagePublishRequest prototype)
Name | Description |
prototype | MessagePublishRequest |
Type | Description |
MessagePublishRequest.Builder |
parseDelimitedFrom(InputStream input)
public static MessagePublishRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MessagePublishRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static MessagePublishRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
MessagePublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static MessagePublishRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
MessagePublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static MessagePublishRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
MessagePublishRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static MessagePublishRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MessagePublishRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static MessagePublishRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
MessagePublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<MessagePublishRequest> parser()
Type | Description |
Parser<MessagePublishRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public MessagePublishRequest getDefaultInstanceForType()
Type | Description |
MessagePublishRequest |
getFirstSequenceNumber()
public long getFirstSequenceNumber()
The sequence number corresponding to the first message in messages
.
Messages within a batch are ordered and the sequence numbers of all
subsequent messages in the batch are assumed to be incremental.
Sequence numbers are assigned at the message level and the first message
published in a publisher client session must have a sequence number of 0.
All messages must have contiguous sequence numbers, which uniquely identify
the messages accepted by the publisher client. Since messages are ordered,
the client only needs to specify the sequence number of the first message
in a published batch. The server deduplicates messages with the same
sequence number from the same publisher client_id
.
int64 first_sequence_number = 2;
Type | Description |
long | The firstSequenceNumber. |
getMessages(int index)
public PubSubMessage getMessages(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Name | Description |
index | int |
Type | Description |
PubSubMessage |
getMessagesCount()
public int getMessagesCount()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Type | Description |
int |
getMessagesList()
public List<PubSubMessage> getMessagesList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Type | Description |
List<PubSubMessage> |
getMessagesOrBuilder(int index)
public PubSubMessageOrBuilder getMessagesOrBuilder(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Name | Description |
index | int |
Type | Description |
PubSubMessageOrBuilder |
getMessagesOrBuilderList()
public List<? extends PubSubMessageOrBuilder> getMessagesOrBuilderList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Type | Description |
List<? extends com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> |
getParserForType()
public Parser<MessagePublishRequest> getParserForType()
Type | Description |
Parser<MessagePublishRequest> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
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 MessagePublishRequest.Builder newBuilderForType()
Type | Description |
MessagePublishRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MessagePublishRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
MessagePublishRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public MessagePublishRequest.Builder toBuilder()
Type | Description |
MessagePublishRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |