public static final class PublishAction.Builder extends GeneratedMessage.Builder<PublishAction.Builder> implements PublishActionOrBuilderRepresents the action responsible for publishing messages to a Pub/Sub topic.
Protobuf type google.cloud.contentwarehouse.v1.PublishAction
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PublishAction.BuilderImplements
PublishActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllMessages(Iterable<String> values)
public PublishAction.Builder addAllMessages(Iterable<String> values)Messages to be published.
repeated string messages = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The messages to add. |
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
This builder for chaining. |
addMessages(String value)
public PublishAction.Builder addMessages(String value)Messages to be published.
repeated string messages = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe messages to add. |
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
This builder for chaining. |
addMessagesBytes(ByteString value)
public PublishAction.Builder addMessagesBytes(ByteString value)Messages to be published.
repeated string messages = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the messages to add. |
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
This builder for chaining. |
build()
public PublishAction build()| Returns | |
|---|---|
| Type | Description |
PublishAction |
|
buildPartial()
public PublishAction buildPartial()| Returns | |
|---|---|
| Type | Description |
PublishAction |
|
clear()
public PublishAction.Builder clear()| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
|
clearMessages()
public PublishAction.Builder clearMessages()Messages to be published.
repeated string messages = 2;
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
This builder for chaining. |
clearTopicId()
public PublishAction.Builder clearTopicId()The topic id in the Pub/Sub service for which messages will be published to.
string topic_id = 1;
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public PublishAction getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PublishAction |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMessages(int index)
public String getMessages(int index)Messages to be published.
repeated string messages = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The messages at the given index. |
getMessagesBytes(int index)
public ByteString getMessagesBytes(int index)Messages to be published.
repeated string messages = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the messages at the given index. |
getMessagesCount()
public int getMessagesCount()Messages to be published.
repeated string messages = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of messages. |
getMessagesList()
public ProtocolStringList getMessagesList()Messages to be published.
repeated string messages = 2;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the messages. |
getTopicId()
public String getTopicId()The topic id in the Pub/Sub service for which messages will be published to.
string topic_id = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The topicId. |
getTopicIdBytes()
public ByteString getTopicIdBytes()The topic id in the Pub/Sub service for which messages will be published to.
string topic_id = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for topicId. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PublishAction other)
public PublishAction.Builder mergeFrom(PublishAction other)| Parameter | |
|---|---|
| Name | Description |
other |
PublishAction |
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PublishAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PublishAction.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
|
setMessages(int index, String value)
public PublishAction.Builder setMessages(int index, String value)Messages to be published.
repeated string messages = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe messages to set. |
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
This builder for chaining. |
setTopicId(String value)
public PublishAction.Builder setTopicId(String value)The topic id in the Pub/Sub service for which messages will be published to.
string topic_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe topicId to set. |
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
This builder for chaining. |
setTopicIdBytes(ByteString value)
public PublishAction.Builder setTopicIdBytes(ByteString value)The topic id in the Pub/Sub service for which messages will be published to.
string topic_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for topicId to set. |
| Returns | |
|---|---|
| Type | Description |
PublishAction.Builder |
This builder for chaining. |