public static enum HiveMetastore.PrincipalType extends Enum<HiveMetastore.PrincipalType> implements com.google.protobuf.ProtocolMessageEnum
org.apache.hadoop.hive.metastore.grpc.PrincipalType| Enum Constant and Description |
|---|
PRINCIPAL_TYPE_GROUP
PRINCIPAL_TYPE_GROUP = 3; |
PRINCIPAL_TYPE_ROLE
PRINCIPAL_TYPE_ROLE = 2; |
PRINCIPAL_TYPE_UNSPECIFIED
PRINCIPAL_TYPE_UNSPECIFIED = 0; |
PRINCIPAL_TYPE_USER
PRINCIPAL_TYPE_USER = 1; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
PRINCIPAL_TYPE_GROUP_VALUE
PRINCIPAL_TYPE_GROUP = 3; |
static int |
PRINCIPAL_TYPE_ROLE_VALUE
PRINCIPAL_TYPE_ROLE = 2; |
static int |
PRINCIPAL_TYPE_UNSPECIFIED_VALUE
PRINCIPAL_TYPE_UNSPECIFIED = 0; |
static int |
PRINCIPAL_TYPE_USER_VALUE
PRINCIPAL_TYPE_USER = 1; |
| Modifier and Type | Method and Description |
|---|---|
static HiveMetastore.PrincipalType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<HiveMetastore.PrincipalType> |
internalGetValueMap() |
static HiveMetastore.PrincipalType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static HiveMetastore.PrincipalType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HiveMetastore.PrincipalType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HiveMetastore.PrincipalType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HiveMetastore.PrincipalType PRINCIPAL_TYPE_UNSPECIFIED
PRINCIPAL_TYPE_UNSPECIFIED = 0;public static final HiveMetastore.PrincipalType PRINCIPAL_TYPE_USER
PRINCIPAL_TYPE_USER = 1;public static final HiveMetastore.PrincipalType PRINCIPAL_TYPE_ROLE
PRINCIPAL_TYPE_ROLE = 2;public static final HiveMetastore.PrincipalType PRINCIPAL_TYPE_GROUP
PRINCIPAL_TYPE_GROUP = 3;public static final HiveMetastore.PrincipalType UNRECOGNIZED
public static final int PRINCIPAL_TYPE_UNSPECIFIED_VALUE
PRINCIPAL_TYPE_UNSPECIFIED = 0;public static final int PRINCIPAL_TYPE_USER_VALUE
PRINCIPAL_TYPE_USER = 1;public static final int PRINCIPAL_TYPE_ROLE_VALUE
PRINCIPAL_TYPE_ROLE = 2;public static final int PRINCIPAL_TYPE_GROUP_VALUE
PRINCIPAL_TYPE_GROUP = 3;public static HiveMetastore.PrincipalType[] values()
for (HiveMetastore.PrincipalType c : HiveMetastore.PrincipalType.values()) System.out.println(c);
public static HiveMetastore.PrincipalType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static HiveMetastore.PrincipalType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static HiveMetastore.PrincipalType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<HiveMetastore.PrincipalType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static HiveMetastore.PrincipalType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 The Apache Software Foundation. All rights reserved.