Class Action

  • All Implemented Interfaces:
    ActionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Action
    extends com.google.protobuf.GeneratedMessageV3
    implements ActionOrBuilder
     Represents the action triggered by Rule Engine when the rule is true.
     
    Protobuf type google.cloud.contentwarehouse.v1.Action
    See Also:
    Serialized Form
    • Field Detail

      • ACCESS_CONTROL_FIELD_NUMBER

        public static final int ACCESS_CONTROL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATA_VALIDATION_FIELD_NUMBER

        public static final int DATA_VALIDATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATA_UPDATE_FIELD_NUMBER

        public static final int DATA_UPDATE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ADD_TO_FOLDER_FIELD_NUMBER

        public static final int ADD_TO_FOLDER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PUBLISH_TO_PUB_SUB_FIELD_NUMBER

        public static final int PUBLISH_TO_PUB_SUB_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REMOVE_FROM_FOLDER_ACTION_FIELD_NUMBER

        public static final int REMOVE_FROM_FOLDER_ACTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DELETE_DOCUMENT_ACTION_FIELD_NUMBER

        public static final int DELETE_DOCUMENT_ACTION_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getActionId

        public String getActionId()
         ID of the action. Managed internally.
         
        string action_id = 1;
        Specified by:
        getActionId in interface ActionOrBuilder
        Returns:
        The actionId.
      • getActionIdBytes

        public com.google.protobuf.ByteString getActionIdBytes()
         ID of the action. Managed internally.
         
        string action_id = 1;
        Specified by:
        getActionIdBytes in interface ActionOrBuilder
        Returns:
        The bytes for actionId.
      • hasAccessControl

        public boolean hasAccessControl()
         Action triggering access control operations.
         
        .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2;
        Specified by:
        hasAccessControl in interface ActionOrBuilder
        Returns:
        Whether the accessControl field is set.
      • getAccessControl

        public AccessControlAction getAccessControl()
         Action triggering access control operations.
         
        .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2;
        Specified by:
        getAccessControl in interface ActionOrBuilder
        Returns:
        The accessControl.
      • hasDataValidation

        public boolean hasDataValidation()
         Action triggering data validation operations.
         
        .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3;
        Specified by:
        hasDataValidation in interface ActionOrBuilder
        Returns:
        Whether the dataValidation field is set.
      • getDataValidation

        public DataValidationAction getDataValidation()
         Action triggering data validation operations.
         
        .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3;
        Specified by:
        getDataValidation in interface ActionOrBuilder
        Returns:
        The dataValidation.
      • hasDataUpdate

        public boolean hasDataUpdate()
         Action triggering data update operations.
         
        .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4;
        Specified by:
        hasDataUpdate in interface ActionOrBuilder
        Returns:
        Whether the dataUpdate field is set.
      • getDataUpdate

        public DataUpdateAction getDataUpdate()
         Action triggering data update operations.
         
        .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4;
        Specified by:
        getDataUpdate in interface ActionOrBuilder
        Returns:
        The dataUpdate.
      • hasAddToFolder

        public boolean hasAddToFolder()
         Action triggering create document link operation.
         
        .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5;
        Specified by:
        hasAddToFolder in interface ActionOrBuilder
        Returns:
        Whether the addToFolder field is set.
      • getAddToFolder

        public AddToFolderAction getAddToFolder()
         Action triggering create document link operation.
         
        .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5;
        Specified by:
        getAddToFolder in interface ActionOrBuilder
        Returns:
        The addToFolder.
      • hasPublishToPubSub

        public boolean hasPublishToPubSub()
         Action publish to Pub/Sub operation.
         
        .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6;
        Specified by:
        hasPublishToPubSub in interface ActionOrBuilder
        Returns:
        Whether the publishToPubSub field is set.
      • getPublishToPubSub

        public PublishAction getPublishToPubSub()
         Action publish to Pub/Sub operation.
         
        .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6;
        Specified by:
        getPublishToPubSub in interface ActionOrBuilder
        Returns:
        The publishToPubSub.
      • hasRemoveFromFolderAction

        public boolean hasRemoveFromFolderAction()
         Action removing a document from a folder.
         
        .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9;
        Specified by:
        hasRemoveFromFolderAction in interface ActionOrBuilder
        Returns:
        Whether the removeFromFolderAction field is set.
      • getRemoveFromFolderAction

        public RemoveFromFolderAction getRemoveFromFolderAction()
         Action removing a document from a folder.
         
        .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9;
        Specified by:
        getRemoveFromFolderAction in interface ActionOrBuilder
        Returns:
        The removeFromFolderAction.
      • hasDeleteDocumentAction

        public boolean hasDeleteDocumentAction()
         Action deleting the document.
         
        .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10;
        Specified by:
        hasDeleteDocumentAction in interface ActionOrBuilder
        Returns:
        Whether the deleteDocumentAction field is set.
      • getDeleteDocumentAction

        public DeleteDocumentAction getDeleteDocumentAction()
         Action deleting the document.
         
        .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10;
        Specified by:
        getDeleteDocumentAction in interface ActionOrBuilder
        Returns:
        The deleteDocumentAction.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Action parseFrom​(ByteBuffer data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(ByteBuffer data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(com.google.protobuf.ByteString data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(com.google.protobuf.ByteString data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(byte[] data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(byte[] data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Action.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Action.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Action.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Action getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Action> parser()
      • getParserForType

        public com.google.protobuf.Parser<Action> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Action getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder