public static enum DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic extends Enum<DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic> implements ProtocolMessageEnum
Represents the identified object's effect on the element in the original .proto file.Protobuf enum
google.protobuf.GeneratedCodeInfo.Annotation.Semantic
Enum Constant and Description |
---|
ALIAS
An alias to the element is returned.
|
NONE
There is no effect or the effect is indescribable.
|
SET
The element is set or otherwise mutated.
|
Modifier and Type | Field and Description |
---|---|
static int |
ALIAS_VALUE
An alias to the element is returned.
|
static int |
NONE_VALUE
There is no effect or the effect is indescribable.
|
static int |
SET_VALUE
The element is set or otherwise mutated.
|
public static final DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic NONE
There is no effect or the effect is indescribable.
NONE = 0;
public static final DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic SET
The element is set or otherwise mutated.
SET = 1;
public static final DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic ALIAS
An alias to the element is returned.
ALIAS = 2;
public static final int NONE_VALUE
There is no effect or the effect is indescribable.
NONE = 0;
public static final int SET_VALUE
The element is set or otherwise mutated.
SET = 1;
public static final int ALIAS_VALUE
An alias to the element is returned.
ALIAS = 2;
public static DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic[] values()
for (DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic c : DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic.values()) System.out.println(c);
public static DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic 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()
ProtocolMessageEnum
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
ProtocolMessageEnum
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
ProtocolMessageEnum
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2008–2024. All rights reserved.