Package com.google.cloudbuild.v1
Class BuildOptions
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.BuildOptions
- All Implemented Interfaces:
BuildOptionsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class BuildOptions
extends com.google.protobuf.GeneratedMessage
implements BuildOptionsOrBuilder
Optional arguments to enable specific features of builds.Protobuf type
google.devtools.cloudbuild.v1.BuildOptions- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOptional arguments to enable specific features of builds.static enumDefault Cloud Storage log bucket behavior options.static enumSpecifies the logging mode.static enumSpecifies the behavior when writing build logs to Cloud Storage.static enumSupported Compute Engine machine types.static final classDetails about how a build should be executed on a `WorkerPool`.static interfacestatic enumSpecifies the behavior when there is an error in the substitution checks.static enumSpecifies the manner in which the build should be verified, if at all.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanOption to include built-in and custom substitutions as env variables for all build steps.static BuildOptionsOptional.intOptional.static final com.google.protobuf.Descriptors.DescriptorlongRequested disk size for the VM that runs the build.booleanOption to specify whether or not to apply bash style string operations to the substitutions.booleanOptional.getEnv(int index) A list of global environment variable definitions that will exist for all build steps in this build.com.google.protobuf.ByteStringgetEnvBytes(int index) A list of global environment variable definitions that will exist for all build steps in this build.intA list of global environment variable definitions that will exist for all build steps in this build.com.google.protobuf.ProtocolStringListA list of global environment variable definitions that will exist for all build steps in this build.Option to specify the logging mode, which determines if and where build logs are stored.intOption to specify the logging mode, which determines if and where build logs are stored.Option to define build log streaming behavior to Cloud Storage.intOption to define build log streaming behavior to Cloud Storage.Compute Engine machine type on which to run the build.intCompute Engine machine type on which to run the build.com.google.protobuf.Parser<BuildOptions>getPool()Optional.Optional.Requested verifiability options.intRequested verifiability options.getSecretEnv(int index) A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key.com.google.protobuf.ByteStringgetSecretEnvBytes(int index) A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key.intA list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key.com.google.protobuf.ProtocolStringListA list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key.intgetSourceProvenanceHash(int index) Requested hash for SourceProvenance.intRequested hash for SourceProvenance.Requested hash for SourceProvenance.intgetSourceProvenanceHashValue(int index) Requested hash for SourceProvenance.Requested hash for SourceProvenance.Option to specify behavior when there is an error in the substitution checks.intOption to specify behavior when there is an error in the substitution checks.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.intGlobal list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process.Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process.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.List<? extends VolumeOrBuilder>Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process.Deprecated.google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated.com.google.protobuf.ByteStringDeprecated.google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated.inthashCode()booleanhasPool()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic BuildOptions.Builderstatic BuildOptions.BuildernewBuilder(BuildOptions prototype) protected BuildOptions.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static BuildOptionsparseDelimitedFrom(InputStream input) static BuildOptionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BuildOptionsparseFrom(byte[] data) static BuildOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BuildOptionsparseFrom(com.google.protobuf.ByteString data) static BuildOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BuildOptionsparseFrom(com.google.protobuf.CodedInputStream input) static BuildOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BuildOptionsparseFrom(InputStream input) static BuildOptionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BuildOptionsparseFrom(ByteBuffer data) static BuildOptionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BuildOptions>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SOURCE_PROVENANCE_HASH_FIELD_NUMBER
public static final int SOURCE_PROVENANCE_HASH_FIELD_NUMBER- See Also:
-
REQUESTED_VERIFY_OPTION_FIELD_NUMBER
public static final int REQUESTED_VERIFY_OPTION_FIELD_NUMBER- See Also:
-
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER- See Also:
-
DISK_SIZE_GB_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER- See Also:
-
SUBSTITUTION_OPTION_FIELD_NUMBER
public static final int SUBSTITUTION_OPTION_FIELD_NUMBER- See Also:
-
DYNAMIC_SUBSTITUTIONS_FIELD_NUMBER
public static final int DYNAMIC_SUBSTITUTIONS_FIELD_NUMBER- See Also:
-
AUTOMAP_SUBSTITUTIONS_FIELD_NUMBER
public static final int AUTOMAP_SUBSTITUTIONS_FIELD_NUMBER- See Also:
-
LOG_STREAMING_OPTION_FIELD_NUMBER
public static final int LOG_STREAMING_OPTION_FIELD_NUMBER- See Also:
-
WORKER_POOL_FIELD_NUMBER
public static final int WORKER_POOL_FIELD_NUMBER- See Also:
-
POOL_FIELD_NUMBER
public static final int POOL_FIELD_NUMBER- See Also:
-
LOGGING_FIELD_NUMBER
public static final int LOGGING_FIELD_NUMBER- See Also:
-
ENV_FIELD_NUMBER
public static final int ENV_FIELD_NUMBER- See Also:
-
SECRET_ENV_FIELD_NUMBER
public static final int SECRET_ENV_FIELD_NUMBER- See Also:
-
VOLUMES_FIELD_NUMBER
public static final int VOLUMES_FIELD_NUMBER- See Also:
-
DEFAULT_LOGS_BUCKET_BEHAVIOR_FIELD_NUMBER
public static final int DEFAULT_LOGS_BUCKET_BEHAVIOR_FIELD_NUMBER- See Also:
-
ENABLE_STRUCTURED_LOGGING_FIELD_NUMBER
public static final int ENABLE_STRUCTURED_LOGGING_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSourceProvenanceHashList
Requested hash for SourceProvenance.
repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;- Specified by:
getSourceProvenanceHashListin interfaceBuildOptionsOrBuilder- 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:
getSourceProvenanceHashCountin interfaceBuildOptionsOrBuilder- Returns:
- The count of sourceProvenanceHash.
-
getSourceProvenanceHash
Requested hash for SourceProvenance.
repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;- Specified by:
getSourceProvenanceHashin interfaceBuildOptionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sourceProvenanceHash at the given index.
-
getSourceProvenanceHashValueList
Requested hash for SourceProvenance.
repeated .google.devtools.cloudbuild.v1.Hash.HashType source_provenance_hash = 1;- Specified by:
getSourceProvenanceHashValueListin interfaceBuildOptionsOrBuilder- 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:
getSourceProvenanceHashValuein interfaceBuildOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of sourceProvenanceHash at the given index.
-
getRequestedVerifyOptionValue
public int getRequestedVerifyOptionValue()Requested verifiability options.
.google.devtools.cloudbuild.v1.BuildOptions.VerifyOption requested_verify_option = 2;- Specified by:
getRequestedVerifyOptionValuein interfaceBuildOptionsOrBuilder- Returns:
- The enum numeric value on the wire for requestedVerifyOption.
-
getRequestedVerifyOption
Requested verifiability options.
.google.devtools.cloudbuild.v1.BuildOptions.VerifyOption requested_verify_option = 2;- Specified by:
getRequestedVerifyOptionin interfaceBuildOptionsOrBuilder- Returns:
- The requestedVerifyOption.
-
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:
getMachineTypeValuein interfaceBuildOptionsOrBuilder- Returns:
- The enum numeric value on the wire for machineType.
-
getMachineType
Compute Engine machine type on which to run the build.
.google.devtools.cloudbuild.v1.BuildOptions.MachineType machine_type = 3;- Specified by:
getMachineTypein interfaceBuildOptionsOrBuilder- Returns:
- The machineType.
-
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:
getDiskSizeGbin interfaceBuildOptionsOrBuilder- Returns:
- The diskSizeGb.
-
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:
getSubstitutionOptionValuein interfaceBuildOptionsOrBuilder- Returns:
- The enum numeric value on the wire for 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:
getSubstitutionOptionin interfaceBuildOptionsOrBuilder- Returns:
- The substitutionOption.
-
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:
getDynamicSubstitutionsin interfaceBuildOptionsOrBuilder- Returns:
- The dynamicSubstitutions.
-
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:
getAutomapSubstitutionsin interfaceBuildOptionsOrBuilder- Returns:
- The automapSubstitutions.
-
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:
getLogStreamingOptionValuein interfaceBuildOptionsOrBuilder- Returns:
- The enum numeric value on the wire for logStreamingOption.
-
getLogStreamingOption
Option to define build log streaming behavior to Cloud Storage.
.google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption log_streaming_option = 5;- Specified by:
getLogStreamingOptionin interfaceBuildOptionsOrBuilder- Returns:
- The logStreamingOption.
-
getWorkerPool
Deprecated.google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569This field deprecated; please use `pool.name` instead.
string worker_pool = 7 [deprecated = true];- Specified by:
getWorkerPoolin interfaceBuildOptionsOrBuilder- Returns:
- The workerPool.
-
getWorkerPoolBytes
Deprecated.google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569This field deprecated; please use `pool.name` instead.
string worker_pool = 7 [deprecated = true];- Specified by:
getWorkerPoolBytesin interfaceBuildOptionsOrBuilder- Returns:
- The bytes for workerPool.
-
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:
hasPoolin interfaceBuildOptionsOrBuilder- Returns:
- Whether the pool field is set.
-
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:
getPoolin interfaceBuildOptionsOrBuilder- Returns:
- The pool.
-
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:
getPoolOrBuilderin interfaceBuildOptionsOrBuilder
-
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:
getLoggingValuein interfaceBuildOptionsOrBuilder- Returns:
- The enum numeric value on the wire for logging.
-
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:
getLoggingin interfaceBuildOptionsOrBuilder- Returns:
- The logging.
-
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:
getEnvListin interfaceBuildOptionsOrBuilder- 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:
getEnvCountin interfaceBuildOptionsOrBuilder- Returns:
- The count of env.
-
getEnv
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:
getEnvin interfaceBuildOptionsOrBuilder- 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:
getEnvBytesin interfaceBuildOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the env at the given index.
-
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:
getSecretEnvListin interfaceBuildOptionsOrBuilder- 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:
getSecretEnvCountin interfaceBuildOptionsOrBuilder- Returns:
- The count of secretEnv.
-
getSecretEnv
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:
getSecretEnvin interfaceBuildOptionsOrBuilder- 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:
getSecretEnvBytesin interfaceBuildOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the secretEnv at the given index.
-
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:
getVolumesListin interfaceBuildOptionsOrBuilder
-
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:
getVolumesOrBuilderListin interfaceBuildOptionsOrBuilder
-
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:
getVolumesCountin interfaceBuildOptionsOrBuilder
-
getVolumes
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:
getVolumesin interfaceBuildOptionsOrBuilder
-
getVolumesOrBuilder
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:
getVolumesOrBuilderin interfaceBuildOptionsOrBuilder
-
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:
getDefaultLogsBucketBehaviorValuein interfaceBuildOptionsOrBuilder- Returns:
- The enum numeric value on the wire for 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:
getDefaultLogsBucketBehaviorin interfaceBuildOptionsOrBuilder- Returns:
- The defaultLogsBucketBehavior.
-
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:
getEnableStructuredLoggingin interfaceBuildOptionsOrBuilder- Returns:
- The enableStructuredLogging.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BuildOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BuildOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BuildOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BuildOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BuildOptions.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-