public static final class PublishEventsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder> implements PublishEventsRequestOrBuilder
The request message for the PublishEvents method.Protobuf type
google.cloud.eventarc.publishing.v1.PublishEventsRequest| Modifier and Type | Method and Description |
|---|---|
PublishEventsRequest.Builder |
addAllEvents(Iterable<? extends com.google.protobuf.Any> values)
The CloudEvents v1.0 events to publish.
|
PublishEventsRequest.Builder |
addAllTextEvents(Iterable<String> values)
The text representation of events to publish.
|
PublishEventsRequest.Builder |
addEvents(com.google.protobuf.Any.Builder builderForValue)
The CloudEvents v1.0 events to publish.
|
PublishEventsRequest.Builder |
addEvents(com.google.protobuf.Any value)
The CloudEvents v1.0 events to publish.
|
PublishEventsRequest.Builder |
addEvents(int index,
com.google.protobuf.Any.Builder builderForValue)
The CloudEvents v1.0 events to publish.
|
PublishEventsRequest.Builder |
addEvents(int index,
com.google.protobuf.Any value)
The CloudEvents v1.0 events to publish.
|
com.google.protobuf.Any.Builder |
addEventsBuilder()
The CloudEvents v1.0 events to publish.
|
com.google.protobuf.Any.Builder |
addEventsBuilder(int index)
The CloudEvents v1.0 events to publish.
|
PublishEventsRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PublishEventsRequest.Builder |
addTextEvents(String value)
The text representation of events to publish.
|
PublishEventsRequest.Builder |
addTextEventsBytes(com.google.protobuf.ByteString value)
The text representation of events to publish.
|
PublishEventsRequest |
build() |
PublishEventsRequest |
buildPartial() |
PublishEventsRequest.Builder |
clear() |
PublishEventsRequest.Builder |
clearChannel()
The full name of the channel to publish to.
|
PublishEventsRequest.Builder |
clearEvents()
The CloudEvents v1.0 events to publish.
|
PublishEventsRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PublishEventsRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PublishEventsRequest.Builder |
clearTextEvents()
The text representation of events to publish.
|
PublishEventsRequest.Builder |
clone() |
String |
getChannel()
The full name of the channel to publish to.
|
com.google.protobuf.ByteString |
getChannelBytes()
The full name of the channel to publish to.
|
PublishEventsRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Any |
getEvents(int index)
The CloudEvents v1.0 events to publish.
|
com.google.protobuf.Any.Builder |
getEventsBuilder(int index)
The CloudEvents v1.0 events to publish.
|
List<com.google.protobuf.Any.Builder> |
getEventsBuilderList()
The CloudEvents v1.0 events to publish.
|
int |
getEventsCount()
The CloudEvents v1.0 events to publish.
|
List<com.google.protobuf.Any> |
getEventsList()
The CloudEvents v1.0 events to publish.
|
com.google.protobuf.AnyOrBuilder |
getEventsOrBuilder(int index)
The CloudEvents v1.0 events to publish.
|
List<? extends com.google.protobuf.AnyOrBuilder> |
getEventsOrBuilderList()
The CloudEvents v1.0 events to publish.
|
String |
getTextEvents(int index)
The text representation of events to publish.
|
com.google.protobuf.ByteString |
getTextEventsBytes(int index)
The text representation of events to publish.
|
int |
getTextEventsCount()
The text representation of events to publish.
|
com.google.protobuf.ProtocolStringList |
getTextEventsList()
The text representation of events to publish.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PublishEventsRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PublishEventsRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
PublishEventsRequest.Builder |
mergeFrom(PublishEventsRequest other) |
PublishEventsRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PublishEventsRequest.Builder |
removeEvents(int index)
The CloudEvents v1.0 events to publish.
|
PublishEventsRequest.Builder |
setChannel(String value)
The full name of the channel to publish to.
|
PublishEventsRequest.Builder |
setChannelBytes(com.google.protobuf.ByteString value)
The full name of the channel to publish to.
|
PublishEventsRequest.Builder |
setEvents(int index,
com.google.protobuf.Any.Builder builderForValue)
The CloudEvents v1.0 events to publish.
|
PublishEventsRequest.Builder |
setEvents(int index,
com.google.protobuf.Any value)
The CloudEvents v1.0 events to publish.
|
PublishEventsRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PublishEventsRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PublishEventsRequest.Builder |
setTextEvents(int index,
String value)
The text representation of events to publish.
|
PublishEventsRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public PublishEventsRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public PublishEventsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PublishEventsRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PublishEventsRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PublishEventsRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public PublishEventsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public PublishEventsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public PublishEventsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public PublishEventsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public PublishEventsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public PublishEventsRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PublishEventsRequest.Builder>public PublishEventsRequest.Builder mergeFrom(PublishEventsRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public PublishEventsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PublishEventsRequest.Builder>IOExceptionpublic String getChannel()
The full name of the channel to publish to. For example:
`projects/{project}/locations/{location}/channels/{channel-id}`.
string channel = 1;getChannel in interface PublishEventsRequestOrBuilderpublic com.google.protobuf.ByteString getChannelBytes()
The full name of the channel to publish to. For example:
`projects/{project}/locations/{location}/channels/{channel-id}`.
string channel = 1;getChannelBytes in interface PublishEventsRequestOrBuilderpublic 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;value - The channel to set.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;public PublishEventsRequest.Builder setChannelBytes(com.google.protobuf.ByteString value)
The full name of the channel to publish to. For example:
`projects/{project}/locations/{location}/channels/{channel-id}`.
string channel = 1;value - The bytes for channel to set.public List<com.google.protobuf.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;getEventsList in interface PublishEventsRequestOrBuilderpublic 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;getEventsCount in interface PublishEventsRequestOrBuilderpublic com.google.protobuf.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;getEvents in interface PublishEventsRequestOrBuilderpublic PublishEventsRequest.Builder setEvents(int index, com.google.protobuf.Any value)
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;public PublishEventsRequest.Builder setEvents(int index, com.google.protobuf.Any.Builder builderForValue)
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;public PublishEventsRequest.Builder addEvents(com.google.protobuf.Any value)
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;public PublishEventsRequest.Builder addEvents(int index, com.google.protobuf.Any value)
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;public PublishEventsRequest.Builder addEvents(com.google.protobuf.Any.Builder builderForValue)
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;public PublishEventsRequest.Builder addEvents(int index, com.google.protobuf.Any.Builder builderForValue)
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;public PublishEventsRequest.Builder addAllEvents(Iterable<? extends com.google.protobuf.Any> values)
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;public PublishEventsRequest.Builder clearEvents()
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;public PublishEventsRequest.Builder removeEvents(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;public com.google.protobuf.Any.Builder getEventsBuilder(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;public com.google.protobuf.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;getEventsOrBuilder in interface PublishEventsRequestOrBuilderpublic List<? extends com.google.protobuf.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;getEventsOrBuilderList in interface PublishEventsRequestOrBuilderpublic com.google.protobuf.Any.Builder addEventsBuilder()
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;public com.google.protobuf.Any.Builder addEventsBuilder(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;public List<com.google.protobuf.Any.Builder> getEventsBuilderList()
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;public com.google.protobuf.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;getTextEventsList in interface PublishEventsRequestOrBuilderpublic 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;getTextEventsCount in interface PublishEventsRequestOrBuilderpublic 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;getTextEvents in interface PublishEventsRequestOrBuilderindex - The index of the element to return.public com.google.protobuf.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;getTextEventsBytes in interface PublishEventsRequestOrBuilderindex - The index of the value to return.public PublishEventsRequest.Builder setTextEvents(int index, String value)
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;index - The index to set the value at.value - The textEvents to set.public PublishEventsRequest.Builder addTextEvents(String value)
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;value - The textEvents to add.public PublishEventsRequest.Builder addAllTextEvents(Iterable<String> values)
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;values - The textEvents to add.public PublishEventsRequest.Builder clearTextEvents()
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;public PublishEventsRequest.Builder addTextEventsBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the textEvents to add.public final PublishEventsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>public final PublishEventsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PublishEventsRequest.Builder>Copyright © 2023 Google LLC. All rights reserved.