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.



269
270
271
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 269

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

Instance Attribute Details

#en_textString

The English copy. Corresponds to the JSON property enText

Returns:

  • (String)


257
258
259
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 257

def en_text
  @en_text
end

#localization_stateString

Status of the localization. Corresponds to the JSON property localizationState

Returns:

  • (String)


262
263
264
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 262

def localization_state
  @localization_state
end

#localized_textString

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

Returns:

  • (String)


267
268
269
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 267

def localized_text
  @localized_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



274
275
276
277
278
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 274

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