public enum InvalidPhoneNumberErrorReason extends Enum<InvalidPhoneNumberErrorReason>
Java class for InvalidPhoneNumberError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="InvalidPhoneNumberError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="INVALID_FORMAT"/>
<enumeration value="TOO_SHORT"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
INVALID_FORMAT
The phone number is invalid.
|
TOO_SHORT
The phone number is too short.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static InvalidPhoneNumberErrorReason |
fromValue(String v) |
String |
value() |
static InvalidPhoneNumberErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InvalidPhoneNumberErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvalidPhoneNumberErrorReason INVALID_FORMAT
public static final InvalidPhoneNumberErrorReason TOO_SHORT
public static final InvalidPhoneNumberErrorReason UNKNOWN
public static InvalidPhoneNumberErrorReason[] values()
for (InvalidPhoneNumberErrorReason c : InvalidPhoneNumberErrorReason.values()) System.out.println(c);
public static InvalidPhoneNumberErrorReason 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 String value()
public static InvalidPhoneNumberErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.