Class EventTrigger
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.functions.v2beta.EventTrigger
- All Implemented Interfaces:
EventTriggerOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class EventTrigger
extends com.google.protobuf.GeneratedMessage
implements EventTriggerOrBuilder
Describes EventTrigger, used to request events to be sent from another service.Protobuf type
google.cloud.functions.v2beta.EventTrigger- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescribes EventTrigger, used to request events to be sent from another service.static enumDescribes the retry policy in case of function's execution failure.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.com.google.protobuf.ByteStringOptional.static EventTriggerstatic final com.google.protobuf.Descriptors.DescriptorgetEventFilters(int index) Criteria used to filter events.intCriteria used to filter events.Criteria used to filter events.getEventFiltersOrBuilder(int index) Criteria used to filter events.List<? extends EventFilterOrBuilder>Criteria used to filter events.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<EventTrigger>Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.intOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.ByteStringOptional.Output only.com.google.protobuf.ByteStringOutput only.The region that the trigger will be in.com.google.protobuf.ByteStringThe region that the trigger will be in.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic EventTrigger.Builderstatic EventTrigger.BuildernewBuilder(EventTrigger prototype) protected EventTrigger.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static EventTriggerparseDelimitedFrom(InputStream input) static EventTriggerparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventTriggerparseFrom(byte[] data) static EventTriggerparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventTriggerparseFrom(com.google.protobuf.ByteString data) static EventTriggerparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventTriggerparseFrom(com.google.protobuf.CodedInputStream input) static EventTriggerparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventTriggerparseFrom(InputStream input) static EventTriggerparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventTriggerparseFrom(ByteBuffer data) static EventTriggerparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<EventTrigger>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TRIGGER_FIELD_NUMBER
public static final int TRIGGER_FIELD_NUMBER- See Also:
-
TRIGGER_REGION_FIELD_NUMBER
public static final int TRIGGER_REGION_FIELD_NUMBER- See Also:
-
EVENT_TYPE_FIELD_NUMBER
public static final int EVENT_TYPE_FIELD_NUMBER- See Also:
-
EVENT_FILTERS_FIELD_NUMBER
public static final int EVENT_FILTERS_FIELD_NUMBER- See Also:
-
PUBSUB_TOPIC_FIELD_NUMBER
public static final int PUBSUB_TOPIC_FIELD_NUMBER- See Also:
-
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER- See Also:
-
RETRY_POLICY_FIELD_NUMBER
public static final int RETRY_POLICY_FIELD_NUMBER- See Also:
-
CHANNEL_FIELD_NUMBER
public static final int CHANNEL_FIELD_NUMBER- See Also:
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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) = { ... }- Specified by:
getTriggerin interfaceEventTriggerOrBuilder- Returns:
- The trigger.
-
getTriggerBytes
public 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) = { ... }- Specified by:
getTriggerBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for trigger.
-
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;- Specified by:
getTriggerRegionin interfaceEventTriggerOrBuilder- Returns:
- The triggerRegion.
-
getTriggerRegionBytes
public 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;- Specified by:
getTriggerRegionBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for triggerRegion.
-
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];- Specified by:
getEventTypein interfaceEventTriggerOrBuilder- Returns:
- The eventType.
-
getEventTypeBytes
public 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];- Specified by:
getEventTypeBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for eventType.
-
getEventFiltersList
Criteria used to filter events.
repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;- Specified by:
getEventFiltersListin interfaceEventTriggerOrBuilder
-
getEventFiltersOrBuilderList
Criteria used to filter events.
repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;- Specified by:
getEventFiltersOrBuilderListin interfaceEventTriggerOrBuilder
-
getEventFiltersCount
public int getEventFiltersCount()Criteria used to filter events.
repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;- Specified by:
getEventFiltersCountin interfaceEventTriggerOrBuilder
-
getEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;- Specified by:
getEventFiltersin interfaceEventTriggerOrBuilder
-
getEventFiltersOrBuilder
Criteria used to filter events.
repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;- Specified by:
getEventFiltersOrBuilderin interfaceEventTriggerOrBuilder
-
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) = { ... }- Specified by:
getPubsubTopicin interfaceEventTriggerOrBuilder- Returns:
- The pubsubTopic.
-
getPubsubTopicBytes
public 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) = { ... }- Specified by:
getPubsubTopicBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for pubsubTopic.
-
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];- Specified by:
getServiceAccountEmailin interfaceEventTriggerOrBuilder- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
public 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];- Specified by:
getServiceAccountEmailBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for serviceAccountEmail.
-
getRetryPolicyValue
public int getRetryPolicyValue()Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
.google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetryPolicyValuein interfaceEventTriggerOrBuilder- Returns:
- The enum numeric value on the wire for retryPolicy.
-
getRetryPolicy
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
.google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetryPolicyin interfaceEventTriggerOrBuilder- Returns:
- The retryPolicy.
-
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) = { ... }- Specified by:
getChannelin interfaceEventTriggerOrBuilder- Returns:
- The channel.
-
getChannelBytes
public 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) = { ... }- Specified by:
getChannelBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for channel.
-
getService
Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
string service = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServicein interfaceEventTriggerOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
string service = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for service.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static EventTrigger parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventTrigger parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventTrigger parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventTrigger parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventTrigger parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static EventTrigger parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static EventTrigger parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static EventTrigger parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EventTrigger.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-