Class PublishEventsRequest (0.6.0)

public final class PublishEventsRequest extends GeneratedMessageV3 implements PublishEventsRequestOrBuilder

The request message for the PublishEvents method.

Protobuf type google.cloud.eventarc.publishing.v1.PublishEventsRequest

Static Fields

CHANNEL_FIELD_NUMBER

public static final int CHANNEL_FIELD_NUMBER
Field Value
TypeDescription
int

EVENTS_FIELD_NUMBER

public static final int EVENTS_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_EVENTS_FIELD_NUMBER

public static final int TEXT_EVENTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PublishEventsRequest getDefaultInstance()
Returns
TypeDescription
PublishEventsRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PublishEventsRequest.Builder newBuilder()
Returns
TypeDescription
PublishEventsRequest.Builder

newBuilder(PublishEventsRequest prototype)

public static PublishEventsRequest.Builder newBuilder(PublishEventsRequest prototype)
Parameter
NameDescription
prototypePublishEventsRequest
Returns
TypeDescription
PublishEventsRequest.Builder

parseDelimitedFrom(InputStream input)

public static PublishEventsRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PublishEventsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PublishEventsRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PublishEventsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PublishEventsRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PublishEventsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PublishEventsRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PublishEventsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PublishEventsRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PublishEventsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PublishEventsRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PublishEventsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishEventsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PublishEventsRequest> parser()
Returns
TypeDescription
Parser<PublishEventsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getChannel()

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

getDefaultInstanceForType()

public PublishEventsRequest getDefaultInstanceForType()
Returns
TypeDescription
PublishEventsRequest

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

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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.protobuf.AnyOrBuilder>

getParserForType()

public Parser<PublishEventsRequest> getParserForType()
Returns
TypeDescription
Parser<PublishEventsRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the textEvents.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PublishEventsRequest.Builder newBuilderForType()
Returns
TypeDescription
PublishEventsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PublishEventsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PublishEventsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PublishEventsRequest.Builder toBuilder()
Returns
TypeDescription
PublishEventsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException