Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
value - the name of the enum constant to be returned.
value - The numeric wire value of the corresponding enum entry.
Returns:
The enum associated with the given numeric wire value.
internalGetValueMap
public staticcom.google.protobuf.Internal.EnumLiteMap<ApiVersion>internalGetValueMap()
getValueDescriptor
public finalcom.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()
Specified by:
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
getDescriptorForType
public finalcom.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
getDescriptor
public static finalcom.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()
valueOf
public staticApiVersionvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
desc - the name of the enum constant to be returned.