Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaLanguageInfo
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaLanguageInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/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) ⇒ GoogleCloudDiscoveryengineV1betaLanguageInfo
constructor
A new instance of GoogleCloudDiscoveryengineV1betaLanguageInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaLanguageInfo
Returns a new instance of GoogleCloudDiscoveryengineV1betaLanguageInfo.
20510 20511 20512 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 20510 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
20490 20491 20492 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 20490 def language @language end |
#language_code ⇒ String
The language code for the DataStore.
Corresponds to the JSON property languageCode
20495 20496 20497 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 20495 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
20502 20503 20504 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 20502 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`
20508 20509 20510 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 20508 def region @region end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20515 20516 20517 20518 20519 20520 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 20515 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 |