Class: Google::Apis::CloudsearchV1::VoicePhoneNumber
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::VoicePhoneNumber
- 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
Overview
Represents both long and short phone number that can be called or texted. Short telephone numbers are used to reach local services. Short numbers and their purpose differ from country to country. These numbers in US are in the form of N11 which is a three-digit abbreviated dialing telephone number.
Instance Attribute Summary collapse
-
#e164 ⇒ String
E.164 formatted full phone number with leading +.
-
#i18n_data ⇒ Google::Apis::CloudsearchV1::VoicePhoneNumberI18nData
Additional data that could be added using the libphonenumber API.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VoicePhoneNumber
constructor
A new instance of VoicePhoneNumber.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VoicePhoneNumber
Returns a new instance of VoicePhoneNumber.
21859 21860 21861 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21859 def initialize(**args) update!(**args) end |
Instance Attribute Details
#e164 ⇒ String
E.164 formatted full phone number with leading +. This field also represents
encoded form of short telephone numbers in E.164 format. e.g. "911" is encoded
as "+1911".
Corresponds to the JSON property e164
21852 21853 21854 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21852 def e164 @e164 end |
#i18n_data ⇒ Google::Apis::CloudsearchV1::VoicePhoneNumberI18nData
Additional data that could be added using the libphonenumber API.
Corresponds to the JSON property i18nData
21857 21858 21859 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21857 def i18n_data @i18n_data end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21864 21865 21866 21867 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21864 def update!(**args) @e164 = args[:e164] if args.key?(:e164) @i18n_data = args[:i18n_data] if args.key?(:i18n_data) end |