public static final class MessagePublishRequest.Builder extends GeneratedMessageV3.Builder<MessagePublishRequest.Builder> implements MessagePublishRequestOrBuilder
Request to publish messages to the topic.
Protobuf type google.cloud.pubsublite.v1.MessagePublishRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllMessages(Iterable<? extends PubSubMessage> values)
public MessagePublishRequest.Builder addAllMessages(Iterable<? extends PubSubMessage> values)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.pubsublite.proto.PubSubMessage>
|
addMessages(PubSubMessage value)
public MessagePublishRequest.Builder addMessages(PubSubMessage value)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
addMessages(PubSubMessage.Builder builderForValue)
public MessagePublishRequest.Builder addMessages(PubSubMessage.Builder builderForValue)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
addMessages(int index, PubSubMessage value)
public MessagePublishRequest.Builder addMessages(int index, PubSubMessage value)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
addMessages(int index, PubSubMessage.Builder builderForValue)
public MessagePublishRequest.Builder addMessages(int index, PubSubMessage.Builder builderForValue)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
addMessagesBuilder()
public PubSubMessage.Builder addMessagesBuilder()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
addMessagesBuilder(int index)
public PubSubMessage.Builder addMessagesBuilder(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MessagePublishRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public MessagePublishRequest build()
buildPartial()
public MessagePublishRequest buildPartial()
clear()
public MessagePublishRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public MessagePublishRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFirstSequenceNumber()
public MessagePublishRequest.Builder clearFirstSequenceNumber()
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;
clearMessages()
public MessagePublishRequest.Builder clearMessages()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public MessagePublishRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public MessagePublishRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public MessagePublishRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
getMessagesBuilder(int index)
public PubSubMessage.Builder getMessagesBuilder(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter |
Name |
Description |
index |
int
|
getMessagesBuilderList()
public List<PubSubMessage.Builder> getMessagesBuilderList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
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> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MessagePublishRequest other)
public MessagePublishRequest.Builder mergeFrom(MessagePublishRequest other)
public MessagePublishRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MessagePublishRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MessagePublishRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeMessages(int index)
public MessagePublishRequest.Builder removeMessages(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public MessagePublishRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setFirstSequenceNumber(long value)
public MessagePublishRequest.Builder setFirstSequenceNumber(long value)
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;
Parameter |
Name |
Description |
value |
long
The firstSequenceNumber to set.
|
setMessages(int index, PubSubMessage value)
public MessagePublishRequest.Builder setMessages(int index, PubSubMessage value)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
setMessages(int index, PubSubMessage.Builder builderForValue)
public MessagePublishRequest.Builder setMessages(int index, PubSubMessage.Builder builderForValue)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MessagePublishRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MessagePublishRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides