Class PublishAction (0.26.0)

public final class PublishAction extends GeneratedMessageV3 implements PublishActionOrBuilder

Represents the action responsible for publishing messages to a Pub/Sub topic.

Protobuf type google.cloud.contentwarehouse.v1.PublishAction

Static Fields

MESSAGES_FIELD_NUMBER

public static final int MESSAGES_FIELD_NUMBER
Field Value
TypeDescription
int

TOPIC_ID_FIELD_NUMBER

public static final int TOPIC_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PublishAction getDefaultInstance()
Returns
TypeDescription
PublishAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PublishAction.Builder newBuilder()
Returns
TypeDescription
PublishAction.Builder

newBuilder(PublishAction prototype)

public static PublishAction.Builder newBuilder(PublishAction prototype)
Parameter
NameDescription
prototypePublishAction
Returns
TypeDescription
PublishAction.Builder

parseDelimitedFrom(InputStream input)

public static PublishAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PublishAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PublishAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PublishAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PublishAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PublishAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PublishAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PublishAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PublishAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PublishAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PublishAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PublishAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PublishAction> parser()
Returns
TypeDescription
Parser<PublishAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public PublishAction getDefaultInstanceForType()
Returns
TypeDescription
PublishAction

getMessages(int index)

public String getMessages(int index)

Messages to be published.

repeated string messages = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The messages at the given index.

getMessagesBytes(int index)

public ByteString getMessagesBytes(int index)

Messages to be published.

repeated string messages = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the messages at the given index.

getMessagesCount()

public int getMessagesCount()

Messages to be published.

repeated string messages = 2;

Returns
TypeDescription
int

The count of messages.

getMessagesList()

public ProtocolStringList getMessagesList()

Messages to be published.

repeated string messages = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the messages.

getParserForType()

public Parser<PublishAction> getParserForType()
Returns
TypeDescription
Parser<PublishAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTopicId()

public String getTopicId()

The topic id in the Pub/Sub service for which messages will be published to.

string topic_id = 1;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for topicId.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PublishAction.Builder newBuilderForType()
Returns
TypeDescription
PublishAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PublishAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PublishAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PublishAction.Builder toBuilder()
Returns
TypeDescription
PublishAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException