Package com.google.cloud.functions.v1
Class EventTrigger.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
- com.google.cloud.functions.v1.EventTrigger.Builder
-
- All Implemented Interfaces:
EventTriggerOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EventTrigger
public static final class EventTrigger.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder> implements EventTriggerOrBuilder
Describes EventTrigger, used to request that events be sent from another service.
Protobuf typegoogle.cloud.functions.v1.EventTrigger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventTrigger.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EventTriggerbuild()EventTriggerbuildPartial()EventTrigger.Builderclear()EventTrigger.BuilderclearEventType()Required.EventTrigger.BuilderclearFailurePolicy()Specifies policy for failed executions.EventTrigger.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)EventTrigger.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)EventTrigger.BuilderclearResource()Required.EventTrigger.BuilderclearService()The hostname of the service that should be observed.EventTrigger.Builderclone()EventTriggergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEventType()Required.com.google.protobuf.ByteStringgetEventTypeBytes()Required.FailurePolicygetFailurePolicy()Specifies policy for failed executions.FailurePolicy.BuildergetFailurePolicyBuilder()Specifies policy for failed executions.FailurePolicyOrBuildergetFailurePolicyOrBuilder()Specifies policy for failed executions.StringgetResource()Required.com.google.protobuf.ByteStringgetResourceBytes()Required.StringgetService()The hostname of the service that should be observed.com.google.protobuf.ByteStringgetServiceBytes()The hostname of the service that should be observed.booleanhasFailurePolicy()Specifies policy for failed executions.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()EventTrigger.BuildermergeFailurePolicy(FailurePolicy value)Specifies policy for failed executions.EventTrigger.BuildermergeFrom(EventTrigger other)EventTrigger.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)EventTrigger.BuildermergeFrom(com.google.protobuf.Message other)EventTrigger.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)EventTrigger.BuildersetEventType(String value)Required.EventTrigger.BuildersetEventTypeBytes(com.google.protobuf.ByteString value)Required.EventTrigger.BuildersetFailurePolicy(FailurePolicy value)Specifies policy for failed executions.EventTrigger.BuildersetFailurePolicy(FailurePolicy.Builder builderForValue)Specifies policy for failed executions.EventTrigger.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EventTrigger.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)EventTrigger.BuildersetResource(String value)Required.EventTrigger.BuildersetResourceBytes(com.google.protobuf.ByteString value)Required.EventTrigger.BuildersetService(String value)The hostname of the service that should be observed.EventTrigger.BuildersetServiceBytes(com.google.protobuf.ByteString value)The hostname of the service that should be observed.EventTrigger.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<EventTrigger.Builder>
-
clear
public EventTrigger.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
getDefaultInstanceForType
public EventTrigger getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public EventTrigger build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EventTrigger buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EventTrigger.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
setField
public EventTrigger.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
clearField
public EventTrigger.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
clearOneof
public EventTrigger.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
setRepeatedField
public EventTrigger.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
addRepeatedField
public EventTrigger.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
mergeFrom
public EventTrigger.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EventTrigger.Builder>
-
mergeFrom
public EventTrigger.Builder mergeFrom(EventTrigger other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
mergeFrom
public EventTrigger.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EventTrigger.Builder>- Throws:
IOException
-
getEventType
public 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 lowercase.string event_type = 1;- Specified by:
getEventTypein interfaceEventTriggerOrBuilder- Returns:
- The eventType.
-
getEventTypeBytes
public 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 lowercase.string event_type = 1;- Specified by:
getEventTypeBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for eventType.
-
setEventType
public 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 lowercase.string event_type = 1;- Parameters:
value- The eventType to set.- Returns:
- This builder for chaining.
-
clearEventType
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 lowercase.string event_type = 1;- Returns:
- This builder for chaining.
-
setEventTypeBytes
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 lowercase.string event_type = 1;- Parameters:
value- The bytes for eventType to set.- Returns:
- This builder for chaining.
-
getResource
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 are always returned in the normalized "long" format. See each *service's* documentation for supported formats.string resource = 2;- Specified by:
getResourcein interfaceEventTriggerOrBuilder- Returns:
- The resource.
-
getResourceBytes
public 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 are always returned in the normalized "long" format. See each *service's* documentation for supported formats.string resource = 2;- Specified by:
getResourceBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for resource.
-
setResource
public 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 are always returned in the normalized "long" format. See each *service's* documentation for supported formats.string resource = 2;- Parameters:
value- The resource to set.- Returns:
- This builder for chaining.
-
clearResource
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 are always returned in the normalized "long" format. See each *service's* documentation for supported formats.string resource = 2;- Returns:
- This builder for chaining.
-
setResourceBytes
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 are always returned in the normalized "long" format. See each *service's* documentation for supported formats.string resource = 2;- Parameters:
value- The bytes for resource to set.- Returns:
- This builder for chaining.
-
getService
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;- Specified by:
getServicein interfaceEventTriggerOrBuilder- Returns:
- The service.
-
getServiceBytes
public 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;- Specified by:
getServiceBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for service.
-
setService
public 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;- Parameters:
value- The service to set.- Returns:
- This builder for chaining.
-
clearService
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;- Returns:
- This builder for chaining.
-
setServiceBytes
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;- Parameters:
value- The bytes for service to set.- Returns:
- This builder for chaining.
-
hasFailurePolicy
public boolean hasFailurePolicy()
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;- Specified by:
hasFailurePolicyin interfaceEventTriggerOrBuilder- Returns:
- Whether the failurePolicy field is set.
-
getFailurePolicy
public FailurePolicy getFailurePolicy()
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;- Specified by:
getFailurePolicyin interfaceEventTriggerOrBuilder- Returns:
- The failurePolicy.
-
setFailurePolicy
public EventTrigger.Builder setFailurePolicy(FailurePolicy value)
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;
-
setFailurePolicy
public EventTrigger.Builder setFailurePolicy(FailurePolicy.Builder builderForValue)
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;
-
mergeFailurePolicy
public EventTrigger.Builder mergeFailurePolicy(FailurePolicy value)
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;
-
clearFailurePolicy
public EventTrigger.Builder clearFailurePolicy()
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;
-
getFailurePolicyBuilder
public FailurePolicy.Builder getFailurePolicyBuilder()
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;
-
getFailurePolicyOrBuilder
public FailurePolicyOrBuilder getFailurePolicyOrBuilder()
Specifies policy for failed executions.
.google.cloud.functions.v1.FailurePolicy failure_policy = 5;- Specified by:
getFailurePolicyOrBuilderin interfaceEventTriggerOrBuilder
-
setUnknownFields
public final EventTrigger.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
mergeUnknownFields
public final EventTrigger.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
-
-