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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MessagePublishRequest.BuilderImplements
MessagePublishRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
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;
Name | Description |
values | Iterable<? extends com.google.cloud.pubsublite.proto.PubSubMessage> |
Type | Description |
MessagePublishRequest.Builder |
addMessages(PubSubMessage value)
public MessagePublishRequest.Builder addMessages(PubSubMessage value)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Name | Description |
value | PubSubMessage |
Type | Description |
MessagePublishRequest.Builder |
addMessages(PubSubMessage.Builder builderForValue)
public MessagePublishRequest.Builder addMessages(PubSubMessage.Builder builderForValue)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Name | Description |
builderForValue | PubSubMessage.Builder |
Type | Description |
MessagePublishRequest.Builder |
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;
Name | Description |
index | int |
value | PubSubMessage |
Type | Description |
MessagePublishRequest.Builder |
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;
Name | Description |
index | int |
builderForValue | PubSubMessage.Builder |
Type | Description |
MessagePublishRequest.Builder |
addMessagesBuilder()
public PubSubMessage.Builder addMessagesBuilder()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Type | Description |
PubSubMessage.Builder |
addMessagesBuilder(int index)
public PubSubMessage.Builder addMessagesBuilder(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Name | Description |
index | int |
Type | Description |
PubSubMessage.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MessagePublishRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MessagePublishRequest.Builder |
build()
public MessagePublishRequest build()
Type | Description |
MessagePublishRequest |
buildPartial()
public MessagePublishRequest buildPartial()
Type | Description |
MessagePublishRequest |
clear()
public MessagePublishRequest.Builder clear()
Type | Description |
MessagePublishRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public MessagePublishRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
MessagePublishRequest.Builder |
clearMessages()
public MessagePublishRequest.Builder clearMessages()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Type | Description |
MessagePublishRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public MessagePublishRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
MessagePublishRequest.Builder |
clone()
public MessagePublishRequest.Builder clone()
Type | Description |
MessagePublishRequest.Builder |
getDefaultInstanceForType()
public MessagePublishRequest getDefaultInstanceForType()
Type | Description |
MessagePublishRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMessages(int index)
public PubSubMessage getMessages(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Name | Description |
index | int |
Type | Description |
PubSubMessage |
getMessagesBuilder(int index)
public PubSubMessage.Builder getMessagesBuilder(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Name | Description |
index | int |
Type | Description |
PubSubMessage.Builder |
getMessagesBuilderList()
public List<PubSubMessage.Builder> getMessagesBuilderList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Type | Description |
List<Builder> |
getMessagesCount()
public int getMessagesCount()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Type | Description |
int |
getMessagesList()
public List<PubSubMessage> getMessagesList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Type | Description |
List<PubSubMessage> |
getMessagesOrBuilder(int index)
public PubSubMessageOrBuilder getMessagesOrBuilder(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Name | Description |
index | int |
Type | Description |
PubSubMessageOrBuilder |
getMessagesOrBuilderList()
public List<? extends PubSubMessageOrBuilder> getMessagesOrBuilderList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Type | Description |
List<? extends com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(MessagePublishRequest other)
public MessagePublishRequest.Builder mergeFrom(MessagePublishRequest other)
Name | Description |
other | MessagePublishRequest |
Type | Description |
MessagePublishRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MessagePublishRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public MessagePublishRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
MessagePublishRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MessagePublishRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MessagePublishRequest.Builder |
removeMessages(int index)
public MessagePublishRequest.Builder removeMessages(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Name | Description |
index | int |
Type | Description |
MessagePublishRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public MessagePublishRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MessagePublishRequest.Builder |
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;
Name | Description |
index | int |
value | PubSubMessage |
Type | Description |
MessagePublishRequest.Builder |
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;
Name | Description |
index | int |
builderForValue | PubSubMessage.Builder |
Type | Description |
MessagePublishRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MessagePublishRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
MessagePublishRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final MessagePublishRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MessagePublishRequest.Builder |