Class: Google::Apis::DataflowV1b3::StructuredMessage
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::StructuredMessage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
A rich message format, including a human readable string, a key for identifying the message, and structured data associated with the message for programmatic consumption.
Instance Attribute Summary collapse
-
#message_key ⇒ String
Identifier for this message type.
-
#message_text ⇒ String
Human-readable version of message.
-
#parameters ⇒ Array<Google::Apis::DataflowV1b3::Parameter>
The structured data associated with this message.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StructuredMessage
constructor
A new instance of StructuredMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StructuredMessage
Returns a new instance of StructuredMessage.
6533 6534 6535 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6533 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message_key ⇒ String
Identifier for this message type. Used by external systems to internationalize
or personalize message.
Corresponds to the JSON property messageKey
6521 6522 6523 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6521 def @message_key end |
#message_text ⇒ String
Human-readable version of message.
Corresponds to the JSON property messageText
6526 6527 6528 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6526 def @message_text end |
#parameters ⇒ Array<Google::Apis::DataflowV1b3::Parameter>
The structured data associated with this message.
Corresponds to the JSON property parameters
6531 6532 6533 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6531 def parameters @parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6538 6539 6540 6541 6542 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6538 def update!(**args) @message_key = args[:message_key] if args.key?(:message_key) @message_text = args[:message_text] if args.key?(:message_text) @parameters = args[:parameters] if args.key?(:parameters) end |