Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaLanguageInfo

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaLanguageInfo

Returns a new instance of GoogleCloudDiscoveryengineV1betaLanguageInfo.



16000
16001
16002
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 16000

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)


15980
15981
15982
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 15980

def language
  @language
end

#language_codeString

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

Returns:

  • (String)


15985
15986
15987
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 15985

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)


15992
15993
15994
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 15992

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)


15998
15999
16000
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 15998

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16005
16006
16007
16008
16009
16010
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 16005

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