Class: Google::Apis::DataflowV1b3::StructuredMessage

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StructuredMessage

Returns a new instance of StructuredMessage.



5498
5499
5500
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5498

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

Instance Attribute Details

#message_keyString

Identifier for this message type. Used by external systems to internationalize or personalize message. Corresponds to the JSON property messageKey

Returns:

  • (String)


5486
5487
5488
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5486

def message_key
  @message_key
end

#message_textString

Human-readable version of message. Corresponds to the JSON property messageText

Returns:

  • (String)


5491
5492
5493
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5491

def message_text
  @message_text
end

#parametersArray<Google::Apis::DataflowV1b3::Parameter>

The structured data associated with this message. Corresponds to the JSON property parameters



5496
5497
5498
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5496

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5503
5504
5505
5506
5507
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5503

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