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
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
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
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
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