Class BuildConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
com.google.cloud.functions.v2alpha.BuildConfig.Builder
- All Implemented Interfaces:
BuildConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BuildConfig
public static final class BuildConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
implements BuildConfigOrBuilder
Describes the Build step of the function that builds a container from the given source.Protobuf type
google.cloud.functions.v2alpha.BuildConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear().google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;Output only.Docker Registry to use for this deployment.Repository in Artifact Registry to which the function 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..google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41;The runtime in which to run the function.Service account to be used for building the container.The location of the function source code.Output only.Name of the Cloud Build Custom Worker Pool that should be used to build the function.booleanUser-provided build-time environment variables for the function.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;getBuild()Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDocker Registry to use for this deployment.intDocker Registry to use for this deployment.Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build.com.google.protobuf.ByteStringRepository in Artifact Registry to which the function 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.intUser-provided build-time environment variables for the functionUser-provided build-time environment variables for the functiongetEnvironmentVariablesOrDefault(String key, String defaultValue) User-provided build-time environment variables for the functionUser-provided build-time environment variables for the functionDeprecated..google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41;.google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41;.google.cloud.functions.v2alpha.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.Service account to be used for building the container.com.google.protobuf.ByteStringService account to be used for building the container.The location of the function source code.The location of the function source code.The location of the function source code.Output only.Output only.Output only.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.boolean.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;boolean.google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41;booleanThe location of the function source code.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final boolean.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;mergeFrom(BuildConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41;mergeSource(Source value) The location of the function source code.Output only.putAllEnvironmentVariables(Map<String, String> values) User-provided build-time environment variables for the functionputEnvironmentVariables(String key, String value) User-provided build-time environment variables for the functionUser-provided build-time environment variables for the function.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;setAutomaticUpdatePolicy(AutomaticUpdatePolicy.Builder builderForValue) .google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;Output only.setBuildBytes(com.google.protobuf.ByteString value) Output only.Docker Registry to use for this deployment.setDockerRegistryValue(int value) Docker Registry to use for this deployment.setDockerRepository(String value) Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build.setDockerRepositoryBytes(com.google.protobuf.ByteString value) Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build.setEntryPoint(String value) The name of the function (as defined in source code) that will be executed.setEntryPointBytes(com.google.protobuf.ByteString value) The name of the function (as defined in source code) that will be executed..google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41;setOnDeployUpdatePolicy(OnDeployUpdatePolicy.Builder builderForValue) .google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41;setRuntime(String value) The runtime in which to run the function.setRuntimeBytes(com.google.protobuf.ByteString value) The runtime in which to run the function.setServiceAccount(String value) Service account to be used for building the container.setServiceAccountBytes(com.google.protobuf.ByteString value) Service account to be used for building the container.The location of the function source code.setSource(Source.Builder builderForValue) The location of the function source code.Output only.setSourceProvenance(SourceProvenance.Builder builderForValue) Output only.setWorkerPool(String value) Name of the Cloud Build Custom Worker Pool that should be used to build the function.setWorkerPoolBytes(com.google.protobuf.ByteString value) Name of the Cloud Build Custom Worker Pool that should be used to build the function.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
-
mergeFrom
public BuildConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildConfig.Builder>- Throws:
IOException
-
getRuntimeUpdatePolicyCase
- Specified by:
getRuntimeUpdatePolicyCasein interfaceBuildConfigOrBuilder
-
clearRuntimeUpdatePolicy
-
hasAutomaticUpdatePolicy
public boolean hasAutomaticUpdatePolicy().google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;- Specified by:
hasAutomaticUpdatePolicyin interfaceBuildConfigOrBuilder- Returns:
- Whether the automaticUpdatePolicy field is set.
-
getAutomaticUpdatePolicy
.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;- Specified by:
getAutomaticUpdatePolicyin interfaceBuildConfigOrBuilder- Returns:
- The automaticUpdatePolicy.
-
setAutomaticUpdatePolicy
.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40; -
setAutomaticUpdatePolicy
.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40; -
mergeAutomaticUpdatePolicy
.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40; -
clearAutomaticUpdatePolicy
.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40; -
getAutomaticUpdatePolicyBuilder
.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40; -
getAutomaticUpdatePolicyOrBuilder
.google.cloud.functions.v2alpha.AutomaticUpdatePolicy automatic_update_policy = 40;- Specified by:
getAutomaticUpdatePolicyOrBuilderin interfaceBuildConfigOrBuilder
-
hasOnDeployUpdatePolicy
public boolean hasOnDeployUpdatePolicy().google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41;- Specified by:
hasOnDeployUpdatePolicyin interfaceBuildConfigOrBuilder- Returns:
- Whether the onDeployUpdatePolicy field is set.
-
getOnDeployUpdatePolicy
.google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41;- Specified by:
getOnDeployUpdatePolicyin interfaceBuildConfigOrBuilder- Returns:
- The onDeployUpdatePolicy.
-
setOnDeployUpdatePolicy
.google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
setOnDeployUpdatePolicy
.google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
mergeOnDeployUpdatePolicy
.google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
clearOnDeployUpdatePolicy
.google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
getOnDeployUpdatePolicyBuilder
.google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41; -
getOnDeployUpdatePolicyOrBuilder
.google.cloud.functions.v2alpha.OnDeployUpdatePolicy on_deploy_update_policy = 41;- Specified by:
getOnDeployUpdatePolicyOrBuilderin interfaceBuildConfigOrBuilder
-
getBuild
Output only. The Cloud Build name of the latest successful deployment of the function.
string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getBuildin interfaceBuildConfigOrBuilder- Returns:
- The build.
-
getBuildBytes
public com.google.protobuf.ByteString getBuildBytes()Output only. The Cloud Build name of the latest successful deployment of the function.
string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getBuildBytesin interfaceBuildConfigOrBuilder- Returns:
- The bytes for build.
-
setBuild
Output only. The Cloud Build name of the latest successful deployment of the function.
string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The build to set.- Returns:
- This builder for chaining.
-
clearBuild
Output only. The Cloud Build name of the latest successful deployment of the function.
string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setBuildBytes
Output only. The Cloud Build name of the latest successful deployment of the function.
string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for build to set.- Returns:
- This builder for chaining.
-
getRuntime
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 2;- Specified by:
getRuntimein interfaceBuildConfigOrBuilder- Returns:
- The runtime.
-
getRuntimeBytes
public com.google.protobuf.ByteString getRuntimeBytes()The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 2;- Specified by:
getRuntimeBytesin interfaceBuildConfigOrBuilder- Returns:
- The bytes for runtime.
-
setRuntime
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 2;- Parameters:
value- The runtime to set.- Returns:
- This builder for chaining.
-
clearRuntime
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 2;- Returns:
- This builder for chaining.
-
setRuntimeBytes
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 2;- Parameters:
value- The bytes for runtime to set.- Returns:
- This builder for chaining.
-
getEntryPoint
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, 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 = 3;- Specified by:
getEntryPointin interfaceBuildConfigOrBuilder- Returns:
- The entryPoint.
-
getEntryPointBytes
public com.google.protobuf.ByteString getEntryPointBytes()The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, 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 = 3;- Specified by:
getEntryPointBytesin interfaceBuildConfigOrBuilder- Returns:
- The bytes for entryPoint.
-
setEntryPoint
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, 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 = 3;- Parameters:
value- The entryPoint to set.- Returns:
- This builder for chaining.
-
clearEntryPoint
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, 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 = 3;- Returns:
- This builder for chaining.
-
setEntryPointBytes
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, 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 = 3;- Parameters:
value- The bytes for entryPoint to set.- Returns:
- This builder for chaining.
-
hasSource
public boolean hasSource()The location of the function source code.
.google.cloud.functions.v2alpha.Source source = 4;- Specified by:
hasSourcein interfaceBuildConfigOrBuilder- Returns:
- Whether the source field is set.
-
getSource
The location of the function source code.
.google.cloud.functions.v2alpha.Source source = 4;- Specified by:
getSourcein interfaceBuildConfigOrBuilder- Returns:
- The source.
-
setSource
The location of the function source code.
.google.cloud.functions.v2alpha.Source source = 4; -
setSource
The location of the function source code.
.google.cloud.functions.v2alpha.Source source = 4; -
mergeSource
The location of the function source code.
.google.cloud.functions.v2alpha.Source source = 4; -
clearSource
The location of the function source code.
.google.cloud.functions.v2alpha.Source source = 4; -
getSourceBuilder
The location of the function source code.
.google.cloud.functions.v2alpha.Source source = 4; -
getSourceOrBuilder
The location of the function source code.
.google.cloud.functions.v2alpha.Source source = 4;- Specified by:
getSourceOrBuilderin interfaceBuildConfigOrBuilder
-
hasSourceProvenance
public boolean hasSourceProvenance()Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSourceProvenancein interfaceBuildConfigOrBuilder- Returns:
- Whether the sourceProvenance field is set.
-
getSourceProvenance
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceProvenancein interfaceBuildConfigOrBuilder- Returns:
- The sourceProvenance.
-
setSourceProvenance
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setSourceProvenance
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeSourceProvenance
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearSourceProvenance
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSourceProvenanceBuilder
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSourceProvenanceOrBuilder
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceProvenanceOrBuilderin interfaceBuildConfigOrBuilder
-
getWorkerPool
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 worker_pool = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getWorkerPoolin interfaceBuildConfigOrBuilder- Returns:
- The workerPool.
-
getWorkerPoolBytes
public com.google.protobuf.ByteString getWorkerPoolBytes()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 worker_pool = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getWorkerPoolBytesin interfaceBuildConfigOrBuilder- Returns:
- The bytes for workerPool.
-
setWorkerPool
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 worker_pool = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The workerPool to set.- Returns:
- This builder for chaining.
-
clearWorkerPool
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 worker_pool = 5 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setWorkerPoolBytes
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 worker_pool = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for workerPool to set.- Returns:
- This builder for chaining.
-
getEnvironmentVariablesCount
public int getEnvironmentVariablesCount()Description copied from interface:BuildConfigOrBuilderUser-provided build-time environment variables for the function
map<string, string> environment_variables = 6;- Specified by:
getEnvironmentVariablesCountin interfaceBuildConfigOrBuilder
-
containsEnvironmentVariables
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;- Specified by:
containsEnvironmentVariablesin interfaceBuildConfigOrBuilder
-
getEnvironmentVariables
Deprecated.UsegetEnvironmentVariablesMap()instead.- Specified by:
getEnvironmentVariablesin interfaceBuildConfigOrBuilder
-
getEnvironmentVariablesMap
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;- Specified by:
getEnvironmentVariablesMapin interfaceBuildConfigOrBuilder
-
getEnvironmentVariablesOrDefault
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;- Specified by:
getEnvironmentVariablesOrDefaultin interfaceBuildConfigOrBuilder
-
getEnvironmentVariablesOrThrow
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;- Specified by:
getEnvironmentVariablesOrThrowin interfaceBuildConfigOrBuilder
-
clearEnvironmentVariables
-
removeEnvironmentVariables
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6; -
getMutableEnvironmentVariables
Deprecated.Use alternate mutation accessors instead. -
putEnvironmentVariables
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6; -
putAllEnvironmentVariables
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6; -
getDockerRegistryValue
public int getDockerRegistryValue()Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. 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.v2alpha.BuildConfig.DockerRegistry docker_registry = 10;- Specified by:
getDockerRegistryValuein interfaceBuildConfigOrBuilder- Returns:
- The enum numeric value on the wire for dockerRegistry.
-
setDockerRegistryValue
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. 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.v2alpha.BuildConfig.DockerRegistry docker_registry = 10;- Parameters:
value- The enum numeric value on the wire for dockerRegistry to set.- Returns:
- This builder for chaining.
-
getDockerRegistry
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. 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.v2alpha.BuildConfig.DockerRegistry docker_registry = 10;- Specified by:
getDockerRegistryin interfaceBuildConfigOrBuilder- Returns:
- The dockerRegistry.
-
setDockerRegistry
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. 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.v2alpha.BuildConfig.DockerRegistry docker_registry = 10;- Parameters:
value- The dockerRegistry to set.- Returns:
- This builder for chaining.
-
clearDockerRegistry
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. 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.v2alpha.BuildConfig.DockerRegistry docker_registry = 10;- Returns:
- This builder for chaining.
-
getDockerRepository
Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed 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 = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getDockerRepositoryin interfaceBuildConfigOrBuilder- Returns:
- The dockerRepository.
-
getDockerRepositoryBytes
public com.google.protobuf.ByteString getDockerRepositoryBytes()Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed 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 = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getDockerRepositoryBytesin interfaceBuildConfigOrBuilder- Returns:
- The bytes for dockerRepository.
-
setDockerRepository
Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed 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 = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The dockerRepository to set.- Returns:
- This builder for chaining.
-
clearDockerRepository
Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed 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 = 7 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setDockerRepositoryBytes
Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed 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 = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for dockerRepository to set.- Returns:
- This builder for chaining.
-
getServiceAccount
Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string service_account = 27;- Specified by:
getServiceAccountin interfaceBuildConfigOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string service_account = 27;- Specified by:
getServiceAccountBytesin interfaceBuildConfigOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string service_account = 27;- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string service_account = 27;- Returns:
- This builder for chaining.
-
setServiceAccountBytes
Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.string service_account = 27;- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-