net.unto.twitter
Enum UtilProtos.Url.Scheme
java.lang.Object
java.lang.Enum<UtilProtos.Url.Scheme>
net.unto.twitter.UtilProtos.Url.Scheme
- All Implemented Interfaces:
- Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<UtilProtos.Url.Scheme>
- Enclosing class:
- UtilProtos.Url
public static enum UtilProtos.Url.Scheme
- extends Enum<UtilProtos.Url.Scheme>
- implements ProtocolMessageEnum
HTTP
public static final UtilProtos.Url.Scheme HTTP
HTTPS
public static final UtilProtos.Url.Scheme HTTPS
values
public static UtilProtos.Url.Scheme[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (UtilProtos.Url.Scheme c : UtilProtos.Url.Scheme.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static UtilProtos.Url.Scheme valueOf(String name)
- 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 with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getNumber
public final int getNumber()
- Specified by:
getNumber in interface Internal.EnumLite- Specified by:
getNumber in interface ProtocolMessageEnum
valueOf
public static UtilProtos.Url.Scheme valueOf(int value)
internalGetValueMap
public static Internal.EnumLiteMap<UtilProtos.Url.Scheme> internalGetValueMap()
getValueDescriptor
public final Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor in interface ProtocolMessageEnum
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType in interface ProtocolMessageEnum
getDescriptor
public static final Descriptors.EnumDescriptor getDescriptor()
valueOf
public static UtilProtos.Url.Scheme valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2009 DeWitt Clinton. All Rights Reserved.