Package com.google.cloud.deploy.v1
Interface ExecutionConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ExecutionConfig,ExecutionConfig.Builder
@Generated
public interface ExecutionConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.com.google.protobuf.ByteStringOptional.Optional.Optional.com.google.protobuf.DurationOptional.com.google.protobuf.DurationOrBuilderOptional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.getUsages(int index) Required.intRequired.Required.intgetUsagesValue(int index) Required.Required.booleanOptional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanOptional.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getUsagesList
List<ExecutionConfig.ExecutionEnvironmentUsage> getUsagesList()Required. Usages when this configuration should be applied.
repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- A list containing the usages.
-
getUsagesCount
int getUsagesCount()Required. Usages when this configuration should be applied.
repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The count of usages.
-
getUsages
Required. Usages when this configuration should be applied.
repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the element to return.- Returns:
- The usages at the given index.
-
getUsagesValueList
Required. Usages when this configuration should be applied.
repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- A list containing the enum numeric values on the wire for usages.
-
getUsagesValue
int getUsagesValue(int index) Required. Usages when this configuration should be applied.
repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of usages at the given index.
-
hasDefaultPool
boolean hasDefaultPool()Optional. Use default Cloud Build pool.
.google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the defaultPool field is set.
-
getDefaultPool
DefaultPool getDefaultPool()Optional. Use default Cloud Build pool.
.google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The defaultPool.
-
getDefaultPoolOrBuilder
DefaultPoolOrBuilder getDefaultPoolOrBuilder()Optional. Use default Cloud Build pool.
.google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; -
hasPrivatePool
boolean hasPrivatePool()Optional. Use private Cloud Build pool.
.google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the privatePool field is set.
-
getPrivatePool
PrivatePool getPrivatePool()Optional. Use private Cloud Build pool.
.google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The privatePool.
-
getPrivatePoolOrBuilder
PrivatePoolOrBuilder getPrivatePoolOrBuilder()Optional. Use private Cloud Build pool.
.google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getWorkerPool
String getWorkerPool()Optional. The resource name of the `WorkerPool`, with the format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. If this optional field is unspecified, the default Cloud Build pool will be used.string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- The workerPool.
-
getWorkerPoolBytes
com.google.protobuf.ByteString getWorkerPoolBytes()Optional. The resource name of the `WorkerPool`, with the format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. If this optional field is unspecified, the default Cloud Build pool will be used.string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for workerPool.
-
getServiceAccount
String getServiceAccount()Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The serviceAccount.
-
getServiceAccountBytes
com.google.protobuf.ByteString getServiceAccountBytes()Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for serviceAccount.
-
getArtifactStorage
String getArtifactStorage()Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The artifactStorage.
-
getArtifactStorageBytes
com.google.protobuf.ByteString getArtifactStorageBytes()Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for artifactStorage.
-
hasExecutionTimeout
boolean hasExecutionTimeout()Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
.google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the executionTimeout field is set.
-
getExecutionTimeout
com.google.protobuf.Duration getExecutionTimeout()Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
.google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The executionTimeout.
-
getExecutionTimeoutOrBuilder
com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder()Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
.google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getVerbose
boolean getVerbose()Optional. If true, additional logging will be enabled when running builds in this execution environment.
bool verbose = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The verbose.
-
getExecutionEnvironmentCase
ExecutionConfig.ExecutionEnvironmentCase getExecutionEnvironmentCase()
-