All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.milvus.grpc.ObjectPrivilege Maven / Gradle / Ivy

There is a newer version: 2.4.8
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common.proto

package io.milvus.grpc;

/**
 * Protobuf enum {@code milvus.proto.common.ObjectPrivilege}
 */
public enum ObjectPrivilege
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * PrivilegeAll = 0;
   */
  PrivilegeAll(0),
  /**
   * PrivilegeCreateCollection = 1;
   */
  PrivilegeCreateCollection(1),
  /**
   * PrivilegeDropCollection = 2;
   */
  PrivilegeDropCollection(2),
  /**
   * PrivilegeDescribeCollection = 3;
   */
  PrivilegeDescribeCollection(3),
  /**
   * PrivilegeShowCollections = 4;
   */
  PrivilegeShowCollections(4),
  /**
   * PrivilegeLoad = 5;
   */
  PrivilegeLoad(5),
  /**
   * PrivilegeRelease = 6;
   */
  PrivilegeRelease(6),
  /**
   * PrivilegeCompaction = 7;
   */
  PrivilegeCompaction(7),
  /**
   * PrivilegeInsert = 8;
   */
  PrivilegeInsert(8),
  /**
   * PrivilegeDelete = 9;
   */
  PrivilegeDelete(9),
  /**
   * PrivilegeGetStatistics = 10;
   */
  PrivilegeGetStatistics(10),
  /**
   * PrivilegeCreateIndex = 11;
   */
  PrivilegeCreateIndex(11),
  /**
   * PrivilegeIndexDetail = 12;
   */
  PrivilegeIndexDetail(12),
  /**
   * PrivilegeDropIndex = 13;
   */
  PrivilegeDropIndex(13),
  /**
   * PrivilegeSearch = 14;
   */
  PrivilegeSearch(14),
  /**
   * PrivilegeFlush = 15;
   */
  PrivilegeFlush(15),
  /**
   * PrivilegeQuery = 16;
   */
  PrivilegeQuery(16),
  /**
   * PrivilegeLoadBalance = 17;
   */
  PrivilegeLoadBalance(17),
  /**
   * PrivilegeImport = 18;
   */
  PrivilegeImport(18),
  /**
   * PrivilegeCreateOwnership = 19;
   */
  PrivilegeCreateOwnership(19),
  /**
   * PrivilegeUpdateUser = 20;
   */
  PrivilegeUpdateUser(20),
  /**
   * PrivilegeDropOwnership = 21;
   */
  PrivilegeDropOwnership(21),
  /**
   * PrivilegeSelectOwnership = 22;
   */
  PrivilegeSelectOwnership(22),
  /**
   * PrivilegeManageOwnership = 23;
   */
  PrivilegeManageOwnership(23),
  /**
   * PrivilegeSelectUser = 24;
   */
  PrivilegeSelectUser(24),
  /**
   * PrivilegeUpsert = 25;
   */
  PrivilegeUpsert(25),
  /**
   * PrivilegeCreateResourceGroup = 26;
   */
  PrivilegeCreateResourceGroup(26),
  /**
   * PrivilegeDropResourceGroup = 27;
   */
  PrivilegeDropResourceGroup(27),
  /**
   * PrivilegeDescribeResourceGroup = 28;
   */
  PrivilegeDescribeResourceGroup(28),
  /**
   * PrivilegeListResourceGroups = 29;
   */
  PrivilegeListResourceGroups(29),
  /**
   * PrivilegeTransferNode = 30;
   */
  PrivilegeTransferNode(30),
  /**
   * PrivilegeTransferReplica = 31;
   */
  PrivilegeTransferReplica(31),
  /**
   * PrivilegeGetLoadingProgress = 32;
   */
  PrivilegeGetLoadingProgress(32),
  /**
   * PrivilegeGetLoadState = 33;
   */
  PrivilegeGetLoadState(33),
  /**
   * PrivilegeRenameCollection = 34;
   */
  PrivilegeRenameCollection(34),
  /**
   * PrivilegeCreateDatabase = 35;
   */
  PrivilegeCreateDatabase(35),
  /**
   * PrivilegeDropDatabase = 36;
   */
  PrivilegeDropDatabase(36),
  /**
   * PrivilegeListDatabases = 37;
   */
  PrivilegeListDatabases(37),
  /**
   * PrivilegeFlushAll = 38;
   */
  PrivilegeFlushAll(38),
  /**
   * PrivilegeCreatePartition = 39;
   */
  PrivilegeCreatePartition(39),
  /**
   * PrivilegeDropPartition = 40;
   */
  PrivilegeDropPartition(40),
  /**
   * PrivilegeShowPartitions = 41;
   */
  PrivilegeShowPartitions(41),
  /**
   * PrivilegeHasPartition = 42;
   */
  PrivilegeHasPartition(42),
  /**
   * PrivilegeGetFlushState = 43;
   */
  PrivilegeGetFlushState(43),
  /**
   * PrivilegeCreateAlias = 44;
   */
  PrivilegeCreateAlias(44),
  /**
   * PrivilegeDropAlias = 45;
   */
  PrivilegeDropAlias(45),
  /**
   * PrivilegeDescribeAlias = 46;
   */
  PrivilegeDescribeAlias(46),
  /**
   * PrivilegeListAliases = 47;
   */
  PrivilegeListAliases(47),
  UNRECOGNIZED(-1),
  ;

  /**
   * PrivilegeAll = 0;
   */
  public static final int PrivilegeAll_VALUE = 0;
  /**
   * PrivilegeCreateCollection = 1;
   */
  public static final int PrivilegeCreateCollection_VALUE = 1;
  /**
   * PrivilegeDropCollection = 2;
   */
  public static final int PrivilegeDropCollection_VALUE = 2;
  /**
   * PrivilegeDescribeCollection = 3;
   */
  public static final int PrivilegeDescribeCollection_VALUE = 3;
  /**
   * PrivilegeShowCollections = 4;
   */
  public static final int PrivilegeShowCollections_VALUE = 4;
  /**
   * PrivilegeLoad = 5;
   */
  public static final int PrivilegeLoad_VALUE = 5;
  /**
   * PrivilegeRelease = 6;
   */
  public static final int PrivilegeRelease_VALUE = 6;
  /**
   * PrivilegeCompaction = 7;
   */
  public static final int PrivilegeCompaction_VALUE = 7;
  /**
   * PrivilegeInsert = 8;
   */
  public static final int PrivilegeInsert_VALUE = 8;
  /**
   * PrivilegeDelete = 9;
   */
  public static final int PrivilegeDelete_VALUE = 9;
  /**
   * PrivilegeGetStatistics = 10;
   */
  public static final int PrivilegeGetStatistics_VALUE = 10;
  /**
   * PrivilegeCreateIndex = 11;
   */
  public static final int PrivilegeCreateIndex_VALUE = 11;
  /**
   * PrivilegeIndexDetail = 12;
   */
  public static final int PrivilegeIndexDetail_VALUE = 12;
  /**
   * PrivilegeDropIndex = 13;
   */
  public static final int PrivilegeDropIndex_VALUE = 13;
  /**
   * PrivilegeSearch = 14;
   */
  public static final int PrivilegeSearch_VALUE = 14;
  /**
   * PrivilegeFlush = 15;
   */
  public static final int PrivilegeFlush_VALUE = 15;
  /**
   * PrivilegeQuery = 16;
   */
  public static final int PrivilegeQuery_VALUE = 16;
  /**
   * PrivilegeLoadBalance = 17;
   */
  public static final int PrivilegeLoadBalance_VALUE = 17;
  /**
   * PrivilegeImport = 18;
   */
  public static final int PrivilegeImport_VALUE = 18;
  /**
   * PrivilegeCreateOwnership = 19;
   */
  public static final int PrivilegeCreateOwnership_VALUE = 19;
  /**
   * PrivilegeUpdateUser = 20;
   */
  public static final int PrivilegeUpdateUser_VALUE = 20;
  /**
   * PrivilegeDropOwnership = 21;
   */
  public static final int PrivilegeDropOwnership_VALUE = 21;
  /**
   * PrivilegeSelectOwnership = 22;
   */
  public static final int PrivilegeSelectOwnership_VALUE = 22;
  /**
   * PrivilegeManageOwnership = 23;
   */
  public static final int PrivilegeManageOwnership_VALUE = 23;
  /**
   * PrivilegeSelectUser = 24;
   */
  public static final int PrivilegeSelectUser_VALUE = 24;
  /**
   * PrivilegeUpsert = 25;
   */
  public static final int PrivilegeUpsert_VALUE = 25;
  /**
   * PrivilegeCreateResourceGroup = 26;
   */
  public static final int PrivilegeCreateResourceGroup_VALUE = 26;
  /**
   * PrivilegeDropResourceGroup = 27;
   */
  public static final int PrivilegeDropResourceGroup_VALUE = 27;
  /**
   * PrivilegeDescribeResourceGroup = 28;
   */
  public static final int PrivilegeDescribeResourceGroup_VALUE = 28;
  /**
   * PrivilegeListResourceGroups = 29;
   */
  public static final int PrivilegeListResourceGroups_VALUE = 29;
  /**
   * PrivilegeTransferNode = 30;
   */
  public static final int PrivilegeTransferNode_VALUE = 30;
  /**
   * PrivilegeTransferReplica = 31;
   */
  public static final int PrivilegeTransferReplica_VALUE = 31;
  /**
   * PrivilegeGetLoadingProgress = 32;
   */
  public static final int PrivilegeGetLoadingProgress_VALUE = 32;
  /**
   * PrivilegeGetLoadState = 33;
   */
  public static final int PrivilegeGetLoadState_VALUE = 33;
  /**
   * PrivilegeRenameCollection = 34;
   */
  public static final int PrivilegeRenameCollection_VALUE = 34;
  /**
   * PrivilegeCreateDatabase = 35;
   */
  public static final int PrivilegeCreateDatabase_VALUE = 35;
  /**
   * PrivilegeDropDatabase = 36;
   */
  public static final int PrivilegeDropDatabase_VALUE = 36;
  /**
   * PrivilegeListDatabases = 37;
   */
  public static final int PrivilegeListDatabases_VALUE = 37;
  /**
   * PrivilegeFlushAll = 38;
   */
  public static final int PrivilegeFlushAll_VALUE = 38;
  /**
   * PrivilegeCreatePartition = 39;
   */
  public static final int PrivilegeCreatePartition_VALUE = 39;
  /**
   * PrivilegeDropPartition = 40;
   */
  public static final int PrivilegeDropPartition_VALUE = 40;
  /**
   * PrivilegeShowPartitions = 41;
   */
  public static final int PrivilegeShowPartitions_VALUE = 41;
  /**
   * PrivilegeHasPartition = 42;
   */
  public static final int PrivilegeHasPartition_VALUE = 42;
  /**
   * PrivilegeGetFlushState = 43;
   */
  public static final int PrivilegeGetFlushState_VALUE = 43;
  /**
   * PrivilegeCreateAlias = 44;
   */
  public static final int PrivilegeCreateAlias_VALUE = 44;
  /**
   * PrivilegeDropAlias = 45;
   */
  public static final int PrivilegeDropAlias_VALUE = 45;
  /**
   * PrivilegeDescribeAlias = 46;
   */
  public static final int PrivilegeDescribeAlias_VALUE = 46;
  /**
   * PrivilegeListAliases = 47;
   */
  public static final int PrivilegeListAliases_VALUE = 47;


  public final int getNumber() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalArgumentException(
          "Can't get the number of an unknown enum value.");
    }
    return value;
  }

  /**
   * @param value The numeric wire value of the corresponding enum entry.
   * @return The enum associated with the given numeric wire value.
   * @deprecated Use {@link #forNumber(int)} instead.
   */
  @java.lang.Deprecated
  public static ObjectPrivilege valueOf(int value) {
    return forNumber(value);
  }

  /**
   * @param value The numeric wire value of the corresponding enum entry.
   * @return The enum associated with the given numeric wire value.
   */
  public static ObjectPrivilege forNumber(int value) {
    switch (value) {
      case 0: return PrivilegeAll;
      case 1: return PrivilegeCreateCollection;
      case 2: return PrivilegeDropCollection;
      case 3: return PrivilegeDescribeCollection;
      case 4: return PrivilegeShowCollections;
      case 5: return PrivilegeLoad;
      case 6: return PrivilegeRelease;
      case 7: return PrivilegeCompaction;
      case 8: return PrivilegeInsert;
      case 9: return PrivilegeDelete;
      case 10: return PrivilegeGetStatistics;
      case 11: return PrivilegeCreateIndex;
      case 12: return PrivilegeIndexDetail;
      case 13: return PrivilegeDropIndex;
      case 14: return PrivilegeSearch;
      case 15: return PrivilegeFlush;
      case 16: return PrivilegeQuery;
      case 17: return PrivilegeLoadBalance;
      case 18: return PrivilegeImport;
      case 19: return PrivilegeCreateOwnership;
      case 20: return PrivilegeUpdateUser;
      case 21: return PrivilegeDropOwnership;
      case 22: return PrivilegeSelectOwnership;
      case 23: return PrivilegeManageOwnership;
      case 24: return PrivilegeSelectUser;
      case 25: return PrivilegeUpsert;
      case 26: return PrivilegeCreateResourceGroup;
      case 27: return PrivilegeDropResourceGroup;
      case 28: return PrivilegeDescribeResourceGroup;
      case 29: return PrivilegeListResourceGroups;
      case 30: return PrivilegeTransferNode;
      case 31: return PrivilegeTransferReplica;
      case 32: return PrivilegeGetLoadingProgress;
      case 33: return PrivilegeGetLoadState;
      case 34: return PrivilegeRenameCollection;
      case 35: return PrivilegeCreateDatabase;
      case 36: return PrivilegeDropDatabase;
      case 37: return PrivilegeListDatabases;
      case 38: return PrivilegeFlushAll;
      case 39: return PrivilegeCreatePartition;
      case 40: return PrivilegeDropPartition;
      case 41: return PrivilegeShowPartitions;
      case 42: return PrivilegeHasPartition;
      case 43: return PrivilegeGetFlushState;
      case 44: return PrivilegeCreateAlias;
      case 45: return PrivilegeDropAlias;
      case 46: return PrivilegeDescribeAlias;
      case 47: return PrivilegeListAliases;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      ObjectPrivilege> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public ObjectPrivilege findValueByNumber(int number) {
            return ObjectPrivilege.forNumber(number);
          }
        };

  public final com.google.protobuf.Descriptors.EnumValueDescriptor
      getValueDescriptor() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalStateException(
          "Can't get the descriptor of an unrecognized enum value.");
    }
    return getDescriptor().getValues().get(ordinal());
  }
  public final com.google.protobuf.Descriptors.EnumDescriptor
      getDescriptorForType() {
    return getDescriptor();
  }
  public static final com.google.protobuf.Descriptors.EnumDescriptor
      getDescriptor() {
    return io.milvus.grpc.CommonProto.getDescriptor().getEnumTypes().get(10);
  }

  private static final ObjectPrivilege[] VALUES = values();

  public static ObjectPrivilege valueOf(
      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    if (desc.getType() != getDescriptor()) {
      throw new java.lang.IllegalArgumentException(
        "EnumValueDescriptor is not for this type.");
    }
    if (desc.getIndex() == -1) {
      return UNRECOGNIZED;
    }
    return VALUES[desc.getIndex()];
  }

  private final int value;

  private ObjectPrivilege(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:milvus.proto.common.ObjectPrivilege)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy