- 0.50.0 (latest)
- 0.49.0
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class PublishAction.Builder extends GeneratedMessageV3.Builder<PublishAction.Builder> implements PublishActionOrBuilder
Represents the action responsible for publishing messages to a Pub/Sub topic.
Protobuf type google.cloud.contentwarehouse.v1.PublishAction
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PublishAction.BuilderImplements
PublishActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllMessages(Iterable<String> values)
public PublishAction.Builder addAllMessages(Iterable<String> values)
Messages to be published.
repeated string messages = 2;
Name | Description |
values | Iterable<String> The messages to add. |
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;
Name | Description |
value | String The messages to add. |
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;
Name | Description |
value | ByteString The bytes of the messages to add. |
Type | Description |
PublishAction.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PublishAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PublishAction.Builder |
build()
public PublishAction build()
Type | Description |
PublishAction |
buildPartial()
public PublishAction buildPartial()
Type | Description |
PublishAction |
clear()
public PublishAction.Builder clear()
Type | Description |
PublishAction.Builder |
clearField(Descriptors.FieldDescriptor field)
public PublishAction.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
PublishAction.Builder |
clearMessages()
public PublishAction.Builder clearMessages()
Messages to be published.
repeated string messages = 2;
Type | Description |
PublishAction.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PublishAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
PublishAction.Builder |
clearTopicId()
public PublishAction.Builder clearTopicId()
The topic id in the Pub/Sub service for which messages will be published to.
string topic_id = 1;
Type | Description |
PublishAction.Builder | This builder for chaining. |
clone()
public PublishAction.Builder clone()
Type | Description |
PublishAction.Builder |
getDefaultInstanceForType()
public PublishAction getDefaultInstanceForType()
Type | Description |
PublishAction |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMessages(int index)
public String getMessages(int index)
Messages to be published.
repeated string messages = 2;
Name | Description |
index | int The index of the element to return. |
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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the messages at the given index. |
getMessagesCount()
public int getMessagesCount()
Messages to be published.
repeated string messages = 2;
Type | Description |
int | The count of messages. |
getMessagesList()
public ProtocolStringList getMessagesList()
Messages to be published.
repeated string messages = 2;
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;
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;
Type | Description |
ByteString | The bytes for topicId. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(PublishAction other)
public PublishAction.Builder mergeFrom(PublishAction other)
Name | Description |
other | PublishAction |
Type | Description |
PublishAction.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PublishAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PublishAction.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public PublishAction.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
PublishAction.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PublishAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PublishAction.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public PublishAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
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;
Name | Description |
index | int The index to set the value at. |
value | String The messages to set. |
Type | Description |
PublishAction.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PublishAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
PublishAction.Builder |
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;
Name | Description |
value | String The topicId to set. |
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;
Name | Description |
value | ByteString The bytes for topicId to set. |
Type | Description |
PublishAction.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final PublishAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PublishAction.Builder |