public static final class PublishChannelConnectionEventsRequest.Builder extends GeneratedMessage.Builder<PublishChannelConnectionEventsRequest.Builder> implements PublishChannelConnectionEventsRequestOrBuilderThe request message for the PublishChannelConnectionEvents method.
Protobuf type google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PublishChannelConnectionEventsRequest.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllEvents(Iterable<? extends Any> values)
public PublishChannelConnectionEventsRequest.Builder addAllEvents(Iterable<? extends Any> values) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.protobuf.Any> |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
addAllTextEvents(Iterable<String> values)
public PublishChannelConnectionEventsRequest.Builder addAllTextEvents(Iterable<String> values) The text representation of events to publish.
CloudEvent v1.0 in JSON format is the only allowed type. Refer to
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
for specification.
If this field is set, then the events fields must not be set.
repeated string text_events = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The textEvents to add. |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
This builder for chaining. |
addEvents(Any value)
public PublishChannelConnectionEventsRequest.Builder addEvents(Any value) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Any |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
addEvents(Any.Builder builderForValue)
public PublishChannelConnectionEventsRequest.Builder addEvents(Any.Builder builderForValue) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
addEvents(int index, Any value)
public PublishChannelConnectionEventsRequest.Builder addEvents(int index, Any value) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Any |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
addEvents(int index, Any.Builder builderForValue)
public PublishChannelConnectionEventsRequest.Builder addEvents(int index, Any.Builder builderForValue) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
addEventsBuilder()
public Any.Builder addEventsBuilder() The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
addEventsBuilder(int index)
public Any.Builder addEventsBuilder(int index) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Builder |
|
addTextEvents(String value)
public PublishChannelConnectionEventsRequest.Builder addTextEvents(String value) The text representation of events to publish.
CloudEvent v1.0 in JSON format is the only allowed type. Refer to
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
for specification.
If this field is set, then the events fields must not be set.
repeated string text_events = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe textEvents to add. |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
This builder for chaining. |
addTextEventsBytes(ByteString value)
public PublishChannelConnectionEventsRequest.Builder addTextEventsBytes(ByteString value) The text representation of events to publish.
CloudEvent v1.0 in JSON format is the only allowed type. Refer to
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
for specification.
If this field is set, then the events fields must not be set.
repeated string text_events = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the textEvents to add. |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
This builder for chaining. |
build()
public PublishChannelConnectionEventsRequest build()| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest |
|
buildPartial()
public PublishChannelConnectionEventsRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest |
|
clear()
public PublishChannelConnectionEventsRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
clearChannelConnection()
public PublishChannelConnectionEventsRequest.Builder clearChannelConnection() The channel_connection that the events are published from. For example:
projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}.
string channel_connection = 1;
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
This builder for chaining. |
clearEvents()
public PublishChannelConnectionEventsRequest.Builder clearEvents() The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
clearTextEvents()
public PublishChannelConnectionEventsRequest.Builder clearTextEvents() The text representation of events to publish.
CloudEvent v1.0 in JSON format is the only allowed type. Refer to
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
for specification.
If this field is set, then the events fields must not be set.
repeated string text_events = 3;
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
This builder for chaining. |
getChannelConnection()
public String getChannelConnection() The channel_connection that the events are published from. For example:
projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}.
string channel_connection = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The channelConnection. |
getChannelConnectionBytes()
public ByteString getChannelConnectionBytes() The channel_connection that the events are published from. For example:
projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}.
string channel_connection = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for channelConnection. |
getDefaultInstanceForType()
public PublishChannelConnectionEventsRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEvents(int index)
public Any getEvents(int index) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Any |
|
getEventsBuilder(int index)
public Any.Builder getEventsBuilder(int index) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEventsBuilderList()
public List<Any.Builder> getEventsBuilderList() The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getEventsCount()
public int getEventsCount() The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
getEventsList()
public List<Any> getEventsList() The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Returns | |
|---|---|
| Type | Description |
List<Any> |
|
getEventsOrBuilder(int index)
public AnyOrBuilder getEventsOrBuilder(int index) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnyOrBuilder |
|
getEventsOrBuilderList()
public List<? extends AnyOrBuilder> getEventsOrBuilderList() The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.protobuf.AnyOrBuilder> |
|
getTextEvents(int index)
public String getTextEvents(int index) The text representation of events to publish.
CloudEvent v1.0 in JSON format is the only allowed type. Refer to
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
for specification.
If this field is set, then the events fields must not be set.
repeated string text_events = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The textEvents at the given index. |
getTextEventsBytes(int index)
public ByteString getTextEventsBytes(int index) The text representation of events to publish.
CloudEvent v1.0 in JSON format is the only allowed type. Refer to
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
for specification.
If this field is set, then the events fields must not be set.
repeated string text_events = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the textEvents at the given index. |
getTextEventsCount()
public int getTextEventsCount() The text representation of events to publish.
CloudEvent v1.0 in JSON format is the only allowed type. Refer to
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
for specification.
If this field is set, then the events fields must not be set.
repeated string text_events = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The count of textEvents. |
getTextEventsList()
public ProtocolStringList getTextEventsList() The text representation of events to publish.
CloudEvent v1.0 in JSON format is the only allowed type. Refer to
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
for specification.
If this field is set, then the events fields must not be set.
repeated string text_events = 3;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the textEvents. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PublishChannelConnectionEventsRequest other)
public PublishChannelConnectionEventsRequest.Builder mergeFrom(PublishChannelConnectionEventsRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
PublishChannelConnectionEventsRequest |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PublishChannelConnectionEventsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PublishChannelConnectionEventsRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
removeEvents(int index)
public PublishChannelConnectionEventsRequest.Builder removeEvents(int index) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
setChannelConnection(String value)
public PublishChannelConnectionEventsRequest.Builder setChannelConnection(String value) The channel_connection that the events are published from. For example:
projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}.
string channel_connection = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe channelConnection to set. |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
This builder for chaining. |
setChannelConnectionBytes(ByteString value)
public PublishChannelConnectionEventsRequest.Builder setChannelConnectionBytes(ByteString value) The channel_connection that the events are published from. For example:
projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}.
string channel_connection = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for channelConnection to set. |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
This builder for chaining. |
setEvents(int index, Any value)
public PublishChannelConnectionEventsRequest.Builder setEvents(int index, Any value) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Any |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
setEvents(int index, Any.Builder builderForValue)
public PublishChannelConnectionEventsRequest.Builder setEvents(int index, Any.Builder builderForValue) The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events fields must not be set.
repeated .google.protobuf.Any events = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
|
setTextEvents(int index, String value)
public PublishChannelConnectionEventsRequest.Builder setTextEvents(int index, String value) The text representation of events to publish.
CloudEvent v1.0 in JSON format is the only allowed type. Refer to
https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
for specification.
If this field is set, then the events fields must not be set.
repeated string text_events = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe textEvents to set. |
| Returns | |
|---|---|
| Type | Description |
PublishChannelConnectionEventsRequest.Builder |
This builder for chaining. |