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.
327 328 329 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 327 def initialize(**args) update!(**args) end |
Instance Attribute Details
#en_text ⇒ String
The English copy.
Corresponds to the JSON property enText
315 316 317 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 315 def en_text @en_text end |
#localization_state ⇒ String
Status of the localization.
Corresponds to the JSON property localizationState
320 321 322 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 320 def localization_state @localization_state end |
#localized_text ⇒ String
The requested localized copy (if applicable).
Corresponds to the JSON property localizedText
325 326 327 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 325 def localized_text @localized_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
332 333 334 335 336 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 332 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 |