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.GeneratedMessage.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.GeneratedMessage.Builder<Task.ExecutionSpec.Builder>
implements Task.ExecutionSpecOrBuilder
Execution related settings, like retry and service_account.Protobuf type
google.cloud.dataplex.v1.Task.ExecutionSpec-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Required.booleancontainsArgs(String key) Optional.getArgs()Deprecated.intOptional.Optional.getArgsOrDefault(String key, String defaultValue) Optional.getArgsOrThrow(String key) Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.Deprecated.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(Task.ExecutionSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxJobExecutionLifetime(com.google.protobuf.Duration value) Optional.putAllArgs(Map<String, String> values) Optional.Optional.removeArgs(String key) Optional.Optional.setKmsKeyBytes(com.google.protobuf.ByteString value) Optional.setMaxJobExecutionLifetime(com.google.protobuf.Duration value) Optional.setMaxJobExecutionLifetime(com.google.protobuf.Duration.Builder builderForValue) Optional.setProject(String value) Optional.setProjectBytes(com.google.protobuf.ByteString value) Optional.setServiceAccount(String value) Required.setServiceAccountBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Task.ExecutionSpec.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Task.ExecutionSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.Builder<Task.ExecutionSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Task.ExecutionSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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.UsegetArgsMap()instead.- Specified by:
getArgsin interfaceTask.ExecutionSpecOrBuilder
-
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
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
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
-
removeArgs
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.Use alternate mutation accessors instead. -
putArgs
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
-