Reference documentation and code samples for the Eventarc Publishing V1 API class Google::Cloud::Eventarc::Publishing::V1::PublishRequest.
The request message for the Publish method.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#avro_message
def avro_message() -> ::String
-
(::String) — The Avro format of the CloudEvent being published. Specification can
be found here:
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md
Note: The following fields are mutually exclusive:
avro_message
,proto_message
,json_message
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#avro_message=
def avro_message=(value) -> ::String
-
value (::String) — The Avro format of the CloudEvent being published. Specification can
be found here:
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md
Note: The following fields are mutually exclusive:
avro_message
,proto_message
,json_message
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The Avro format of the CloudEvent being published. Specification can
be found here:
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md
Note: The following fields are mutually exclusive:
avro_message
,proto_message
,json_message
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#json_message
def json_message() -> ::String
-
(::String) — The JSON format of the CloudEvent being published. Specification can be
found here:
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
Note: The following fields are mutually exclusive:
json_message
,proto_message
,avro_message
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#json_message=
def json_message=(value) -> ::String
-
value (::String) — The JSON format of the CloudEvent being published. Specification can be
found here:
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
Note: The following fields are mutually exclusive:
json_message
,proto_message
,avro_message
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The JSON format of the CloudEvent being published. Specification can be
found here:
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
Note: The following fields are mutually exclusive:
json_message
,proto_message
,avro_message
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#message_bus
def message_bus() -> ::String
-
(::String) — Required. The full name of the message bus to publish events to. Format:
projects/{project}/locations/{location}/messageBuses/{messageBus}
.
#message_bus=
def message_bus=(value) -> ::String
-
value (::String) — Required. The full name of the message bus to publish events to. Format:
projects/{project}/locations/{location}/messageBuses/{messageBus}
.
-
(::String) — Required. The full name of the message bus to publish events to. Format:
projects/{project}/locations/{location}/messageBuses/{messageBus}
.
#proto_message
def proto_message() -> ::Google::Cloud::Eventarc::Publishing::V1::CloudEvent
-
(::Google::Cloud::Eventarc::Publishing::V1::CloudEvent) — The Protobuf format of the CloudEvent being published. Specification can
be found here:
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md
Note: The following fields are mutually exclusive:
proto_message
,json_message
,avro_message
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#proto_message=
def proto_message=(value) -> ::Google::Cloud::Eventarc::Publishing::V1::CloudEvent
-
value (::Google::Cloud::Eventarc::Publishing::V1::CloudEvent) — The Protobuf format of the CloudEvent being published. Specification can
be found here:
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md
Note: The following fields are mutually exclusive:
proto_message
,json_message
,avro_message
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Eventarc::Publishing::V1::CloudEvent) — The Protobuf format of the CloudEvent being published. Specification can
be found here:
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md
Note: The following fields are mutually exclusive:
proto_message
,json_message
,avro_message
. If a field in that set is populated, all other fields in the set will automatically be cleared.