public static enum AliasContext.Kind extends Enum<AliasContext.Kind> implements ProtocolMessageEnum
The type of an alias.Protobuf enum
grafeas.v1.AliasContext.Kind
Enum Constant and Description |
---|
FIXED
Git tag.
|
KIND_UNSPECIFIED
Unknown.
|
MOVABLE
Git branch.
|
OTHER
Used to specify non-standard aliases.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
FIXED_VALUE
Git tag.
|
static int |
KIND_UNSPECIFIED_VALUE
Unknown.
|
static int |
MOVABLE_VALUE
Git branch.
|
static int |
OTHER_VALUE
Used to specify non-standard aliases.
|
Modifier and Type | Method and Description |
---|---|
static AliasContext.Kind |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<AliasContext.Kind> |
internalGetValueMap() |
static AliasContext.Kind |
valueOf(Descriptors.EnumValueDescriptor desc) |
static AliasContext.Kind |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AliasContext.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AliasContext.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AliasContext.Kind KIND_UNSPECIFIED
Unknown.
KIND_UNSPECIFIED = 0;
public static final AliasContext.Kind FIXED
Git tag.
FIXED = 1;
public static final AliasContext.Kind MOVABLE
Git branch.
MOVABLE = 2;
public static final AliasContext.Kind OTHER
Used to specify non-standard aliases. For example, if a Git repo has a ref named "refs/foo/bar".
OTHER = 4;
public static final AliasContext.Kind UNRECOGNIZED
public static final int KIND_UNSPECIFIED_VALUE
Unknown.
KIND_UNSPECIFIED = 0;
public static final int FIXED_VALUE
Git tag.
FIXED = 1;
public static final int MOVABLE_VALUE
Git branch.
MOVABLE = 2;
public static final int OTHER_VALUE
Used to specify non-standard aliases. For example, if a Git repo has a ref named "refs/foo/bar".
OTHER = 4;
public static AliasContext.Kind[] values()
for (AliasContext.Kind c : AliasContext.Kind.values()) System.out.println(c);
public static AliasContext.Kind 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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static AliasContext.Kind valueOf(int value)
forNumber(int)
instead.public static AliasContext.Kind forNumber(int value)
public static Internal.EnumLiteMap<AliasContext.Kind> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static AliasContext.Kind valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Google LLC. All rights reserved.