Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaLanguageInfo
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaLanguageInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Language info for DataStore.
Instance Attribute Summary collapse
-
#language ⇒ String
Output only.
-
#language_code ⇒ String
The language code for the DataStore.
-
#normalized_language_code ⇒ String
Output only.
-
#region ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaLanguageInfo
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaLanguageInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaLanguageInfo
Returns a new instance of GoogleCloudDiscoveryengineV1alphaLanguageInfo.
12725 12726 12727 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12725 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language ⇒ String
Output only. Language part of normalized_language_code. E.g.: en-US
-> en
,
zh-Hans-HK
-> zh
, en
-> en
.
Corresponds to the JSON property language
12705 12706 12707 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12705 def language @language end |
#language_code ⇒ String
The language code for the DataStore.
Corresponds to the JSON property languageCode
12710 12711 12712 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12710 def language_code @language_code end |
#normalized_language_code ⇒ String
Output only. This is the normalized form of language_code. E.g.: language_code
of en-GB
, en_GB
, en-UK
or en-gb
will have normalized_language_code of
en-GB
.
Corresponds to the JSON property normalizedLanguageCode
12717 12718 12719 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12717 def normalized_language_code @normalized_language_code end |
#region ⇒ String
Output only. Region part of normalized_language_code, if present. E.g.: en-US
-> US
, zh-Hans-HK
-> HK
, en
-> `.
Corresponds to the JSON property
region`
12723 12724 12725 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12723 def region @region end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12730 12731 12732 12733 12734 12735 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12730 def update!(**args) @language = args[:language] if args.key?(:language) @language_code = args[:language_code] if args.key?(:language_code) @normalized_language_code = args[:normalized_language_code] if args.key?(:normalized_language_code) @region = args[:region] if args.key?(:region) end |