Interface PublishChannelConnectionEventsRequestOrBuilder (0.43.0)

public interface PublishChannelConnectionEventsRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getChannelConnection()

public abstract 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 abstract 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.

getEvents(int index)

public abstract 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

getEventsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 int

The index of the element to return.

Returns
Type Description
String

The textEvents at the given index.

getTextEventsBytes(int index)

public abstract 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 int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the textEvents at the given index.

getTextEventsCount()

public abstract 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 abstract List<String> 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
List<String>

A list containing the textEvents.