Interface PublishRequestOrBuilder (0.55.0)

public interface PublishRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAvroMessage()

public abstract ByteString getAvroMessage()

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

bytes avro_message = 4;

Returns
Type Description
ByteString

The avroMessage.

getFormatCase()

public abstract PublishRequest.FormatCase getFormatCase()
Returns
Type Description
PublishRequest.FormatCase

getJsonMessage()

public abstract String getJsonMessage()

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

string json_message = 3;

Returns
Type Description
String

The jsonMessage.

getJsonMessageBytes()

public abstract ByteString getJsonMessageBytes()

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

string json_message = 3;

Returns
Type Description
ByteString

The bytes for jsonMessage.

getMessageBus()

public abstract String getMessageBus()

Required. The full name of the message bus to publish events to. Format: projects/{project}/locations/{location}/messageBuses/{messageBus}.

string message_bus = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The messageBus.

getMessageBusBytes()

public abstract ByteString getMessageBusBytes()

Required. The full name of the message bus to publish events to. Format: projects/{project}/locations/{location}/messageBuses/{messageBus}.

string message_bus = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for messageBus.

getProtoMessage()

public abstract CloudEvent getProtoMessage()

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

.google.cloud.eventarc.publishing.v1.CloudEvent proto_message = 2;

Returns
Type Description
CloudEvent

The protoMessage.

getProtoMessageOrBuilder()

public abstract CloudEventOrBuilder getProtoMessageOrBuilder()

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

.google.cloud.eventarc.publishing.v1.CloudEvent proto_message = 2;

Returns
Type Description
CloudEventOrBuilder

hasAvroMessage()

public abstract boolean hasAvroMessage()

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

bytes avro_message = 4;

Returns
Type Description
boolean

Whether the avroMessage field is set.

hasJsonMessage()

public abstract boolean hasJsonMessage()

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

string json_message = 3;

Returns
Type Description
boolean

Whether the jsonMessage field is set.

hasProtoMessage()

public abstract boolean hasProtoMessage()

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

.google.cloud.eventarc.publishing.v1.CloudEvent proto_message = 2;

Returns
Type Description
boolean

Whether the protoMessage field is set.