Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Text

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/advisorynotifications_v1/classes.rb,
lib/google/apis/advisorynotifications_v1/representations.rb,
lib/google/apis/advisorynotifications_v1/representations.rb

Overview

A text object containing the English text and its localized copies.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1Text

Returns a new instance of GoogleCloudAdvisorynotificationsV1Text.



328
329
330
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 328

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

Instance Attribute Details

#en_textString

The English copy. Corresponds to the JSON property enText

Returns:

  • (String)


316
317
318
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 316

def en_text
  @en_text
end

#localization_stateString

Status of the localization. Corresponds to the JSON property localizationState

Returns:

  • (String)


321
322
323
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 321

def localization_state
  @localization_state
end

#localized_textString

The requested localized copy (if applicable). Corresponds to the JSON property localizedText

Returns:

  • (String)


326
327
328
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 326

def localized_text
  @localized_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



333
334
335
336
337
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 333

def update!(**args)
  @en_text = args[:en_text] if args.key?(:en_text)
  @localization_state = args[:localization_state] if args.key?(:localization_state)
  @localized_text = args[:localized_text] if args.key?(:localized_text)
end