Class: Google::Apis::CloudsearchV1::VoicePhoneNumberI18nData
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::VoicePhoneNumberI18nData
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#country_code ⇒ Fixnum
The country calling code for this number, as defined by the ITU.
-
#international_number ⇒ String
Display number formatted using the INTERNATIONAL format.
-
#is_valid ⇒ Boolean
(also: #is_valid?)
When present, indicates the number is valid according to the libphonenumber's isValidNumber API (see https://code.google.com/p/libphonenumber/).
-
#national_number ⇒ String
Display number formatted using the NATIONAL format.
-
#region_code ⇒ String
A region (country, territory, continent, etc), as defined by Unicode's "CLDR", itself based on ISO 3166 (UN country codes).
-
#validation_result ⇒ String
When set to a non-default value, indicates the validation reason that is set when phone number is invalid (is_valid is false).
Instance Method Summary collapse
-
#initialize(**args) ⇒ VoicePhoneNumberI18nData
constructor
A new instance of VoicePhoneNumberI18nData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VoicePhoneNumberI18nData
Returns a new instance of VoicePhoneNumberI18nData.
21911 21912 21913 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21911 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country_code ⇒ Fixnum
The country calling code for this number, as defined by the ITU. For example,
this would be 1 for NANPA countries, and 33 for France (for more info see i18n.
phonenumbers.PhoneNumber.country_code).
Corresponds to the JSON property countryCode
21879 21880 21881 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21879 def country_code @country_code end |
#international_number ⇒ String
Display number formatted using the INTERNATIONAL format.
Corresponds to the JSON property internationalNumber
21884 21885 21886 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21884 def international_number @international_number end |
#is_valid ⇒ Boolean Also known as: is_valid?
When present, indicates the number is valid according to the libphonenumber's
isValidNumber API (see https://code.google.com/p/libphonenumber/).
Corresponds to the JSON property isValid
21890 21891 21892 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21890 def is_valid @is_valid end |
#national_number ⇒ String
Display number formatted using the NATIONAL format.
Corresponds to the JSON property nationalNumber
21896 21897 21898 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21896 def national_number @national_number end |
#region_code ⇒ String
A region (country, territory, continent, etc), as defined by Unicode's "CLDR",
itself based on ISO 3166 (UN country codes). For details, see https://www.corp.
google.com/~engdocs/java/com/google/i18n/identifiers/RegionCode.html
Corresponds to the JSON property regionCode
21903 21904 21905 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21903 def region_code @region_code end |
#validation_result ⇒ String
When set to a non-default value, indicates the validation reason that is set
when phone number is invalid (is_valid is false).
Corresponds to the JSON property validationResult
21909 21910 21911 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21909 def validation_result @validation_result end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21916 21917 21918 21919 21920 21921 21922 21923 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21916 def update!(**args) @country_code = args[:country_code] if args.key?(:country_code) @international_number = args[:international_number] if args.key?(:international_number) @is_valid = args[:is_valid] if args.key?(:is_valid) @national_number = args[:national_number] if args.key?(:national_number) @region_code = args[:region_code] if args.key?(:region_code) @validation_result = args[:validation_result] if args.key?(:validation_result) end |