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.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()
Returns
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>
|
Returns
addMessages(PubSubMessage value)
public MessagePublishRequest.Builder addMessages(PubSubMessage value)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter
Returns
addMessages(PubSubMessage.Builder builderForValue)
public MessagePublishRequest.Builder addMessages(PubSubMessage.Builder builderForValue)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
addMessagesBuilder()
public PubSubMessage.Builder addMessagesBuilder()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Returns
addMessagesBuilder(int index)
public PubSubMessage.Builder addMessagesBuilder(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MessagePublishRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MessagePublishRequest build()
Returns
buildPartial()
public MessagePublishRequest buildPartial()
Returns
clear()
public MessagePublishRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public MessagePublishRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
clearMessages()
public MessagePublishRequest.Builder clearMessages()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public MessagePublishRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public MessagePublishRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public MessagePublishRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
getMessagesBuilder(int index)
public PubSubMessage.Builder getMessagesBuilder(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter
Returns
getMessagesBuilderList()
public List<PubSubMessage.Builder> getMessagesBuilderList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
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> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(MessagePublishRequest other)
public MessagePublishRequest.Builder mergeFrom(MessagePublishRequest other)
Parameter
Returns
public MessagePublishRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MessagePublishRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MessagePublishRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeMessages(int index)
public MessagePublishRequest.Builder removeMessages(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public MessagePublishRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MessagePublishRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MessagePublishRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides