Package com.google.cloud.functions.v2
Class BuildConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
- com.google.cloud.functions.v2.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.GeneratedMessageV3.Builder<BuildConfig.Builder> implements BuildConfigOrBuilder
Describes the Build step of the function that builds a container from the given source.
Protobuf typegoogle.cloud.functions.v2.BuildConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BuildConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BuildConfigbuild()BuildConfigbuildPartial()BuildConfig.Builderclear()BuildConfig.BuilderclearBuild()Output only.BuildConfig.BuilderclearDockerRegistry()Docker Registry to use for this deployment.BuildConfig.BuilderclearDockerRepository()User managed repository created in Artifact Registry optionally with a customer managed encryption key.BuildConfig.BuilderclearEntryPoint()The name of the function (as defined in source code) that will be executed.BuildConfig.BuilderclearEnvironmentVariables()BuildConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BuildConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BuildConfig.BuilderclearRuntime()The runtime in which to run the function.BuildConfig.BuilderclearSource()The location of the function source code.BuildConfig.BuilderclearSourceProvenance()Output only.BuildConfig.BuilderclearWorkerPool()Name of the Cloud Build Custom Worker Pool that should be used to build the function.BuildConfig.Builderclone()booleancontainsEnvironmentVariables(String key)User-provided build-time environment variables for the functionStringgetBuild()Output only.com.google.protobuf.ByteStringgetBuildBytes()Output only.BuildConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()BuildConfig.DockerRegistrygetDockerRegistry()Docker Registry to use for this deployment.intgetDockerRegistryValue()Docker Registry to use for this deployment.StringgetDockerRepository()User managed repository created in Artifact Registry optionally with a customer managed encryption key.com.google.protobuf.ByteStringgetDockerRepositoryBytes()User managed repository created in Artifact Registry optionally with a customer managed encryption key.StringgetEntryPoint()The name of the function (as defined in source code) that will be executed.com.google.protobuf.ByteStringgetEntryPointBytes()The name of the function (as defined in source code) that will be executed.Map<String,String>getEnvironmentVariables()Deprecated.intgetEnvironmentVariablesCount()User-provided build-time environment variables for the functionMap<String,String>getEnvironmentVariablesMap()User-provided build-time environment variables for the functionStringgetEnvironmentVariablesOrDefault(String key, String defaultValue)User-provided build-time environment variables for the functionStringgetEnvironmentVariablesOrThrow(String key)User-provided build-time environment variables for the functionMap<String,String>getMutableEnvironmentVariables()Deprecated.StringgetRuntime()The runtime in which to run the function.com.google.protobuf.ByteStringgetRuntimeBytes()The runtime in which to run the function.SourcegetSource()The location of the function source code.Source.BuildergetSourceBuilder()The location of the function source code.SourceOrBuildergetSourceOrBuilder()The location of the function source code.SourceProvenancegetSourceProvenance()Output only.SourceProvenance.BuildergetSourceProvenanceBuilder()Output only.SourceProvenanceOrBuildergetSourceProvenanceOrBuilder()Output only.StringgetWorkerPool()Name of the Cloud Build Custom Worker Pool that should be used to build the function.com.google.protobuf.ByteStringgetWorkerPoolBytes()Name of the Cloud Build Custom Worker Pool that should be used to build the function.booleanhasSource()The location of the function source code.booleanhasSourceProvenance()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()BuildConfig.BuildermergeFrom(BuildConfig other)BuildConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BuildConfig.BuildermergeFrom(com.google.protobuf.Message other)BuildConfig.BuildermergeSource(Source value)The location of the function source code.BuildConfig.BuildermergeSourceProvenance(SourceProvenance value)Output only.BuildConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BuildConfig.BuilderputAllEnvironmentVariables(Map<String,String> values)User-provided build-time environment variables for the functionBuildConfig.BuilderputEnvironmentVariables(String key, String value)User-provided build-time environment variables for the functionBuildConfig.BuilderremoveEnvironmentVariables(String key)User-provided build-time environment variables for the functionBuildConfig.BuildersetBuild(String value)Output only.BuildConfig.BuildersetBuildBytes(com.google.protobuf.ByteString value)Output only.BuildConfig.BuildersetDockerRegistry(BuildConfig.DockerRegistry value)Docker Registry to use for this deployment.BuildConfig.BuildersetDockerRegistryValue(int value)Docker Registry to use for this deployment.BuildConfig.BuildersetDockerRepository(String value)User managed repository created in Artifact Registry optionally with a customer managed encryption key.BuildConfig.BuildersetDockerRepositoryBytes(com.google.protobuf.ByteString value)User managed repository created in Artifact Registry optionally with a customer managed encryption key.BuildConfig.BuildersetEntryPoint(String value)The name of the function (as defined in source code) that will be executed.BuildConfig.BuildersetEntryPointBytes(com.google.protobuf.ByteString value)The name of the function (as defined in source code) that will be executed.BuildConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BuildConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BuildConfig.BuildersetRuntime(String value)The runtime in which to run the function.BuildConfig.BuildersetRuntimeBytes(com.google.protobuf.ByteString value)The runtime in which to run the function.BuildConfig.BuildersetSource(Source value)The location of the function source code.BuildConfig.BuildersetSource(Source.Builder builderForValue)The location of the function source code.BuildConfig.BuildersetSourceProvenance(SourceProvenance value)Output only.BuildConfig.BuildersetSourceProvenance(SourceProvenance.Builder builderForValue)Output only.BuildConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BuildConfig.BuildersetWorkerPool(String value)Name of the Cloud Build Custom Worker Pool that should be used to build the function.BuildConfig.BuildersetWorkerPoolBytes(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.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
clear
public BuildConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<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.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
getDefaultInstanceForType
public BuildConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BuildConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BuildConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BuildConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
setField
public BuildConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
clearField
public BuildConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
clearOneof
public BuildConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
setRepeatedField
public BuildConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
addRepeatedField
public BuildConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
mergeFrom
public BuildConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildConfig.Builder>
-
mergeFrom
public BuildConfig.Builder mergeFrom(BuildConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
-
getBuild
public String 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
public BuildConfig.Builder setBuild(String value)
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
public BuildConfig.Builder 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
public BuildConfig.Builder setBuildBytes(com.google.protobuf.ByteString value)
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
public 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 = 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
public BuildConfig.Builder setRuntime(String value)
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
public BuildConfig.Builder 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
public BuildConfig.Builder setRuntimeBytes(com.google.protobuf.ByteString value)
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
public String 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
public BuildConfig.Builder setEntryPoint(String value)
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
public BuildConfig.Builder 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
public BuildConfig.Builder setEntryPointBytes(com.google.protobuf.ByteString value)
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.v2.Source source = 4;- Specified by:
hasSourcein interfaceBuildConfigOrBuilder- Returns:
- Whether the source field is set.
-
getSource
public Source getSource()
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;- Specified by:
getSourcein interfaceBuildConfigOrBuilder- Returns:
- The source.
-
setSource
public BuildConfig.Builder setSource(Source value)
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;
-
setSource
public BuildConfig.Builder setSource(Source.Builder builderForValue)
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;
-
mergeSource
public BuildConfig.Builder mergeSource(Source value)
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;
-
clearSource
public BuildConfig.Builder clearSource()
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;
-
getSourceBuilder
public Source.Builder getSourceBuilder()
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;
-
getSourceOrBuilder
public SourceOrBuilder getSourceOrBuilder()
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;- Specified by:
getSourceOrBuilderin interfaceBuildConfigOrBuilder
-
hasSourceProvenance
public boolean hasSourceProvenance()
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSourceProvenancein interfaceBuildConfigOrBuilder- Returns:
- Whether the sourceProvenance field is set.
-
getSourceProvenance
public SourceProvenance getSourceProvenance()
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceProvenancein interfaceBuildConfigOrBuilder- Returns:
- The sourceProvenance.
-
setSourceProvenance
public BuildConfig.Builder setSourceProvenance(SourceProvenance value)
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setSourceProvenance
public BuildConfig.Builder setSourceProvenance(SourceProvenance.Builder builderForValue)
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeSourceProvenance
public BuildConfig.Builder mergeSourceProvenance(SourceProvenance value)
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearSourceProvenance
public BuildConfig.Builder clearSourceProvenance()
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getSourceProvenanceBuilder
public SourceProvenance.Builder getSourceProvenanceBuilder()
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getSourceProvenanceOrBuilder
public SourceProvenanceOrBuilder getSourceProvenanceOrBuilder()
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceProvenanceOrBuilderin interfaceBuildConfigOrBuilder
-
getWorkerPool
public String 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
public BuildConfig.Builder setWorkerPool(String value)
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
public BuildConfig.Builder 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
public BuildConfig.Builder setWorkerPoolBytes(com.google.protobuf.ByteString value)
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
public boolean containsEnvironmentVariables(String key)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;- Specified by:
containsEnvironmentVariablesin interfaceBuildConfigOrBuilder
-
getEnvironmentVariables
@Deprecated public Map<String,String> getEnvironmentVariables()
Deprecated.UsegetEnvironmentVariablesMap()instead.- Specified by:
getEnvironmentVariablesin interfaceBuildConfigOrBuilder
-
getEnvironmentVariablesMap
public Map<String,String> getEnvironmentVariablesMap()
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;- Specified by:
getEnvironmentVariablesMapin interfaceBuildConfigOrBuilder
-
getEnvironmentVariablesOrDefault
public String getEnvironmentVariablesOrDefault(String key, String defaultValue)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;- Specified by:
getEnvironmentVariablesOrDefaultin interfaceBuildConfigOrBuilder
-
getEnvironmentVariablesOrThrow
public String getEnvironmentVariablesOrThrow(String key)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;- Specified by:
getEnvironmentVariablesOrThrowin interfaceBuildConfigOrBuilder
-
clearEnvironmentVariables
public BuildConfig.Builder clearEnvironmentVariables()
-
removeEnvironmentVariables
public BuildConfig.Builder removeEnvironmentVariables(String key)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;
-
getMutableEnvironmentVariables
@Deprecated public Map<String,String> getMutableEnvironmentVariables()
Deprecated.Use alternate mutation accessors instead.
-
putEnvironmentVariables
public BuildConfig.Builder putEnvironmentVariables(String key, String value)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;
-
putAllEnvironmentVariables
public BuildConfig.Builder putAllEnvironmentVariables(Map<String,String> values)
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 `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.v2.BuildConfig.DockerRegistry docker_registry = 10;- Specified by:
getDockerRegistryValuein interfaceBuildConfigOrBuilder- Returns:
- The enum numeric value on the wire for dockerRegistry.
-
setDockerRegistryValue
public BuildConfig.Builder setDockerRegistryValue(int value)
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 `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.v2.BuildConfig.DockerRegistry docker_registry = 10;- Parameters:
value- The enum numeric value on the wire for dockerRegistry to set.- Returns:
- This builder for chaining.
-
getDockerRegistry
public BuildConfig.DockerRegistry 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 `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.v2.BuildConfig.DockerRegistry docker_registry = 10;- Specified by:
getDockerRegistryin interfaceBuildConfigOrBuilder- Returns:
- The dockerRegistry.
-
setDockerRegistry
public BuildConfig.Builder setDockerRegistry(BuildConfig.DockerRegistry value)
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 `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.v2.BuildConfig.DockerRegistry docker_registry = 10;- Parameters:
value- The dockerRegistry to set.- Returns:
- This builder for chaining.
-
clearDockerRegistry
public BuildConfig.Builder 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 `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.v2.BuildConfig.DockerRegistry docker_registry = 10;- Returns:
- This builder for chaining.
-
getDockerRepository
public String getDockerRepository()
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, 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()
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, 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
public BuildConfig.Builder setDockerRepository(String value)
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, 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
public BuildConfig.Builder clearDockerRepository()
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, 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
public BuildConfig.Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value)
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, 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.
-
setUnknownFields
public final BuildConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
mergeUnknownFields
public final BuildConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>
-
-