public static final class EventTrigger.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder> implements EventTriggerOrBuilder
Describes EventTrigger, used to request events be sent from another service.Protobuf type
google.cloud.functions.v1.EventTrigger| Modifier and Type | Method and Description |
|---|---|
EventTrigger.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EventTrigger |
build() |
EventTrigger |
buildPartial() |
EventTrigger.Builder |
clear() |
EventTrigger.Builder |
clearEventType()
Required.
|
EventTrigger.Builder |
clearFailurePolicy()
Specifies policy for failed executions.
|
EventTrigger.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
EventTrigger.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
EventTrigger.Builder |
clearResource()
Required.
|
EventTrigger.Builder |
clearService()
The hostname of the service that should be observed.
|
EventTrigger.Builder |
clone() |
EventTrigger |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEventType()
Required.
|
com.google.protobuf.ByteString |
getEventTypeBytes()
Required.
|
FailurePolicy |
getFailurePolicy()
Specifies policy for failed executions.
|
FailurePolicy.Builder |
getFailurePolicyBuilder()
Specifies policy for failed executions.
|
FailurePolicyOrBuilder |
getFailurePolicyOrBuilder()
Specifies policy for failed executions.
|
String |
getResource()
Required.
|
com.google.protobuf.ByteString |
getResourceBytes()
Required.
|
String |
getService()
The hostname of the service that should be observed.
|
com.google.protobuf.ByteString |
getServiceBytes()
The hostname of the service that should be observed.
|
boolean |
hasFailurePolicy()
Specifies policy for failed executions.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
EventTrigger.Builder |
mergeFailurePolicy(FailurePolicy value)
Specifies policy for failed executions.
|
EventTrigger.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EventTrigger.Builder |
mergeFrom(EventTrigger other) |
EventTrigger.Builder |
mergeFrom(com.google.protobuf.Message other) |
EventTrigger.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EventTrigger.Builder |
setEventType(String value)
Required.
|
EventTrigger.Builder |
setEventTypeBytes(com.google.protobuf.ByteString value)
Required.
|
EventTrigger.Builder |
setFailurePolicy(FailurePolicy.Builder builderForValue)
Specifies policy for failed executions.
|
EventTrigger.Builder |
setFailurePolicy(FailurePolicy value)
Specifies policy for failed executions.
|
EventTrigger.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EventTrigger.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
EventTrigger.Builder |
setResource(String value)
Required.
|
EventTrigger.Builder |
setResourceBytes(com.google.protobuf.ByteString value)
Required.
|
EventTrigger.Builder |
setService(String value)
The hostname of the service that should be observed.
|
EventTrigger.Builder |
setServiceBytes(com.google.protobuf.ByteString value)
The hostname of the service that should be observed.
|
EventTrigger.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<EventTrigger.Builder>public EventTrigger.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.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<EventTrigger.Builder>public EventTrigger getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic EventTrigger build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic EventTrigger buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic EventTrigger.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>public EventTrigger.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<EventTrigger.Builder>public EventTrigger.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>public EventTrigger.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>public EventTrigger.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<EventTrigger.Builder>public EventTrigger.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<EventTrigger.Builder>public EventTrigger.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EventTrigger.Builder>public EventTrigger.Builder mergeFrom(EventTrigger other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>public EventTrigger.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<EventTrigger.Builder>IOExceptionpublic String getEventType()
Required. The type of event to observe. For example:
`providers/cloud.storage/eventTypes/object.change` and
`providers/cloud.pubsub/eventTypes/topic.publish`.
Event types match pattern `providers/*/eventTypes/*.*`.
The pattern contains:
1. namespace: For example, `cloud.storage` and
`google.firebase.analytics`.
2. resource type: The type of resource on which event occurs. For
example, the Google Cloud Storage API includes the type `object`.
3. action: The action that generates the event. For example, action for
a Google Cloud Storage Object is 'change'.
These parts are lower case.
string event_type = 1;getEventType in interface EventTriggerOrBuilderpublic com.google.protobuf.ByteString getEventTypeBytes()
Required. The type of event to observe. For example:
`providers/cloud.storage/eventTypes/object.change` and
`providers/cloud.pubsub/eventTypes/topic.publish`.
Event types match pattern `providers/*/eventTypes/*.*`.
The pattern contains:
1. namespace: For example, `cloud.storage` and
`google.firebase.analytics`.
2. resource type: The type of resource on which event occurs. For
example, the Google Cloud Storage API includes the type `object`.
3. action: The action that generates the event. For example, action for
a Google Cloud Storage Object is 'change'.
These parts are lower case.
string event_type = 1;getEventTypeBytes in interface EventTriggerOrBuilderpublic EventTrigger.Builder setEventType(String value)
Required. The type of event to observe. For example:
`providers/cloud.storage/eventTypes/object.change` and
`providers/cloud.pubsub/eventTypes/topic.publish`.
Event types match pattern `providers/*/eventTypes/*.*`.
The pattern contains:
1. namespace: For example, `cloud.storage` and
`google.firebase.analytics`.
2. resource type: The type of resource on which event occurs. For
example, the Google Cloud Storage API includes the type `object`.
3. action: The action that generates the event. For example, action for
a Google Cloud Storage Object is 'change'.
These parts are lower case.
string event_type = 1;value - The eventType to set.public EventTrigger.Builder clearEventType()
Required. The type of event to observe. For example:
`providers/cloud.storage/eventTypes/object.change` and
`providers/cloud.pubsub/eventTypes/topic.publish`.
Event types match pattern `providers/*/eventTypes/*.*`.
The pattern contains:
1. namespace: For example, `cloud.storage` and
`google.firebase.analytics`.
2. resource type: The type of resource on which event occurs. For
example, the Google Cloud Storage API includes the type `object`.
3. action: The action that generates the event. For example, action for
a Google Cloud Storage Object is 'change'.
These parts are lower case.
string event_type = 1;public EventTrigger.Builder setEventTypeBytes(com.google.protobuf.ByteString value)
Required. The type of event to observe. For example:
`providers/cloud.storage/eventTypes/object.change` and
`providers/cloud.pubsub/eventTypes/topic.publish`.
Event types match pattern `providers/*/eventTypes/*.*`.
The pattern contains:
1. namespace: For example, `cloud.storage` and
`google.firebase.analytics`.
2. resource type: The type of resource on which event occurs. For
example, the Google Cloud Storage API includes the type `object`.
3. action: The action that generates the event. For example, action for
a Google Cloud Storage Object is 'change'.
These parts are lower case.
string event_type = 1;value - The bytes for eventType to set.public String getResource()
Required. The resource(s) from which to observe events, for example,
`projects/_/buckets/myBucket`.
Not all syntactically correct values are accepted by all services. For
example:
1. The authorization model must support it. Google Cloud Functions
only allows EventTriggers to be deployed that observe resources in the
same project as the `CloudFunction`.
2. The resource type must match the pattern expected for an
`event_type`. For example, an `EventTrigger` that has an
`event_type` of "google.pubsub.topic.publish" should have a resource
that matches Google Cloud Pub/Sub topics.
Additionally, some services may support short names when creating an
`EventTrigger`. These will always be returned in the normalized "long"
format.
See each *service's* documentation for supported formats.
string resource = 2;getResource in interface EventTriggerOrBuilderpublic com.google.protobuf.ByteString getResourceBytes()
Required. The resource(s) from which to observe events, for example,
`projects/_/buckets/myBucket`.
Not all syntactically correct values are accepted by all services. For
example:
1. The authorization model must support it. Google Cloud Functions
only allows EventTriggers to be deployed that observe resources in the
same project as the `CloudFunction`.
2. The resource type must match the pattern expected for an
`event_type`. For example, an `EventTrigger` that has an
`event_type` of "google.pubsub.topic.publish" should have a resource
that matches Google Cloud Pub/Sub topics.
Additionally, some services may support short names when creating an
`EventTrigger`. These will always be returned in the normalized "long"
format.
See each *service's* documentation for supported formats.
string resource = 2;getResourceBytes in interface EventTriggerOrBuilderpublic EventTrigger.Builder setResource(String value)
Required. The resource(s) from which to observe events, for example,
`projects/_/buckets/myBucket`.
Not all syntactically correct values are accepted by all services. For
example:
1. The authorization model must support it. Google Cloud Functions
only allows EventTriggers to be deployed that observe resources in the
same project as the `CloudFunction`.
2. The resource type must match the pattern expected for an
`event_type`. For example, an `EventTrigger` that has an
`event_type` of "google.pubsub.topic.publish" should have a resource
that matches Google Cloud Pub/Sub topics.
Additionally, some services may support short names when creating an
`EventTrigger`. These will always be returned in the normalized "long"
format.
See each *service's* documentation for supported formats.
string resource = 2;value - The resource to set.public EventTrigger.Builder clearResource()
Required. The resource(s) from which to observe events, for example,
`projects/_/buckets/myBucket`.
Not all syntactically correct values are accepted by all services. For
example:
1. The authorization model must support it. Google Cloud Functions
only allows EventTriggers to be deployed that observe resources in the
same project as the `CloudFunction`.
2. The resource type must match the pattern expected for an
`event_type`. For example, an `EventTrigger` that has an
`event_type` of "google.pubsub.topic.publish" should have a resource
that matches Google Cloud Pub/Sub topics.
Additionally, some services may support short names when creating an
`EventTrigger`. These will always be returned in the normalized "long"
format.
See each *service's* documentation for supported formats.
string resource = 2;public EventTrigger.Builder setResourceBytes(com.google.protobuf.ByteString value)
Required. The resource(s) from which to observe events, for example,
`projects/_/buckets/myBucket`.
Not all syntactically correct values are accepted by all services. For
example:
1. The authorization model must support it. Google Cloud Functions
only allows EventTriggers to be deployed that observe resources in the
same project as the `CloudFunction`.
2. The resource type must match the pattern expected for an
`event_type`. For example, an `EventTrigger` that has an
`event_type` of "google.pubsub.topic.publish" should have a resource
that matches Google Cloud Pub/Sub topics.
Additionally, some services may support short names when creating an
`EventTrigger`. These will always be returned in the normalized "long"
format.
See each *service's* documentation for supported formats.
string resource = 2;value - The bytes for resource to set.public String getService()
The hostname of the service that 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.
string service = 3;getService in interface EventTriggerOrBuilderpublic com.google.protobuf.ByteString getServiceBytes()
The hostname of the service that 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.
string service = 3;getServiceBytes in interface EventTriggerOrBuilderpublic EventTrigger.Builder setService(String value)
The hostname of the service that 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.
string service = 3;value - The service to set.public EventTrigger.Builder clearService()
The hostname of the service that 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.
string service = 3;public EventTrigger.Builder setServiceBytes(com.google.protobuf.ByteString value)
The hostname of the service that 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.
string service = 3;value - The bytes for service to set.public boolean hasFailurePolicy()
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;hasFailurePolicy in interface EventTriggerOrBuilderpublic FailurePolicy getFailurePolicy()
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;getFailurePolicy in interface EventTriggerOrBuilderpublic EventTrigger.Builder setFailurePolicy(FailurePolicy value)
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;public EventTrigger.Builder setFailurePolicy(FailurePolicy.Builder builderForValue)
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;public EventTrigger.Builder mergeFailurePolicy(FailurePolicy value)
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;public EventTrigger.Builder clearFailurePolicy()
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;public FailurePolicy.Builder getFailurePolicyBuilder()
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;public FailurePolicyOrBuilder getFailurePolicyOrBuilder()
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;getFailurePolicyOrBuilder in interface EventTriggerOrBuilderpublic final EventTrigger.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>public final EventTrigger.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>Copyright © 2024 Google LLC. All rights reserved.