public static final class PublishRequest.Builder extends GeneratedMessage.Builder<PublishRequest.Builder> implements PublishRequestOrBuilderThe request message for the Publish method.
Protobuf type google.cloud.eventarc.publishing.v1.PublishRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PublishRequest.BuilderImplements
PublishRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PublishRequest build()| Returns | |
|---|---|
| Type | Description |
PublishRequest |
|
buildPartial()
public PublishRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
PublishRequest |
|
clear()
public PublishRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
|
clearAvroMessage()
public PublishRequest.Builder clearAvroMessage()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 |
PublishRequest.Builder |
This builder for chaining. |
clearFormat()
public PublishRequest.Builder clearFormat()| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
|
clearJsonMessage()
public PublishRequest.Builder clearJsonMessage()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 |
PublishRequest.Builder |
This builder for chaining. |
clearMessageBus()
public PublishRequest.Builder clearMessageBus() 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 |
PublishRequest.Builder |
This builder for chaining. |
clearProtoMessage()
public PublishRequest.Builder clearProtoMessage()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 |
PublishRequest.Builder |
|
getAvroMessage()
public 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. |
getDefaultInstanceForType()
public PublishRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PublishRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFormatCase()
public PublishRequest.FormatCase getFormatCase()| Returns | |
|---|---|
| Type | Description |
PublishRequest.FormatCase |
|
getJsonMessage()
public 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 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 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 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 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. |
getProtoMessageBuilder()
public CloudEvent.Builder getProtoMessageBuilder()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.Builder |
|
getProtoMessageOrBuilder()
public 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PublishRequest other)
public PublishRequest.Builder mergeFrom(PublishRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
PublishRequest |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PublishRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PublishRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
|
mergeProtoMessage(CloudEvent value)
public PublishRequest.Builder mergeProtoMessage(CloudEvent value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
CloudEvent |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
|
setAvroMessage(ByteString value)
public PublishRequest.Builder setAvroMessage(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe avroMessage to set. |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
This builder for chaining. |
setJsonMessage(String value)
public PublishRequest.Builder setJsonMessage(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe jsonMessage to set. |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
This builder for chaining. |
setJsonMessageBytes(ByteString value)
public PublishRequest.Builder setJsonMessageBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for jsonMessage to set. |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
This builder for chaining. |
setMessageBus(String value)
public PublishRequest.Builder setMessageBus(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe messageBus to set. |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
This builder for chaining. |
setMessageBusBytes(ByteString value)
public PublishRequest.Builder setMessageBusBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for messageBus to set. |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
This builder for chaining. |
setProtoMessage(CloudEvent value)
public PublishRequest.Builder setProtoMessage(CloudEvent value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
CloudEvent |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
|
setProtoMessage(CloudEvent.Builder builderForValue)
public PublishRequest.Builder setProtoMessage(CloudEvent.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CloudEvent.Builder |
| Returns | |
|---|---|
| Type | Description |
PublishRequest.Builder |
|