public final class MessagePublishRequest extends GeneratedMessageV3 implements MessagePublishRequestOrBuilder
Request to publish messages to the topic.
Protobuf type google.cloud.pubsublite.v1.MessagePublishRequest
Static Fields
FIRST_SEQUENCE_NUMBER_FIELD_NUMBER
public static final int FIRST_SEQUENCE_NUMBER_FIELD_NUMBER
Field Value
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static MessagePublishRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static MessagePublishRequest.Builder newBuilder()
Returns
newBuilder(MessagePublishRequest prototype)
public static MessagePublishRequest.Builder newBuilder(MessagePublishRequest prototype)
Parameter
Returns
public static MessagePublishRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MessagePublishRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MessagePublishRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MessagePublishRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MessagePublishRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MessagePublishRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MessagePublishRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MessagePublishRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MessagePublishRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<MessagePublishRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public MessagePublishRequest getDefaultInstanceForType()
Returns
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;
Returns
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;
Parameter
Returns
getMessagesCount()
public int getMessagesCount()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Returns
getMessagesList()
public List<PubSubMessage> getMessagesList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Returns
getMessagesOrBuilder(int index)
public PubSubMessageOrBuilder getMessagesOrBuilder(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter
Returns
getMessagesOrBuilderList()
public List<? extends PubSubMessageOrBuilder> getMessagesOrBuilderList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Returns
Type | Description |
List<? extends com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> | |
getParserForType()
public Parser<MessagePublishRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public MessagePublishRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MessagePublishRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public MessagePublishRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions