Class Action (0.50.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
Type Description
int

ACTION_ID_FIELD_NUMBER

public static final int ACTION_ID_FIELD_NUMBER
Field Value
Type Description
int

ADD_TO_FOLDER_FIELD_NUMBER

public static final int ADD_TO_FOLDER_FIELD_NUMBER
Field Value
Type Description
int

DATA_UPDATE_FIELD_NUMBER

public static final int DATA_UPDATE_FIELD_NUMBER
Field Value
Type Description
int

DATA_VALIDATION_FIELD_NUMBER

public static final int DATA_VALIDATION_FIELD_NUMBER
Field Value
Type Description
int

DELETE_DOCUMENT_ACTION_FIELD_NUMBER

public static final int DELETE_DOCUMENT_ACTION_FIELD_NUMBER
Field Value
Type Description
int

PUBLISH_TO_PUB_SUB_FIELD_NUMBER

public static final int PUBLISH_TO_PUB_SUB_FIELD_NUMBER
Field Value
Type Description
int

REMOVE_FROM_FOLDER_ACTION_FIELD_NUMBER

public static final int REMOVE_FROM_FOLDER_ACTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Action getDefaultInstance()
Returns
Type Description
Action

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Action.Builder newBuilder()
Returns
Type Description
Action.Builder

newBuilder(Action prototype)

public static Action.Builder newBuilder(Action prototype)
Parameter
Name Description
prototype Action
Returns
Type Description
Action.Builder

parseDelimitedFrom(InputStream input)

public static Action parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Action parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Action parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Action parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Action parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Action parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Action parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Action> parser()
Returns
Type Description
Parser<Action>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAccessControl()

public AccessControlAction getAccessControl()

Action triggering access control operations.

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

Returns
Type Description
AccessControlAction

The accessControl.

getAccessControlOrBuilder()

public AccessControlActionOrBuilder getAccessControlOrBuilder()

Action triggering access control operations.

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

Returns
Type Description
AccessControlActionOrBuilder

getActionCase()

public Action.ActionCase getActionCase()
Returns
Type Description
Action.ActionCase

getActionId()

public String getActionId()

ID of the action. Managed internally.

string action_id = 1;

Returns
Type Description
String

The actionId.

getActionIdBytes()

public ByteString getActionIdBytes()

ID of the action. Managed internally.

string action_id = 1;

Returns
Type Description
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
Type Description
AddToFolderAction

The addToFolder.

getAddToFolderOrBuilder()

public AddToFolderActionOrBuilder getAddToFolderOrBuilder()

Action triggering create document link operation.

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

Returns
Type Description
AddToFolderActionOrBuilder

getDataUpdate()

public DataUpdateAction getDataUpdate()

Action triggering data update operations.

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

Returns
Type Description
DataUpdateAction

The dataUpdate.

getDataUpdateOrBuilder()

public DataUpdateActionOrBuilder getDataUpdateOrBuilder()

Action triggering data update operations.

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

Returns
Type Description
DataUpdateActionOrBuilder

getDataValidation()

public DataValidationAction getDataValidation()

Action triggering data validation operations.

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

Returns
Type Description
DataValidationAction

The dataValidation.

getDataValidationOrBuilder()

public DataValidationActionOrBuilder getDataValidationOrBuilder()

Action triggering data validation operations.

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

Returns
Type Description
DataValidationActionOrBuilder

getDefaultInstanceForType()

public Action getDefaultInstanceForType()
Returns
Type Description
Action

getDeleteDocumentAction()

public DeleteDocumentAction getDeleteDocumentAction()

Action deleting the document.

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

Returns
Type Description
DeleteDocumentAction

The deleteDocumentAction.

getDeleteDocumentActionOrBuilder()

public DeleteDocumentActionOrBuilder getDeleteDocumentActionOrBuilder()

Action deleting the document.

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

Returns
Type Description
DeleteDocumentActionOrBuilder

getParserForType()

public Parser<Action> getParserForType()
Returns
Type Description
Parser<Action>
Overrides

getPublishToPubSub()

public PublishAction getPublishToPubSub()

Action publish to Pub/Sub operation.

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

Returns
Type Description
PublishAction

The publishToPubSub.

getPublishToPubSubOrBuilder()

public PublishActionOrBuilder getPublishToPubSubOrBuilder()

Action publish to Pub/Sub operation.

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

Returns
Type Description
PublishActionOrBuilder

getRemoveFromFolderAction()

public RemoveFromFolderAction getRemoveFromFolderAction()

Action removing a document from a folder.

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

Returns
Type Description
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
Type Description
RemoveFromFolderActionOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAccessControl()

public boolean hasAccessControl()

Action triggering access control operations.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the removeFromFolderAction field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Action.Builder newBuilderForType()
Returns
Type Description
Action.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Action.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Action.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Action.Builder toBuilder()
Returns
Type Description
Action.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException