Interface PublishEventsRequestOrBuilder (0.23.0)

public interface PublishEventsRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getChannel()

public abstract String getChannel()

The full name of the channel to publish to. For example: projects/{project}/locations/{location}/channels/{channel-id}.

string channel = 1;

Returns
TypeDescription
String

The channel.

getChannelBytes()

public abstract ByteString getChannelBytes()

The full name of the channel to publish to. For example: projects/{project}/locations/{location}/channels/{channel-id}.

string channel = 1;

Returns
TypeDescription
ByteString

The bytes for channel.

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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<String>

A list containing the textEvents.