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 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.-
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 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(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 EventTrigger
parseFrom(ByteBuffer data)
static EventTrigger
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<EventTrigger>
parser()
EventTrigger.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getTrigger
in 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:
getTriggerBytes
in 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:
getTriggerRegion
in 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:
getTriggerRegionBytes
in 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:
getEventType
in 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:
getEventTypeBytes
in 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:
getEventFiltersList
in interfaceEventTriggerOrBuilder
-
getEventFiltersOrBuilderList
public List<? extends EventFilterOrBuilder> getEventFiltersOrBuilderList()
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;
- Specified by:
getEventFiltersOrBuilderList
in interfaceEventTriggerOrBuilder
-
getEventFiltersCount
public int getEventFiltersCount()
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;
- Specified by:
getEventFiltersCount
in interfaceEventTriggerOrBuilder
-
getEventFilters
public EventFilter getEventFilters(int index)
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;
- Specified by:
getEventFilters
in interfaceEventTriggerOrBuilder
-
getEventFiltersOrBuilder
public EventFilterOrBuilder getEventFiltersOrBuilder(int index)
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;
- Specified by:
getEventFiltersOrBuilder
in 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:
getPubsubTopic
in 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:
getPubsubTopicBytes
in 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:
getServiceAccountEmail
in 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:
getServiceAccountEmailBytes
in 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:
getRetryPolicyValue
in 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:
getRetryPolicy
in 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:
getChannel
in 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:
getChannelBytes
in interfaceEventTriggerOrBuilder
- Returns:
- The bytes for channel.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EventTrigger.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public EventTrigger getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-