public final class EventTrigger extends com.google.protobuf.GeneratedMessageV3 implements EventTriggerOrBuilder
Describes EventTrigger, used to request events to be sent from another service.Protobuf type
google.cloud.functions.v2alpha.EventTrigger| Modifier and Type | Class and Description |
|---|---|
static class |
EventTrigger.Builder
Describes EventTrigger, used to request events to be sent from another
service.
|
static class |
EventTrigger.RetryPolicy
Describes the retry policy in case of function's execution failure.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CHANNEL_FIELD_NUMBER |
static int |
EVENT_FILTERS_FIELD_NUMBER |
static int |
EVENT_TYPE_FIELD_NUMBER |
static int |
PUBSUB_TOPIC_FIELD_NUMBER |
static int |
RETRY_POLICY_FIELD_NUMBER |
static int |
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER |
static int |
TRIGGER_FIELD_NUMBER |
static int |
TRIGGER_REGION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getChannel()
Optional.
|
com.google.protobuf.ByteString |
getChannelBytes()
Optional.
|
static EventTrigger |
getDefaultInstance() |
EventTrigger |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
EventFilter |
getEventFilters(int index)
Criteria used to filter events.
|
int |
getEventFiltersCount()
Criteria used to filter events.
|
List<EventFilter> |
getEventFiltersList()
Criteria used to filter events.
|
EventFilterOrBuilder |
getEventFiltersOrBuilder(int index)
Criteria used to filter events.
|
List<? extends EventFilterOrBuilder> |
getEventFiltersOrBuilderList()
Criteria used to filter events.
|
String |
getEventType()
Required.
|
com.google.protobuf.ByteString |
getEventTypeBytes()
Required.
|
com.google.protobuf.Parser<EventTrigger> |
getParserForType() |
String |
getPubsubTopic()
Optional.
|
com.google.protobuf.ByteString |
getPubsubTopicBytes()
Optional.
|
EventTrigger.RetryPolicy |
getRetryPolicy()
Optional.
|
int |
getRetryPolicyValue()
Optional.
|
int |
getSerializedSize() |
String |
getServiceAccountEmail()
Optional.
|
com.google.protobuf.ByteString |
getServiceAccountEmailBytes()
Optional.
|
String |
getTrigger()
Output only.
|
com.google.protobuf.ByteString |
getTriggerBytes()
Output only.
|
String |
getTriggerRegion()
The region that the trigger will be in.
|
com.google.protobuf.ByteString |
getTriggerRegionBytes()
The region that the trigger will be in.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static EventTrigger.Builder |
newBuilder() |
static EventTrigger.Builder |
newBuilder(EventTrigger prototype) |
EventTrigger.Builder |
newBuilderForType() |
protected EventTrigger.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static EventTrigger |
parseDelimitedFrom(InputStream input) |
static EventTrigger |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventTrigger |
parseFrom(byte[] data) |
static EventTrigger |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventTrigger |
parseFrom(ByteBuffer data) |
static EventTrigger |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventTrigger |
parseFrom(com.google.protobuf.ByteString data) |
static EventTrigger |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventTrigger |
parseFrom(com.google.protobuf.CodedInputStream input) |
static EventTrigger |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventTrigger |
parseFrom(InputStream input) |
static EventTrigger |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<EventTrigger> |
parser() |
EventTrigger.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TRIGGER_FIELD_NUMBER
public static final int TRIGGER_REGION_FIELD_NUMBER
public static final int EVENT_TYPE_FIELD_NUMBER
public static final int EVENT_FILTERS_FIELD_NUMBER
public static final int PUBSUB_TOPIC_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int RETRY_POLICY_FIELD_NUMBER
public static final int CHANNEL_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getTrigger()
Output only. The resource name of the Eventarc trigger. The format of this
field is `projects/{project}/locations/{region}/triggers/{trigger}`.
string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getTrigger in interface EventTriggerOrBuilderpublic com.google.protobuf.ByteString getTriggerBytes()
Output only. The resource name of the Eventarc trigger. The format of this
field is `projects/{project}/locations/{region}/triggers/{trigger}`.
string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getTriggerBytes in interface EventTriggerOrBuilderpublic String getTriggerRegion()
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
string trigger_region = 2;getTriggerRegion in interface EventTriggerOrBuilderpublic com.google.protobuf.ByteString getTriggerRegionBytes()
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
string trigger_region = 2;getTriggerRegionBytes in interface EventTriggerOrBuilderpublic String getEventType()
Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
string event_type = 3 [(.google.api.field_behavior) = REQUIRED];getEventType in interface EventTriggerOrBuilderpublic com.google.protobuf.ByteString getEventTypeBytes()
Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
string event_type = 3 [(.google.api.field_behavior) = REQUIRED];getEventTypeBytes in interface EventTriggerOrBuilderpublic List<EventFilter> getEventFiltersList()
Criteria used to filter events.
repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4;getEventFiltersList in interface EventTriggerOrBuilderpublic List<? extends EventFilterOrBuilder> getEventFiltersOrBuilderList()
Criteria used to filter events.
repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4;getEventFiltersOrBuilderList in interface EventTriggerOrBuilderpublic int getEventFiltersCount()
Criteria used to filter events.
repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4;getEventFiltersCount in interface EventTriggerOrBuilderpublic EventFilter getEventFilters(int index)
Criteria used to filter events.
repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4;getEventFilters in interface EventTriggerOrBuilderpublic EventFilterOrBuilder getEventFiltersOrBuilder(int index)
Criteria used to filter events.
repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4;getEventFiltersOrBuilder in interface EventTriggerOrBuilderpublic String getPubsubTopic()
Optional. The name of a Pub/Sub topic in the same project that will be used
as the transport topic for the event delivery. Format:
`projects/{project}/topics/{topic}`.
This is only valid for events of type
`google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here
will not be deleted at function deletion.
string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getPubsubTopic in interface EventTriggerOrBuilderpublic com.google.protobuf.ByteString getPubsubTopicBytes()
Optional. The name of a Pub/Sub topic in the same project that will be used
as the transport topic for the event delivery. Format:
`projects/{project}/topics/{topic}`.
This is only valid for events of type
`google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here
will not be deleted at function deletion.
string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getPubsubTopicBytes in interface EventTriggerOrBuilderpublic String getServiceAccountEmail()
Optional. The email of the trigger's service account. The service account
must have permission to invoke Cloud Run services, the permission is
`run.routes.invoke`.
If empty, defaults to the Compute Engine default service account:
`{project_number}-compute@developer.gserviceaccount.com`.
string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];getServiceAccountEmail in interface EventTriggerOrBuilderpublic com.google.protobuf.ByteString getServiceAccountEmailBytes()
Optional. The email of the trigger's service account. The service account
must have permission to invoke Cloud Run services, the permission is
`run.routes.invoke`.
If empty, defaults to the Compute Engine default service account:
`{project_number}-compute@developer.gserviceaccount.com`.
string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];getServiceAccountEmailBytes in interface EventTriggerOrBuilderpublic int getRetryPolicyValue()
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
getRetryPolicyValue in interface EventTriggerOrBuilderpublic EventTrigger.RetryPolicy getRetryPolicy()
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
getRetryPolicy in interface EventTriggerOrBuilderpublic String getChannel()
Optional. The name of the channel associated with the trigger in
`projects/{project}/locations/{location}/channels/{channel}` format.
You must provide a channel to receive events from Eventarc SaaS partners.
string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getChannel in interface EventTriggerOrBuilderpublic com.google.protobuf.ByteString getChannelBytes()
Optional. The name of the channel associated with the trigger in
`projects/{project}/locations/{location}/channels/{channel}` format.
You must provide a channel to receive events from Eventarc SaaS partners.
string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getChannelBytes in interface EventTriggerOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static EventTrigger parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventTrigger parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventTrigger parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventTrigger parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventTrigger parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventTrigger parseFrom(InputStream input) throws IOException
IOExceptionpublic static EventTrigger parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EventTrigger parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static EventTrigger parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EventTrigger parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static EventTrigger parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic EventTrigger.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static EventTrigger.Builder newBuilder()
public static EventTrigger.Builder newBuilder(EventTrigger prototype)
public EventTrigger.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected EventTrigger.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static EventTrigger getDefaultInstance()
public static com.google.protobuf.Parser<EventTrigger> parser()
public com.google.protobuf.Parser<EventTrigger> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public EventTrigger getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.