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

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

Go to download

Java SDK for Milvus, a distributed high-performance vector search engine. update grpc to 1.42.1 update protobuf to 3.19.1 restore the calcDistance interface that is removed in 2.1.0-beta4

There is a newer version: 2.2.2.1
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.ResourcePrivilege}
 */
public enum ResourcePrivilege
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * PrivilegeAll = 0;
   */
  PrivilegeAll(0),
  /**
   * PrivilegeCreate = 1;
   */
  PrivilegeCreate(1),
  /**
   * PrivilegeDrop = 2;
   */
  PrivilegeDrop(2),
  /**
   * PrivilegeAlter = 3;
   */
  PrivilegeAlter(3),
  /**
   * PrivilegeRead = 4;
   */
  PrivilegeRead(4),
  /**
   * PrivilegeLoad = 5;
   */
  PrivilegeLoad(5),
  /**
   * PrivilegeRelease = 6;
   */
  PrivilegeRelease(6),
  /**
   * PrivilegeCompact = 7;
   */
  PrivilegeCompact(7),
  /**
   * PrivilegeInsert = 8;
   */
  PrivilegeInsert(8),
  /**
   * PrivilegeDelete = 9;
   */
  PrivilegeDelete(9),
  UNRECOGNIZED(-1),
  ;

  /**
   * PrivilegeAll = 0;
   */
  public static final int PrivilegeAll_VALUE = 0;
  /**
   * PrivilegeCreate = 1;
   */
  public static final int PrivilegeCreate_VALUE = 1;
  /**
   * PrivilegeDrop = 2;
   */
  public static final int PrivilegeDrop_VALUE = 2;
  /**
   * PrivilegeAlter = 3;
   */
  public static final int PrivilegeAlter_VALUE = 3;
  /**
   * PrivilegeRead = 4;
   */
  public static final int PrivilegeRead_VALUE = 4;
  /**
   * PrivilegeLoad = 5;
   */
  public static final int PrivilegeLoad_VALUE = 5;
  /**
   * PrivilegeRelease = 6;
   */
  public static final int PrivilegeRelease_VALUE = 6;
  /**
   * PrivilegeCompact = 7;
   */
  public static final int PrivilegeCompact_VALUE = 7;
  /**
   * PrivilegeInsert = 8;
   */
  public static final int PrivilegeInsert_VALUE = 8;
  /**
   * PrivilegeDelete = 9;
   */
  public static final int PrivilegeDelete_VALUE = 9;


  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 ResourcePrivilege 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 ResourcePrivilege forNumber(int value) {
    switch (value) {
      case 0: return PrivilegeAll;
      case 1: return PrivilegeCreate;
      case 2: return PrivilegeDrop;
      case 3: return PrivilegeAlter;
      case 4: return PrivilegeRead;
      case 5: return PrivilegeLoad;
      case 6: return PrivilegeRelease;
      case 7: return PrivilegeCompact;
      case 8: return PrivilegeInsert;
      case 9: return PrivilegeDelete;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      ResourcePrivilege> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public ResourcePrivilege findValueByNumber(int number) {
            return ResourcePrivilege.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 ResourcePrivilege[] VALUES = values();

  public static ResourcePrivilege 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 ResourcePrivilege(int value) {
    this.value = value;
  }

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





© 2015 - 2025 Weber Informatics LLC | Privacy Policy