Package com.google.cloud.functions.v2
Class EventTrigger
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.functions.v2.EventTrigger
-
- All Implemented Interfaces:
EventTriggerOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class EventTrigger extends com.google.protobuf.GeneratedMessageV3 implements EventTriggerOrBuilder
Describes EventTrigger, used to request events to be sent from another service.
Protobuf typegoogle.cloud.functions.v2.EventTrigger- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventTrigger.BuilderDescribes EventTrigger, used to request events to be sent from another service.static classEventTrigger.RetryPolicyDescribes the retry policy in case of function's execution failure.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCHANNEL_FIELD_NUMBERstatic intEVENT_FILTERS_FIELD_NUMBERstatic intEVENT_TYPE_FIELD_NUMBERstatic intPUBSUB_TOPIC_FIELD_NUMBERstatic intRETRY_POLICY_FIELD_NUMBERstatic intSERVICE_ACCOUNT_EMAIL_FIELD_NUMBERstatic intTRIGGER_FIELD_NUMBERstatic intTRIGGER_REGION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetChannel()Optional.com.google.protobuf.ByteStringgetChannelBytes()Optional.static EventTriggergetDefaultInstance()EventTriggergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()EventFiltergetEventFilters(int index)Criteria used to filter events.intgetEventFiltersCount()Criteria used to filter events.List<EventFilter>getEventFiltersList()Criteria used to filter events.EventFilterOrBuildergetEventFiltersOrBuilder(int index)Criteria used to filter events.List<? extends EventFilterOrBuilder>getEventFiltersOrBuilderList()Criteria used to filter events.StringgetEventType()Required.com.google.protobuf.ByteStringgetEventTypeBytes()Required.com.google.protobuf.Parser<EventTrigger>getParserForType()StringgetPubsubTopic()Optional.com.google.protobuf.ByteStringgetPubsubTopicBytes()Optional.EventTrigger.RetryPolicygetRetryPolicy()Optional.intgetRetryPolicyValue()Optional.intgetSerializedSize()StringgetServiceAccountEmail()Optional.com.google.protobuf.ByteStringgetServiceAccountEmailBytes()Optional.StringgetTrigger()Output only.com.google.protobuf.ByteStringgetTriggerBytes()Output only.StringgetTriggerRegion()The region that the trigger will be in.com.google.protobuf.ByteStringgetTriggerRegionBytes()The region that the trigger will be in.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static EventTrigger.BuildernewBuilder()static EventTrigger.BuildernewBuilder(EventTrigger prototype)EventTrigger.BuildernewBuilderForType()protected EventTrigger.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()EventTrigger.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TRIGGER_FIELD_NUMBER
public static final int TRIGGER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRIGGER_REGION_FIELD_NUMBER
public static final int TRIGGER_REGION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVENT_TYPE_FIELD_NUMBER
public static final int EVENT_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVENT_FILTERS_FIELD_NUMBER
public static final int EVENT_FILTERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PUBSUB_TOPIC_FIELD_NUMBER
public static final int PUBSUB_TOPIC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RETRY_POLICY_FIELD_NUMBER
public static final int RETRY_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CHANNEL_FIELD_NUMBER
public static final int CHANNEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTrigger
public 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) = { ... }- 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
public 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;- 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
public 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];- 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
public List<EventFilter> getEventFiltersList()
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;- Specified by:
getEventFiltersListin interfaceEventTriggerOrBuilder
-
getEventFiltersOrBuilderList
public List<? extends EventFilterOrBuilder> getEventFiltersOrBuilderList()
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;- Specified by:
getEventFiltersOrBuilderListin interfaceEventTriggerOrBuilder
-
getEventFiltersCount
public int getEventFiltersCount()
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;- Specified by:
getEventFiltersCountin interfaceEventTriggerOrBuilder
-
getEventFilters
public EventFilter getEventFilters(int index)
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;- Specified by:
getEventFiltersin interfaceEventTriggerOrBuilder
-
getEventFiltersOrBuilder
public EventFilterOrBuilder getEventFiltersOrBuilder(int index)
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;- Specified by:
getEventFiltersOrBuilderin interfaceEventTriggerOrBuilder
-
getPubsubTopic
public 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) = { ... }- 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
public 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];- 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.v2.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
public EventTrigger.RetryPolicy getRetryPolicy()
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
.google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetryPolicyin interfaceEventTriggerOrBuilder- Returns:
- The retryPolicy.
-
getChannel
public 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) = { ... }- 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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static EventTrigger parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static EventTrigger parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static EventTrigger parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static EventTrigger parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static EventTrigger parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static EventTrigger parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public EventTrigger.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static EventTrigger.Builder newBuilder()
-
newBuilder
public static EventTrigger.Builder newBuilder(EventTrigger prototype)
-
toBuilder
public EventTrigger.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EventTrigger.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static EventTrigger getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<EventTrigger> parser()
-
getParserForType
public com.google.protobuf.Parser<EventTrigger> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public EventTrigger getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-