Class: Google::Apis::CloudsearchV1::VoicePhoneNumberI18nData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VoicePhoneNumberI18nData

Returns a new instance of VoicePhoneNumberI18nData.



17832
17833
17834
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17832

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#country_codeFixnum

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

Returns:

  • (Fixnum)


17800
17801
17802
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17800

def country_code
  @country_code
end

#international_numberString

Display number formatted using the INTERNATIONAL format. Corresponds to the JSON property internationalNumber

Returns:

  • (String)


17805
17806
17807
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17805

def international_number
  @international_number
end

#is_validBoolean 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

Returns:

  • (Boolean)


17811
17812
17813
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17811

def is_valid
  @is_valid
end

#national_numberString

Display number formatted using the NATIONAL format. Corresponds to the JSON property nationalNumber

Returns:

  • (String)


17817
17818
17819
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17817

def national_number
  @national_number
end

#region_codeString

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

Returns:

  • (String)


17824
17825
17826
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17824

def region_code
  @region_code
end

#validation_resultString

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

Returns:

  • (String)


17830
17831
17832
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17830

def validation_result
  @validation_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17837
17838
17839
17840
17841
17842
17843
17844
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17837

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