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
EVENTS_FIELD_NUMBER
public static final int EVENTS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static PublishEventsRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static PublishEventsRequest.Builder newBuilder()
Returns
newBuilder(PublishEventsRequest prototype)
public static PublishEventsRequest.Builder newBuilder(PublishEventsRequest prototype)
Parameter
Returns
public static PublishEventsRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static PublishEventsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static PublishEventsRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PublishEventsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static PublishEventsRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PublishEventsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PublishEventsRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static PublishEventsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PublishEventsRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static PublishEventsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static PublishEventsRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PublishEventsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<PublishEventsRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Type | Description |
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
getDefaultInstanceForType()
public PublishEventsRequest getDefaultInstanceForType()
Returns
getEvents(int index)
public Any getEvents(int index)
The CloudEvents v1.0 events to publish. No other types are allowed.
repeated .google.protobuf.Any events = 2;
Parameter
Returns
getEventsCount()
public int getEventsCount()
The CloudEvents v1.0 events to publish. No other types are allowed.
repeated .google.protobuf.Any events = 2;
Returns
getEventsList()
public List<Any> getEventsList()
The CloudEvents v1.0 events to publish. No other types are allowed.
repeated .google.protobuf.Any events = 2;
Returns
getEventsOrBuilder(int index)
public AnyOrBuilder getEventsOrBuilder(int index)
The CloudEvents v1.0 events to publish. No other types are allowed.
repeated .google.protobuf.Any events = 2;
Parameter
Returns
getEventsOrBuilderList()
public List<? extends AnyOrBuilder> getEventsOrBuilderList()
The CloudEvents v1.0 events to publish. No other types are allowed.
repeated .google.protobuf.Any events = 2;
Returns
Type | Description |
List<? extends com.google.protobuf.AnyOrBuilder> | |
getParserForType()
public Parser<PublishEventsRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public PublishEventsRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PublishEventsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public PublishEventsRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions