Package com.google.cloud.dataplex.v1
Class Task.ExecutionSpec.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
- com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder
-
- All Implemented Interfaces:
Task.ExecutionSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Task.ExecutionSpec
public static final class Task.ExecutionSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder> implements Task.ExecutionSpecOrBuilder
Execution related settings, like retry and service_account.
Protobuf typegoogle.cloud.dataplex.v1.Task.ExecutionSpec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Task.ExecutionSpec.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Task.ExecutionSpecbuild()Task.ExecutionSpecbuildPartial()Task.ExecutionSpec.Builderclear()Task.ExecutionSpec.BuilderclearArgs()Task.ExecutionSpec.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Task.ExecutionSpec.BuilderclearKmsKey()Optional.Task.ExecutionSpec.BuilderclearMaxJobExecutionLifetime()Optional.Task.ExecutionSpec.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Task.ExecutionSpec.BuilderclearProject()Optional.Task.ExecutionSpec.BuilderclearServiceAccount()Required.Task.ExecutionSpec.Builderclone()booleancontainsArgs(String key)Optional.Map<String,String>getArgs()Deprecated.intgetArgsCount()Optional.Map<String,String>getArgsMap()Optional.StringgetArgsOrDefault(String key, String defaultValue)Optional.StringgetArgsOrThrow(String key)Optional.Task.ExecutionSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKmsKey()Optional.com.google.protobuf.ByteStringgetKmsKeyBytes()Optional.com.google.protobuf.DurationgetMaxJobExecutionLifetime()Optional.com.google.protobuf.Duration.BuildergetMaxJobExecutionLifetimeBuilder()Optional.com.google.protobuf.DurationOrBuildergetMaxJobExecutionLifetimeOrBuilder()Optional.Map<String,String>getMutableArgs()Deprecated.StringgetProject()Optional.com.google.protobuf.ByteStringgetProjectBytes()Optional.StringgetServiceAccount()Required.com.google.protobuf.ByteStringgetServiceAccountBytes()Required.booleanhasMaxJobExecutionLifetime()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Task.ExecutionSpec.BuildermergeFrom(Task.ExecutionSpec other)Task.ExecutionSpec.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Task.ExecutionSpec.BuildermergeFrom(com.google.protobuf.Message other)Task.ExecutionSpec.BuildermergeMaxJobExecutionLifetime(com.google.protobuf.Duration value)Optional.Task.ExecutionSpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Task.ExecutionSpec.BuilderputAllArgs(Map<String,String> values)Optional.Task.ExecutionSpec.BuilderputArgs(String key, String value)Optional.Task.ExecutionSpec.BuilderremoveArgs(String key)Optional.Task.ExecutionSpec.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Task.ExecutionSpec.BuildersetKmsKey(String value)Optional.Task.ExecutionSpec.BuildersetKmsKeyBytes(com.google.protobuf.ByteString value)Optional.Task.ExecutionSpec.BuildersetMaxJobExecutionLifetime(com.google.protobuf.Duration value)Optional.Task.ExecutionSpec.BuildersetMaxJobExecutionLifetime(com.google.protobuf.Duration.Builder builderForValue)Optional.Task.ExecutionSpec.BuildersetProject(String value)Optional.Task.ExecutionSpec.BuildersetProjectBytes(com.google.protobuf.ByteString value)Optional.Task.ExecutionSpec.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Task.ExecutionSpec.BuildersetServiceAccount(String value)Required.Task.ExecutionSpec.BuildersetServiceAccountBytes(com.google.protobuf.ByteString value)Required.Task.ExecutionSpec.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
clear
public Task.ExecutionSpec.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
getDefaultInstanceForType
public Task.ExecutionSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Task.ExecutionSpec build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Task.ExecutionSpec buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Task.ExecutionSpec.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
setField
public Task.ExecutionSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
clearField
public Task.ExecutionSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
clearOneof
public Task.ExecutionSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
setRepeatedField
public Task.ExecutionSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
addRepeatedField
public Task.ExecutionSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
mergeFrom
public Task.ExecutionSpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Task.ExecutionSpec.Builder>
-
mergeFrom
public Task.ExecutionSpec.Builder mergeFrom(Task.ExecutionSpec other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
mergeFrom
public Task.ExecutionSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Task.ExecutionSpec.Builder>- Throws:
IOException
-
getArgsCount
public int getArgsCount()
Description copied from interface:Task.ExecutionSpecOrBuilderOptional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsCountin interfaceTask.ExecutionSpecOrBuilder
-
containsArgs
public boolean containsArgs(String key)
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsArgsin interfaceTask.ExecutionSpecOrBuilder
-
getArgs
@Deprecated public Map<String,String> getArgs()
Deprecated.UsegetArgsMap()instead.- Specified by:
getArgsin interfaceTask.ExecutionSpecOrBuilder
-
getArgsMap
public Map<String,String> getArgsMap()
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsMapin interfaceTask.ExecutionSpecOrBuilder
-
getArgsOrDefault
public String getArgsOrDefault(String key, String defaultValue)
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsOrDefaultin interfaceTask.ExecutionSpecOrBuilder
-
getArgsOrThrow
public String getArgsOrThrow(String key)
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsOrThrowin interfaceTask.ExecutionSpecOrBuilder
-
clearArgs
public Task.ExecutionSpec.Builder clearArgs()
-
removeArgs
public Task.ExecutionSpec.Builder removeArgs(String key)
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableArgs
@Deprecated public Map<String,String> getMutableArgs()
Deprecated.Use alternate mutation accessors instead.
-
putArgs
public Task.ExecutionSpec.Builder putArgs(String key, String value)
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
-
putAllArgs
public Task.ExecutionSpec.Builder putAllArgs(Map<String,String> values)
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getServiceAccount
public String getServiceAccount()
Required. Service account to use to execute a task. If not provided, the default Compute service account for the project is used.
string service_account = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getServiceAccountin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
Required. Service account to use to execute a task. If not provided, the default Compute service account for the project is used.
string service_account = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getServiceAccountBytesin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
public Task.ExecutionSpec.Builder setServiceAccount(String value)
Required. Service account to use to execute a task. If not provided, the default Compute service account for the project is used.
string service_account = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
public Task.ExecutionSpec.Builder clearServiceAccount()
Required. Service account to use to execute a task. If not provided, the default Compute service account for the project is used.
string service_account = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setServiceAccountBytes
public Task.ExecutionSpec.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
Required. Service account to use to execute a task. If not provided, the default Compute service account for the project is used.
string service_account = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
getProject
public String getProject()
Optional. The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
string project = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The project.
-
getProjectBytes
public com.google.protobuf.ByteString getProjectBytes()
Optional. The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
string project = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectBytesin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The bytes for project.
-
setProject
public Task.ExecutionSpec.Builder setProject(String value)
Optional. The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
string project = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The project to set.- Returns:
- This builder for chaining.
-
clearProject
public Task.ExecutionSpec.Builder clearProject()
Optional. The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
string project = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setProjectBytes
public Task.ExecutionSpec.Builder setProjectBytes(com.google.protobuf.ByteString value)
Optional. The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
string project = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for project to set.- Returns:
- This builder for chaining.
-
hasMaxJobExecutionLifetime
public boolean hasMaxJobExecutionLifetime()
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMaxJobExecutionLifetimein interfaceTask.ExecutionSpecOrBuilder- Returns:
- Whether the maxJobExecutionLifetime field is set.
-
getMaxJobExecutionLifetime
public com.google.protobuf.Duration getMaxJobExecutionLifetime()
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaxJobExecutionLifetimein interfaceTask.ExecutionSpecOrBuilder- Returns:
- The maxJobExecutionLifetime.
-
setMaxJobExecutionLifetime
public Task.ExecutionSpec.Builder setMaxJobExecutionLifetime(com.google.protobuf.Duration value)
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];
-
setMaxJobExecutionLifetime
public Task.ExecutionSpec.Builder setMaxJobExecutionLifetime(com.google.protobuf.Duration.Builder builderForValue)
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];
-
mergeMaxJobExecutionLifetime
public Task.ExecutionSpec.Builder mergeMaxJobExecutionLifetime(com.google.protobuf.Duration value)
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];
-
clearMaxJobExecutionLifetime
public Task.ExecutionSpec.Builder clearMaxJobExecutionLifetime()
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];
-
getMaxJobExecutionLifetimeBuilder
public com.google.protobuf.Duration.Builder getMaxJobExecutionLifetimeBuilder()
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];
-
getMaxJobExecutionLifetimeOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxJobExecutionLifetimeOrBuilder()
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaxJobExecutionLifetimeOrBuilderin interfaceTask.ExecutionSpecOrBuilder
-
getKmsKey
public String getKmsKey()
Optional. The Cloud KMS key to use for encryption, of the form: `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKmsKeyin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The kmsKey.
-
getKmsKeyBytes
public com.google.protobuf.ByteString getKmsKeyBytes()
Optional. The Cloud KMS key to use for encryption, of the form: `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKmsKeyBytesin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The bytes for kmsKey.
-
setKmsKey
public Task.ExecutionSpec.Builder setKmsKey(String value)
Optional. The Cloud KMS key to use for encryption, of the form: `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The kmsKey to set.- Returns:
- This builder for chaining.
-
clearKmsKey
public Task.ExecutionSpec.Builder clearKmsKey()
Optional. The Cloud KMS key to use for encryption, of the form: `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setKmsKeyBytes
public Task.ExecutionSpec.Builder setKmsKeyBytes(com.google.protobuf.ByteString value)
Optional. The Cloud KMS key to use for encryption, of the form: `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for kmsKey to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Task.ExecutionSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
mergeUnknownFields
public final Task.ExecutionSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder>
-
-