public static final class Task.ExecutionSpec.Builder extends GeneratedMessageV3.Builder<Task.ExecutionSpec.Builder> implements Task.ExecutionSpecOrBuilder
Execution related settings, like retry and service_account.
Protobuf type google.cloud.dataplex.v1.Task.ExecutionSpec
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Task.ExecutionSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Task.ExecutionSpec build()
Returns
buildPartial()
public Task.ExecutionSpec buildPartial()
Returns
clear()
public Task.ExecutionSpec.Builder clear()
Returns
Overrides
clearArgs()
public Task.ExecutionSpec.Builder clearArgs()
Returns
clearField(Descriptors.FieldDescriptor field)
public Task.ExecutionSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Task.ExecutionSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
clone()
public Task.ExecutionSpec.Builder clone()
Returns
Overrides
containsArgs(String key)
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];
Parameter
Returns
getArgs()
public Map<String,String> getArgs()
Returns
getArgsCount()
public int getArgsCount()
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];
Returns
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];
Returns
getArgsOrDefault(String key, String defaultValue)
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];
Parameters
Returns
getArgsOrThrow(String key)
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];
Parameter
Returns
getDefaultInstanceForType()
public Task.ExecutionSpec getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMaxJobExecutionLifetime()
public 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];
Returns
Type | Description |
Duration | The maxJobExecutionLifetime.
|
getMaxJobExecutionLifetimeBuilder()
public 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];
Returns
getMaxJobExecutionLifetimeOrBuilder()
public 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];
Returns
getMutableArgs()
public Map<String,String> getMutableArgs()
Use alternate mutation accessors instead.
Returns
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];
Returns
Type | Description |
String | The serviceAccount.
|
getServiceAccountBytes()
public 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];
Returns
Type | Description |
ByteString | The bytes for serviceAccount.
|
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];
Returns
Type | Description |
boolean | Whether the maxJobExecutionLifetime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Task.ExecutionSpec other)
public Task.ExecutionSpec.Builder mergeFrom(Task.ExecutionSpec other)
Parameter
Returns
public Task.ExecutionSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Task.ExecutionSpec.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeMaxJobExecutionLifetime(Duration value)
public Task.ExecutionSpec.Builder mergeMaxJobExecutionLifetime(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];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Task.ExecutionSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllArgs(Map<String,String> values)
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];
Parameter
Returns
putArgs(String key, String value)
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];
Parameters
Returns
removeArgs(String key)
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];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Task.ExecutionSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMaxJobExecutionLifetime(Duration value)
public Task.ExecutionSpec.Builder setMaxJobExecutionLifetime(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];
Parameter
Returns
setMaxJobExecutionLifetime(Duration.Builder builderForValue)
public Task.ExecutionSpec.Builder setMaxJobExecutionLifetime(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];
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Task.ExecutionSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setServiceAccount(String value)
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];
Parameter
Name | Description |
value | String
The serviceAccount to set.
|
Returns
setServiceAccountBytes(ByteString value)
public Task.ExecutionSpec.Builder setServiceAccountBytes(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];
Parameter
Name | Description |
value | ByteString
The bytes for serviceAccount to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Task.ExecutionSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides