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 type
google.cloud.functions.v2.BuildConfig| Modifier and Type | Method and Description |
|---|---|
BuildConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BuildConfig |
build() |
BuildConfig |
buildPartial() |
BuildConfig.Builder |
clear() |
BuildConfig.Builder |
clearBuild()
Output only.
|
BuildConfig.Builder |
clearDockerRegistry()
Docker Registry to use for this deployment.
|
BuildConfig.Builder |
clearDockerRepository()
User managed repository created in Artifact Registry optionally
with a customer managed encryption key.
|
BuildConfig.Builder |
clearEntryPoint()
The name of the function (as defined in source code) that will be
executed.
|
BuildConfig.Builder |
clearEnvironmentVariables() |
BuildConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BuildConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BuildConfig.Builder |
clearRuntime()
The runtime in which to run the function.
|
BuildConfig.Builder |
clearSource()
The location of the function source code.
|
BuildConfig.Builder |
clearSourceProvenance()
Output only.
|
BuildConfig.Builder |
clearWorkerPool()
Name of the Cloud Build Custom Worker Pool that should be used to build the
function.
|
BuildConfig.Builder |
clone() |
boolean |
containsEnvironmentVariables(String key)
User-provided build-time environment variables for the function
|
String |
getBuild()
Output only.
|
com.google.protobuf.ByteString |
getBuildBytes()
Output only.
|
BuildConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
BuildConfig.DockerRegistry |
getDockerRegistry()
Docker Registry to use for this deployment.
|
int |
getDockerRegistryValue()
Docker Registry to use for this deployment.
|
String |
getDockerRepository()
User managed repository created in Artifact Registry optionally
with a customer managed encryption key.
|
com.google.protobuf.ByteString |
getDockerRepositoryBytes()
User managed repository created in Artifact Registry optionally
with a customer managed encryption key.
|
String |
getEntryPoint()
The name of the function (as defined in source code) that will be
executed.
|
com.google.protobuf.ByteString |
getEntryPointBytes()
The name of the function (as defined in source code) that will be
executed.
|
Map<String,String> |
getEnvironmentVariables()
Deprecated.
|
int |
getEnvironmentVariablesCount()
User-provided build-time environment variables for the function
|
Map<String,String> |
getEnvironmentVariablesMap()
User-provided build-time environment variables for the function
|
String |
getEnvironmentVariablesOrDefault(String key,
String defaultValue)
User-provided build-time environment variables for the function
|
String |
getEnvironmentVariablesOrThrow(String key)
User-provided build-time environment variables for the function
|
Map<String,String> |
getMutableEnvironmentVariables()
Deprecated.
|
String |
getRuntime()
The runtime in which to run the function.
|
com.google.protobuf.ByteString |
getRuntimeBytes()
The runtime in which to run the function.
|
Source |
getSource()
The location of the function source code.
|
Source.Builder |
getSourceBuilder()
The location of the function source code.
|
SourceOrBuilder |
getSourceOrBuilder()
The location of the function source code.
|
SourceProvenance |
getSourceProvenance()
Output only.
|
SourceProvenance.Builder |
getSourceProvenanceBuilder()
Output only.
|
SourceProvenanceOrBuilder |
getSourceProvenanceOrBuilder()
Output only.
|
String |
getWorkerPool()
Name of the Cloud Build Custom Worker Pool that should be used to build the
function.
|
com.google.protobuf.ByteString |
getWorkerPoolBytes()
Name of the Cloud Build Custom Worker Pool that should be used to build the
function.
|
boolean |
hasSource()
The location of the function source code.
|
boolean |
hasSourceProvenance()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
BuildConfig.Builder |
mergeFrom(BuildConfig other) |
BuildConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BuildConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
BuildConfig.Builder |
mergeSource(Source value)
The location of the function source code.
|
BuildConfig.Builder |
mergeSourceProvenance(SourceProvenance value)
Output only.
|
BuildConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BuildConfig.Builder |
putAllEnvironmentVariables(Map<String,String> values)
User-provided build-time environment variables for the function
|
BuildConfig.Builder |
putEnvironmentVariables(String key,
String value)
User-provided build-time environment variables for the function
|
BuildConfig.Builder |
removeEnvironmentVariables(String key)
User-provided build-time environment variables for the function
|
BuildConfig.Builder |
setBuild(String value)
Output only.
|
BuildConfig.Builder |
setBuildBytes(com.google.protobuf.ByteString value)
Output only.
|
BuildConfig.Builder |
setDockerRegistry(BuildConfig.DockerRegistry value)
Docker Registry to use for this deployment.
|
BuildConfig.Builder |
setDockerRegistryValue(int value)
Docker Registry to use for this deployment.
|
BuildConfig.Builder |
setDockerRepository(String value)
User managed repository created in Artifact Registry optionally
with a customer managed encryption key.
|
BuildConfig.Builder |
setDockerRepositoryBytes(com.google.protobuf.ByteString value)
User managed repository created in Artifact Registry optionally
with a customer managed encryption key.
|
BuildConfig.Builder |
setEntryPoint(String value)
The name of the function (as defined in source code) that will be
executed.
|
BuildConfig.Builder |
setEntryPointBytes(com.google.protobuf.ByteString value)
The name of the function (as defined in source code) that will be
executed.
|
BuildConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BuildConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BuildConfig.Builder |
setRuntime(String value)
The runtime in which to run the function.
|
BuildConfig.Builder |
setRuntimeBytes(com.google.protobuf.ByteString value)
The runtime in which to run the function.
|
BuildConfig.Builder |
setSource(Source.Builder builderForValue)
The location of the function source code.
|
BuildConfig.Builder |
setSource(Source value)
The location of the function source code.
|
BuildConfig.Builder |
setSourceProvenance(SourceProvenance.Builder builderForValue)
Output only.
|
BuildConfig.Builder |
setSourceProvenance(SourceProvenance value)
Output only.
|
BuildConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BuildConfig.Builder |
setWorkerPool(String value)
Name of the Cloud Build Custom Worker Pool that should be used to build the
function.
|
BuildConfig.Builder |
setWorkerPoolBytes(com.google.protobuf.ByteString value)
Name of the Cloud Build Custom Worker Pool that should be used to build the
function.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public BuildConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public BuildConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BuildConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BuildConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BuildConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public BuildConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public BuildConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public BuildConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public BuildConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public BuildConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public BuildConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BuildConfig.Builder>public BuildConfig.Builder mergeFrom(BuildConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public BuildConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BuildConfig.Builder>IOExceptionpublic 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) = { ... }
getBuild in interface BuildConfigOrBuilderpublic 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) = { ... }
getBuildBytes in interface BuildConfigOrBuilderpublic 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) = { ... }
value - The build to set.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) = { ... }
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) = { ... }
value - The bytes for build to set.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;getRuntime in interface BuildConfigOrBuilderpublic 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;getRuntimeBytes in interface BuildConfigOrBuilderpublic 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;value - The runtime to set.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;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;value - The bytes for runtime to set.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;getEntryPoint in interface BuildConfigOrBuilderpublic 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;getEntryPointBytes in interface BuildConfigOrBuilderpublic 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;value - The entryPoint to set.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;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;value - The bytes for entryPoint to set.public boolean hasSource()
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;hasSource in interface BuildConfigOrBuilderpublic Source getSource()
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;getSource in interface BuildConfigOrBuilderpublic BuildConfig.Builder setSource(Source value)
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;public BuildConfig.Builder setSource(Source.Builder builderForValue)
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;public BuildConfig.Builder mergeSource(Source value)
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;public BuildConfig.Builder clearSource()
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;public Source.Builder getSourceBuilder()
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;public SourceOrBuilder getSourceOrBuilder()
The location of the function source code.
.google.cloud.functions.v2.Source source = 4;getSourceOrBuilder in interface BuildConfigOrBuilderpublic boolean hasSourceProvenance()
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasSourceProvenance in interface BuildConfigOrBuilderpublic SourceProvenance getSourceProvenance()
Output only. A permanent fixed identifier for source.
.google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSourceProvenance in interface BuildConfigOrBuilderpublic 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];
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];
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];
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];
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];
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];
getSourceProvenanceOrBuilder in interface BuildConfigOrBuilderpublic 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) = { ... }getWorkerPool in interface BuildConfigOrBuilderpublic 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) = { ... }getWorkerPoolBytes in interface BuildConfigOrBuilderpublic 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) = { ... }value - The workerPool to set.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) = { ... }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) = { ... }value - The bytes for workerPool to set.public int getEnvironmentVariablesCount()
BuildConfigOrBuilderUser-provided build-time environment variables for the function
map<string, string> environment_variables = 6;getEnvironmentVariablesCount in interface BuildConfigOrBuilderpublic boolean containsEnvironmentVariables(String key)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;containsEnvironmentVariables in interface BuildConfigOrBuilder@Deprecated public Map<String,String> getEnvironmentVariables()
getEnvironmentVariablesMap() instead.getEnvironmentVariables in interface BuildConfigOrBuilderpublic Map<String,String> getEnvironmentVariablesMap()
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;getEnvironmentVariablesMap in interface BuildConfigOrBuilderpublic String getEnvironmentVariablesOrDefault(String key, String defaultValue)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;getEnvironmentVariablesOrDefault in interface BuildConfigOrBuilderpublic String getEnvironmentVariablesOrThrow(String key)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;getEnvironmentVariablesOrThrow in interface BuildConfigOrBuilderpublic BuildConfig.Builder clearEnvironmentVariables()
public BuildConfig.Builder removeEnvironmentVariables(String key)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;@Deprecated public Map<String,String> getMutableEnvironmentVariables()
public BuildConfig.Builder putEnvironmentVariables(String key, String value)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;public BuildConfig.Builder putAllEnvironmentVariables(Map<String,String> values)
User-provided build-time environment variables for the function
map<string, string> environment_variables = 6;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;getDockerRegistryValue in interface BuildConfigOrBuilderpublic 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;value - The enum numeric value on the wire for dockerRegistry to set.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;getDockerRegistry in interface BuildConfigOrBuilderpublic 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;value - The dockerRegistry to set.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;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) = { ... }getDockerRepository in interface BuildConfigOrBuilderpublic 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) = { ... }getDockerRepositoryBytes in interface BuildConfigOrBuilderpublic 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) = { ... }value - The dockerRepository to set.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) = { ... }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) = { ... }value - The bytes for dockerRepository to set.public final BuildConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>public final BuildConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BuildConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.