public static Acl.AclAction toProto(AclAction aclAction) {
    switch (aclAction) {
      case READ:
        return Acl.AclAction.READ;
      case WRITE:
        return Acl.AclAction.WRITE;
      case EXECUTE:
        return Acl.AclAction.EXECUTE;
      default:
        throw new IllegalStateException("Unknown acl action: " + aclAction);
    }
  }
public static Acl . AclAction toProto ( AclAction aclAction ) { switch ( aclAction ) { case READ : return Acl . AclAction . READ ; case WRITE : return Acl . AclAction . WRITE ; case EXECUTE : return Acl . AclAction . EXECUTE ; default : throw new IllegalStateException ( "Unknown acl action: " + aclAction ) ; } }
@param aclAction the acl action
@return the protobuf representation of action