Class PublishChannelConnectionEventsRequest.Builder (0.5.0)

public static final class PublishChannelConnectionEventsRequest.Builder extends GeneratedMessageV3.Builder<PublishChannelConnectionEventsRequest.Builder> implements PublishChannelConnectionEventsRequestOrBuilder

The request message for the PublishChannelConnectionEvents method.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.

repeated .google.protobuf.Any events = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.Any>
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder

addEvents(Any value)

public PublishChannelConnectionEventsRequest.Builder addEvents(Any value)

The CloudEvents v1.0 events to publish. No other types are allowed.

repeated .google.protobuf.Any events = 2;

Parameter
NameDescription
valueAny
Returns
TypeDescription
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.

repeated .google.protobuf.Any events = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
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.

repeated .google.protobuf.Any events = 2;

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

repeated .google.protobuf.Any events = 2;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder

addEventsBuilder()

public Any.Builder addEventsBuilder()

The CloudEvents v1.0 events to publish. No other types are allowed.

repeated .google.protobuf.Any events = 2;

Returns
TypeDescription
Builder

addEventsBuilder(int index)

public Any.Builder addEventsBuilder(int index)

The CloudEvents v1.0 events to publish. No other types are allowed.

repeated .google.protobuf.Any events = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PublishChannelConnectionEventsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides

build()

public PublishChannelConnectionEventsRequest build()
Returns
TypeDescription
PublishChannelConnectionEventsRequest

buildPartial()

public PublishChannelConnectionEventsRequest buildPartial()
Returns
TypeDescription
PublishChannelConnectionEventsRequest

clear()

public PublishChannelConnectionEventsRequest.Builder clear()
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides

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
TypeDescription
PublishChannelConnectionEventsRequest.Builder

This builder for chaining.

clearEvents()

public PublishChannelConnectionEventsRequest.Builder clearEvents()

The CloudEvents v1.0 events to publish. No other types are allowed.

repeated .google.protobuf.Any events = 2;

Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public PublishChannelConnectionEventsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PublishChannelConnectionEventsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides

clone()

public PublishChannelConnectionEventsRequest.Builder clone()
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for channelConnection.

getDefaultInstanceForType()

public PublishChannelConnectionEventsRequest getDefaultInstanceForType()
Returns
TypeDescription
PublishChannelConnectionEventsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

getEventsBuilder(int index)

public Any.Builder getEventsBuilder(int index)

The CloudEvents v1.0 events to publish. No other types are allowed.

repeated .google.protobuf.Any events = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

getEventsBuilderList()

public List<Any.Builder> getEventsBuilderList()

The CloudEvents v1.0 events to publish. No other types are allowed.

repeated .google.protobuf.Any events = 2;

Returns
TypeDescription
List<Builder>

getEventsCount()

public int getEventsCount()

The CloudEvents v1.0 events to publish. No other types are allowed.

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.

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.

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.

repeated .google.protobuf.Any events = 2;

Returns
TypeDescription
List<? extends com.google.protobuf.AnyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PublishChannelConnectionEventsRequest other)

public PublishChannelConnectionEventsRequest.Builder mergeFrom(PublishChannelConnectionEventsRequest other)
Parameter
NameDescription
otherPublishChannelConnectionEventsRequest
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PublishChannelConnectionEventsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PublishChannelConnectionEventsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublishChannelConnectionEventsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides

removeEvents(int index)

public PublishChannelConnectionEventsRequest.Builder removeEvents(int index)

The CloudEvents v1.0 events to publish. No other types are allowed.

repeated .google.protobuf.Any events = 2;

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

The channelConnection to set.

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

The bytes for channelConnection to set.

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

repeated .google.protobuf.Any events = 2;

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

repeated .google.protobuf.Any events = 2;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PublishChannelConnectionEventsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PublishChannelConnectionEventsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PublishChannelConnectionEventsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PublishChannelConnectionEventsRequest.Builder
Overrides