Class Action (0.3.0)

public final class Action extends GeneratedMessageV3 implements ActionOrBuilder

Represents the action triggered by Rule Engine when the rule is true.

Protobuf type google.cloud.contentwarehouse.v1.Action

Implements

ActionOrBuilder

Static Fields

ACCESS_CONTROL_FIELD_NUMBER

public static final int ACCESS_CONTROL_FIELD_NUMBER
Field Value
TypeDescription
int

ACTION_ID_FIELD_NUMBER

public static final int ACTION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ADD_TO_FOLDER_FIELD_NUMBER

public static final int ADD_TO_FOLDER_FIELD_NUMBER
Field Value
TypeDescription
int

DATA_UPDATE_FIELD_NUMBER

public static final int DATA_UPDATE_FIELD_NUMBER
Field Value
TypeDescription
int

DATA_VALIDATION_FIELD_NUMBER

public static final int DATA_VALIDATION_FIELD_NUMBER
Field Value
TypeDescription
int

DELETE_DOCUMENT_ACTION_FIELD_NUMBER

public static final int DELETE_DOCUMENT_ACTION_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLISH_TO_PUB_SUB_FIELD_NUMBER

public static final int PUBLISH_TO_PUB_SUB_FIELD_NUMBER
Field Value
TypeDescription
int

REMOVE_FROM_FOLDER_ACTION_FIELD_NUMBER

public static final int REMOVE_FROM_FOLDER_ACTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Action getDefaultInstance()
Returns
TypeDescription
Action

getDescriptor()

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

newBuilder()

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

newBuilder(Action prototype)

public static Action.Builder newBuilder(Action prototype)
Parameter
NameDescription
prototypeAction
Returns
TypeDescription
Action.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAccessControl()

public AccessControlAction getAccessControl()

Action triggering access control operations.

.google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2;

Returns
TypeDescription
AccessControlAction

The accessControl.

getAccessControlOrBuilder()

public AccessControlActionOrBuilder getAccessControlOrBuilder()

Action triggering access control operations.

.google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2;

Returns
TypeDescription
AccessControlActionOrBuilder

getActionCase()

public Action.ActionCase getActionCase()
Returns
TypeDescription
Action.ActionCase

getActionId()

public String getActionId()

ID of the action. Managed internally.

string action_id = 1;

Returns
TypeDescription
String

The actionId.

getActionIdBytes()

public ByteString getActionIdBytes()

ID of the action. Managed internally.

string action_id = 1;

Returns
TypeDescription
ByteString

The bytes for actionId.

getAddToFolder()

public AddToFolderAction getAddToFolder()

Action triggering create document link operation.

.google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5;

Returns
TypeDescription
AddToFolderAction

The addToFolder.

getAddToFolderOrBuilder()

public AddToFolderActionOrBuilder getAddToFolderOrBuilder()

Action triggering create document link operation.

.google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5;

Returns
TypeDescription
AddToFolderActionOrBuilder

getDataUpdate()

public DataUpdateAction getDataUpdate()

Action triggering data update operations.

.google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4;

Returns
TypeDescription
DataUpdateAction

The dataUpdate.

getDataUpdateOrBuilder()

public DataUpdateActionOrBuilder getDataUpdateOrBuilder()

Action triggering data update operations.

.google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4;

Returns
TypeDescription
DataUpdateActionOrBuilder

getDataValidation()

public DataValidationAction getDataValidation()

Action triggering data validation operations.

.google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3;

Returns
TypeDescription
DataValidationAction

The dataValidation.

getDataValidationOrBuilder()

public DataValidationActionOrBuilder getDataValidationOrBuilder()

Action triggering data validation operations.

.google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3;

Returns
TypeDescription
DataValidationActionOrBuilder

getDefaultInstanceForType()

public Action getDefaultInstanceForType()
Returns
TypeDescription
Action

getDeleteDocumentAction()

public DeleteDocumentAction getDeleteDocumentAction()

Action deleting the document.

.google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10;

Returns
TypeDescription
DeleteDocumentAction

The deleteDocumentAction.

getDeleteDocumentActionOrBuilder()

public DeleteDocumentActionOrBuilder getDeleteDocumentActionOrBuilder()

Action deleting the document.

.google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10;

Returns
TypeDescription
DeleteDocumentActionOrBuilder

getParserForType()

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

getPublishToPubSub()

public PublishAction getPublishToPubSub()

Action publish to Pub/Sub operation.

.google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6;

Returns
TypeDescription
PublishAction

The publishToPubSub.

getPublishToPubSubOrBuilder()

public PublishActionOrBuilder getPublishToPubSubOrBuilder()

Action publish to Pub/Sub operation.

.google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6;

Returns
TypeDescription
PublishActionOrBuilder

getRemoveFromFolderAction()

public RemoveFromFolderAction getRemoveFromFolderAction()

Action removing a document from a folder.

.google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9;

Returns
TypeDescription
RemoveFromFolderAction

The removeFromFolderAction.

getRemoveFromFolderActionOrBuilder()

public RemoveFromFolderActionOrBuilder getRemoveFromFolderActionOrBuilder()

Action removing a document from a folder.

.google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9;

Returns
TypeDescription
RemoveFromFolderActionOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAccessControl()

public boolean hasAccessControl()

Action triggering access control operations.

.google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2;

Returns
TypeDescription
boolean

Whether the accessControl field is set.

hasAddToFolder()

public boolean hasAddToFolder()

Action triggering create document link operation.

.google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5;

Returns
TypeDescription
boolean

Whether the addToFolder field is set.

hasDataUpdate()

public boolean hasDataUpdate()

Action triggering data update operations.

.google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4;

Returns
TypeDescription
boolean

Whether the dataUpdate field is set.

hasDataValidation()

public boolean hasDataValidation()

Action triggering data validation operations.

.google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3;

Returns
TypeDescription
boolean

Whether the dataValidation field is set.

hasDeleteDocumentAction()

public boolean hasDeleteDocumentAction()

Action deleting the document.

.google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10;

Returns
TypeDescription
boolean

Whether the deleteDocumentAction field is set.

hasPublishToPubSub()

public boolean hasPublishToPubSub()

Action publish to Pub/Sub operation.

.google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6;

Returns
TypeDescription
boolean

Whether the publishToPubSub field is set.

hasRemoveFromFolderAction()

public boolean hasRemoveFromFolderAction()

Action removing a document from a folder.

.google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9;

Returns
TypeDescription
boolean

Whether the removeFromFolderAction field is set.

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 Action.Builder newBuilderForType()
Returns
TypeDescription
Action.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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