Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Text
- Inherits:
-
Object
- Object
- Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Text
- 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
-
#en_text ⇒ String
The English copy.
-
#localization_state ⇒ String
Status of the localization.
-
#localized_text ⇒ String
The requested localized copy (if applicable).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1Text
constructor
A new instance of GoogleCloudAdvisorynotificationsV1Text.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_text ⇒ String
The English copy.
Corresponds to the JSON property enText
316 317 318 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 316 def en_text @en_text end |
#localization_state ⇒ String
Status of the localization.
Corresponds to the JSON property localizationState
321 322 323 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 321 def localization_state @localization_state end |
#localized_text ⇒ String
The requested localized copy (if applicable).
Corresponds to the JSON property localizedText
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 |