Class BuildConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
com.google.cloud.functions.v2beta.BuildConfig.Builder
All Implemented Interfaces:
BuildConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BuildConfig

public static final class BuildConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder> implements BuildConfigOrBuilder
 Describes the Build step of the function that builds a container from the
 given source.
 
Protobuf type google.cloud.functions.v2beta.BuildConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
    • clear

      public BuildConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
    • getDefaultInstanceForType

      public BuildConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BuildConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BuildConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BuildConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BuildConfig.Builder>
    • mergeFrom

      public BuildConfig.Builder mergeFrom(BuildConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BuildConfig.Builder>
    • mergeFrom

      public BuildConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BuildConfig.Builder>
      Throws:
      IOException
    • getRuntimeUpdatePolicyCase

      public BuildConfig.RuntimeUpdatePolicyCase getRuntimeUpdatePolicyCase()
      Specified by:
      getRuntimeUpdatePolicyCase in interface BuildConfigOrBuilder
    • clearRuntimeUpdatePolicy

      public BuildConfig.Builder clearRuntimeUpdatePolicy()
    • hasAutomaticUpdatePolicy

      public boolean hasAutomaticUpdatePolicy()
      .google.cloud.functions.v2beta.AutomaticUpdatePolicy automatic_update_policy = 40;
      Specified by:
      hasAutomaticUpdatePolicy in interface BuildConfigOrBuilder
      Returns:
      Whether the automaticUpdatePolicy field is set.
    • getAutomaticUpdatePolicy

      public AutomaticUpdatePolicy getAutomaticUpdatePolicy()
      .google.cloud.functions.v2beta.AutomaticUpdatePolicy automatic_update_policy = 40;
      Specified by:
      getAutomaticUpdatePolicy in interface BuildConfigOrBuilder
      Returns:
      The automaticUpdatePolicy.
    • setAutomaticUpdatePolicy

      public BuildConfig.Builder setAutomaticUpdatePolicy(AutomaticUpdatePolicy value)
      .google.cloud.functions.v2beta.AutomaticUpdatePolicy automatic_update_policy = 40;
    • setAutomaticUpdatePolicy

      public BuildConfig.Builder setAutomaticUpdatePolicy(AutomaticUpdatePolicy.Builder builderForValue)
      .google.cloud.functions.v2beta.AutomaticUpdatePolicy automatic_update_policy = 40;
    • mergeAutomaticUpdatePolicy

      public BuildConfig.Builder mergeAutomaticUpdatePolicy(AutomaticUpdatePolicy value)
      .google.cloud.functions.v2beta.AutomaticUpdatePolicy automatic_update_policy = 40;
    • clearAutomaticUpdatePolicy

      public BuildConfig.Builder clearAutomaticUpdatePolicy()
      .google.cloud.functions.v2beta.AutomaticUpdatePolicy automatic_update_policy = 40;
    • getAutomaticUpdatePolicyBuilder

      public AutomaticUpdatePolicy.Builder getAutomaticUpdatePolicyBuilder()
      .google.cloud.functions.v2beta.AutomaticUpdatePolicy automatic_update_policy = 40;
    • getAutomaticUpdatePolicyOrBuilder

      public AutomaticUpdatePolicyOrBuilder getAutomaticUpdatePolicyOrBuilder()
      .google.cloud.functions.v2beta.AutomaticUpdatePolicy automatic_update_policy = 40;
      Specified by:
      getAutomaticUpdatePolicyOrBuilder in interface BuildConfigOrBuilder
    • hasOnDeployUpdatePolicy

      public boolean hasOnDeployUpdatePolicy()
      .google.cloud.functions.v2beta.OnDeployUpdatePolicy on_deploy_update_policy = 41;
      Specified by:
      hasOnDeployUpdatePolicy in interface BuildConfigOrBuilder
      Returns:
      Whether the onDeployUpdatePolicy field is set.
    • getOnDeployUpdatePolicy

      public OnDeployUpdatePolicy getOnDeployUpdatePolicy()
      .google.cloud.functions.v2beta.OnDeployUpdatePolicy on_deploy_update_policy = 41;
      Specified by:
      getOnDeployUpdatePolicy in interface BuildConfigOrBuilder
      Returns:
      The onDeployUpdatePolicy.
    • setOnDeployUpdatePolicy

      public BuildConfig.Builder setOnDeployUpdatePolicy(OnDeployUpdatePolicy value)
      .google.cloud.functions.v2beta.OnDeployUpdatePolicy on_deploy_update_policy = 41;
    • setOnDeployUpdatePolicy

      public BuildConfig.Builder setOnDeployUpdatePolicy(OnDeployUpdatePolicy.Builder builderForValue)
      .google.cloud.functions.v2beta.OnDeployUpdatePolicy on_deploy_update_policy = 41;
    • mergeOnDeployUpdatePolicy

      public BuildConfig.Builder mergeOnDeployUpdatePolicy(OnDeployUpdatePolicy value)
      .google.cloud.functions.v2beta.OnDeployUpdatePolicy on_deploy_update_policy = 41;
    • clearOnDeployUpdatePolicy

      public BuildConfig.Builder clearOnDeployUpdatePolicy()
      .google.cloud.functions.v2beta.OnDeployUpdatePolicy on_deploy_update_policy = 41;
    • getOnDeployUpdatePolicyBuilder

      public OnDeployUpdatePolicy.Builder getOnDeployUpdatePolicyBuilder()
      .google.cloud.functions.v2beta.OnDeployUpdatePolicy on_deploy_update_policy = 41;
    • getOnDeployUpdatePolicyOrBuilder

      public OnDeployUpdatePolicyOrBuilder getOnDeployUpdatePolicyOrBuilder()
      .google.cloud.functions.v2beta.OnDeployUpdatePolicy on_deploy_update_policy = 41;
      Specified by:
      getOnDeployUpdatePolicyOrBuilder in interface BuildConfigOrBuilder
    • 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:
      getBuild in interface BuildConfigOrBuilder
      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:
      getBuildBytes in interface BuildConfigOrBuilder
      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:
      getRuntime in interface BuildConfigOrBuilder
      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:
      getRuntimeBytes in interface BuildConfigOrBuilder
      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:
      getEntryPoint in interface BuildConfigOrBuilder
      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:
      getEntryPointBytes in interface BuildConfigOrBuilder
      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.v2beta.Source source = 4;
      Specified by:
      hasSource in interface BuildConfigOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public Source getSource()
       The location of the function source code.
       
      .google.cloud.functions.v2beta.Source source = 4;
      Specified by:
      getSource in interface BuildConfigOrBuilder
      Returns:
      The source.
    • setSource

      public BuildConfig.Builder setSource(Source value)
       The location of the function source code.
       
      .google.cloud.functions.v2beta.Source source = 4;
    • setSource

      public BuildConfig.Builder setSource(Source.Builder builderForValue)
       The location of the function source code.
       
      .google.cloud.functions.v2beta.Source source = 4;
    • mergeSource

      public BuildConfig.Builder mergeSource(Source value)
       The location of the function source code.
       
      .google.cloud.functions.v2beta.Source source = 4;
    • clearSource

      public BuildConfig.Builder clearSource()
       The location of the function source code.
       
      .google.cloud.functions.v2beta.Source source = 4;
    • getSourceBuilder

      public Source.Builder getSourceBuilder()
       The location of the function source code.
       
      .google.cloud.functions.v2beta.Source source = 4;
    • getSourceOrBuilder

      public SourceOrBuilder getSourceOrBuilder()
       The location of the function source code.
       
      .google.cloud.functions.v2beta.Source source = 4;
      Specified by:
      getSourceOrBuilder in interface BuildConfigOrBuilder
    • hasSourceProvenance

      public boolean hasSourceProvenance()
       Output only. A permanent fixed identifier for source.
       
      .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSourceProvenance in interface BuildConfigOrBuilder
      Returns:
      Whether the sourceProvenance field is set.
    • getSourceProvenance

      public SourceProvenance getSourceProvenance()
       Output only. A permanent fixed identifier for source.
       
      .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceProvenance in interface BuildConfigOrBuilder
      Returns:
      The sourceProvenance.
    • setSourceProvenance

      public BuildConfig.Builder setSourceProvenance(SourceProvenance value)
       Output only. A permanent fixed identifier for source.
       
      .google.cloud.functions.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceProvenanceOrBuilder in interface BuildConfigOrBuilder
    • 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:
      getWorkerPool in interface BuildConfigOrBuilder
      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:
      getWorkerPoolBytes in interface BuildConfigOrBuilder
      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: BuildConfigOrBuilder
       User-provided build-time environment variables for the function
       
      map<string, string> environment_variables = 6;
      Specified by:
      getEnvironmentVariablesCount in interface BuildConfigOrBuilder
    • containsEnvironmentVariables

      public boolean containsEnvironmentVariables(String key)
       User-provided build-time environment variables for the function
       
      map<string, string> environment_variables = 6;
      Specified by:
      containsEnvironmentVariables in interface BuildConfigOrBuilder
    • getEnvironmentVariables

      @Deprecated public Map<String,String> getEnvironmentVariables()
      Deprecated.
      Specified by:
      getEnvironmentVariables in interface BuildConfigOrBuilder
    • getEnvironmentVariablesMap

      public Map<String,String> getEnvironmentVariablesMap()
       User-provided build-time environment variables for the function
       
      map<string, string> environment_variables = 6;
      Specified by:
      getEnvironmentVariablesMap in interface BuildConfigOrBuilder
    • 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:
      getEnvironmentVariablesOrDefault in interface BuildConfigOrBuilder
    • getEnvironmentVariablesOrThrow

      public String getEnvironmentVariablesOrThrow(String key)
       User-provided build-time environment variables for the function
       
      map<string, string> environment_variables = 6;
      Specified by:
      getEnvironmentVariablesOrThrow in interface BuildConfigOrBuilder
    • 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 unspecified, it defaults to `ARTIFACT_REGISTRY`.
       If `docker_repository` field is specified, this field should either be left
       unspecified or set to `ARTIFACT_REGISTRY`.
       
      .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10;
      Specified by:
      getDockerRegistryValue in interface BuildConfigOrBuilder
      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 unspecified, it defaults to `ARTIFACT_REGISTRY`.
       If `docker_repository` field is specified, this field should either be left
       unspecified or set to `ARTIFACT_REGISTRY`.
       
      .google.cloud.functions.v2beta.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 unspecified, it defaults to `ARTIFACT_REGISTRY`.
       If `docker_repository` field is specified, this field should either be left
       unspecified or set to `ARTIFACT_REGISTRY`.
       
      .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10;
      Specified by:
      getDockerRegistry in interface BuildConfigOrBuilder
      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 unspecified, it defaults to `ARTIFACT_REGISTRY`.
       If `docker_repository` field is specified, this field should either be left
       unspecified or set to `ARTIFACT_REGISTRY`.
       
      .google.cloud.functions.v2beta.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 unspecified, it defaults to `ARTIFACT_REGISTRY`.
       If `docker_repository` field is specified, this field should either be left
       unspecified or set to `ARTIFACT_REGISTRY`.
       
      .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10;
      Returns:
      This builder for chaining.
    • getDockerRepository

      public String getDockerRepository()
       Repository in Artifact Registry to which the function docker image will be
       pushed after it is built by Cloud Build. If specified by user, it is
       created and managed by user with a customer managed encryption key.
       Otherwise, GCF will create and use a repository named 'gcf-artifacts'
       for every deployed region.
      
       It must match the pattern
       `projects/{project}/locations/{location}/repositories/{repository}`.
      
       Cross-project repositories are not supported.
       Cross-location repositories are not supported.
       Repository format must be 'DOCKER'.
       
      string docker_repository = 7 [(.google.api.resource_reference) = { ... }
      Specified by:
      getDockerRepository in interface BuildConfigOrBuilder
      Returns:
      The dockerRepository.
    • getDockerRepositoryBytes

      public com.google.protobuf.ByteString getDockerRepositoryBytes()
       Repository in Artifact Registry to which the function docker image will be
       pushed after it is built by Cloud Build. If specified by user, it is
       created and managed by user with a customer managed encryption key.
       Otherwise, GCF will create and use a repository named 'gcf-artifacts'
       for every deployed region.
      
       It must match the pattern
       `projects/{project}/locations/{location}/repositories/{repository}`.
      
       Cross-project repositories are not supported.
       Cross-location repositories are not supported.
       Repository format must be 'DOCKER'.
       
      string docker_repository = 7 [(.google.api.resource_reference) = { ... }
      Specified by:
      getDockerRepositoryBytes in interface BuildConfigOrBuilder
      Returns:
      The bytes for dockerRepository.
    • setDockerRepository

      public BuildConfig.Builder setDockerRepository(String value)
       Repository in Artifact Registry to which the function docker image will be
       pushed after it is built by Cloud Build. If specified by user, it is
       created and managed by user with a customer managed encryption key.
       Otherwise, GCF will create and use a repository named 'gcf-artifacts'
       for every deployed region.
      
       It must match the pattern
       `projects/{project}/locations/{location}/repositories/{repository}`.
      
       Cross-project repositories are not supported.
       Cross-location repositories are not supported.
       Repository format must be 'DOCKER'.
       
      string docker_repository = 7 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The dockerRepository to set.
      Returns:
      This builder for chaining.
    • clearDockerRepository

      public BuildConfig.Builder clearDockerRepository()
       Repository in Artifact Registry to which the function docker image will be
       pushed after it is built by Cloud Build. If specified by user, it is
       created and managed by user with a customer managed encryption key.
       Otherwise, GCF will create and use a repository named 'gcf-artifacts'
       for every deployed region.
      
       It must match the pattern
       `projects/{project}/locations/{location}/repositories/{repository}`.
      
       Cross-project repositories are not supported.
       Cross-location repositories are not supported.
       Repository format must be 'DOCKER'.
       
      string docker_repository = 7 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDockerRepositoryBytes

      public BuildConfig.Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value)
       Repository in Artifact Registry to which the function docker image will be
       pushed after it is built by Cloud Build. If specified by user, it is
       created and managed by user with a customer managed encryption key.
       Otherwise, GCF will create and use a repository named 'gcf-artifacts'
       for every deployed region.
      
       It must match the pattern
       `projects/{project}/locations/{location}/repositories/{repository}`.
      
       Cross-project repositories are not supported.
       Cross-location repositories are not supported.
       Repository format must be 'DOCKER'.
       
      string docker_repository = 7 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for dockerRepository to set.
      Returns:
      This builder for chaining.
    • getServiceAccount

      public String getServiceAccount()
       Service account to be used for building the container. The format of this
       field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
       
      string service_account = 27;
      Specified by:
      getServiceAccount in interface BuildConfigOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      public com.google.protobuf.ByteString getServiceAccountBytes()
       Service account to be used for building the container. The format of this
       field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
       
      string service_account = 27;
      Specified by:
      getServiceAccountBytes in interface BuildConfigOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      public BuildConfig.Builder setServiceAccount(String value)
       Service account to be used for building the container. The format of this
       field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
       
      string service_account = 27;
      Parameters:
      value - The serviceAccount to set.
      Returns:
      This builder for chaining.
    • clearServiceAccount

      public BuildConfig.Builder clearServiceAccount()
       Service account to be used for building the container. The format of this
       field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
       
      string service_account = 27;
      Returns:
      This builder for chaining.
    • setServiceAccountBytes

      public BuildConfig.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       Service account to be used for building the container. The format of this
       field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
       
      string service_account = 27;
      Parameters:
      value - The bytes for serviceAccount to set.
      Returns:
      This builder for chaining.