public static final class PublishEventsRequest.Builder extends GeneratedMessageV3.Builder<PublishEventsRequest.Builder> implements PublishEventsRequestOrBuilder
The request message for the PublishEvents method.
Protobuf type google.cloud.eventarc.publishing.v1.PublishEventsRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllEvents(Iterable<? extends Any> values)
public PublishEventsRequest.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
Name | Description |
values | Iterable<? extends com.google.protobuf.Any>
|
Returns
addEvents(Any value)
public PublishEventsRequest.Builder addEvents(Any value)
The CloudEvents v1.0 events to publish. No other types are allowed.
repeated .google.protobuf.Any events = 2;
Parameter
Returns
addEvents(Any.Builder builderForValue)
public PublishEventsRequest.Builder addEvents(Any.Builder builderForValue)
The CloudEvents v1.0 events to publish. No other types are allowed.
repeated .google.protobuf.Any events = 2;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
addEvents(int index, Any value)
public PublishEventsRequest.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
Name | Description |
index | int
|
value | Any
|
Returns
addEvents(int index, Any.Builder builderForValue)
public PublishEventsRequest.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
Returns
addEventsBuilder()
public Any.Builder addEventsBuilder()
The CloudEvents v1.0 events to publish. No other types are allowed.
repeated .google.protobuf.Any events = 2;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PublishEventsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PublishEventsRequest build()
Returns
buildPartial()
public PublishEventsRequest buildPartial()
Returns
clear()
public PublishEventsRequest.Builder clear()
Returns
Overrides
clearChannel()
public PublishEventsRequest.Builder clearChannel()
The full name of the channel to publish to. For example:
projects/{project}/locations/{location}/channels/{channel-id}
.
string channel = 1;
Returns
clearEvents()
public PublishEventsRequest.Builder clearEvents()
The CloudEvents v1.0 events to publish. No other types are allowed.
repeated .google.protobuf.Any events = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public PublishEventsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PublishEventsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public PublishEventsRequest.Builder clone()
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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
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> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PublishEventsRequest other)
public PublishEventsRequest.Builder mergeFrom(PublishEventsRequest other)
Parameter
Returns
public PublishEventsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PublishEventsRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PublishEventsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeEvents(int index)
public PublishEventsRequest.Builder removeEvents(int index)
The CloudEvents v1.0 events to publish. No other types are allowed.
repeated .google.protobuf.Any events = 2;
Parameter
Returns
setChannel(String value)
public PublishEventsRequest.Builder setChannel(String value)
The full name of the channel to publish to. For example:
projects/{project}/locations/{location}/channels/{channel-id}
.
string channel = 1;
Parameter
Name | Description |
value | String
The channel to set.
|
Returns
setChannelBytes(ByteString value)
public PublishEventsRequest.Builder setChannelBytes(ByteString value)
The full name of the channel to publish to. For example:
projects/{project}/locations/{location}/channels/{channel-id}
.
string channel = 1;
Parameter
Name | Description |
value | ByteString
The bytes for channel to set.
|
Returns
setEvents(int index, Any value)
public PublishEventsRequest.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
Name | Description |
index | int
|
value | Any
|
Returns
setEvents(int index, Any.Builder builderForValue)
public PublishEventsRequest.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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PublishEventsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PublishEventsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PublishEventsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides