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