Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaLanguageInfo

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaLanguageInfo

Returns a new instance of GoogleCloudDiscoveryengineV1alphaLanguageInfo.



8311
8312
8313
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8311

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

Instance Attribute Details

#languageString

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

Returns:

  • (String)


8291
8292
8293
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8291

def language
  @language
end

#language_codeString

The language code for the DataStore. Corresponds to the JSON property languageCode

Returns:

  • (String)


8296
8297
8298
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8296

def language_code
  @language_code
end

#normalized_language_codeString

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

Returns:

  • (String)


8303
8304
8305
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8303

def normalized_language_code
  @normalized_language_code
end

#regionString

Output only. Region part of normalized_language_code, if present. E.g.: en-US -> US, zh-Hans-HK -> HK, en -> `. Corresponds to the JSON propertyregion`

Returns:

  • (String)


8309
8310
8311
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8309

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8316
8317
8318
8319
8320
8321
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8316

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