Class CloudFunction.Builder (2.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 2.80.0 (latest)
- 2.78.0
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.72.0
- 2.70.0
- 2.69.0
- 2.66.0
- 2.65.0
- 2.64.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.4
- 2.4.3
- 2.3.6
publicstaticfinalclass CloudFunction.BuilderextendsGeneratedMessageV3.Builder<CloudFunction.Builder>implementsCloudFunctionOrBuilderDescribes 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CloudFunction.BuilderImplements
CloudFunctionOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSecretEnvironmentVariables(Iterable<? extends SecretEnvVar> values)
publicCloudFunction.BuilderaddAllSecretEnvironmentVariables(Iterable<?extendsSecretEnvVar>values)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.functions.v1.SecretEnvVar> |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addAllSecretVolumes(Iterable<? extends SecretVolume> values)
publicCloudFunction.BuilderaddAllSecretVolumes(Iterable<?extendsSecretVolume>values)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.functions.v1.SecretVolume> |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicCloudFunction.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addSecretEnvironmentVariables(SecretEnvVar value)
publicCloudFunction.BuilderaddSecretEnvironmentVariables(SecretEnvVarvalue)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameter | |
|---|---|
| Name | Description |
value |
SecretEnvVar |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addSecretEnvironmentVariables(SecretEnvVar.Builder builderForValue)
publicCloudFunction.BuilderaddSecretEnvironmentVariables(SecretEnvVar.BuilderbuilderForValue)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SecretEnvVar.Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addSecretEnvironmentVariables(int index, SecretEnvVar value)
publicCloudFunction.BuilderaddSecretEnvironmentVariables(intindex,SecretEnvVarvalue)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SecretEnvVar |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)
publicCloudFunction.BuilderaddSecretEnvironmentVariables(intindex,SecretEnvVar.BuilderbuilderForValue)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SecretEnvVar.Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addSecretEnvironmentVariablesBuilder()
publicSecretEnvVar.BuilderaddSecretEnvironmentVariablesBuilder()Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Returns | |
|---|---|
| Type | Description |
SecretEnvVar.Builder |
|
addSecretEnvironmentVariablesBuilder(int index)
publicSecretEnvVar.BuilderaddSecretEnvironmentVariablesBuilder(intindex)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SecretEnvVar.Builder |
|
addSecretVolumes(SecretVolume value)
publicCloudFunction.BuilderaddSecretVolumes(SecretVolumevalue)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameter | |
|---|---|
| Name | Description |
value |
SecretVolume |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addSecretVolumes(SecretVolume.Builder builderForValue)
publicCloudFunction.BuilderaddSecretVolumes(SecretVolume.BuilderbuilderForValue)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SecretVolume.Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addSecretVolumes(int index, SecretVolume value)
publicCloudFunction.BuilderaddSecretVolumes(intindex,SecretVolumevalue)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SecretVolume |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addSecretVolumes(int index, SecretVolume.Builder builderForValue)
publicCloudFunction.BuilderaddSecretVolumes(intindex,SecretVolume.BuilderbuilderForValue)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SecretVolume.Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
addSecretVolumesBuilder()
publicSecretVolume.BuilderaddSecretVolumesBuilder()Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Returns | |
|---|---|
| Type | Description |
SecretVolume.Builder |
|
addSecretVolumesBuilder(int index)
publicSecretVolume.BuilderaddSecretVolumesBuilder(intindex)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SecretVolume.Builder |
|
build()
publicCloudFunctionbuild()| Returns | |
|---|---|
| Type | Description |
CloudFunction |
|
buildPartial()
publicCloudFunctionbuildPartial()| Returns | |
|---|---|
| Type | Description |
CloudFunction |
|
clear()
publicCloudFunction.Builderclear()| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearAvailableMemoryMb()
publicCloudFunction.BuilderclearAvailableMemoryMb()The amount of memory in MB available for a function. Defaults to 256MB.
int32 available_memory_mb = 10;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearBuildEnvironmentVariables()
publicCloudFunction.BuilderclearBuildEnvironmentVariables()| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearBuildId()
publicCloudFunction.BuilderclearBuildId()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 | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearBuildName()
publicCloudFunction.BuilderclearBuildName() 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 | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearBuildWorkerPool()
publicCloudFunction.BuilderclearBuildWorkerPool() 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 | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearDescription()
publicCloudFunction.BuilderclearDescription()User-provided description of a function.
string description = 2;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearDockerRegistry()
publicCloudFunction.BuilderclearDockerRegistry() Docker Registry to use for this deployment.
If docker_repository field is specified, this field will be automatically
set as ARTIFACT_REGISTRY.
If unspecified, it currently defaults to CONTAINER_REGISTRY.
This field may be overridden by the backend for eligible deployments.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearDockerRepository()
publicCloudFunction.BuilderclearDockerRepository() User managed repository created in Artifact Registry optionally with a
customer managed encryption key. If specified, deployments will use
Artifact Registry. If unspecified and the deployment is eligible to use
Artifact Registry, GCF will create and use a repository named
'gcf-artifacts' for every deployed region. This is the repository to which
the function docker image will be pushed after it is built by Cloud Build.
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 | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearEntryPoint()
publicCloudFunction.BuilderclearEntryPoint() The name of the function (as defined in source code) that will be
executed. Defaults to the resource name suffix, if not specified. For
backward compatibility, if function with given name is not found, then the
system will try to use function named "function".
For Node.js this is name of a function exported by the module specified
in source_location.
string entry_point = 8;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearEnvironmentVariables()
publicCloudFunction.BuilderclearEnvironmentVariables()| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearEventTrigger()
publicCloudFunction.BuilderclearEventTrigger()A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicCloudFunction.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearHttpsTrigger()
publicCloudFunction.BuilderclearHttpsTrigger()An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearIngressSettings()
publicCloudFunction.BuilderclearIngressSettings()The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearKmsKeyName()
publicCloudFunction.BuilderclearKmsKeyName() 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).
- Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image.
- 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 | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearLabels()
publicCloudFunction.BuilderclearLabels()| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearMaxInstances()
publicCloudFunction.BuilderclearMaxInstances()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 Guide for more details.
int32 max_instances = 20;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearMinInstances()
publicCloudFunction.BuilderclearMinInstances()A lower bound for the number function instances that may coexist at a given time.
int32 min_instances = 32;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearName()
publicCloudFunction.BuilderclearName() A user-defined name of the function. Function names must be unique
globally and match pattern projects/*/locations/*/functions/*
string name = 1;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearNetwork()
publicCloudFunction.BuilderclearNetwork() The VPC Network that this cloud function can connect to. It can be
either the fully-qualified URI, or the short name of the network resource.
If the short network name is used, the network must belong to the same
project. Otherwise, it must belong to a project within the same
organization. The format of this field is either
projects/{project}/global/networks/{network} or {network}, where
{project} is a project id where the network is defined, and {network}
is the short name of the network.
This field is mutually exclusive with vpc_connector and will be replaced
by it.
See the VPC documentation for
more information on connecting Cloud projects.
string network = 18;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicCloudFunction.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearRuntime()
publicCloudFunction.BuilderclearRuntime() 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.
string runtime = 19;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearSecretEnvironmentVariables()
publicCloudFunction.BuilderclearSecretEnvironmentVariables()Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearSecretVolumes()
publicCloudFunction.BuilderclearSecretVolumes()Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearServiceAccountEmail()
publicCloudFunction.BuilderclearServiceAccountEmail() The email of the function's service account. If empty, defaults to
{project_id}@appspot.gserviceaccount.com.
string service_account_email = 11;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearSourceArchiveUrl()
publicCloudFunction.BuilderclearSourceArchiveUrl() The Google Cloud Storage URL, starting with gs://, pointing to the zip
archive which contains the function.
string source_archive_url = 3;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearSourceCode()
publicCloudFunction.BuilderclearSourceCode()| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearSourceRepository()
publicCloudFunction.BuilderclearSourceRepository()Beta Feature The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearSourceToken()
publicCloudFunction.BuilderclearSourceToken()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 | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearSourceUploadUrl()
publicCloudFunction.BuilderclearSourceUploadUrl()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 | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearStatus()
publicCloudFunction.BuilderclearStatus()Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearTimeout()
publicCloudFunction.BuilderclearTimeout()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;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearTrigger()
publicCloudFunction.BuilderclearTrigger()| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearUpdateTime()
publicCloudFunction.BuilderclearUpdateTime()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
clearVersionId()
publicCloudFunction.BuilderclearVersionId()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 | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearVpcConnector()
publicCloudFunction.BuilderclearVpcConnector() 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 for
more information on connecting Cloud projects.
string vpc_connector = 22;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clearVpcConnectorEgressSettings()
publicCloudFunction.BuilderclearVpcConnectorEgressSettings()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 | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
clone()
publicCloudFunction.Builderclone()| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
containsBuildEnvironmentVariables(String key)
publicbooleancontainsBuildEnvironmentVariables(Stringkey)Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
containsEnvironmentVariables(String key)
publicbooleancontainsEnvironmentVariables(Stringkey)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
containsLabels(String key)
publicbooleancontainsLabels(Stringkey)Labels associated with this Cloud Function.
map<string, string> labels = 15;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAvailableMemoryMb()
publicintgetAvailableMemoryMb()The amount of memory in MB available for a function. Defaults to 256MB.
int32 available_memory_mb = 10;
| Returns | |
|---|---|
| Type | Description |
int |
The availableMemoryMb. |
getBuildEnvironmentVariables()
publicMap<String,String>getBuildEnvironmentVariables()Use #getBuildEnvironmentVariablesMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getBuildEnvironmentVariablesCount()
publicintgetBuildEnvironmentVariablesCount()Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
| Returns | |
|---|---|
| Type | Description |
int |
|
getBuildEnvironmentVariablesMap()
publicMap<String,String>getBuildEnvironmentVariablesMap()Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getBuildEnvironmentVariablesOrDefault(String key, String defaultValue)
publicStringgetBuildEnvironmentVariablesOrDefault(Stringkey,StringdefaultValue)Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getBuildEnvironmentVariablesOrThrow(String key)
publicStringgetBuildEnvironmentVariablesOrThrow(Stringkey)Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getBuildId()
publicStringgetBuildId()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 | |
|---|---|
| Type | Description |
String |
The buildId. |
getBuildIdBytes()
publicByteStringgetBuildIdBytes()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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for buildId. |
getBuildName()
publicStringgetBuildName() 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 | |
|---|---|
| Type | Description |
String |
The buildName. |
getBuildNameBytes()
publicByteStringgetBuildNameBytes() 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for buildName. |
getBuildWorkerPool()
publicStringgetBuildWorkerPool() 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 | |
|---|---|
| Type | Description |
String |
The buildWorkerPool. |
getBuildWorkerPoolBytes()
publicByteStringgetBuildWorkerPoolBytes() 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for buildWorkerPool. |
getDefaultInstanceForType()
publicCloudFunctiongetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CloudFunction |
|
getDescription()
publicStringgetDescription()User-provided description of a function.
string description = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
publicByteStringgetDescriptionBytes()User-provided description of a function.
string description = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDockerRegistry()
publicCloudFunction.DockerRegistrygetDockerRegistry() Docker Registry to use for this deployment.
If docker_repository field is specified, this field will be automatically
set as ARTIFACT_REGISTRY.
If unspecified, it currently defaults to CONTAINER_REGISTRY.
This field may be overridden by the backend for eligible deployments.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.DockerRegistry |
The dockerRegistry. |
getDockerRegistryValue()
publicintgetDockerRegistryValue() Docker Registry to use for this deployment.
If docker_repository field is specified, this field will be automatically
set as ARTIFACT_REGISTRY.
If unspecified, it currently defaults to CONTAINER_REGISTRY.
This field may be overridden by the backend for eligible deployments.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for dockerRegistry. |
getDockerRepository()
publicStringgetDockerRepository() User managed repository created in Artifact Registry optionally with a
customer managed encryption key. If specified, deployments will use
Artifact Registry. If unspecified and the deployment is eligible to use
Artifact Registry, GCF will create and use a repository named
'gcf-artifacts' for every deployed region. This is the repository to which
the function docker image will be pushed after it is built by Cloud Build.
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 | |
|---|---|
| Type | Description |
String |
The dockerRepository. |
getDockerRepositoryBytes()
publicByteStringgetDockerRepositoryBytes() User managed repository created in Artifact Registry optionally with a
customer managed encryption key. If specified, deployments will use
Artifact Registry. If unspecified and the deployment is eligible to use
Artifact Registry, GCF will create and use a repository named
'gcf-artifacts' for every deployed region. This is the repository to which
the function docker image will be pushed after it is built by Cloud Build.
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for dockerRepository. |
getEntryPoint()
publicStringgetEntryPoint() The name of the function (as defined in source code) that will be
executed. Defaults to the resource name suffix, if not specified. For
backward compatibility, if function with given name is not found, then the
system will try to use function named "function".
For Node.js this is name of a function exported by the module specified
in source_location.
string entry_point = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The entryPoint. |
getEntryPointBytes()
publicByteStringgetEntryPointBytes() The name of the function (as defined in source code) that will be
executed. Defaults to the resource name suffix, if not specified. For
backward compatibility, if function with given name is not found, then the
system will try to use function named "function".
For Node.js this is name of a function exported by the module specified
in source_location.
string entry_point = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for entryPoint. |
getEnvironmentVariables()
publicMap<String,String>getEnvironmentVariables()Use #getEnvironmentVariablesMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getEnvironmentVariablesCount()
publicintgetEnvironmentVariablesCount()Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
| Returns | |
|---|---|
| Type | Description |
int |
|
getEnvironmentVariablesMap()
publicMap<String,String>getEnvironmentVariablesMap()Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getEnvironmentVariablesOrDefault(String key, String defaultValue)
publicStringgetEnvironmentVariablesOrDefault(Stringkey,StringdefaultValue)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getEnvironmentVariablesOrThrow(String key)
publicStringgetEnvironmentVariablesOrThrow(Stringkey)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getEventTrigger()
publicEventTriggergetEventTrigger()A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
| Returns | |
|---|---|
| Type | Description |
EventTrigger |
The eventTrigger. |
getEventTriggerBuilder()
publicEventTrigger.BuildergetEventTriggerBuilder()A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
| Returns | |
|---|---|
| Type | Description |
EventTrigger.Builder |
|
getEventTriggerOrBuilder()
publicEventTriggerOrBuildergetEventTriggerOrBuilder()A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
| Returns | |
|---|---|
| Type | Description |
EventTriggerOrBuilder |
|
getHttpsTrigger()
publicHttpsTriggergetHttpsTrigger()An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
| Returns | |
|---|---|
| Type | Description |
HttpsTrigger |
The httpsTrigger. |
getHttpsTriggerBuilder()
publicHttpsTrigger.BuildergetHttpsTriggerBuilder()An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
| Returns | |
|---|---|
| Type | Description |
HttpsTrigger.Builder |
|
getHttpsTriggerOrBuilder()
publicHttpsTriggerOrBuildergetHttpsTriggerOrBuilder()An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
| Returns | |
|---|---|
| Type | Description |
HttpsTriggerOrBuilder |
|
getIngressSettings()
publicCloudFunction.IngressSettingsgetIngressSettings()The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;
| Returns | |
|---|---|
| Type | Description |
CloudFunction.IngressSettings |
The ingressSettings. |
getIngressSettingsValue()
publicintgetIngressSettingsValue()The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for ingressSettings. |
getKmsKeyName()
publicStringgetKmsKeyName() 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).
- Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image.
- 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 | |
|---|---|
| Type | Description |
String |
The kmsKeyName. |
getKmsKeyNameBytes()
publicByteStringgetKmsKeyNameBytes() 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).
- Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image.
- 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for kmsKeyName. |
getLabels()
publicMap<String,String>getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
publicintgetLabelsCount()Labels associated with this Cloud Function.
map<string, string> labels = 15;
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
publicMap<String,String>getLabelsMap()Labels associated with this Cloud Function.
map<string, string> labels = 15;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)Labels associated with this Cloud Function.
map<string, string> labels = 15;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
publicStringgetLabelsOrThrow(Stringkey)Labels associated with this Cloud Function.
map<string, string> labels = 15;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMaxInstances()
publicintgetMaxInstances()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 Guide for more details.
int32 max_instances = 20;
| Returns | |
|---|---|
| Type | Description |
int |
The maxInstances. |
getMinInstances()
publicintgetMinInstances()A lower bound for the number function instances that may coexist at a given time.
int32 min_instances = 32;
| Returns | |
|---|---|
| Type | Description |
int |
The minInstances. |
getMutableBuildEnvironmentVariables()
publicMap<String,String>getMutableBuildEnvironmentVariables()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMutableEnvironmentVariables()
publicMap<String,String>getMutableEnvironmentVariables()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMutableLabels()
publicMap<String,String>getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
publicStringgetName() A user-defined name of the function. Function names must be unique
globally and match pattern projects/*/locations/*/functions/*
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
publicByteStringgetNameBytes() A user-defined name of the function. Function names must be unique
globally and match pattern projects/*/locations/*/functions/*
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getNetwork()
publicStringgetNetwork() The VPC Network that this cloud function can connect to. It can be
either the fully-qualified URI, or the short name of the network resource.
If the short network name is used, the network must belong to the same
project. Otherwise, it must belong to a project within the same
organization. The format of this field is either
projects/{project}/global/networks/{network} or {network}, where
{project} is a project id where the network is defined, and {network}
is the short name of the network.
This field is mutually exclusive with vpc_connector and will be replaced
by it.
See the VPC documentation for
more information on connecting Cloud projects.
string network = 18;
| Returns | |
|---|---|
| Type | Description |
String |
The network. |
getNetworkBytes()
publicByteStringgetNetworkBytes() The VPC Network that this cloud function can connect to. It can be
either the fully-qualified URI, or the short name of the network resource.
If the short network name is used, the network must belong to the same
project. Otherwise, it must belong to a project within the same
organization. The format of this field is either
projects/{project}/global/networks/{network} or {network}, where
{project} is a project id where the network is defined, and {network}
is the short name of the network.
This field is mutually exclusive with vpc_connector and will be replaced
by it.
See the VPC documentation for
more information on connecting Cloud projects.
string network = 18;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for network. |
getRuntime()
publicStringgetRuntime() 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.
string runtime = 19;
| Returns | |
|---|---|
| Type | Description |
String |
The runtime. |
getRuntimeBytes()
publicByteStringgetRuntimeBytes() 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.
string runtime = 19;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for runtime. |
getSecretEnvironmentVariables(int index)
publicSecretEnvVargetSecretEnvironmentVariables(intindex)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SecretEnvVar |
|
getSecretEnvironmentVariablesBuilder(int index)
publicSecretEnvVar.BuildergetSecretEnvironmentVariablesBuilder(intindex)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SecretEnvVar.Builder |
|
getSecretEnvironmentVariablesBuilderList()
publicList<SecretEnvVar.Builder>getSecretEnvironmentVariablesBuilderList()Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSecretEnvironmentVariablesCount()
publicintgetSecretEnvironmentVariablesCount()Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSecretEnvironmentVariablesList()
publicList<SecretEnvVar>getSecretEnvironmentVariablesList()Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Returns | |
|---|---|
| Type | Description |
List<SecretEnvVar> |
|
getSecretEnvironmentVariablesOrBuilder(int index)
publicSecretEnvVarOrBuildergetSecretEnvironmentVariablesOrBuilder(intindex)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SecretEnvVarOrBuilder |
|
getSecretEnvironmentVariablesOrBuilderList()
publicList<?extendsSecretEnvVarOrBuilder>getSecretEnvironmentVariablesOrBuilderList()Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.functions.v1.SecretEnvVarOrBuilder> |
|
getSecretVolumes(int index)
publicSecretVolumegetSecretVolumes(intindex)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SecretVolume |
|
getSecretVolumesBuilder(int index)
publicSecretVolume.BuildergetSecretVolumesBuilder(intindex)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SecretVolume.Builder |
|
getSecretVolumesBuilderList()
publicList<SecretVolume.Builder>getSecretVolumesBuilderList()Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSecretVolumesCount()
publicintgetSecretVolumesCount()Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSecretVolumesList()
publicList<SecretVolume>getSecretVolumesList()Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Returns | |
|---|---|
| Type | Description |
List<SecretVolume> |
|
getSecretVolumesOrBuilder(int index)
publicSecretVolumeOrBuildergetSecretVolumesOrBuilder(intindex)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SecretVolumeOrBuilder |
|
getSecretVolumesOrBuilderList()
publicList<?extendsSecretVolumeOrBuilder>getSecretVolumesOrBuilderList()Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.functions.v1.SecretVolumeOrBuilder> |
|
getServiceAccountEmail()
publicStringgetServiceAccountEmail() The email of the function's service account. If empty, defaults to
{project_id}@appspot.gserviceaccount.com.
string service_account_email = 11;
| Returns | |
|---|---|
| Type | Description |
String |
The serviceAccountEmail. |
getServiceAccountEmailBytes()
publicByteStringgetServiceAccountEmailBytes() The email of the function's service account. If empty, defaults to
{project_id}@appspot.gserviceaccount.com.
string service_account_email = 11;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for serviceAccountEmail. |
getSourceArchiveUrl()
publicStringgetSourceArchiveUrl() The Google Cloud Storage URL, starting with gs://, pointing to the zip
archive which contains the function.
string source_archive_url = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The sourceArchiveUrl. |
getSourceArchiveUrlBytes()
publicByteStringgetSourceArchiveUrlBytes() The Google Cloud Storage URL, starting with gs://, pointing to the zip
archive which contains the function.
string source_archive_url = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceArchiveUrl. |
getSourceCodeCase()
publicCloudFunction.SourceCodeCasegetSourceCodeCase()| Returns | |
|---|---|
| Type | Description |
CloudFunction.SourceCodeCase |
|
getSourceRepository()
publicSourceRepositorygetSourceRepository()Beta Feature The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
| Returns | |
|---|---|
| Type | Description |
SourceRepository |
The sourceRepository. |
getSourceRepositoryBuilder()
publicSourceRepository.BuildergetSourceRepositoryBuilder()Beta Feature The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
| Returns | |
|---|---|
| Type | Description |
SourceRepository.Builder |
|
getSourceRepositoryOrBuilder()
publicSourceRepositoryOrBuildergetSourceRepositoryOrBuilder()Beta Feature The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
| Returns | |
|---|---|
| Type | Description |
SourceRepositoryOrBuilder |
|
getSourceToken()
publicStringgetSourceToken()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 | |
|---|---|
| Type | Description |
String |
The sourceToken. |
getSourceTokenBytes()
publicByteStringgetSourceTokenBytes()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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceToken. |
getSourceUploadUrl()
publicStringgetSourceUploadUrl()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 | |
|---|---|
| Type | Description |
String |
The sourceUploadUrl. |
getSourceUploadUrlBytes()
publicByteStringgetSourceUploadUrlBytes()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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceUploadUrl. |
getStatus()
publicCloudFunctionStatusgetStatus()Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CloudFunctionStatus |
The status. |
getStatusValue()
publicintgetStatusValue()Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for status. |
getTimeout()
publicDurationgetTimeout()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;
| Returns | |
|---|---|
| Type | Description |
Duration |
The timeout. |
getTimeoutBuilder()
publicDuration.BuildergetTimeoutBuilder()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;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getTimeoutOrBuilder()
publicDurationOrBuildergetTimeoutOrBuilder()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;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getTriggerCase()
publicCloudFunction.TriggerCasegetTriggerCase()| Returns | |
|---|---|
| Type | Description |
CloudFunction.TriggerCase |
|
getUpdateTime()
publicTimestampgetUpdateTime()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
publicTimestamp.BuildergetUpdateTimeBuilder()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
publicTimestampOrBuildergetUpdateTimeOrBuilder()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getVersionId()
publiclonggetVersionId()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 | |
|---|---|
| Type | Description |
long |
The versionId. |
getVpcConnector()
publicStringgetVpcConnector() 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 for
more information on connecting Cloud projects.
string vpc_connector = 22;
| Returns | |
|---|---|
| Type | Description |
String |
The vpcConnector. |
getVpcConnectorBytes()
publicByteStringgetVpcConnectorBytes() 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 for
more information on connecting Cloud projects.
string vpc_connector = 22;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vpcConnector. |
getVpcConnectorEgressSettings()
publicCloudFunction.VpcConnectorEgressSettingsgetVpcConnectorEgressSettings()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 | |
|---|---|
| Type | Description |
CloudFunction.VpcConnectorEgressSettings |
The vpcConnectorEgressSettings. |
getVpcConnectorEgressSettingsValue()
publicintgetVpcConnectorEgressSettingsValue()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 | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for vpcConnectorEgressSettings. |
hasEventTrigger()
publicbooleanhasEventTrigger()A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the eventTrigger field is set. |
hasHttpsTrigger()
publicbooleanhasHttpsTrigger()An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the httpsTrigger field is set. |
hasSourceArchiveUrl()
publicbooleanhasSourceArchiveUrl() The Google Cloud Storage URL, starting with gs://, pointing to the zip
archive which contains the function.
string source_archive_url = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sourceArchiveUrl field is set. |
hasSourceRepository()
publicbooleanhasSourceRepository()Beta Feature The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sourceRepository field is set. |
hasSourceUploadUrl()
publicbooleanhasSourceUploadUrl()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 | |
|---|---|
| Type | Description |
boolean |
Whether the sourceUploadUrl field is set. |
hasTimeout()
publicbooleanhasTimeout()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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the timeout field is set. |
hasUpdateTime()
publicbooleanhasUpdateTime()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
MapField |
|
internalGetMutableMapField(int number)
protectedMapFieldinternalGetMutableMapField(intnumber)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
MapField |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEventTrigger(EventTrigger value)
publicCloudFunction.BuildermergeEventTrigger(EventTriggervalue)A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
EventTrigger |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
mergeFrom(CloudFunction other)
publicCloudFunction.BuildermergeFrom(CloudFunctionother)| Parameter | |
|---|---|
| Name | Description |
other |
CloudFunction |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicCloudFunction.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicCloudFunction.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
mergeHttpsTrigger(HttpsTrigger value)
publicCloudFunction.BuildermergeHttpsTrigger(HttpsTriggervalue)An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
HttpsTrigger |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
mergeSourceRepository(SourceRepository value)
publicCloudFunction.BuildermergeSourceRepository(SourceRepositoryvalue)Beta Feature The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
SourceRepository |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
mergeTimeout(Duration value)
publicCloudFunction.BuildermergeTimeout(Durationvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalCloudFunction.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
mergeUpdateTime(Timestamp value)
publicCloudFunction.BuildermergeUpdateTime(Timestampvalue)Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
putAllBuildEnvironmentVariables(Map<String,String> values)
publicCloudFunction.BuilderputAllBuildEnvironmentVariables(Map<String,String>values)Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
putAllEnvironmentVariables(Map<String,String> values)
publicCloudFunction.BuilderputAllEnvironmentVariables(Map<String,String>values)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
putAllLabels(Map<String,String> values)
publicCloudFunction.BuilderputAllLabels(Map<String,String>values)Labels associated with this Cloud Function.
map<string, string> labels = 15;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
putBuildEnvironmentVariables(String key, String value)
publicCloudFunction.BuilderputBuildEnvironmentVariables(Stringkey,Stringvalue)Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
putEnvironmentVariables(String key, String value)
publicCloudFunction.BuilderputEnvironmentVariables(Stringkey,Stringvalue)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
putLabels(String key, String value)
publicCloudFunction.BuilderputLabels(Stringkey,Stringvalue)Labels associated with this Cloud Function.
map<string, string> labels = 15;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
removeBuildEnvironmentVariables(String key)
publicCloudFunction.BuilderremoveBuildEnvironmentVariables(Stringkey)Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
removeEnvironmentVariables(String key)
publicCloudFunction.BuilderremoveEnvironmentVariables(Stringkey)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
removeLabels(String key)
publicCloudFunction.BuilderremoveLabels(Stringkey)Labels associated with this Cloud Function.
map<string, string> labels = 15;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
removeSecretEnvironmentVariables(int index)
publicCloudFunction.BuilderremoveSecretEnvironmentVariables(intindex)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
removeSecretVolumes(int index)
publicCloudFunction.BuilderremoveSecretVolumes(intindex)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setAvailableMemoryMb(int value)
publicCloudFunction.BuildersetAvailableMemoryMb(intvalue)The amount of memory in MB available for a function. Defaults to 256MB.
int32 available_memory_mb = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
int The availableMemoryMb to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setBuildId(String value)
publicCloudFunction.BuildersetBuildId(Stringvalue)Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
String The buildId to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setBuildIdBytes(ByteString value)
publicCloudFunction.BuildersetBuildIdBytes(ByteStringvalue)Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for buildId to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setBuildName(String value)
publicCloudFunction.BuildersetBuildName(Stringvalue) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
String The buildName to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setBuildNameBytes(ByteString value)
publicCloudFunction.BuildersetBuildNameBytes(ByteStringvalue) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for buildName to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setBuildWorkerPool(String value)
publicCloudFunction.BuildersetBuildWorkerPool(Stringvalue) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
String The buildWorkerPool to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setBuildWorkerPoolBytes(ByteString value)
publicCloudFunction.BuildersetBuildWorkerPoolBytes(ByteStringvalue) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for buildWorkerPool to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setDescription(String value)
publicCloudFunction.BuildersetDescription(Stringvalue)User-provided description of a function.
string description = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
String The description to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
publicCloudFunction.BuildersetDescriptionBytes(ByteStringvalue)User-provided description of a function.
string description = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setDockerRegistry(CloudFunction.DockerRegistry value)
publicCloudFunction.BuildersetDockerRegistry(CloudFunction.DockerRegistryvalue) Docker Registry to use for this deployment.
If docker_repository field is specified, this field will be automatically
set as ARTIFACT_REGISTRY.
If unspecified, it currently defaults to CONTAINER_REGISTRY.
This field may be overridden by the backend for eligible deployments.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35;
| Parameter | |
|---|---|
| Name | Description |
value |
CloudFunction.DockerRegistry The dockerRegistry to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setDockerRegistryValue(int value)
publicCloudFunction.BuildersetDockerRegistryValue(intvalue) Docker Registry to use for this deployment.
If docker_repository field is specified, this field will be automatically
set as ARTIFACT_REGISTRY.
If unspecified, it currently defaults to CONTAINER_REGISTRY.
This field may be overridden by the backend for eligible deployments.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35;
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for dockerRegistry to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setDockerRepository(String value)
publicCloudFunction.BuildersetDockerRepository(Stringvalue) User managed repository created in Artifact Registry optionally with a
customer managed encryption key. If specified, deployments will use
Artifact Registry. If unspecified and the deployment is eligible to use
Artifact Registry, GCF will create and use a repository named
'gcf-artifacts' for every deployed region. This is the repository to which
the function docker image will be pushed after it is built by Cloud Build.
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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
String The dockerRepository to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setDockerRepositoryBytes(ByteString value)
publicCloudFunction.BuildersetDockerRepositoryBytes(ByteStringvalue) User managed repository created in Artifact Registry optionally with a
customer managed encryption key. If specified, deployments will use
Artifact Registry. If unspecified and the deployment is eligible to use
Artifact Registry, GCF will create and use a repository named
'gcf-artifacts' for every deployed region. This is the repository to which
the function docker image will be pushed after it is built by Cloud Build.
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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for dockerRepository to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setEntryPoint(String value)
publicCloudFunction.BuildersetEntryPoint(Stringvalue) The name of the function (as defined in source code) that will be
executed. Defaults to the resource name suffix, if not specified. For
backward compatibility, if function with given name is not found, then the
system will try to use function named "function".
For Node.js this is name of a function exported by the module specified
in source_location.
string entry_point = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
String The entryPoint to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setEntryPointBytes(ByteString value)
publicCloudFunction.BuildersetEntryPointBytes(ByteStringvalue) The name of the function (as defined in source code) that will be
executed. Defaults to the resource name suffix, if not specified. For
backward compatibility, if function with given name is not found, then the
system will try to use function named "function".
For Node.js this is name of a function exported by the module specified
in source_location.
string entry_point = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for entryPoint to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setEventTrigger(EventTrigger value)
publicCloudFunction.BuildersetEventTrigger(EventTriggervalue)A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
EventTrigger |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setEventTrigger(EventTrigger.Builder builderForValue)
publicCloudFunction.BuildersetEventTrigger(EventTrigger.BuilderbuilderForValue)A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EventTrigger.Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicCloudFunction.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setHttpsTrigger(HttpsTrigger value)
publicCloudFunction.BuildersetHttpsTrigger(HttpsTriggervalue)An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
HttpsTrigger |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setHttpsTrigger(HttpsTrigger.Builder builderForValue)
publicCloudFunction.BuildersetHttpsTrigger(HttpsTrigger.BuilderbuilderForValue)An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
HttpsTrigger.Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setIngressSettings(CloudFunction.IngressSettings value)
publicCloudFunction.BuildersetIngressSettings(CloudFunction.IngressSettingsvalue)The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;
| Parameter | |
|---|---|
| Name | Description |
value |
CloudFunction.IngressSettings The ingressSettings to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setIngressSettingsValue(int value)
publicCloudFunction.BuildersetIngressSettingsValue(intvalue)The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for ingressSettings to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setKmsKeyName(String value)
publicCloudFunction.BuildersetKmsKeyName(Stringvalue) 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).
- Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image.
- 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
String The kmsKeyName to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setKmsKeyNameBytes(ByteString value)
publicCloudFunction.BuildersetKmsKeyNameBytes(ByteStringvalue) 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).
- Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image.
- 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for kmsKeyName to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setMaxInstances(int value)
publicCloudFunction.BuildersetMaxInstances(intvalue)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 Guide for more details.
int32 max_instances = 20;
| Parameter | |
|---|---|
| Name | Description |
value |
int The maxInstances to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setMinInstances(int value)
publicCloudFunction.BuildersetMinInstances(intvalue)A lower bound for the number function instances that may coexist at a given time.
int32 min_instances = 32;
| Parameter | |
|---|---|
| Name | Description |
value |
int The minInstances to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setName(String value)
publicCloudFunction.BuildersetName(Stringvalue) A user-defined name of the function. Function names must be unique
globally and match pattern projects/*/locations/*/functions/*
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
String The name to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
publicCloudFunction.BuildersetNameBytes(ByteStringvalue) A user-defined name of the function. Function names must be unique
globally and match pattern projects/*/locations/*/functions/*
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setNetwork(String value)
publicCloudFunction.BuildersetNetwork(Stringvalue) The VPC Network that this cloud function can connect to. It can be
either the fully-qualified URI, or the short name of the network resource.
If the short network name is used, the network must belong to the same
project. Otherwise, it must belong to a project within the same
organization. The format of this field is either
projects/{project}/global/networks/{network} or {network}, where
{project} is a project id where the network is defined, and {network}
is the short name of the network.
This field is mutually exclusive with vpc_connector and will be replaced
by it.
See the VPC documentation for
more information on connecting Cloud projects.
string network = 18;
| Parameter | |
|---|---|
| Name | Description |
value |
String The network to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setNetworkBytes(ByteString value)
publicCloudFunction.BuildersetNetworkBytes(ByteStringvalue) The VPC Network that this cloud function can connect to. It can be
either the fully-qualified URI, or the short name of the network resource.
If the short network name is used, the network must belong to the same
project. Otherwise, it must belong to a project within the same
organization. The format of this field is either
projects/{project}/global/networks/{network} or {network}, where
{project} is a project id where the network is defined, and {network}
is the short name of the network.
This field is mutually exclusive with vpc_connector and will be replaced
by it.
See the VPC documentation for
more information on connecting Cloud projects.
string network = 18;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for network to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicCloudFunction.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setRuntime(String value)
publicCloudFunction.BuildersetRuntime(Stringvalue) 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.
string runtime = 19;
| Parameter | |
|---|---|
| Name | Description |
value |
String The runtime to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setRuntimeBytes(ByteString value)
publicCloudFunction.BuildersetRuntimeBytes(ByteStringvalue) 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.
string runtime = 19;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for runtime to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setSecretEnvironmentVariables(int index, SecretEnvVar value)
publicCloudFunction.BuildersetSecretEnvironmentVariables(intindex,SecretEnvVarvalue)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SecretEnvVar |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)
publicCloudFunction.BuildersetSecretEnvironmentVariables(intindex,SecretEnvVar.BuilderbuilderForValue)Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SecretEnvVar.Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setSecretVolumes(int index, SecretVolume value)
publicCloudFunction.BuildersetSecretVolumes(intindex,SecretVolumevalue)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SecretVolume |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setSecretVolumes(int index, SecretVolume.Builder builderForValue)
publicCloudFunction.BuildersetSecretVolumes(intindex,SecretVolume.BuilderbuilderForValue)Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SecretVolume.Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setServiceAccountEmail(String value)
publicCloudFunction.BuildersetServiceAccountEmail(Stringvalue) The email of the function's service account. If empty, defaults to
{project_id}@appspot.gserviceaccount.com.
string service_account_email = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
String The serviceAccountEmail to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setServiceAccountEmailBytes(ByteString value)
publicCloudFunction.BuildersetServiceAccountEmailBytes(ByteStringvalue) The email of the function's service account. If empty, defaults to
{project_id}@appspot.gserviceaccount.com.
string service_account_email = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for serviceAccountEmail to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setSourceArchiveUrl(String value)
publicCloudFunction.BuildersetSourceArchiveUrl(Stringvalue) The Google Cloud Storage URL, starting with gs://, pointing to the zip
archive which contains the function.
string source_archive_url = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
String The sourceArchiveUrl to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setSourceArchiveUrlBytes(ByteString value)
publicCloudFunction.BuildersetSourceArchiveUrlBytes(ByteStringvalue) The Google Cloud Storage URL, starting with gs://, pointing to the zip
archive which contains the function.
string source_archive_url = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for sourceArchiveUrl to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setSourceRepository(SourceRepository value)
publicCloudFunction.BuildersetSourceRepository(SourceRepositoryvalue)Beta Feature The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
SourceRepository |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setSourceRepository(SourceRepository.Builder builderForValue)
publicCloudFunction.BuildersetSourceRepository(SourceRepository.BuilderbuilderForValue)Beta Feature The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SourceRepository.Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setSourceToken(String value)
publicCloudFunction.BuildersetSourceToken(Stringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
String The sourceToken to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setSourceTokenBytes(ByteString value)
publicCloudFunction.BuildersetSourceTokenBytes(ByteStringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for sourceToken to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setSourceUploadUrl(String value)
publicCloudFunction.BuildersetSourceUploadUrl(Stringvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
String The sourceUploadUrl to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setSourceUploadUrlBytes(ByteString value)
publicCloudFunction.BuildersetSourceUploadUrlBytes(ByteStringvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for sourceUploadUrl to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setStatus(CloudFunctionStatus value)
publicCloudFunction.BuildersetStatus(CloudFunctionStatusvalue)Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
CloudFunctionStatus The status to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setStatusValue(int value)
publicCloudFunction.BuildersetStatusValue(intvalue)Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for status to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setTimeout(Duration value)
publicCloudFunction.BuildersetTimeout(Durationvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setTimeout(Duration.Builder builderForValue)
publicCloudFunction.BuildersetTimeout(Duration.BuilderbuilderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalCloudFunction.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setUpdateTime(Timestamp value)
publicCloudFunction.BuildersetUpdateTime(Timestampvalue)Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
publicCloudFunction.BuildersetUpdateTime(Timestamp.BuilderbuilderForValue)Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
|
setVersionId(long value)
publicCloudFunction.BuildersetVersionId(longvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
long The versionId to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setVpcConnector(String value)
publicCloudFunction.BuildersetVpcConnector(Stringvalue) 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 for
more information on connecting Cloud projects.
string vpc_connector = 22;
| Parameter | |
|---|---|
| Name | Description |
value |
String The vpcConnector to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setVpcConnectorBytes(ByteString value)
publicCloudFunction.BuildersetVpcConnectorBytes(ByteStringvalue) 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 for
more information on connecting Cloud projects.
string vpc_connector = 22;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for vpcConnector to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setVpcConnectorEgressSettings(CloudFunction.VpcConnectorEgressSettings value)
publicCloudFunction.BuildersetVpcConnectorEgressSettings(CloudFunction.VpcConnectorEgressSettingsvalue)The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;
| Parameter | |
|---|---|
| Name | Description |
value |
CloudFunction.VpcConnectorEgressSettings The vpcConnectorEgressSettings to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |
setVpcConnectorEgressSettingsValue(int value)
publicCloudFunction.BuildersetVpcConnectorEgressSettingsValue(intvalue)The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for vpcConnectorEgressSettings to set. |
| Returns | |
|---|---|
| Type | Description |
CloudFunction.Builder |
This builder for chaining. |