Package com.google.cloud.functions.v1
Class CloudFunction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CloudFunction.Builder>
com.google.cloud.functions.v1.CloudFunction.Builder
- All Implemented Interfaces:
CloudFunctionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CloudFunction
public static final class CloudFunction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CloudFunction.Builder>
implements CloudFunctionOrBuilder
Describes a Cloud Function that contains user computation executed in response to an event. It encapsulate function and triggers configurations.Protobuf type
google.cloud.functions.v1.CloudFunction-
Method Summary
Modifier and TypeMethodDescriptionaddAllSecretEnvironmentVariables(Iterable<? extends SecretEnvVar> values) Secret environment variables configuration.addAllSecretVolumes(Iterable<? extends SecretVolume> values) Secret volumes configuration.addSecretEnvironmentVariables(int index, SecretEnvVar value) Secret environment variables configuration.addSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue) Secret environment variables configuration.Secret environment variables configuration.addSecretEnvironmentVariables(SecretEnvVar.Builder builderForValue) Secret environment variables configuration.Secret environment variables configuration.addSecretEnvironmentVariablesBuilder(int index) Secret environment variables configuration.addSecretVolumes(int index, SecretVolume value) Secret volumes configuration.addSecretVolumes(int index, SecretVolume.Builder builderForValue) Secret volumes configuration.addSecretVolumes(SecretVolume value) Secret volumes configuration.addSecretVolumes(SecretVolume.Builder builderForValue) Secret volumes configuration.Secret volumes configuration.addSecretVolumesBuilder(int index) Secret volumes configuration.build()clear().google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;The amount of memory in MB available for a function.Output only.Output only.A service account the user provides for use with Cloud Build.Name of the Cloud Build Custom Worker Pool that should be used to build the function.User-provided description of a function.Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated.User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build.The name of the function (as defined in source code) that will be executed.A source that fires events in response to a condition in another service.An HTTPS endpoint type of source that can be triggered via URL.The ingress settings for the function, controlling what traffic can reach it.Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.The limit on the maximum number of function instances that may coexist at a given time.A lower bound for the number function instances that may coexist at a given time.A user-defined name of the function.Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated..google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;The runtime in which to run the function.Secret environment variables configuration.Secret volumes configuration.The email of the function's service account.The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.**Beta Feature** The source repository where a function is hosted.Input only.The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].Output only.The function execution timeout.Output only.Output only.The VPC Network Connector that this cloud function can connect to.The egress settings for the connector, controlling what traffic is diverted through it.booleanBuild environment variables that shall be available during build time.booleanEnvironment variables that shall be available during function execution.booleancontainsLabels(String key) Labels associated with this Cloud Function..google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;intThe amount of memory in MB available for a function.Deprecated.intBuild environment variables that shall be available during build time.Build environment variables that shall be available during build time.getBuildEnvironmentVariablesOrDefault(String key, String defaultValue) Build environment variables that shall be available during build time.Build environment variables that shall be available during build time.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.A service account the user provides for use with Cloud Build.com.google.protobuf.ByteStringA service account the user provides for use with Cloud Build.Name of the Cloud Build Custom Worker Pool that should be used to build the function.com.google.protobuf.ByteStringName of the Cloud Build Custom Worker Pool that should be used to build the function.User-provided description of a function.com.google.protobuf.ByteStringUser-provided description of a function.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated.intDeprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated.User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build.com.google.protobuf.ByteStringUser-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build.The name of the function (as defined in source code) that will be executed.com.google.protobuf.ByteStringThe name of the function (as defined in source code) that will be executed.Deprecated.intEnvironment variables that shall be available during function execution.Environment variables that shall be available during function execution.getEnvironmentVariablesOrDefault(String key, String defaultValue) Environment variables that shall be available during function execution.Environment variables that shall be available during function execution.A source that fires events in response to a condition in another service.A source that fires events in response to a condition in another service.A source that fires events in response to a condition in another service.An HTTPS endpoint type of source that can be triggered via URL.An HTTPS endpoint type of source that can be triggered via URL.An HTTPS endpoint type of source that can be triggered via URL.The ingress settings for the function, controlling what traffic can reach it.intThe ingress settings for the function, controlling what traffic can reach it.Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.com.google.protobuf.ByteStringResource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.Deprecated.intLabels associated with this Cloud Function.Labels associated with this Cloud Function.getLabelsOrDefault(String key, String defaultValue) Labels associated with this Cloud Function.getLabelsOrThrow(String key) Labels associated with this Cloud Function.intThe limit on the maximum number of function instances that may coexist at a given time.intA lower bound for the number function instances that may coexist at a given time.Deprecated.Deprecated.Deprecated.getName()A user-defined name of the function.com.google.protobuf.ByteStringA user-defined name of the function.Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.functions.v1.CloudFunction.network is deprecated..google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;The runtime in which to run the function.com.google.protobuf.ByteStringThe runtime in which to run the function.getSecretEnvironmentVariables(int index) Secret environment variables configuration.getSecretEnvironmentVariablesBuilder(int index) Secret environment variables configuration.Secret environment variables configuration.intSecret environment variables configuration.Secret environment variables configuration.getSecretEnvironmentVariablesOrBuilder(int index) Secret environment variables configuration.List<? extends SecretEnvVarOrBuilder>Secret environment variables configuration.getSecretVolumes(int index) Secret volumes configuration.getSecretVolumesBuilder(int index) Secret volumes configuration.Secret volumes configuration.intSecret volumes configuration.Secret volumes configuration.getSecretVolumesOrBuilder(int index) Secret volumes configuration.List<? extends SecretVolumeOrBuilder>Secret volumes configuration.The email of the function's service account.com.google.protobuf.ByteStringThe email of the function's service account.The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.com.google.protobuf.ByteStringThe Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.**Beta Feature** The source repository where a function is hosted.**Beta Feature** The source repository where a function is hosted.**Beta Feature** The source repository where a function is hosted.Input only.com.google.protobuf.ByteStringInput only.The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].com.google.protobuf.ByteStringThe Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].Output only.intOutput only.com.google.protobuf.DurationThe function execution timeout.com.google.protobuf.Duration.BuilderThe function execution timeout.com.google.protobuf.DurationOrBuilderThe function execution timeout.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.longOutput only.The VPC Network Connector that this cloud function can connect to.com.google.protobuf.ByteStringThe VPC Network Connector that this cloud function can connect to.The egress settings for the connector, controlling what traffic is diverted through it.intThe egress settings for the connector, controlling what traffic is diverted through it.boolean.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;booleanA source that fires events in response to a condition in another service.booleanAn HTTPS endpoint type of source that can be triggered via URL.boolean.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;booleanThe Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.boolean**Beta Feature** The source repository where a function is hosted.booleanThe Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].booleanThe function execution timeout.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final boolean.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;mergeEventTrigger(EventTrigger value) A source that fires events in response to a condition in another service.mergeFrom(CloudFunction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeHttpsTrigger(HttpsTrigger value) An HTTPS endpoint type of source that can be triggered via URL..google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;**Beta Feature** The source repository where a function is hosted.mergeTimeout(com.google.protobuf.Duration value) The function execution timeout.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllBuildEnvironmentVariables(Map<String, String> values) Build environment variables that shall be available during build time.putAllEnvironmentVariables(Map<String, String> values) Environment variables that shall be available during function execution.putAllLabels(Map<String, String> values) Labels associated with this Cloud Function.putBuildEnvironmentVariables(String key, String value) Build environment variables that shall be available during build time.putEnvironmentVariables(String key, String value) Environment variables that shall be available during function execution.Labels associated with this Cloud Function.Build environment variables that shall be available during build time.Environment variables that shall be available during function execution.removeLabels(String key) Labels associated with this Cloud Function.removeSecretEnvironmentVariables(int index) Secret environment variables configuration.removeSecretVolumes(int index) Secret volumes configuration..google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;setAutomaticUpdatePolicy(CloudFunction.AutomaticUpdatePolicy.Builder builderForValue) .google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;setAvailableMemoryMb(int value) The amount of memory in MB available for a function.setBuildId(String value) Output only.setBuildIdBytes(com.google.protobuf.ByteString value) Output only.setBuildName(String value) Output only.setBuildNameBytes(com.google.protobuf.ByteString value) Output only.setBuildServiceAccount(String value) A service account the user provides for use with Cloud Build.setBuildServiceAccountBytes(com.google.protobuf.ByteString value) A service account the user provides for use with Cloud Build.setBuildWorkerPool(String value) Name of the Cloud Build Custom Worker Pool that should be used to build the function.setBuildWorkerPoolBytes(com.google.protobuf.ByteString value) Name of the Cloud Build Custom Worker Pool that should be used to build the function.setDescription(String value) User-provided description of a function.setDescriptionBytes(com.google.protobuf.ByteString value) User-provided description of a function.Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated.setDockerRegistryValue(int value) Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated.setDockerRepository(String value) User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build.setDockerRepositoryBytes(com.google.protobuf.ByteString value) User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build.setEntryPoint(String value) The name of the function (as defined in source code) that will be executed.setEntryPointBytes(com.google.protobuf.ByteString value) The name of the function (as defined in source code) that will be executed.setEventTrigger(EventTrigger value) A source that fires events in response to a condition in another service.setEventTrigger(EventTrigger.Builder builderForValue) A source that fires events in response to a condition in another service.setHttpsTrigger(HttpsTrigger value) An HTTPS endpoint type of source that can be triggered via URL.setHttpsTrigger(HttpsTrigger.Builder builderForValue) An HTTPS endpoint type of source that can be triggered via URL.The ingress settings for the function, controlling what traffic can reach it.setIngressSettingsValue(int value) The ingress settings for the function, controlling what traffic can reach it.setKmsKeyName(String value) Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.setKmsKeyNameBytes(com.google.protobuf.ByteString value) Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.setMaxInstances(int value) The limit on the maximum number of function instances that may coexist at a given time.setMinInstances(int value) A lower bound for the number function instances that may coexist at a given time.A user-defined name of the function.setNameBytes(com.google.protobuf.ByteString value) A user-defined name of the function.setNetwork(String value) Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated.setNetworkBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated..google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;setOnDeployUpdatePolicy(CloudFunction.OnDeployUpdatePolicy.Builder builderForValue) .google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;setRuntime(String value) The runtime in which to run the function.setRuntimeBytes(com.google.protobuf.ByteString value) The runtime in which to run the function.setSecretEnvironmentVariables(int index, SecretEnvVar value) Secret environment variables configuration.setSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue) Secret environment variables configuration.setSecretVolumes(int index, SecretVolume value) Secret volumes configuration.setSecretVolumes(int index, SecretVolume.Builder builderForValue) Secret volumes configuration.setServiceAccountEmail(String value) The email of the function's service account.setServiceAccountEmailBytes(com.google.protobuf.ByteString value) The email of the function's service account.setSourceArchiveUrl(String value) The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.setSourceArchiveUrlBytes(com.google.protobuf.ByteString value) The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.**Beta Feature** The source repository where a function is hosted.setSourceRepository(SourceRepository.Builder builderForValue) **Beta Feature** The source repository where a function is hosted.setSourceToken(String value) Input only.setSourceTokenBytes(com.google.protobuf.ByteString value) Input only.setSourceUploadUrl(String value) The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].setSourceUploadUrlBytes(com.google.protobuf.ByteString value) The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].setStatus(CloudFunctionStatus value) Output only.setStatusValue(int value) Output only.setTimeout(com.google.protobuf.Duration value) The function execution timeout.setTimeout(com.google.protobuf.Duration.Builder builderForValue) The function execution timeout.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setVersionId(long value) Output only.setVpcConnector(String value) The VPC Network Connector that this cloud function can connect to.setVpcConnectorBytes(com.google.protobuf.ByteString value) The VPC Network Connector that this cloud function can connect to.The egress settings for the connector, controlling what traffic is diverted through it.setVpcConnectorEgressSettingsValue(int value) The egress settings for the connector, controlling what traffic is diverted through it.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CloudFunction.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CloudFunction.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CloudFunction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CloudFunction.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.GeneratedMessage.Builder<CloudFunction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudFunction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CloudFunction.Builder>
-
mergeFrom
public CloudFunction.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<CloudFunction.Builder>- Throws:
IOException
-
getSourceCodeCase
- Specified by:
getSourceCodeCasein interfaceCloudFunctionOrBuilder
-
clearSourceCode
-
getTriggerCase
- Specified by:
getTriggerCasein interfaceCloudFunctionOrBuilder
-
clearTrigger
-
getRuntimeUpdatePolicyCase
- Specified by:
getRuntimeUpdatePolicyCasein interfaceCloudFunctionOrBuilder
-
clearRuntimeUpdatePolicy
-
getName
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Specified by:
getNamein interfaceCloudFunctionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Specified by:
getNameBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for name.
-
setName
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
User-provided description of a function.
string description = 2;- Specified by:
getDescriptionin interfaceCloudFunctionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()User-provided description of a function.
string description = 2;- Specified by:
getDescriptionBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for description.
-
setDescription
User-provided description of a function.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
User-provided description of a function.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
User-provided description of a function.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasSourceArchiveUrl
public boolean hasSourceArchiveUrl()The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Specified by:
hasSourceArchiveUrlin interfaceCloudFunctionOrBuilder- Returns:
- Whether the sourceArchiveUrl field is set.
-
getSourceArchiveUrl
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Specified by:
getSourceArchiveUrlin interfaceCloudFunctionOrBuilder- Returns:
- The sourceArchiveUrl.
-
getSourceArchiveUrlBytes
public com.google.protobuf.ByteString getSourceArchiveUrlBytes()The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Specified by:
getSourceArchiveUrlBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for sourceArchiveUrl.
-
setSourceArchiveUrl
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Parameters:
value- The sourceArchiveUrl to set.- Returns:
- This builder for chaining.
-
clearSourceArchiveUrl
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Returns:
- This builder for chaining.
-
setSourceArchiveUrlBytes
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Parameters:
value- The bytes for sourceArchiveUrl to set.- Returns:
- This builder for chaining.
-
hasSourceRepository
public boolean hasSourceRepository()**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;- Specified by:
hasSourceRepositoryin interfaceCloudFunctionOrBuilder- Returns:
- Whether the sourceRepository field is set.
-
getSourceRepository
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;- Specified by:
getSourceRepositoryin interfaceCloudFunctionOrBuilder- Returns:
- The sourceRepository.
-
setSourceRepository
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4; -
setSourceRepository
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4; -
mergeSourceRepository
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4; -
clearSourceRepository
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4; -
getSourceRepositoryBuilder
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4; -
getSourceRepositoryOrBuilder
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;- Specified by:
getSourceRepositoryOrBuilderin interfaceCloudFunctionOrBuilder
-
hasSourceUploadUrl
public boolean hasSourceUploadUrl()The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Specified by:
hasSourceUploadUrlin interfaceCloudFunctionOrBuilder- Returns:
- Whether the sourceUploadUrl field is set.
-
getSourceUploadUrl
The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Specified by:
getSourceUploadUrlin interfaceCloudFunctionOrBuilder- Returns:
- The sourceUploadUrl.
-
getSourceUploadUrlBytes
public com.google.protobuf.ByteString getSourceUploadUrlBytes()The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Specified by:
getSourceUploadUrlBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for sourceUploadUrl.
-
setSourceUploadUrl
The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Parameters:
value- The sourceUploadUrl to set.- Returns:
- This builder for chaining.
-
clearSourceUploadUrl
The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Returns:
- This builder for chaining.
-
setSourceUploadUrlBytes
The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Parameters:
value- The bytes for sourceUploadUrl to set.- Returns:
- This builder for chaining.
-
hasHttpsTrigger
public boolean hasHttpsTrigger()An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;- Specified by:
hasHttpsTriggerin interfaceCloudFunctionOrBuilder- Returns:
- Whether the httpsTrigger field is set.
-
getHttpsTrigger
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;- Specified by:
getHttpsTriggerin interfaceCloudFunctionOrBuilder- Returns:
- The httpsTrigger.
-
setHttpsTrigger
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5; -
setHttpsTrigger
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5; -
mergeHttpsTrigger
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5; -
clearHttpsTrigger
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5; -
getHttpsTriggerBuilder
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5; -
getHttpsTriggerOrBuilder
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;- Specified by:
getHttpsTriggerOrBuilderin interfaceCloudFunctionOrBuilder
-
hasEventTrigger
public boolean hasEventTrigger()A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;- Specified by:
hasEventTriggerin interfaceCloudFunctionOrBuilder- Returns:
- Whether the eventTrigger field is set.
-
getEventTrigger
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;- Specified by:
getEventTriggerin interfaceCloudFunctionOrBuilder- Returns:
- The eventTrigger.
-
setEventTrigger
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6; -
setEventTrigger
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6; -
mergeEventTrigger
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6; -
clearEventTrigger
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6; -
getEventTriggerBuilder
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6; -
getEventTriggerOrBuilder
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;- Specified by:
getEventTriggerOrBuilderin interfaceCloudFunctionOrBuilder
-
getStatusValue
public int getStatusValue()Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceCloudFunctionOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceCloudFunctionOrBuilder- Returns:
- The status.
-
setStatus
Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getEntryPoint
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix (ID of the function), if not specified.
string entry_point = 8;- Specified by:
getEntryPointin interfaceCloudFunctionOrBuilder- Returns:
- The entryPoint.
-
getEntryPointBytes
public com.google.protobuf.ByteString getEntryPointBytes()The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix (ID of the function), if not specified.
string entry_point = 8;- Specified by:
getEntryPointBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for entryPoint.
-
setEntryPoint
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix (ID of the function), if not specified.
string entry_point = 8;- Parameters:
value- The entryPoint to set.- Returns:
- This builder for chaining.
-
clearEntryPoint
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix (ID of the function), if not specified.
string entry_point = 8;- Returns:
- This builder for chaining.
-
setEntryPointBytes
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix (ID of the function), if not specified.
string entry_point = 8;- Parameters:
value- The bytes for entryPoint to set.- Returns:
- This builder for chaining.
-
getRuntime
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Specified by:
getRuntimein interfaceCloudFunctionOrBuilder- Returns:
- The runtime.
-
getRuntimeBytes
public com.google.protobuf.ByteString getRuntimeBytes()The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Specified by:
getRuntimeBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for runtime.
-
setRuntime
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Parameters:
value- The runtime to set.- Returns:
- This builder for chaining.
-
clearRuntime
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Returns:
- This builder for chaining.
-
setRuntimeBytes
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Parameters:
value- The bytes for runtime to set.- Returns:
- This builder for chaining.
-
hasTimeout
public boolean hasTimeout()The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;- Specified by:
hasTimeoutin interfaceCloudFunctionOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;- Specified by:
getTimeoutin interfaceCloudFunctionOrBuilder- Returns:
- The timeout.
-
setTimeout
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9; -
setTimeout
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9; -
mergeTimeout
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9; -
clearTimeout
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9; -
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9; -
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;- Specified by:
getTimeoutOrBuilderin interfaceCloudFunctionOrBuilder
-
getAvailableMemoryMb
public int getAvailableMemoryMb()The amount of memory in MB available for a function. Defaults to 256MB.
int32 available_memory_mb = 10;- Specified by:
getAvailableMemoryMbin interfaceCloudFunctionOrBuilder- Returns:
- The availableMemoryMb.
-
setAvailableMemoryMb
The amount of memory in MB available for a function. Defaults to 256MB.
int32 available_memory_mb = 10;- Parameters:
value- The availableMemoryMb to set.- Returns:
- This builder for chaining.
-
clearAvailableMemoryMb
The amount of memory in MB available for a function. Defaults to 256MB.
int32 available_memory_mb = 10;- Returns:
- This builder for chaining.
-
getServiceAccountEmail
The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Specified by:
getServiceAccountEmailin interfaceCloudFunctionOrBuilder- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
public com.google.protobuf.ByteString getServiceAccountEmailBytes()The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Specified by:
getServiceAccountEmailBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for serviceAccountEmail.
-
setServiceAccountEmail
The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Parameters:
value- The serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
clearServiceAccountEmail
The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Returns:
- This builder for chaining.
-
setServiceAccountEmailBytes
The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Parameters:
value- The bytes for serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceCloudFunctionOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceCloudFunctionOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceCloudFunctionOrBuilder
-
getVersionId
public long getVersionId()Output only. The version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being created.
int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionIdin interfaceCloudFunctionOrBuilder- Returns:
- The versionId.
-
setVersionId
Output only. The version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being created.
int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The versionId to set.- Returns:
- This builder for chaining.
-
clearVersionId
Output only. The version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being created.
int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:CloudFunctionOrBuilderLabels associated with this Cloud Function.
map<string, string> labels = 15;- Specified by:
getLabelsCountin interfaceCloudFunctionOrBuilder
-
containsLabels
Labels associated with this Cloud Function.
map<string, string> labels = 15;- Specified by:
containsLabelsin interfaceCloudFunctionOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceCloudFunctionOrBuilder
-
getLabelsMap
Labels associated with this Cloud Function.
map<string, string> labels = 15;- Specified by:
getLabelsMapin interfaceCloudFunctionOrBuilder
-
getLabelsOrDefault
Labels associated with this Cloud Function.
map<string, string> labels = 15;- Specified by:
getLabelsOrDefaultin interfaceCloudFunctionOrBuilder
-
getLabelsOrThrow
Labels associated with this Cloud Function.
map<string, string> labels = 15;- Specified by:
getLabelsOrThrowin interfaceCloudFunctionOrBuilder
-
clearLabels
-
removeLabels
Labels associated with this Cloud Function.
map<string, string> labels = 15; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels associated with this Cloud Function.
map<string, string> labels = 15; -
putAllLabels
Labels associated with this Cloud Function.
map<string, string> labels = 15; -
getEnvironmentVariablesCount
public int getEnvironmentVariablesCount()Description copied from interface:CloudFunctionOrBuilderEnvironment variables that shall be available during function execution.
map<string, string> environment_variables = 17;- Specified by:
getEnvironmentVariablesCountin interfaceCloudFunctionOrBuilder
-
containsEnvironmentVariables
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;- Specified by:
containsEnvironmentVariablesin interfaceCloudFunctionOrBuilder
-
getEnvironmentVariables
Deprecated.UsegetEnvironmentVariablesMap()instead.- Specified by:
getEnvironmentVariablesin interfaceCloudFunctionOrBuilder
-
getEnvironmentVariablesMap
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;- Specified by:
getEnvironmentVariablesMapin interfaceCloudFunctionOrBuilder
-
getEnvironmentVariablesOrDefault
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;- Specified by:
getEnvironmentVariablesOrDefaultin interfaceCloudFunctionOrBuilder
-
getEnvironmentVariablesOrThrow
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;- Specified by:
getEnvironmentVariablesOrThrowin interfaceCloudFunctionOrBuilder
-
clearEnvironmentVariables
-
removeEnvironmentVariables
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17; -
getMutableEnvironmentVariables
Deprecated.Use alternate mutation accessors instead. -
putEnvironmentVariables
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17; -
putAllEnvironmentVariables
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17; -
getBuildEnvironmentVariablesCount
public int getBuildEnvironmentVariablesCount()Description copied from interface:CloudFunctionOrBuilderBuild environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;- Specified by:
getBuildEnvironmentVariablesCountin interfaceCloudFunctionOrBuilder
-
containsBuildEnvironmentVariables
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;- Specified by:
containsBuildEnvironmentVariablesin interfaceCloudFunctionOrBuilder
-
getBuildEnvironmentVariables
Deprecated.UsegetBuildEnvironmentVariablesMap()instead.- Specified by:
getBuildEnvironmentVariablesin interfaceCloudFunctionOrBuilder
-
getBuildEnvironmentVariablesMap
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;- Specified by:
getBuildEnvironmentVariablesMapin interfaceCloudFunctionOrBuilder
-
getBuildEnvironmentVariablesOrDefault
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;- Specified by:
getBuildEnvironmentVariablesOrDefaultin interfaceCloudFunctionOrBuilder
-
getBuildEnvironmentVariablesOrThrow
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;- Specified by:
getBuildEnvironmentVariablesOrThrowin interfaceCloudFunctionOrBuilder
-
clearBuildEnvironmentVariables
-
removeBuildEnvironmentVariables
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28; -
getMutableBuildEnvironmentVariables
Deprecated.Use alternate mutation accessors instead. -
putBuildEnvironmentVariables
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28; -
putAllBuildEnvironmentVariables
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28; -
getNetwork
Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated. See google/cloud/functions/v1/functions.proto;l=355Deprecated: use vpc_connector
string network = 18 [deprecated = true];- Specified by:
getNetworkin interfaceCloudFunctionOrBuilder- Returns:
- The network.
-
getNetworkBytes
Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated. See google/cloud/functions/v1/functions.proto;l=355Deprecated: use vpc_connector
string network = 18 [deprecated = true];- Specified by:
getNetworkBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for network.
-
setNetwork
Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated. See google/cloud/functions/v1/functions.proto;l=355Deprecated: use vpc_connector
string network = 18 [deprecated = true];- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated. See google/cloud/functions/v1/functions.proto;l=355Deprecated: use vpc_connector
string network = 18 [deprecated = true];- Returns:
- This builder for chaining.
-
setNetworkBytes
Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated. See google/cloud/functions/v1/functions.proto;l=355Deprecated: use vpc_connector
string network = 18 [deprecated = true];- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
getMaxInstances
public int getMaxInstances()The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
int32 max_instances = 20;- Specified by:
getMaxInstancesin interfaceCloudFunctionOrBuilder- Returns:
- The maxInstances.
-
setMaxInstances
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
int32 max_instances = 20;- Parameters:
value- The maxInstances to set.- Returns:
- This builder for chaining.
-
clearMaxInstances
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
int32 max_instances = 20;- Returns:
- This builder for chaining.
-
getMinInstances
public int getMinInstances()A lower bound for the number function instances that may coexist at a given time.
int32 min_instances = 32;- Specified by:
getMinInstancesin interfaceCloudFunctionOrBuilder- Returns:
- The minInstances.
-
setMinInstances
A lower bound for the number function instances that may coexist at a given time.
int32 min_instances = 32;- Parameters:
value- The minInstances to set.- Returns:
- This builder for chaining.
-
clearMinInstances
A lower bound for the number function instances that may coexist at a given time.
int32 min_instances = 32;- Returns:
- This builder for chaining.
-
getVpcConnector
The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Specified by:
getVpcConnectorin interfaceCloudFunctionOrBuilder- Returns:
- The vpcConnector.
-
getVpcConnectorBytes
public com.google.protobuf.ByteString getVpcConnectorBytes()The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Specified by:
getVpcConnectorBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for vpcConnector.
-
setVpcConnector
The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Parameters:
value- The vpcConnector to set.- Returns:
- This builder for chaining.
-
clearVpcConnector
The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Returns:
- This builder for chaining.
-
setVpcConnectorBytes
The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Parameters:
value- The bytes for vpcConnector to set.- Returns:
- This builder for chaining.
-
getVpcConnectorEgressSettingsValue
public int getVpcConnectorEgressSettingsValue()The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Specified by:
getVpcConnectorEgressSettingsValuein interfaceCloudFunctionOrBuilder- Returns:
- The enum numeric value on the wire for vpcConnectorEgressSettings.
-
setVpcConnectorEgressSettingsValue
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Parameters:
value- The enum numeric value on the wire for vpcConnectorEgressSettings to set.- Returns:
- This builder for chaining.
-
getVpcConnectorEgressSettings
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Specified by:
getVpcConnectorEgressSettingsin interfaceCloudFunctionOrBuilder- Returns:
- The vpcConnectorEgressSettings.
-
setVpcConnectorEgressSettings
public CloudFunction.Builder setVpcConnectorEgressSettings(CloudFunction.VpcConnectorEgressSettings value) The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Parameters:
value- The vpcConnectorEgressSettings to set.- Returns:
- This builder for chaining.
-
clearVpcConnectorEgressSettings
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Returns:
- This builder for chaining.
-
getIngressSettingsValue
public int getIngressSettingsValue()The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Specified by:
getIngressSettingsValuein interfaceCloudFunctionOrBuilder- Returns:
- The enum numeric value on the wire for ingressSettings.
-
setIngressSettingsValue
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Parameters:
value- The enum numeric value on the wire for ingressSettings to set.- Returns:
- This builder for chaining.
-
getIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Specified by:
getIngressSettingsin interfaceCloudFunctionOrBuilder- Returns:
- The ingressSettings.
-
setIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Parameters:
value- The ingressSettings to set.- Returns:
- This builder for chaining.
-
clearIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Returns:
- This builder for chaining.
-
getKmsKeyName
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Specified by:
getKmsKeyNamein interfaceCloudFunctionOrBuilder- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public com.google.protobuf.ByteString getKmsKeyNameBytes()Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Specified by:
getKmsKeyNameBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for kmsKeyName.
-
setKmsKeyName
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Parameters:
value- The kmsKeyName to set.- Returns:
- This builder for chaining.
-
clearKmsKeyName
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setKmsKeyNameBytes
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for kmsKeyName to set.- Returns:
- This builder for chaining.
-
getBuildWorkerPool
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Specified by:
getBuildWorkerPoolin interfaceCloudFunctionOrBuilder- Returns:
- The buildWorkerPool.
-
getBuildWorkerPoolBytes
public com.google.protobuf.ByteString getBuildWorkerPoolBytes()Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Specified by:
getBuildWorkerPoolBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for buildWorkerPool.
-
setBuildWorkerPool
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Parameters:
value- The buildWorkerPool to set.- Returns:
- This builder for chaining.
-
clearBuildWorkerPool
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Returns:
- This builder for chaining.
-
setBuildWorkerPoolBytes
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Parameters:
value- The bytes for buildWorkerPool to set.- Returns:
- This builder for chaining.
-
getBuildId
Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBuildIdin interfaceCloudFunctionOrBuilder- Returns:
- The buildId.
-
getBuildIdBytes
public com.google.protobuf.ByteString getBuildIdBytes()Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBuildIdBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for buildId.
-
setBuildId
Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The buildId to set.- Returns:
- This builder for chaining.
-
clearBuildId
Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setBuildIdBytes
Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for buildId to set.- Returns:
- This builder for chaining.
-
getBuildName
Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBuildNamein interfaceCloudFunctionOrBuilder- Returns:
- The buildName.
-
getBuildNameBytes
public com.google.protobuf.ByteString getBuildNameBytes()Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBuildNameBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for buildName.
-
setBuildName
Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The buildName to set.- Returns:
- This builder for chaining.
-
clearBuildName
Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setBuildNameBytes
Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for buildName to set.- Returns:
- This builder for chaining.
-
getSecretEnvironmentVariablesList
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;- Specified by:
getSecretEnvironmentVariablesListin interfaceCloudFunctionOrBuilder
-
getSecretEnvironmentVariablesCount
public int getSecretEnvironmentVariablesCount()Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;- Specified by:
getSecretEnvironmentVariablesCountin interfaceCloudFunctionOrBuilder
-
getSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;- Specified by:
getSecretEnvironmentVariablesin interfaceCloudFunctionOrBuilder
-
setSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
setSecretEnvironmentVariables
public CloudFunction.Builder setSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue) Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
addSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
addSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
addSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
addSecretEnvironmentVariables
public CloudFunction.Builder addSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue) Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
addAllSecretEnvironmentVariables
public CloudFunction.Builder addAllSecretEnvironmentVariables(Iterable<? extends SecretEnvVar> values) Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
clearSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
removeSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
getSecretEnvironmentVariablesBuilder
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
getSecretEnvironmentVariablesOrBuilder
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;- Specified by:
getSecretEnvironmentVariablesOrBuilderin interfaceCloudFunctionOrBuilder
-
getSecretEnvironmentVariablesOrBuilderList
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;- Specified by:
getSecretEnvironmentVariablesOrBuilderListin interfaceCloudFunctionOrBuilder
-
addSecretEnvironmentVariablesBuilder
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
addSecretEnvironmentVariablesBuilder
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
getSecretEnvironmentVariablesBuilderList
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
getSecretVolumesList
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;- Specified by:
getSecretVolumesListin interfaceCloudFunctionOrBuilder
-
getSecretVolumesCount
public int getSecretVolumesCount()Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;- Specified by:
getSecretVolumesCountin interfaceCloudFunctionOrBuilder
-
getSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;- Specified by:
getSecretVolumesin interfaceCloudFunctionOrBuilder
-
setSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
setSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
addSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
addSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
addSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
addSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
addAllSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
clearSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
removeSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
getSecretVolumesBuilder
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
getSecretVolumesOrBuilder
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;- Specified by:
getSecretVolumesOrBuilderin interfaceCloudFunctionOrBuilder
-
getSecretVolumesOrBuilderList
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;- Specified by:
getSecretVolumesOrBuilderListin interfaceCloudFunctionOrBuilder
-
addSecretVolumesBuilder
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
addSecretVolumesBuilder
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
getSecretVolumesBuilderList
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
getSourceToken
Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getSourceTokenin interfaceCloudFunctionOrBuilder- Returns:
- The sourceToken.
-
getSourceTokenBytes
public com.google.protobuf.ByteString getSourceTokenBytes()Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getSourceTokenBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for sourceToken.
-
setSourceToken
Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The sourceToken to set.- Returns:
- This builder for chaining.
-
clearSourceToken
Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Returns:
- This builder for chaining.
-
setSourceTokenBytes
Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The bytes for sourceToken to set.- Returns:
- This builder for chaining.
-
getDockerRepository
User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `docker_registry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Specified by:
getDockerRepositoryin interfaceCloudFunctionOrBuilder- Returns:
- The dockerRepository.
-
getDockerRepositoryBytes
public com.google.protobuf.ByteString getDockerRepositoryBytes()User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `docker_registry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Specified by:
getDockerRepositoryBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for dockerRepository.
-
setDockerRepository
User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `docker_registry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Parameters:
value- The dockerRepository to set.- Returns:
- This builder for chaining.
-
clearDockerRepository
User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `docker_registry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setDockerRepositoryBytes
User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `docker_registry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for dockerRepository to set.- Returns:
- This builder for chaining.
-
getDockerRegistryValue
Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated. See google/cloud/functions/v1/functions.proto;l=486Docker Registry to use for this deployment. As of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35 [deprecated = true];- Specified by:
getDockerRegistryValuein interfaceCloudFunctionOrBuilder- Returns:
- The enum numeric value on the wire for dockerRegistry.
-
setDockerRegistryValue
Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated. See google/cloud/functions/v1/functions.proto;l=486Docker Registry to use for this deployment. As of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35 [deprecated = true];- Parameters:
value- The enum numeric value on the wire for dockerRegistry to set.- Returns:
- This builder for chaining.
-
getDockerRegistry
Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated. See google/cloud/functions/v1/functions.proto;l=486Docker Registry to use for this deployment. As of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35 [deprecated = true];- Specified by:
getDockerRegistryin interfaceCloudFunctionOrBuilder- Returns:
- The dockerRegistry.
-
setDockerRegistry
Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated. See google/cloud/functions/v1/functions.proto;l=486Docker Registry to use for this deployment. As of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35 [deprecated = true];- Parameters:
value- The dockerRegistry to set.- Returns:
- This builder for chaining.
-
clearDockerRegistry
Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated. See google/cloud/functions/v1/functions.proto;l=486Docker Registry to use for this deployment. As of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35 [deprecated = true];- Returns:
- This builder for chaining.
-
hasAutomaticUpdatePolicy
public boolean hasAutomaticUpdatePolicy().google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;- Specified by:
hasAutomaticUpdatePolicyin interfaceCloudFunctionOrBuilder- Returns:
- Whether the automaticUpdatePolicy field is set.
-
getAutomaticUpdatePolicy
.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;- Specified by:
getAutomaticUpdatePolicyin interfaceCloudFunctionOrBuilder- Returns:
- The automaticUpdatePolicy.
-
setAutomaticUpdatePolicy
.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40; -
setAutomaticUpdatePolicy
public CloudFunction.Builder setAutomaticUpdatePolicy(CloudFunction.AutomaticUpdatePolicy.Builder builderForValue) .google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40; -
mergeAutomaticUpdatePolicy
.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40; -
clearAutomaticUpdatePolicy
.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40; -
getAutomaticUpdatePolicyBuilder
.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40; -
getAutomaticUpdatePolicyOrBuilder
.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;- Specified by:
getAutomaticUpdatePolicyOrBuilderin interfaceCloudFunctionOrBuilder
-
hasOnDeployUpdatePolicy
public boolean hasOnDeployUpdatePolicy().google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;- Specified by:
hasOnDeployUpdatePolicyin interfaceCloudFunctionOrBuilder- Returns:
- Whether the onDeployUpdatePolicy field is set.
-
getOnDeployUpdatePolicy
.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;- Specified by:
getOnDeployUpdatePolicyin interfaceCloudFunctionOrBuilder- Returns:
- The onDeployUpdatePolicy.
-
setOnDeployUpdatePolicy
.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
setOnDeployUpdatePolicy
public CloudFunction.Builder setOnDeployUpdatePolicy(CloudFunction.OnDeployUpdatePolicy.Builder builderForValue) .google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
mergeOnDeployUpdatePolicy
.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
clearOnDeployUpdatePolicy
.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
getOnDeployUpdatePolicyBuilder
.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
getOnDeployUpdatePolicyOrBuilder
.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;- Specified by:
getOnDeployUpdatePolicyOrBuilderin interfaceCloudFunctionOrBuilder
-
getBuildServiceAccount
A service account the user provides for use with Cloud Build. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string build_service_account = 43;- Specified by:
getBuildServiceAccountin interfaceCloudFunctionOrBuilder- Returns:
- The buildServiceAccount.
-
getBuildServiceAccountBytes
public com.google.protobuf.ByteString getBuildServiceAccountBytes()A service account the user provides for use with Cloud Build. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string build_service_account = 43;- Specified by:
getBuildServiceAccountBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for buildServiceAccount.
-
setBuildServiceAccount
A service account the user provides for use with Cloud Build. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string build_service_account = 43;- Parameters:
value- The buildServiceAccount to set.- Returns:
- This builder for chaining.
-
clearBuildServiceAccount
A service account the user provides for use with Cloud Build. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string build_service_account = 43;- Returns:
- This builder for chaining.
-
setBuildServiceAccountBytes
A service account the user provides for use with Cloud Build. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string build_service_account = 43;- Parameters:
value- The bytes for buildServiceAccount to set.- Returns:
- This builder for chaining.
-