Class BuildConfig.Builder (0.16.0)

public static final class BuildConfig.Builder extends GeneratedMessageV3.Builder<BuildConfig.Builder> implements BuildConfigOrBuilder

Describes the Build step of the function that builds a container from the given source.

Protobuf type google.events.cloud.functions.v2.BuildConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BuildConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BuildConfig.Builder
Overrides

build()

public BuildConfig build()
Returns
Type Description
BuildConfig

buildPartial()

public BuildConfig buildPartial()
Returns
Type Description
BuildConfig

clear()

public BuildConfig.Builder clear()
Returns
Type Description
BuildConfig.Builder
Overrides

clearBuild()

public BuildConfig.Builder clearBuild()

Output only. The Cloud Build name of the latest successful deployment of the function.

string build = 1;

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

clearBuildpackStack()

public BuildConfig.Builder clearBuildpackStack()

Specifies one of the Google provided buildpack stacks.

string buildpack_stack = 9;

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

clearDockerRegistry()

public BuildConfig.Builder clearDockerRegistry()

Optional. 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.events.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10;

Returns
Type Description
BuildConfig.Builder

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;

Returns
Type Description
BuildConfig.Builder

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
Type Description
BuildConfig.Builder

This builder for chaining.

clearEnvironmentVariables()

public BuildConfig.Builder clearEnvironmentVariables()
Returns
Type Description
BuildConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public BuildConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BuildConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BuildConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BuildConfig.Builder
Overrides

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.

string runtime = 2;

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

clearSource()

public BuildConfig.Builder clearSource()

The location of the function source code.

.google.events.cloud.functions.v2.Source source = 4;

Returns
Type Description
BuildConfig.Builder

clearSourceProvenance()

public BuildConfig.Builder clearSourceProvenance()

Output only. A permanent fixed identifier for source.

.google.events.cloud.functions.v2.SourceProvenance source_provenance = 8;

Returns
Type Description
BuildConfig.Builder

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;

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

clone()

public BuildConfig.Builder clone()
Returns
Type Description
BuildConfig.Builder
Overrides

containsEnvironmentVariables(String key)

public boolean containsEnvironmentVariables(String key)

User-provided build-time environment variables for the function

map<string, string> environment_variables = 6;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBuild()

public String getBuild()

Output only. The Cloud Build name of the latest successful deployment of the function.

string build = 1;

Returns
Type Description
String

The build.

getBuildBytes()

public ByteString getBuildBytes()

Output only. The Cloud Build name of the latest successful deployment of the function.

string build = 1;

Returns
Type Description
ByteString

The bytes for build.

getBuildpackStack()

public String getBuildpackStack()

Specifies one of the Google provided buildpack stacks.

string buildpack_stack = 9;

Returns
Type Description
String

The buildpackStack.

getBuildpackStackBytes()

public ByteString getBuildpackStackBytes()

Specifies one of the Google provided buildpack stacks.

string buildpack_stack = 9;

Returns
Type Description
ByteString

The bytes for buildpackStack.

getDefaultInstanceForType()

public BuildConfig getDefaultInstanceForType()
Returns
Type Description
BuildConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDockerRegistry()

public BuildConfig.DockerRegistry getDockerRegistry()

Optional. 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.events.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10;

Returns
Type Description
BuildConfig.DockerRegistry

The dockerRegistry.

getDockerRegistryValue()

public int getDockerRegistryValue()

Optional. 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.events.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10;

Returns
Type Description
int

The enum numeric value on the wire for dockerRegistry.

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;

Returns
Type Description
String

The dockerRepository.

getDockerRepositoryBytes()

public 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;

Returns
Type Description
ByteString

The bytes for dockerRepository.

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;

Returns
Type Description
String

The entryPoint.

getEntryPointBytes()

public 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;

Returns
Type Description
ByteString

The bytes for entryPoint.

getEnvironmentVariables()

public Map<String,String> getEnvironmentVariables()
Returns
Type Description
Map<String,String>

getEnvironmentVariablesCount()

public int getEnvironmentVariablesCount()

User-provided build-time environment variables for the function

map<string, string> environment_variables = 6;

Returns
Type Description
int

getEnvironmentVariablesMap()

public Map<String,String> getEnvironmentVariablesMap()

User-provided build-time environment variables for the function

map<string, string> environment_variables = 6;

Returns
Type Description
Map<String,String>

getEnvironmentVariablesOrDefault(String key, String defaultValue)

public String getEnvironmentVariablesOrDefault(String key, String defaultValue)

User-provided build-time environment variables for the function

map<string, string> environment_variables = 6;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getEnvironmentVariablesOrThrow(String key)

public String getEnvironmentVariablesOrThrow(String key)

User-provided build-time environment variables for the function

map<string, string> environment_variables = 6;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableEnvironmentVariables()

public Map<String,String> getMutableEnvironmentVariables()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

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.

string runtime = 2;

Returns
Type Description
String

The runtime.

getRuntimeBytes()

public 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.

string runtime = 2;

Returns
Type Description
ByteString

The bytes for runtime.

getSource()

public Source getSource()

The location of the function source code.

.google.events.cloud.functions.v2.Source source = 4;

Returns
Type Description
Source

The source.

getSourceBuilder()

public Source.Builder getSourceBuilder()

The location of the function source code.

.google.events.cloud.functions.v2.Source source = 4;

Returns
Type Description
Source.Builder

getSourceOrBuilder()

public SourceOrBuilder getSourceOrBuilder()

The location of the function source code.

.google.events.cloud.functions.v2.Source source = 4;

Returns
Type Description
SourceOrBuilder

getSourceProvenance()

public SourceProvenance getSourceProvenance()

Output only. A permanent fixed identifier for source.

.google.events.cloud.functions.v2.SourceProvenance source_provenance = 8;

Returns
Type Description
SourceProvenance

The sourceProvenance.

getSourceProvenanceBuilder()

public SourceProvenance.Builder getSourceProvenanceBuilder()

Output only. A permanent fixed identifier for source.

.google.events.cloud.functions.v2.SourceProvenance source_provenance = 8;

Returns
Type Description
SourceProvenance.Builder

getSourceProvenanceOrBuilder()

public SourceProvenanceOrBuilder getSourceProvenanceOrBuilder()

Output only. A permanent fixed identifier for source.

.google.events.cloud.functions.v2.SourceProvenance source_provenance = 8;

Returns
Type Description
SourceProvenanceOrBuilder

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;

Returns
Type Description
String

The workerPool.

getWorkerPoolBytes()

public 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;

Returns
Type Description
ByteString

The bytes for workerPool.

hasSource()

public boolean hasSource()

The location of the function source code.

.google.events.cloud.functions.v2.Source source = 4;

Returns
Type Description
boolean

Whether the source field is set.

hasSourceProvenance()

public boolean hasSourceProvenance()

Output only. A permanent fixed identifier for source.

.google.events.cloud.functions.v2.SourceProvenance source_provenance = 8;

Returns
Type Description
boolean

Whether the sourceProvenance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BuildConfig other)

public BuildConfig.Builder mergeFrom(BuildConfig other)
Parameter
Name Description
other BuildConfig
Returns
Type Description
BuildConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BuildConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BuildConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BuildConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BuildConfig.Builder
Overrides

mergeSource(Source value)

public BuildConfig.Builder mergeSource(Source value)

The location of the function source code.

.google.events.cloud.functions.v2.Source source = 4;

Parameter
Name Description
value Source
Returns
Type Description
BuildConfig.Builder

mergeSourceProvenance(SourceProvenance value)

public BuildConfig.Builder mergeSourceProvenance(SourceProvenance value)

Output only. A permanent fixed identifier for source.

.google.events.cloud.functions.v2.SourceProvenance source_provenance = 8;

Parameter
Name Description
value SourceProvenance
Returns
Type Description
BuildConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BuildConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BuildConfig.Builder
Overrides

putAllEnvironmentVariables(Map<String,String> values)

public BuildConfig.Builder putAllEnvironmentVariables(Map<String,String> values)

User-provided build-time environment variables for the function

map<string, string> environment_variables = 6;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
BuildConfig.Builder

putEnvironmentVariables(String key, String value)

public BuildConfig.Builder putEnvironmentVariables(String key, String value)

User-provided build-time environment variables for the function

map<string, string> environment_variables = 6;

Parameters
Name Description
key String
value String
Returns
Type Description
BuildConfig.Builder

removeEnvironmentVariables(String key)

public BuildConfig.Builder removeEnvironmentVariables(String key)

User-provided build-time environment variables for the function

map<string, string> environment_variables = 6;

Parameter
Name Description
key String
Returns
Type Description
BuildConfig.Builder

setBuild(String value)

public BuildConfig.Builder setBuild(String value)

Output only. The Cloud Build name of the latest successful deployment of the function.

string build = 1;

Parameter
Name Description
value String

The build to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setBuildBytes(ByteString value)

public BuildConfig.Builder setBuildBytes(ByteString value)

Output only. The Cloud Build name of the latest successful deployment of the function.

string build = 1;

Parameter
Name Description
value ByteString

The bytes for build to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setBuildpackStack(String value)

public BuildConfig.Builder setBuildpackStack(String value)

Specifies one of the Google provided buildpack stacks.

string buildpack_stack = 9;

Parameter
Name Description
value String

The buildpackStack to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setBuildpackStackBytes(ByteString value)

public BuildConfig.Builder setBuildpackStackBytes(ByteString value)

Specifies one of the Google provided buildpack stacks.

string buildpack_stack = 9;

Parameter
Name Description
value ByteString

The bytes for buildpackStack to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setDockerRegistry(BuildConfig.DockerRegistry value)

public BuildConfig.Builder setDockerRegistry(BuildConfig.DockerRegistry value)

Optional. 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.events.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10;

Parameter
Name Description
value BuildConfig.DockerRegistry

The dockerRegistry to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setDockerRegistryValue(int value)

public BuildConfig.Builder setDockerRegistryValue(int value)

Optional. 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.events.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10;

Parameter
Name Description
value int

The enum numeric value on the wire for dockerRegistry to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setDockerRepository(String value)

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;

Parameter
Name Description
value String

The dockerRepository to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setDockerRepositoryBytes(ByteString value)

public BuildConfig.Builder setDockerRepositoryBytes(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;

Parameter
Name Description
value ByteString

The bytes for dockerRepository to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setEntryPoint(String value)

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;

Parameter
Name Description
value String

The entryPoint to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setEntryPointBytes(ByteString value)

public BuildConfig.Builder setEntryPointBytes(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;

Parameter
Name Description
value ByteString

The bytes for entryPoint to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BuildConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BuildConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BuildConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BuildConfig.Builder
Overrides

setRuntime(String value)

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.

string runtime = 2;

Parameter
Name Description
value String

The runtime to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setRuntimeBytes(ByteString value)

public BuildConfig.Builder setRuntimeBytes(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.

string runtime = 2;

Parameter
Name Description
value ByteString

The bytes for runtime to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setSource(Source value)

public BuildConfig.Builder setSource(Source value)

The location of the function source code.

.google.events.cloud.functions.v2.Source source = 4;

Parameter
Name Description
value Source
Returns
Type Description
BuildConfig.Builder

setSource(Source.Builder builderForValue)

public BuildConfig.Builder setSource(Source.Builder builderForValue)

The location of the function source code.

.google.events.cloud.functions.v2.Source source = 4;

Parameter
Name Description
builderForValue Source.Builder
Returns
Type Description
BuildConfig.Builder

setSourceProvenance(SourceProvenance value)

public BuildConfig.Builder setSourceProvenance(SourceProvenance value)

Output only. A permanent fixed identifier for source.

.google.events.cloud.functions.v2.SourceProvenance source_provenance = 8;

Parameter
Name Description
value SourceProvenance
Returns
Type Description
BuildConfig.Builder

setSourceProvenance(SourceProvenance.Builder builderForValue)

public BuildConfig.Builder setSourceProvenance(SourceProvenance.Builder builderForValue)

Output only. A permanent fixed identifier for source.

.google.events.cloud.functions.v2.SourceProvenance source_provenance = 8;

Parameter
Name Description
builderForValue SourceProvenance.Builder
Returns
Type Description
BuildConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BuildConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BuildConfig.Builder
Overrides

setWorkerPool(String value)

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;

Parameter
Name Description
value String

The workerPool to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.

setWorkerPoolBytes(ByteString value)

public BuildConfig.Builder setWorkerPoolBytes(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;

Parameter
Name Description
value ByteString

The bytes for workerPool to set.

Returns
Type Description
BuildConfig.Builder

This builder for chaining.