PhoneNumber_CountryCodeSource class
The source from which the country_code is derived. This is not set in the general parsing method, but in the method that parses and keeps raw_input. New fields could be added upon request.
- Inheritance
-
- Object
- ProtobufEnum
- PhoneNumber_CountryCodeSource
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
This enum's name, as specified in the .proto file.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
This enum's integer value, as specified in the .proto file.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns this enum's name or the value if names are not represented.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
int value) → PhoneNumber_CountryCodeSource?
Constants
- FROM_DEFAULT_COUNTRY → const PhoneNumber_CountryCodeSource
- The country_code is derived NOT based on the phone number itself, but from the defaultCountry parameter provided in the parsing function by the clients. This happens mostly for numbers written in the national format (without country code). For example, this would be set when parsing the French number "01 42 68 53 00", when defaultCountry is supplied as France.
- FROM_NUMBER_WITH_IDD → const PhoneNumber_CountryCodeSource
- The country_code is derived based on a phone number with a leading IDD, e.g. the French number "011 33 1 42 68 53 00", as it is dialled from US.
- FROM_NUMBER_WITH_PLUS_SIGN → const PhoneNumber_CountryCodeSource
- The country_code is derived based on a phone number with a leading "+", e.g. the French number "+33 1 42 68 53 00".
- FROM_NUMBER_WITHOUT_PLUS_SIGN → const PhoneNumber_CountryCodeSource
- The country_code is derived based on a phone number without a leading "+", e.g. the French number "33 1 42 68 53 00" when defaultCountry is supplied as France.
- UNSPECIFIED → const PhoneNumber_CountryCodeSource
- Default value returned if this is not set, because the phone number was created using parse, not parseAndKeepRawInput. hasCountryCodeSource will return false if this is the case.
-
values
→ const List<
PhoneNumber_CountryCodeSource>