public static enum AliasContext.Kind extends Enum<AliasContext.Kind> implements com.google.protobuf.ProtocolMessageEnum
The type of an Alias.Protobuf enum
google.devtools.source.v1.AliasContext.Kind| Enum Constant and Description |
|---|
ANY
Do not use.
|
FIXED
Git tag
|
MOVABLE
Git branch
|
OTHER
OTHER is used to specify non-standard aliases, those not of the kinds
above.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_VALUE
Do not use.
|
static int |
FIXED_VALUE
Git tag
|
static int |
MOVABLE_VALUE
Git branch
|
static int |
OTHER_VALUE
OTHER is used to specify non-standard aliases, those not of the kinds
above.
|
| Modifier and Type | Method and Description |
|---|---|
static AliasContext.Kind |
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<AliasContext.Kind> |
internalGetValueMap() |
static AliasContext.Kind |
valueOf(com.google.protobuf.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 ANY
Do not use.
ANY = 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
OTHER is used to specify non-standard aliases, those not of the kinds above. For example, if a Git repo has a ref named "refs/foo/bar", it is considered to be of kind OTHER.
OTHER = 4;public static final AliasContext.Kind UNRECOGNIZED
public static final int ANY_VALUE
Do not use.
ANY = 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
OTHER is used to specify non-standard aliases, those not of the kinds above. For example, if a Git repo has a ref named "refs/foo/bar", it is considered to be of kind OTHER.
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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static AliasContext.Kind valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static AliasContext.Kind forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<AliasContext.Kind> 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 AliasContext.Kind valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.