Class BuildOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildOptions.Builder>
com.google.cloudbuild.v1.BuildOptions.Builder
All Implemented Interfaces:
BuildOptionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BuildOptions

public static final class BuildOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<BuildOptions.Builder> implements BuildOptionsOrBuilder
 Optional arguments to enable specific features of builds.
 
Protobuf type google.devtools.cloudbuild.v1.BuildOptions
  • Method Details

    • getDescriptor

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

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

      public BuildOptions.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<BuildOptions.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<BuildOptions.Builder>
    • getDefaultInstanceForType

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

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

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

      public BuildOptions.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<BuildOptions.Builder>
    • mergeFrom

      public BuildOptions.Builder mergeFrom(BuildOptions other)
    • isInitialized

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

      public BuildOptions.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<BuildOptions.Builder>
      Throws:
      IOException
    • getSourceProvenanceHashList

      public List<Hash.HashType> getSourceProvenanceHashList()
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Specified by:
      getSourceProvenanceHashList in interface BuildOptionsOrBuilder
      Returns:
      A list containing the sourceProvenanceHash.
    • getSourceProvenanceHashCount

      public int getSourceProvenanceHashCount()
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Specified by:
      getSourceProvenanceHashCount in interface BuildOptionsOrBuilder
      Returns:
      The count of sourceProvenanceHash.
    • getSourceProvenanceHash

      public Hash.HashType getSourceProvenanceHash(int index)
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Specified by:
      getSourceProvenanceHash in interface BuildOptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sourceProvenanceHash at the given index.
    • setSourceProvenanceHash

      public BuildOptions.Builder setSourceProvenanceHash(int index, Hash.HashType value)
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Parameters:
      index - The index to set the value at.
      value - The sourceProvenanceHash to set.
      Returns:
      This builder for chaining.
    • addSourceProvenanceHash

      public BuildOptions.Builder addSourceProvenanceHash(Hash.HashType value)
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Parameters:
      value - The sourceProvenanceHash to add.
      Returns:
      This builder for chaining.
    • addAllSourceProvenanceHash

      public BuildOptions.Builder addAllSourceProvenanceHash(Iterable<? extends Hash.HashType> values)
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Parameters:
      values - The sourceProvenanceHash to add.
      Returns:
      This builder for chaining.
    • clearSourceProvenanceHash

      public BuildOptions.Builder clearSourceProvenanceHash()
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Returns:
      This builder for chaining.
    • getSourceProvenanceHashValueList

      public List<Integer> getSourceProvenanceHashValueList()
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Specified by:
      getSourceProvenanceHashValueList in interface BuildOptionsOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for sourceProvenanceHash.
    • getSourceProvenanceHashValue

      public int getSourceProvenanceHashValue(int index)
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Specified by:
      getSourceProvenanceHashValue in interface BuildOptionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of sourceProvenanceHash at the given index.
    • setSourceProvenanceHashValue

      public BuildOptions.Builder setSourceProvenanceHashValue(int index, int value)
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for sourceProvenanceHash to set.
      Returns:
      This builder for chaining.
    • addSourceProvenanceHashValue

      public BuildOptions.Builder addSourceProvenanceHashValue(int value)
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Parameters:
      value - The enum numeric value on the wire for sourceProvenanceHash to add.
      Returns:
      This builder for chaining.
    • addAllSourceProvenanceHashValue

      public BuildOptions.Builder addAllSourceProvenanceHashValue(Iterable<Integer> values)
       Requested hash for SourceProvenance.
       
      repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;
      Parameters:
      values - The enum numeric values on the wire for sourceProvenanceHash to add.
      Returns:
      This builder for chaining.
    • getRequestedVerifyOptionValue

      public int getRequestedVerifyOptionValue()
       Requested verifiability options.
       
      .google.devtools.cloudbuild.v1.BuildOptions.VerifyOption requested_verify_option = 2;
      Specified by:
      getRequestedVerifyOptionValue in interface BuildOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for requestedVerifyOption.
    • setRequestedVerifyOptionValue

      public BuildOptions.Builder setRequestedVerifyOptionValue(int value)
       Requested verifiability options.
       
      .google.devtools.cloudbuild.v1.BuildOptions.VerifyOption requested_verify_option = 2;
      Parameters:
      value - The enum numeric value on the wire for requestedVerifyOption to set.
      Returns:
      This builder for chaining.
    • getRequestedVerifyOption

      public BuildOptions.VerifyOption getRequestedVerifyOption()
       Requested verifiability options.
       
      .google.devtools.cloudbuild.v1.BuildOptions.VerifyOption requested_verify_option = 2;
      Specified by:
      getRequestedVerifyOption in interface BuildOptionsOrBuilder
      Returns:
      The requestedVerifyOption.
    • setRequestedVerifyOption

      public BuildOptions.Builder setRequestedVerifyOption(BuildOptions.VerifyOption value)
       Requested verifiability options.
       
      .google.devtools.cloudbuild.v1.BuildOptions.VerifyOption requested_verify_option = 2;
      Parameters:
      value - The requestedVerifyOption to set.
      Returns:
      This builder for chaining.
    • clearRequestedVerifyOption

      public BuildOptions.Builder clearRequestedVerifyOption()
       Requested verifiability options.
       
      .google.devtools.cloudbuild.v1.BuildOptions.VerifyOption requested_verify_option = 2;
      Returns:
      This builder for chaining.
    • getMachineTypeValue

      public int getMachineTypeValue()
       Compute Engine machine type on which to run the build.
       
      .google.devtools.cloudbuild.v1.BuildOptions.MachineType machine_type = 3;
      Specified by:
      getMachineTypeValue in interface BuildOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for machineType.
    • setMachineTypeValue

      public BuildOptions.Builder setMachineTypeValue(int value)
       Compute Engine machine type on which to run the build.
       
      .google.devtools.cloudbuild.v1.BuildOptions.MachineType machine_type = 3;
      Parameters:
      value - The enum numeric value on the wire for machineType to set.
      Returns:
      This builder for chaining.
    • getMachineType

      public BuildOptions.MachineType getMachineType()
       Compute Engine machine type on which to run the build.
       
      .google.devtools.cloudbuild.v1.BuildOptions.MachineType machine_type = 3;
      Specified by:
      getMachineType in interface BuildOptionsOrBuilder
      Returns:
      The machineType.
    • setMachineType

      public BuildOptions.Builder setMachineType(BuildOptions.MachineType value)
       Compute Engine machine type on which to run the build.
       
      .google.devtools.cloudbuild.v1.BuildOptions.MachineType machine_type = 3;
      Parameters:
      value - The machineType to set.
      Returns:
      This builder for chaining.
    • clearMachineType

      public BuildOptions.Builder clearMachineType()
       Compute Engine machine type on which to run the build.
       
      .google.devtools.cloudbuild.v1.BuildOptions.MachineType machine_type = 3;
      Returns:
      This builder for chaining.
    • getDiskSizeGb

      public long getDiskSizeGb()
       Requested disk size for the VM that runs the build. Note that this is *NOT*
       "disk free"; some of the space will be used by the operating system and
       build utilities. Also note that this is the minimum disk size that will be
       allocated for the build -- the build may run with a larger disk than
       requested. At present, the maximum disk size is 4000GB; builds that request
       more than the maximum are rejected with an error.
       
      int64 disk_size_gb = 6;
      Specified by:
      getDiskSizeGb in interface BuildOptionsOrBuilder
      Returns:
      The diskSizeGb.
    • setDiskSizeGb

      public BuildOptions.Builder setDiskSizeGb(long value)
       Requested disk size for the VM that runs the build. Note that this is *NOT*
       "disk free"; some of the space will be used by the operating system and
       build utilities. Also note that this is the minimum disk size that will be
       allocated for the build -- the build may run with a larger disk than
       requested. At present, the maximum disk size is 4000GB; builds that request
       more than the maximum are rejected with an error.
       
      int64 disk_size_gb = 6;
      Parameters:
      value - The diskSizeGb to set.
      Returns:
      This builder for chaining.
    • clearDiskSizeGb

      public BuildOptions.Builder clearDiskSizeGb()
       Requested disk size for the VM that runs the build. Note that this is *NOT*
       "disk free"; some of the space will be used by the operating system and
       build utilities. Also note that this is the minimum disk size that will be
       allocated for the build -- the build may run with a larger disk than
       requested. At present, the maximum disk size is 4000GB; builds that request
       more than the maximum are rejected with an error.
       
      int64 disk_size_gb = 6;
      Returns:
      This builder for chaining.
    • getSubstitutionOptionValue

      public int getSubstitutionOptionValue()
       Option to specify behavior when there is an error in the substitution
       checks.
      
       NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot
       be overridden in the build configuration file.
       
      .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4;
      Specified by:
      getSubstitutionOptionValue in interface BuildOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for substitutionOption.
    • setSubstitutionOptionValue

      public BuildOptions.Builder setSubstitutionOptionValue(int value)
       Option to specify behavior when there is an error in the substitution
       checks.
      
       NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot
       be overridden in the build configuration file.
       
      .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4;
      Parameters:
      value - The enum numeric value on the wire for substitutionOption to set.
      Returns:
      This builder for chaining.
    • getSubstitutionOption

      public BuildOptions.SubstitutionOption getSubstitutionOption()
       Option to specify behavior when there is an error in the substitution
       checks.
      
       NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot
       be overridden in the build configuration file.
       
      .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4;
      Specified by:
      getSubstitutionOption in interface BuildOptionsOrBuilder
      Returns:
      The substitutionOption.
    • setSubstitutionOption

      public BuildOptions.Builder setSubstitutionOption(BuildOptions.SubstitutionOption value)
       Option to specify behavior when there is an error in the substitution
       checks.
      
       NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot
       be overridden in the build configuration file.
       
      .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4;
      Parameters:
      value - The substitutionOption to set.
      Returns:
      This builder for chaining.
    • clearSubstitutionOption

      public BuildOptions.Builder clearSubstitutionOption()
       Option to specify behavior when there is an error in the substitution
       checks.
      
       NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot
       be overridden in the build configuration file.
       
      .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4;
      Returns:
      This builder for chaining.
    • getDynamicSubstitutions

      public boolean getDynamicSubstitutions()
       Option to specify whether or not to apply bash style string
       operations to the substitutions.
      
       NOTE: this is always enabled for triggered builds and cannot be
       overridden in the build configuration file.
       
      bool dynamic_substitutions = 17;
      Specified by:
      getDynamicSubstitutions in interface BuildOptionsOrBuilder
      Returns:
      The dynamicSubstitutions.
    • setDynamicSubstitutions

      public BuildOptions.Builder setDynamicSubstitutions(boolean value)
       Option to specify whether or not to apply bash style string
       operations to the substitutions.
      
       NOTE: this is always enabled for triggered builds and cannot be
       overridden in the build configuration file.
       
      bool dynamic_substitutions = 17;
      Parameters:
      value - The dynamicSubstitutions to set.
      Returns:
      This builder for chaining.
    • clearDynamicSubstitutions

      public BuildOptions.Builder clearDynamicSubstitutions()
       Option to specify whether or not to apply bash style string
       operations to the substitutions.
      
       NOTE: this is always enabled for triggered builds and cannot be
       overridden in the build configuration file.
       
      bool dynamic_substitutions = 17;
      Returns:
      This builder for chaining.
    • getAutomapSubstitutions

      public boolean getAutomapSubstitutions()
       Option to include built-in and custom substitutions as env variables
       for all build steps.
       
      bool automap_substitutions = 22;
      Specified by:
      getAutomapSubstitutions in interface BuildOptionsOrBuilder
      Returns:
      The automapSubstitutions.
    • setAutomapSubstitutions

      public BuildOptions.Builder setAutomapSubstitutions(boolean value)
       Option to include built-in and custom substitutions as env variables
       for all build steps.
       
      bool automap_substitutions = 22;
      Parameters:
      value - The automapSubstitutions to set.
      Returns:
      This builder for chaining.
    • clearAutomapSubstitutions

      public BuildOptions.Builder clearAutomapSubstitutions()
       Option to include built-in and custom substitutions as env variables
       for all build steps.
       
      bool automap_substitutions = 22;
      Returns:
      This builder for chaining.
    • getLogStreamingOptionValue

      public int getLogStreamingOptionValue()
       Option to define build log streaming behavior to Cloud
       Storage.
       
      .google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption log_streaming_option = 5;
      Specified by:
      getLogStreamingOptionValue in interface BuildOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for logStreamingOption.
    • setLogStreamingOptionValue

      public BuildOptions.Builder setLogStreamingOptionValue(int value)
       Option to define build log streaming behavior to Cloud
       Storage.
       
      .google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption log_streaming_option = 5;
      Parameters:
      value - The enum numeric value on the wire for logStreamingOption to set.
      Returns:
      This builder for chaining.
    • getLogStreamingOption

      public BuildOptions.LogStreamingOption getLogStreamingOption()
       Option to define build log streaming behavior to Cloud
       Storage.
       
      .google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption log_streaming_option = 5;
      Specified by:
      getLogStreamingOption in interface BuildOptionsOrBuilder
      Returns:
      The logStreamingOption.
    • setLogStreamingOption

      public BuildOptions.Builder setLogStreamingOption(BuildOptions.LogStreamingOption value)
       Option to define build log streaming behavior to Cloud
       Storage.
       
      .google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption log_streaming_option = 5;
      Parameters:
      value - The logStreamingOption to set.
      Returns:
      This builder for chaining.
    • clearLogStreamingOption

      public BuildOptions.Builder clearLogStreamingOption()
       Option to define build log streaming behavior to Cloud
       Storage.
       
      .google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption log_streaming_option = 5;
      Returns:
      This builder for chaining.
    • getWorkerPool

      @Deprecated public String getWorkerPool()
      Deprecated.
      google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569
       This field deprecated; please use `pool.name` instead.
       
      string worker_pool = 7 [deprecated = true];
      Specified by:
      getWorkerPool in interface BuildOptionsOrBuilder
      Returns:
      The workerPool.
    • getWorkerPoolBytes

      @Deprecated public com.google.protobuf.ByteString getWorkerPoolBytes()
      Deprecated.
      google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569
       This field deprecated; please use `pool.name` instead.
       
      string worker_pool = 7 [deprecated = true];
      Specified by:
      getWorkerPoolBytes in interface BuildOptionsOrBuilder
      Returns:
      The bytes for workerPool.
    • setWorkerPool

      @Deprecated public BuildOptions.Builder setWorkerPool(String value)
      Deprecated.
      google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569
       This field deprecated; please use `pool.name` instead.
       
      string worker_pool = 7 [deprecated = true];
      Parameters:
      value - The workerPool to set.
      Returns:
      This builder for chaining.
    • clearWorkerPool

      @Deprecated public BuildOptions.Builder clearWorkerPool()
      Deprecated.
      google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569
       This field deprecated; please use `pool.name` instead.
       
      string worker_pool = 7 [deprecated = true];
      Returns:
      This builder for chaining.
    • setWorkerPoolBytes

      @Deprecated public BuildOptions.Builder setWorkerPoolBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569
       This field deprecated; please use `pool.name` instead.
       
      string worker_pool = 7 [deprecated = true];
      Parameters:
      value - The bytes for workerPool to set.
      Returns:
      This builder for chaining.
    • hasPool

      public boolean hasPool()
       Optional. Specification for execution on a `WorkerPool`.
      
       See [running builds in a private
       pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
       for more information.
       
      .google.devtools.cloudbuild.v1.BuildOptions.PoolOption pool = 19 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPool in interface BuildOptionsOrBuilder
      Returns:
      Whether the pool field is set.
    • getPool

      public BuildOptions.PoolOption getPool()
       Optional. Specification for execution on a `WorkerPool`.
      
       See [running builds in a private
       pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
       for more information.
       
      .google.devtools.cloudbuild.v1.BuildOptions.PoolOption pool = 19 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPool in interface BuildOptionsOrBuilder
      Returns:
      The pool.
    • setPool

       Optional. Specification for execution on a `WorkerPool`.
      
       See [running builds in a private
       pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
       for more information.
       
      .google.devtools.cloudbuild.v1.BuildOptions.PoolOption pool = 19 [(.google.api.field_behavior) = OPTIONAL];
    • setPool

      public BuildOptions.Builder setPool(BuildOptions.PoolOption.Builder builderForValue)
       Optional. Specification for execution on a `WorkerPool`.
      
       See [running builds in a private
       pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
       for more information.
       
      .google.devtools.cloudbuild.v1.BuildOptions.PoolOption pool = 19 [(.google.api.field_behavior) = OPTIONAL];
    • mergePool

       Optional. Specification for execution on a `WorkerPool`.
      
       See [running builds in a private
       pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
       for more information.
       
      .google.devtools.cloudbuild.v1.BuildOptions.PoolOption pool = 19 [(.google.api.field_behavior) = OPTIONAL];
    • clearPool

      public BuildOptions.Builder clearPool()
       Optional. Specification for execution on a `WorkerPool`.
      
       See [running builds in a private
       pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
       for more information.
       
      .google.devtools.cloudbuild.v1.BuildOptions.PoolOption pool = 19 [(.google.api.field_behavior) = OPTIONAL];
    • getPoolBuilder

      public BuildOptions.PoolOption.Builder getPoolBuilder()
       Optional. Specification for execution on a `WorkerPool`.
      
       See [running builds in a private
       pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
       for more information.
       
      .google.devtools.cloudbuild.v1.BuildOptions.PoolOption pool = 19 [(.google.api.field_behavior) = OPTIONAL];
    • getPoolOrBuilder

      public BuildOptions.PoolOptionOrBuilder getPoolOrBuilder()
       Optional. Specification for execution on a `WorkerPool`.
      
       See [running builds in a private
       pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
       for more information.
       
      .google.devtools.cloudbuild.v1.BuildOptions.PoolOption pool = 19 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPoolOrBuilder in interface BuildOptionsOrBuilder
    • getLoggingValue

      public int getLoggingValue()
       Option to specify the logging mode, which determines if and where build
       logs are stored.
       
      .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11;
      Specified by:
      getLoggingValue in interface BuildOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for logging.
    • setLoggingValue

      public BuildOptions.Builder setLoggingValue(int value)
       Option to specify the logging mode, which determines if and where build
       logs are stored.
       
      .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11;
      Parameters:
      value - The enum numeric value on the wire for logging to set.
      Returns:
      This builder for chaining.
    • getLogging

      public BuildOptions.LoggingMode getLogging()
       Option to specify the logging mode, which determines if and where build
       logs are stored.
       
      .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11;
      Specified by:
      getLogging in interface BuildOptionsOrBuilder
      Returns:
      The logging.
    • setLogging

       Option to specify the logging mode, which determines if and where build
       logs are stored.
       
      .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11;
      Parameters:
      value - The logging to set.
      Returns:
      This builder for chaining.
    • clearLogging

      public BuildOptions.Builder clearLogging()
       Option to specify the logging mode, which determines if and where build
       logs are stored.
       
      .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11;
      Returns:
      This builder for chaining.
    • getEnvList

      public com.google.protobuf.ProtocolStringList getEnvList()
       A list of global environment variable definitions that will exist for all
       build steps in this build. If a variable is defined in both globally and in
       a build step, the variable will use the build step value.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 12;
      Specified by:
      getEnvList in interface BuildOptionsOrBuilder
      Returns:
      A list containing the env.
    • getEnvCount

      public int getEnvCount()
       A list of global environment variable definitions that will exist for all
       build steps in this build. If a variable is defined in both globally and in
       a build step, the variable will use the build step value.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 12;
      Specified by:
      getEnvCount in interface BuildOptionsOrBuilder
      Returns:
      The count of env.
    • getEnv

      public String getEnv(int index)
       A list of global environment variable definitions that will exist for all
       build steps in this build. If a variable is defined in both globally and in
       a build step, the variable will use the build step value.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 12;
      Specified by:
      getEnv in interface BuildOptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The env at the given index.
    • getEnvBytes

      public com.google.protobuf.ByteString getEnvBytes(int index)
       A list of global environment variable definitions that will exist for all
       build steps in this build. If a variable is defined in both globally and in
       a build step, the variable will use the build step value.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 12;
      Specified by:
      getEnvBytes in interface BuildOptionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the env at the given index.
    • setEnv

      public BuildOptions.Builder setEnv(int index, String value)
       A list of global environment variable definitions that will exist for all
       build steps in this build. If a variable is defined in both globally and in
       a build step, the variable will use the build step value.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 12;
      Parameters:
      index - The index to set the value at.
      value - The env to set.
      Returns:
      This builder for chaining.
    • addEnv

      public BuildOptions.Builder addEnv(String value)
       A list of global environment variable definitions that will exist for all
       build steps in this build. If a variable is defined in both globally and in
       a build step, the variable will use the build step value.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 12;
      Parameters:
      value - The env to add.
      Returns:
      This builder for chaining.
    • addAllEnv

      public BuildOptions.Builder addAllEnv(Iterable<String> values)
       A list of global environment variable definitions that will exist for all
       build steps in this build. If a variable is defined in both globally and in
       a build step, the variable will use the build step value.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 12;
      Parameters:
      values - The env to add.
      Returns:
      This builder for chaining.
    • clearEnv

      public BuildOptions.Builder clearEnv()
       A list of global environment variable definitions that will exist for all
       build steps in this build. If a variable is defined in both globally and in
       a build step, the variable will use the build step value.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 12;
      Returns:
      This builder for chaining.
    • addEnvBytes

      public BuildOptions.Builder addEnvBytes(com.google.protobuf.ByteString value)
       A list of global environment variable definitions that will exist for all
       build steps in this build. If a variable is defined in both globally and in
       a build step, the variable will use the build step value.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 12;
      Parameters:
      value - The bytes of the env to add.
      Returns:
      This builder for chaining.
    • getSecretEnvList

      public com.google.protobuf.ProtocolStringList getSecretEnvList()
       A list of global environment variables, which are encrypted using a Cloud
       Key Management Service crypto key. These values must be specified in the
       build's `Secret`. These variables will be available to all build steps
       in this build.
       
      repeated string secret_env = 13;
      Specified by:
      getSecretEnvList in interface BuildOptionsOrBuilder
      Returns:
      A list containing the secretEnv.
    • getSecretEnvCount

      public int getSecretEnvCount()
       A list of global environment variables, which are encrypted using a Cloud
       Key Management Service crypto key. These values must be specified in the
       build's `Secret`. These variables will be available to all build steps
       in this build.
       
      repeated string secret_env = 13;
      Specified by:
      getSecretEnvCount in interface BuildOptionsOrBuilder
      Returns:
      The count of secretEnv.
    • getSecretEnv

      public String getSecretEnv(int index)
       A list of global environment variables, which are encrypted using a Cloud
       Key Management Service crypto key. These values must be specified in the
       build's `Secret`. These variables will be available to all build steps
       in this build.
       
      repeated string secret_env = 13;
      Specified by:
      getSecretEnv in interface BuildOptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The secretEnv at the given index.
    • getSecretEnvBytes

      public com.google.protobuf.ByteString getSecretEnvBytes(int index)
       A list of global environment variables, which are encrypted using a Cloud
       Key Management Service crypto key. These values must be specified in the
       build's `Secret`. These variables will be available to all build steps
       in this build.
       
      repeated string secret_env = 13;
      Specified by:
      getSecretEnvBytes in interface BuildOptionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the secretEnv at the given index.
    • setSecretEnv

      public BuildOptions.Builder setSecretEnv(int index, String value)
       A list of global environment variables, which are encrypted using a Cloud
       Key Management Service crypto key. These values must be specified in the
       build's `Secret`. These variables will be available to all build steps
       in this build.
       
      repeated string secret_env = 13;
      Parameters:
      index - The index to set the value at.
      value - The secretEnv to set.
      Returns:
      This builder for chaining.
    • addSecretEnv

      public BuildOptions.Builder addSecretEnv(String value)
       A list of global environment variables, which are encrypted using a Cloud
       Key Management Service crypto key. These values must be specified in the
       build's `Secret`. These variables will be available to all build steps
       in this build.
       
      repeated string secret_env = 13;
      Parameters:
      value - The secretEnv to add.
      Returns:
      This builder for chaining.
    • addAllSecretEnv

      public BuildOptions.Builder addAllSecretEnv(Iterable<String> values)
       A list of global environment variables, which are encrypted using a Cloud
       Key Management Service crypto key. These values must be specified in the
       build's `Secret`. These variables will be available to all build steps
       in this build.
       
      repeated string secret_env = 13;
      Parameters:
      values - The secretEnv to add.
      Returns:
      This builder for chaining.
    • clearSecretEnv

      public BuildOptions.Builder clearSecretEnv()
       A list of global environment variables, which are encrypted using a Cloud
       Key Management Service crypto key. These values must be specified in the
       build's `Secret`. These variables will be available to all build steps
       in this build.
       
      repeated string secret_env = 13;
      Returns:
      This builder for chaining.
    • addSecretEnvBytes

      public BuildOptions.Builder addSecretEnvBytes(com.google.protobuf.ByteString value)
       A list of global environment variables, which are encrypted using a Cloud
       Key Management Service crypto key. These values must be specified in the
       build's `Secret`. These variables will be available to all build steps
       in this build.
       
      repeated string secret_env = 13;
      Parameters:
      value - The bytes of the secretEnv to add.
      Returns:
      This builder for chaining.
    • getVolumesList

      public List<Volume> getVolumesList()
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
      Specified by:
      getVolumesList in interface BuildOptionsOrBuilder
    • getVolumesCount

      public int getVolumesCount()
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
      Specified by:
      getVolumesCount in interface BuildOptionsOrBuilder
    • getVolumes

      public Volume getVolumes(int index)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
      Specified by:
      getVolumes in interface BuildOptionsOrBuilder
    • setVolumes

      public BuildOptions.Builder setVolumes(int index, Volume value)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • setVolumes

      public BuildOptions.Builder setVolumes(int index, Volume.Builder builderForValue)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • addVolumes

      public BuildOptions.Builder addVolumes(Volume value)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • addVolumes

      public BuildOptions.Builder addVolumes(int index, Volume value)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • addVolumes

      public BuildOptions.Builder addVolumes(Volume.Builder builderForValue)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • addVolumes

      public BuildOptions.Builder addVolumes(int index, Volume.Builder builderForValue)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • addAllVolumes

      public BuildOptions.Builder addAllVolumes(Iterable<? extends Volume> values)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • clearVolumes

      public BuildOptions.Builder clearVolumes()
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • removeVolumes

      public BuildOptions.Builder removeVolumes(int index)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • getVolumesBuilder

      public Volume.Builder getVolumesBuilder(int index)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • getVolumesOrBuilder

      public VolumeOrBuilder getVolumesOrBuilder(int index)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
      Specified by:
      getVolumesOrBuilder in interface BuildOptionsOrBuilder
    • getVolumesOrBuilderList

      public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
      Specified by:
      getVolumesOrBuilderList in interface BuildOptionsOrBuilder
    • addVolumesBuilder

      public Volume.Builder addVolumesBuilder()
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • addVolumesBuilder

      public Volume.Builder addVolumesBuilder(int index)
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • getVolumesBuilderList

      public List<Volume.Builder> getVolumesBuilderList()
       Global list of volumes to mount for ALL build steps
      
       Each volume is created as an empty volume prior to starting the build
       process. Upon completion of the build, volumes and their contents are
       discarded. Global volume names and paths cannot conflict with the volumes
       defined a build step.
      
       Using a global volume in a build with only one step is not valid as
       it is indicative of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;
    • getDefaultLogsBucketBehaviorValue

      public int getDefaultLogsBucketBehaviorValue()
       Optional. Option to specify how default logs buckets are setup.
       
      .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultLogsBucketBehaviorValue in interface BuildOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for defaultLogsBucketBehavior.
    • setDefaultLogsBucketBehaviorValue

      public BuildOptions.Builder setDefaultLogsBucketBehaviorValue(int value)
       Optional. Option to specify how default logs buckets are setup.
       
      .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for defaultLogsBucketBehavior to set.
      Returns:
      This builder for chaining.
    • getDefaultLogsBucketBehavior

      public BuildOptions.DefaultLogsBucketBehavior getDefaultLogsBucketBehavior()
       Optional. Option to specify how default logs buckets are setup.
       
      .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultLogsBucketBehavior in interface BuildOptionsOrBuilder
      Returns:
      The defaultLogsBucketBehavior.
    • setDefaultLogsBucketBehavior

      public BuildOptions.Builder setDefaultLogsBucketBehavior(BuildOptions.DefaultLogsBucketBehavior value)
       Optional. Option to specify how default logs buckets are setup.
       
      .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The defaultLogsBucketBehavior to set.
      Returns:
      This builder for chaining.
    • clearDefaultLogsBucketBehavior

      public BuildOptions.Builder clearDefaultLogsBucketBehavior()
       Optional. Option to specify how default logs buckets are setup.
       
      .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getEnableStructuredLogging

      public boolean getEnableStructuredLogging()
       Optional. Option to specify whether structured logging is enabled.
      
       If true, JSON-formatted logs are parsed as structured logs.
       
      bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnableStructuredLogging in interface BuildOptionsOrBuilder
      Returns:
      The enableStructuredLogging.
    • setEnableStructuredLogging

      public BuildOptions.Builder setEnableStructuredLogging(boolean value)
       Optional. Option to specify whether structured logging is enabled.
      
       If true, JSON-formatted logs are parsed as structured logs.
       
      bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enableStructuredLogging to set.
      Returns:
      This builder for chaining.
    • clearEnableStructuredLogging

      public BuildOptions.Builder clearEnableStructuredLogging()
       Optional. Option to specify whether structured logging is enabled.
      
       If true, JSON-formatted logs are parsed as structured logs.
       
      bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.