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.



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

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



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

def avro
  @avro
end

#jsonGoogle::Apis::EventarcV1::GoogleCloudEventarcV1PipelineMessagePayloadFormatJsonFormat

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



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

def json
  @json
end

#protobufGoogle::Apis::EventarcV1::GoogleCloudEventarcV1PipelineMessagePayloadFormatProtobufFormat

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



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

def protobuf
  @protobuf
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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