Interface PublishRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PublishRequest,PublishRequest.Builder
@Generated
public interface PublishRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringThe Avro format of the CloudEvent being published.The JSON format of the CloudEvent being published.com.google.protobuf.ByteStringThe JSON format of the CloudEvent being published.Required.com.google.protobuf.ByteStringRequired.The Protobuf format of the CloudEvent being published.The Protobuf format of the CloudEvent being published.booleanThe Avro format of the CloudEvent being published.booleanThe JSON format of the CloudEvent being published.booleanThe Protobuf format of the CloudEvent being published.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getMessageBus
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:
- The messageBus.
-
getMessageBusBytes
com.google.protobuf.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:
- The bytes for messageBus.
-
hasProtoMessage
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:
- Whether the protoMessage field is set.
-
getProtoMessage
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:
- The protoMessage.
-
getProtoMessageOrBuilder
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; -
hasJsonMessage
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:
- Whether the jsonMessage field is set.
-
getJsonMessage
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:
- The jsonMessage.
-
getJsonMessageBytes
com.google.protobuf.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:
- The bytes for jsonMessage.
-
hasAvroMessage
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:
- Whether the avroMessage field is set.
-
getAvroMessage
com.google.protobuf.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:
- The avroMessage.
-
getFormatCase
PublishRequest.FormatCase getFormatCase()
-