Class: Google::Apis::EventarcV1::GoogleCloudEventarcV1PipelineMessagePayloadFormat

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb

Overview

Represents the format of message data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudEventarcV1PipelineMessagePayloadFormat

Returns a new instance of GoogleCloudEventarcV1PipelineMessagePayloadFormat.



1321
1322
1323
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1321

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

Instance Attribute Details

#avroGoogle::Apis::EventarcV1::GoogleCloudEventarcV1PipelineMessagePayloadFormatAvroFormat

The format of an AVRO message payload. Corresponds to the JSON property avro



1309
1310
1311
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1309

def avro
  @avro
end

#jsonGoogle::Apis::EventarcV1::GoogleCloudEventarcV1PipelineMessagePayloadFormatJsonFormat

The format of a JSON message payload. Corresponds to the JSON property json



1314
1315
1316
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1314

def json
  @json
end

#protobufGoogle::Apis::EventarcV1::GoogleCloudEventarcV1PipelineMessagePayloadFormatProtobufFormat

The format of a Protobuf message payload. Corresponds to the JSON property protobuf



1319
1320
1321
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1319

def protobuf
  @protobuf
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1326
1327
1328
1329
1330
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1326

def update!(**args)
  @avro = args[:avro] if args.key?(:avro)
  @json = args[:json] if args.key?(:json)
  @protobuf = args[:protobuf] if args.key?(:protobuf)
end