Package com.google.cloud.functions.v1
Interface CloudFunctionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CloudFunction,CloudFunction.Builder
@Generated
public interface CloudFunctionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanBuild environment variables that shall be available during build time.booleanEnvironment variables that shall be available during function execution.booleancontainsLabels(String key) Labels associated with this Cloud Function..google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;intThe amount of memory in MB available for a function.Deprecated.intBuild environment variables that shall be available during build time.Build environment variables that shall be available during build time.getBuildEnvironmentVariablesOrDefault(String key, String defaultValue) Build environment variables that shall be available during build time.Build environment variables that shall be available during build time.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.A service account the user provides for use with Cloud Build.com.google.protobuf.ByteStringA service account the user provides for use with Cloud Build.Name of the Cloud Build Custom Worker Pool that should be used to build the function.com.google.protobuf.ByteStringName of the Cloud Build Custom Worker Pool that should be used to build the function.User-provided description of a function.com.google.protobuf.ByteStringUser-provided description of a function.Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated.intDeprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated.User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build.com.google.protobuf.ByteStringUser-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build.The name of the function (as defined in source code) that will be executed.com.google.protobuf.ByteStringThe name of the function (as defined in source code) that will be executed.Deprecated.intEnvironment variables that shall be available during function execution.Environment variables that shall be available during function execution.getEnvironmentVariablesOrDefault(String key, String defaultValue) Environment variables that shall be available during function execution.Environment variables that shall be available during function execution.A source that fires events in response to a condition in another service.A source that fires events in response to a condition in another service.An HTTPS endpoint type of source that can be triggered via URL.An HTTPS endpoint type of source that can be triggered via URL.The ingress settings for the function, controlling what traffic can reach it.intThe ingress settings for the function, controlling what traffic can reach it.Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.com.google.protobuf.ByteStringResource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.Deprecated.intLabels associated with this Cloud Function.Labels associated with this Cloud Function.getLabelsOrDefault(String key, String defaultValue) Labels associated with this Cloud Function.getLabelsOrThrow(String key) Labels associated with this Cloud Function.intThe limit on the maximum number of function instances that may coexist at a given time.intA lower bound for the number function instances that may coexist at a given time.getName()A user-defined name of the function.com.google.protobuf.ByteStringA user-defined name of the function.Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.functions.v1.CloudFunction.network is deprecated..google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;The runtime in which to run the function.com.google.protobuf.ByteStringThe runtime in which to run the function.getSecretEnvironmentVariables(int index) Secret environment variables configuration.intSecret environment variables configuration.Secret environment variables configuration.getSecretEnvironmentVariablesOrBuilder(int index) Secret environment variables configuration.List<? extends SecretEnvVarOrBuilder>Secret environment variables configuration.getSecretVolumes(int index) Secret volumes configuration.intSecret volumes configuration.Secret volumes configuration.getSecretVolumesOrBuilder(int index) Secret volumes configuration.List<? extends SecretVolumeOrBuilder>Secret volumes configuration.The email of the function's service account.com.google.protobuf.ByteStringThe email of the function's service account.The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.com.google.protobuf.ByteStringThe Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.**Beta Feature** The source repository where a function is hosted.**Beta Feature** The source repository where a function is hosted.Input only.com.google.protobuf.ByteStringInput only.The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].com.google.protobuf.ByteStringThe Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].Output only.intOutput only.com.google.protobuf.DurationThe function execution timeout.com.google.protobuf.DurationOrBuilderThe function execution timeout.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.longOutput only.The VPC Network Connector that this cloud function can connect to.com.google.protobuf.ByteStringThe VPC Network Connector that this cloud function can connect to.The egress settings for the connector, controlling what traffic is diverted through it.intThe egress settings for the connector, controlling what traffic is diverted through it.boolean.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;booleanA source that fires events in response to a condition in another service.booleanAn HTTPS endpoint type of source that can be triggered via URL.boolean.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;booleanThe Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.boolean**Beta Feature** The source repository where a function is hosted.booleanThe Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].booleanThe function execution timeout.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Returns:
- The bytes for name.
-
getDescription
String getDescription()User-provided description of a function.
string description = 2;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()User-provided description of a function.
string description = 2;- Returns:
- The bytes for description.
-
hasSourceArchiveUrl
boolean hasSourceArchiveUrl()The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Returns:
- Whether the sourceArchiveUrl field is set.
-
getSourceArchiveUrl
String getSourceArchiveUrl()The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Returns:
- The sourceArchiveUrl.
-
getSourceArchiveUrlBytes
com.google.protobuf.ByteString getSourceArchiveUrlBytes()The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Returns:
- The bytes for sourceArchiveUrl.
-
hasSourceRepository
boolean hasSourceRepository()**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;- Returns:
- Whether the sourceRepository field is set.
-
getSourceRepository
SourceRepository getSourceRepository()**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;- Returns:
- The sourceRepository.
-
getSourceRepositoryOrBuilder
SourceRepositoryOrBuilder getSourceRepositoryOrBuilder()**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4; -
hasSourceUploadUrl
boolean hasSourceUploadUrl()The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Returns:
- Whether the sourceUploadUrl field is set.
-
getSourceUploadUrl
String getSourceUploadUrl()The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Returns:
- The sourceUploadUrl.
-
getSourceUploadUrlBytes
com.google.protobuf.ByteString getSourceUploadUrlBytes()The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Returns:
- The bytes for sourceUploadUrl.
-
hasHttpsTrigger
boolean hasHttpsTrigger()An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;- Returns:
- Whether the httpsTrigger field is set.
-
getHttpsTrigger
HttpsTrigger getHttpsTrigger()An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;- Returns:
- The httpsTrigger.
-
getHttpsTriggerOrBuilder
HttpsTriggerOrBuilder getHttpsTriggerOrBuilder()An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5; -
hasEventTrigger
boolean hasEventTrigger()A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;- Returns:
- Whether the eventTrigger field is set.
-
getEventTrigger
EventTrigger getEventTrigger()A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;- Returns:
- The eventTrigger.
-
getEventTriggerOrBuilder
EventTriggerOrBuilder getEventTriggerOrBuilder()A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6; -
getStatusValue
int getStatusValue()Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for status.
-
getStatus
CloudFunctionStatus getStatus()Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The status.
-
getEntryPoint
String getEntryPoint()The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix (ID of the function), if not specified.
string entry_point = 8;- Returns:
- The entryPoint.
-
getEntryPointBytes
com.google.protobuf.ByteString getEntryPointBytes()The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix (ID of the function), if not specified.
string entry_point = 8;- Returns:
- The bytes for entryPoint.
-
getRuntime
String getRuntime()The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Returns:
- The runtime.
-
getRuntimeBytes
com.google.protobuf.ByteString getRuntimeBytes()The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Returns:
- The bytes for runtime.
-
hasTimeout
boolean hasTimeout()The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;- Returns:
- Whether the timeout field is set.
-
getTimeout
com.google.protobuf.Duration getTimeout()The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;- Returns:
- The timeout.
-
getTimeoutOrBuilder
com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9; -
getAvailableMemoryMb
int getAvailableMemoryMb()The amount of memory in MB available for a function. Defaults to 256MB.
int32 available_memory_mb = 10;- Returns:
- The availableMemoryMb.
-
getServiceAccountEmail
String getServiceAccountEmail()The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
com.google.protobuf.ByteString getServiceAccountEmailBytes()The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Returns:
- The bytes for serviceAccountEmail.
-
hasUpdateTime
boolean hasUpdateTime()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getVersionId
long getVersionId()Output only. The version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being created.
int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The versionId.
-
getLabelsCount
int getLabelsCount()Labels associated with this Cloud Function.
map<string, string> labels = 15; -
containsLabels
Labels associated with this Cloud Function.
map<string, string> labels = 15; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
getLabelsMap
Labels associated with this Cloud Function.
map<string, string> labels = 15; -
getLabelsOrDefault
Labels associated with this Cloud Function.
map<string, string> labels = 15; -
getLabelsOrThrow
Labels associated with this Cloud Function.
map<string, string> labels = 15; -
getEnvironmentVariablesCount
int getEnvironmentVariablesCount()Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17; -
containsEnvironmentVariables
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17; -
getEnvironmentVariables
Deprecated.UsegetEnvironmentVariablesMap()instead. -
getEnvironmentVariablesMap
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17; -
getEnvironmentVariablesOrDefault
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17; -
getEnvironmentVariablesOrThrow
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17; -
getBuildEnvironmentVariablesCount
int getBuildEnvironmentVariablesCount()Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28; -
containsBuildEnvironmentVariables
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28; -
getBuildEnvironmentVariables
Deprecated.UsegetBuildEnvironmentVariablesMap()instead. -
getBuildEnvironmentVariablesMap
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28; -
getBuildEnvironmentVariablesOrDefault
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28; -
getBuildEnvironmentVariablesOrThrow
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28; -
getNetwork
Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated. See google/cloud/functions/v1/functions.proto;l=355Deprecated: use vpc_connector
string network = 18 [deprecated = true];- Returns:
- The network.
-
getNetworkBytes
Deprecated.google.cloud.functions.v1.CloudFunction.network is deprecated. See google/cloud/functions/v1/functions.proto;l=355Deprecated: use vpc_connector
string network = 18 [deprecated = true];- Returns:
- The bytes for network.
-
getMaxInstances
int getMaxInstances()The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
int32 max_instances = 20;- Returns:
- The maxInstances.
-
getMinInstances
int getMinInstances()A lower bound for the number function instances that may coexist at a given time.
int32 min_instances = 32;- Returns:
- The minInstances.
-
getVpcConnector
String getVpcConnector()The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Returns:
- The vpcConnector.
-
getVpcConnectorBytes
com.google.protobuf.ByteString getVpcConnectorBytes()The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Returns:
- The bytes for vpcConnector.
-
getVpcConnectorEgressSettingsValue
int getVpcConnectorEgressSettingsValue()The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Returns:
- The enum numeric value on the wire for vpcConnectorEgressSettings.
-
getVpcConnectorEgressSettings
CloudFunction.VpcConnectorEgressSettings getVpcConnectorEgressSettings()The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Returns:
- The vpcConnectorEgressSettings.
-
getIngressSettingsValue
int getIngressSettingsValue()The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Returns:
- The enum numeric value on the wire for ingressSettings.
-
getIngressSettings
CloudFunction.IngressSettings getIngressSettings()The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Returns:
- The ingressSettings.
-
getKmsKeyName
String getKmsKeyName()Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
com.google.protobuf.ByteString getKmsKeyNameBytes()Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Returns:
- The bytes for kmsKeyName.
-
getBuildWorkerPool
String getBuildWorkerPool()Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Returns:
- The buildWorkerPool.
-
getBuildWorkerPoolBytes
com.google.protobuf.ByteString getBuildWorkerPoolBytes()Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Returns:
- The bytes for buildWorkerPool.
-
getBuildId
String getBuildId()Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The buildId.
-
getBuildIdBytes
com.google.protobuf.ByteString getBuildIdBytes()Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for buildId.
-
getBuildName
String getBuildName()Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The buildName.
-
getBuildNameBytes
com.google.protobuf.ByteString getBuildNameBytes()Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for buildName.
-
getSecretEnvironmentVariablesList
List<SecretEnvVar> getSecretEnvironmentVariablesList()Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
getSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
getSecretEnvironmentVariablesCount
int getSecretEnvironmentVariablesCount()Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
getSecretEnvironmentVariablesOrBuilderList
List<? extends SecretEnvVarOrBuilder> getSecretEnvironmentVariablesOrBuilderList()Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
getSecretEnvironmentVariablesOrBuilder
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; -
getSecretVolumesList
List<SecretVolume> getSecretVolumesList()Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
getSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
getSecretVolumesCount
int getSecretVolumesCount()Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
getSecretVolumesOrBuilderList
List<? extends SecretVolumeOrBuilder> getSecretVolumesOrBuilderList()Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
getSecretVolumesOrBuilder
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; -
getSourceToken
String getSourceToken()Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Returns:
- The sourceToken.
-
getSourceTokenBytes
com.google.protobuf.ByteString getSourceTokenBytes()Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Returns:
- The bytes for sourceToken.
-
getDockerRepository
String getDockerRepository()User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `docker_registry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Returns:
- The dockerRepository.
-
getDockerRepositoryBytes
com.google.protobuf.ByteString getDockerRepositoryBytes()User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `docker_registry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Returns:
- The bytes for dockerRepository.
-
getDockerRegistryValue
Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated. See google/cloud/functions/v1/functions.proto;l=486Docker Registry to use for this deployment. As of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35 [deprecated = true];- Returns:
- The enum numeric value on the wire for dockerRegistry.
-
getDockerRegistry
Deprecated.google.cloud.functions.v1.CloudFunction.docker_registry is deprecated. See google/cloud/functions/v1/functions.proto;l=486Docker Registry to use for this deployment. As of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35 [deprecated = true];- Returns:
- The dockerRegistry.
-
hasAutomaticUpdatePolicy
boolean hasAutomaticUpdatePolicy().google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;- Returns:
- Whether the automaticUpdatePolicy field is set.
-
getAutomaticUpdatePolicy
CloudFunction.AutomaticUpdatePolicy getAutomaticUpdatePolicy().google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40;- Returns:
- The automaticUpdatePolicy.
-
getAutomaticUpdatePolicyOrBuilder
CloudFunction.AutomaticUpdatePolicyOrBuilder getAutomaticUpdatePolicyOrBuilder().google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy automatic_update_policy = 40; -
hasOnDeployUpdatePolicy
boolean hasOnDeployUpdatePolicy().google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;- Returns:
- Whether the onDeployUpdatePolicy field is set.
-
getOnDeployUpdatePolicy
CloudFunction.OnDeployUpdatePolicy getOnDeployUpdatePolicy().google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41;- Returns:
- The onDeployUpdatePolicy.
-
getOnDeployUpdatePolicyOrBuilder
CloudFunction.OnDeployUpdatePolicyOrBuilder getOnDeployUpdatePolicyOrBuilder().google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
getBuildServiceAccount
String getBuildServiceAccount()A service account the user provides for use with Cloud Build. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string build_service_account = 43;- Returns:
- The buildServiceAccount.
-
getBuildServiceAccountBytes
com.google.protobuf.ByteString getBuildServiceAccountBytes()A service account the user provides for use with Cloud Build. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string build_service_account = 43;- Returns:
- The bytes for buildServiceAccount.
-
getSourceCodeCase
CloudFunction.SourceCodeCase getSourceCodeCase() -
getTriggerCase
CloudFunction.TriggerCase getTriggerCase() -
getRuntimeUpdatePolicyCase
CloudFunction.RuntimeUpdatePolicyCase getRuntimeUpdatePolicyCase()
-