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

cz.proto.ObjectType Maven / Gradle / Ivy

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

package cz.proto;

/**
 * Protobuf enum {@code cz.proto.ObjectType}
 */
public enum ObjectType
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * UNKNOWN = 0;
   */
  UNKNOWN(0),
  /**
   * INSTANCE = 1;
   */
  INSTANCE(1),
  /**
   * NETWORK_POLICY = 2;
   */
  NETWORK_POLICY(2),
  /**
   * WORKSPACE = 100;
   */
  WORKSPACE(100),
  /**
   * SHARE = 101;
   */
  SHARE(101),
  /**
   * SCHEMA = 200;
   */
  SCHEMA(200),
  /**
   * DATALAKE = 201;
   */
  DATALAKE(201),
  /**
   * USER = 202;
   */
  USER(202),
  /**
   * ROLE = 203;
   */
  ROLE(203),
  /**
   * VIRTUAL_CLUSTER = 104;
   */
  VIRTUAL_CLUSTER(104),
  /**
   * JOB = 205;
   */
  JOB(205),
  /**
   * CONNECTION = 206;
   */
  CONNECTION(206),
  /**
   * LOCATION = 207;
   */
  LOCATION(207),
  /**
   * TABLE = 300;
   */
  TABLE(300),
  /**
   * FUNCTION = 301;
   */
  FUNCTION(301),
  /**
   * INDEX = 400;
   */
  INDEX(400),
  /**
   * PARTITION = 401;
   */
  PARTITION(401),
  /**
   * FILE = 500;
   */
  FILE(500),
  /**
   * ALL = 1000;
   */
  ALL(1000),
  UNRECOGNIZED(-1),
  ;

  /**
   * UNKNOWN = 0;
   */
  public static final int UNKNOWN_VALUE = 0;
  /**
   * INSTANCE = 1;
   */
  public static final int INSTANCE_VALUE = 1;
  /**
   * NETWORK_POLICY = 2;
   */
  public static final int NETWORK_POLICY_VALUE = 2;
  /**
   * WORKSPACE = 100;
   */
  public static final int WORKSPACE_VALUE = 100;
  /**
   * SHARE = 101;
   */
  public static final int SHARE_VALUE = 101;
  /**
   * SCHEMA = 200;
   */
  public static final int SCHEMA_VALUE = 200;
  /**
   * DATALAKE = 201;
   */
  public static final int DATALAKE_VALUE = 201;
  /**
   * USER = 202;
   */
  public static final int USER_VALUE = 202;
  /**
   * ROLE = 203;
   */
  public static final int ROLE_VALUE = 203;
  /**
   * VIRTUAL_CLUSTER = 104;
   */
  public static final int VIRTUAL_CLUSTER_VALUE = 104;
  /**
   * JOB = 205;
   */
  public static final int JOB_VALUE = 205;
  /**
   * CONNECTION = 206;
   */
  public static final int CONNECTION_VALUE = 206;
  /**
   * LOCATION = 207;
   */
  public static final int LOCATION_VALUE = 207;
  /**
   * TABLE = 300;
   */
  public static final int TABLE_VALUE = 300;
  /**
   * FUNCTION = 301;
   */
  public static final int FUNCTION_VALUE = 301;
  /**
   * INDEX = 400;
   */
  public static final int INDEX_VALUE = 400;
  /**
   * PARTITION = 401;
   */
  public static final int PARTITION_VALUE = 401;
  /**
   * FILE = 500;
   */
  public static final int FILE_VALUE = 500;
  /**
   * ALL = 1000;
   */
  public static final int ALL_VALUE = 1000;


  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 ObjectType 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 ObjectType forNumber(int value) {
    switch (value) {
      case 0: return UNKNOWN;
      case 1: return INSTANCE;
      case 2: return NETWORK_POLICY;
      case 100: return WORKSPACE;
      case 101: return SHARE;
      case 200: return SCHEMA;
      case 201: return DATALAKE;
      case 202: return USER;
      case 203: return ROLE;
      case 104: return VIRTUAL_CLUSTER;
      case 205: return JOB;
      case 206: return CONNECTION;
      case 207: return LOCATION;
      case 300: return TABLE;
      case 301: return FUNCTION;
      case 400: return INDEX;
      case 401: return PARTITION;
      case 500: return FILE;
      case 1000: return ALL;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      ObjectType> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public ObjectType findValueByNumber(int number) {
            return ObjectType.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 cz.proto.ObjectIdentifierOuterClass.getDescriptor().getEnumTypes().get(0);
  }

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

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

  // @@protoc_insertion_point(enum_scope:cz.proto.ObjectType)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy