Class Task.Builder (1.11.0)

public static final class Task.Builder extends GeneratedMessageV3.Builder<Task.Builder> implements TaskOrBuilder

A task represents a user-visible job.

Protobuf type google.cloud.dataplex.v1.Task

Implements

TaskOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Task.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Task.Builder
Overrides

build()

public Task build()
Returns
TypeDescription
Task

buildPartial()

public Task buildPartial()
Returns
TypeDescription
Task

clear()

public Task.Builder clear()
Returns
TypeDescription
Task.Builder
Overrides

clearConfig()

public Task.Builder clearConfig()
Returns
TypeDescription
Task.Builder

clearCreateTime()

public Task.Builder clearCreateTime()

Output only. The time when the task was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Task.Builder

clearDescription()

public Task.Builder clearDescription()

Optional. Description of the task.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Task.Builder

This builder for chaining.

clearDisplayName()

public Task.Builder clearDisplayName()

Optional. User friendly display name.

string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Task.Builder

This builder for chaining.

clearExecutionSpec()

public Task.Builder clearExecutionSpec()

Required. Spec related to how a task is executed.

.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Task.Builder

clearExecutionStatus()

public Task.Builder clearExecutionStatus()

Output only. Status of the latest task executions.

.google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Task.Builder

clearField(Descriptors.FieldDescriptor field)

public Task.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Task.Builder
Overrides

clearLabels()

public Task.Builder clearLabels()
Returns
TypeDescription
Task.Builder

clearName()

public Task.Builder clearName()

Output only. The relative resource name of the task, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ tasks/{task_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Task.Builder

This builder for chaining.

clearNotebook()

public Task.Builder clearNotebook()

Config related to running scheduled Notebooks.

.google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;

Returns
TypeDescription
Task.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Task.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Task.Builder
Overrides

clearSpark()

public Task.Builder clearSpark()

Config related to running custom Spark tasks.

.google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300;

Returns
TypeDescription
Task.Builder

clearState()

public Task.Builder clearState()

Output only. Current state of the task.

.google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Task.Builder

This builder for chaining.

clearTriggerSpec()

public Task.Builder clearTriggerSpec()

Required. Spec related to how often and when a task should be triggered.

.google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Task.Builder

clearUid()

public Task.Builder clearUid()

Output only. System generated globally unique ID for the task. This ID will be different if the task is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Task.Builder

This builder for chaining.

clearUpdateTime()

public Task.Builder clearUpdateTime()

Output only. The time when the task was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Task.Builder

clone()

public Task.Builder clone()
Returns
TypeDescription
Task.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. User-defined labels for the task.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getConfigCase()

public Task.ConfigCase getConfigCase()
Returns
TypeDescription
Task.ConfigCase

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the task was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the task was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the task was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Task getDefaultInstanceForType()
Returns
TypeDescription
Task

getDescription()

public String getDescription()

Optional. Description of the task.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the task.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. User friendly display name.

string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. User friendly display name.

string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for displayName.

getExecutionSpec()

public Task.ExecutionSpec getExecutionSpec()

Required. Spec related to how a task is executed.

.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Task.ExecutionSpec

The executionSpec.

getExecutionSpecBuilder()

public Task.ExecutionSpec.Builder getExecutionSpecBuilder()

Required. Spec related to how a task is executed.

.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Task.ExecutionSpec.Builder

getExecutionSpecOrBuilder()

public Task.ExecutionSpecOrBuilder getExecutionSpecOrBuilder()

Required. Spec related to how a task is executed.

.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Task.ExecutionSpecOrBuilder

getExecutionStatus()

public Task.ExecutionStatus getExecutionStatus()

Output only. Status of the latest task executions.

.google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Task.ExecutionStatus

The executionStatus.

getExecutionStatusBuilder()

public Task.ExecutionStatus.Builder getExecutionStatusBuilder()

Output only. Status of the latest task executions.

.google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Task.ExecutionStatus.Builder

getExecutionStatusOrBuilder()

public Task.ExecutionStatusOrBuilder getExecutionStatusOrBuilder()

Output only. Status of the latest task executions.

.google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Task.ExecutionStatusOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. User-defined labels for the task.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. User-defined labels for the task.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. User-defined labels for the task.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. User-defined labels for the task.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Output only. The relative resource name of the task, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ tasks/{task_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The relative resource name of the task, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ tasks/{task_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getNotebook()

public Task.NotebookTaskConfig getNotebook()

Config related to running scheduled Notebooks.

.google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;

Returns
TypeDescription
Task.NotebookTaskConfig

The notebook.

getNotebookBuilder()

public Task.NotebookTaskConfig.Builder getNotebookBuilder()

Config related to running scheduled Notebooks.

.google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;

Returns
TypeDescription
Task.NotebookTaskConfig.Builder

getNotebookOrBuilder()

public Task.NotebookTaskConfigOrBuilder getNotebookOrBuilder()

Config related to running scheduled Notebooks.

.google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;

Returns
TypeDescription
Task.NotebookTaskConfigOrBuilder

getSpark()

public Task.SparkTaskConfig getSpark()

Config related to running custom Spark tasks.

.google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300;

Returns
TypeDescription
Task.SparkTaskConfig

The spark.

getSparkBuilder()

public Task.SparkTaskConfig.Builder getSparkBuilder()

Config related to running custom Spark tasks.

.google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300;

Returns
TypeDescription
Task.SparkTaskConfig.Builder

getSparkOrBuilder()

public Task.SparkTaskConfigOrBuilder getSparkOrBuilder()

Config related to running custom Spark tasks.

.google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300;

Returns
TypeDescription
Task.SparkTaskConfigOrBuilder

getState()

public State getState()

Output only. Current state of the task.

.google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of the task.

.google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTriggerSpec()

public Task.TriggerSpec getTriggerSpec()

Required. Spec related to how often and when a task should be triggered.

.google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Task.TriggerSpec

The triggerSpec.

getTriggerSpecBuilder()

public Task.TriggerSpec.Builder getTriggerSpecBuilder()

Required. Spec related to how often and when a task should be triggered.

.google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Task.TriggerSpec.Builder

getTriggerSpecOrBuilder()

public Task.TriggerSpecOrBuilder getTriggerSpecOrBuilder()

Required. Spec related to how often and when a task should be triggered.

.google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Task.TriggerSpecOrBuilder

getUid()

public String getUid()

Output only. System generated globally unique ID for the task. This ID will be different if the task is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System generated globally unique ID for the task. This ID will be different if the task is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the task was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the task was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the task was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the task was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasExecutionSpec()

public boolean hasExecutionSpec()

Required. Spec related to how a task is executed.

.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the executionSpec field is set.

hasExecutionStatus()

public boolean hasExecutionStatus()

Output only. Status of the latest task executions.

.google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the executionStatus field is set.

hasNotebook()

public boolean hasNotebook()

Config related to running scheduled Notebooks.

.google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;

Returns
TypeDescription
boolean

Whether the notebook field is set.

hasSpark()

public boolean hasSpark()

Config related to running custom Spark tasks.

.google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300;

Returns
TypeDescription
boolean

Whether the spark field is set.

hasTriggerSpec()

public boolean hasTriggerSpec()

Required. Spec related to how often and when a task should be triggered.

.google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the triggerSpec field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the task was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Task.Builder mergeCreateTime(Timestamp value)

Output only. The time when the task was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Task.Builder

mergeExecutionSpec(Task.ExecutionSpec value)

public Task.Builder mergeExecutionSpec(Task.ExecutionSpec value)

Required. Spec related to how a task is executed.

.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTask.ExecutionSpec
Returns
TypeDescription
Task.Builder

mergeExecutionStatus(Task.ExecutionStatus value)

public Task.Builder mergeExecutionStatus(Task.ExecutionStatus value)

Output only. Status of the latest task executions.

.google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTask.ExecutionStatus
Returns
TypeDescription
Task.Builder

mergeFrom(Task other)

public Task.Builder mergeFrom(Task other)
Parameter
NameDescription
otherTask
Returns
TypeDescription
Task.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Task.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Task.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Task.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Task.Builder
Overrides

mergeNotebook(Task.NotebookTaskConfig value)

public Task.Builder mergeNotebook(Task.NotebookTaskConfig value)

Config related to running scheduled Notebooks.

.google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;

Parameter
NameDescription
valueTask.NotebookTaskConfig
Returns
TypeDescription
Task.Builder

mergeSpark(Task.SparkTaskConfig value)

public Task.Builder mergeSpark(Task.SparkTaskConfig value)

Config related to running custom Spark tasks.

.google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300;

Parameter
NameDescription
valueTask.SparkTaskConfig
Returns
TypeDescription
Task.Builder

mergeTriggerSpec(Task.TriggerSpec value)

public Task.Builder mergeTriggerSpec(Task.TriggerSpec value)

Required. Spec related to how often and when a task should be triggered.

.google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTask.TriggerSpec
Returns
TypeDescription
Task.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Task.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Task.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Task.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the task was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Task.Builder

putAllLabels(Map<String,String> values)

public Task.Builder putAllLabels(Map<String,String> values)

Optional. User-defined labels for the task.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Task.Builder

putLabels(String key, String value)

public Task.Builder putLabels(String key, String value)

Optional. User-defined labels for the task.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Task.Builder

removeLabels(String key)

public Task.Builder removeLabels(String key)

Optional. User-defined labels for the task.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
Task.Builder

setCreateTime(Timestamp value)

public Task.Builder setCreateTime(Timestamp value)

Output only. The time when the task was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Task.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Task.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the task was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Task.Builder

setDescription(String value)

public Task.Builder setDescription(String value)

Optional. Description of the task.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Task.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Task.Builder setDescriptionBytes(ByteString value)

Optional. Description of the task.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Task.Builder

This builder for chaining.

setDisplayName(String value)

public Task.Builder setDisplayName(String value)

Optional. User friendly display name.

string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Task.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Task.Builder setDisplayNameBytes(ByteString value)

Optional. User friendly display name.

string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Task.Builder

This builder for chaining.

setExecutionSpec(Task.ExecutionSpec value)

public Task.Builder setExecutionSpec(Task.ExecutionSpec value)

Required. Spec related to how a task is executed.

.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTask.ExecutionSpec
Returns
TypeDescription
Task.Builder

setExecutionSpec(Task.ExecutionSpec.Builder builderForValue)

public Task.Builder setExecutionSpec(Task.ExecutionSpec.Builder builderForValue)

Required. Spec related to how a task is executed.

.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueTask.ExecutionSpec.Builder
Returns
TypeDescription
Task.Builder

setExecutionStatus(Task.ExecutionStatus value)

public Task.Builder setExecutionStatus(Task.ExecutionStatus value)

Output only. Status of the latest task executions.

.google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTask.ExecutionStatus
Returns
TypeDescription
Task.Builder

setExecutionStatus(Task.ExecutionStatus.Builder builderForValue)

public Task.Builder setExecutionStatus(Task.ExecutionStatus.Builder builderForValue)

Output only. Status of the latest task executions.

.google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueTask.ExecutionStatus.Builder
Returns
TypeDescription
Task.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Task.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Task.Builder
Overrides

setName(String value)

public Task.Builder setName(String value)

Output only. The relative resource name of the task, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ tasks/{task_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Task.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Task.Builder setNameBytes(ByteString value)

Output only. The relative resource name of the task, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ tasks/{task_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Task.Builder

This builder for chaining.

setNotebook(Task.NotebookTaskConfig value)

public Task.Builder setNotebook(Task.NotebookTaskConfig value)

Config related to running scheduled Notebooks.

.google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;

Parameter
NameDescription
valueTask.NotebookTaskConfig
Returns
TypeDescription
Task.Builder

setNotebook(Task.NotebookTaskConfig.Builder builderForValue)

public Task.Builder setNotebook(Task.NotebookTaskConfig.Builder builderForValue)

Config related to running scheduled Notebooks.

.google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;

Parameter
NameDescription
builderForValueTask.NotebookTaskConfig.Builder
Returns
TypeDescription
Task.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Task.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Task.Builder
Overrides

setSpark(Task.SparkTaskConfig value)

public Task.Builder setSpark(Task.SparkTaskConfig value)

Config related to running custom Spark tasks.

.google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300;

Parameter
NameDescription
valueTask.SparkTaskConfig
Returns
TypeDescription
Task.Builder

setSpark(Task.SparkTaskConfig.Builder builderForValue)

public Task.Builder setSpark(Task.SparkTaskConfig.Builder builderForValue)

Config related to running custom Spark tasks.

.google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300;

Parameter
NameDescription
builderForValueTask.SparkTaskConfig.Builder
Returns
TypeDescription
Task.Builder

setState(State value)

public Task.Builder setState(State value)

Output only. Current state of the task.

.google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueState

The state to set.

Returns
TypeDescription
Task.Builder

This builder for chaining.

setStateValue(int value)

public Task.Builder setStateValue(int value)

Output only. Current state of the task.

.google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Task.Builder

This builder for chaining.

setTriggerSpec(Task.TriggerSpec value)

public Task.Builder setTriggerSpec(Task.TriggerSpec value)

Required. Spec related to how often and when a task should be triggered.

.google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTask.TriggerSpec
Returns
TypeDescription
Task.Builder

setTriggerSpec(Task.TriggerSpec.Builder builderForValue)

public Task.Builder setTriggerSpec(Task.TriggerSpec.Builder builderForValue)

Required. Spec related to how often and when a task should be triggered.

.google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueTask.TriggerSpec.Builder
Returns
TypeDescription
Task.Builder

setUid(String value)

public Task.Builder setUid(String value)

Output only. System generated globally unique ID for the task. This ID will be different if the task is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Task.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Task.Builder setUidBytes(ByteString value)

Output only. System generated globally unique ID for the task. This ID will be different if the task is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Task.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Task.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Task.Builder
Overrides

setUpdateTime(Timestamp value)

public Task.Builder setUpdateTime(Timestamp value)

Output only. The time when the task was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Task.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Task.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the task was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Task.Builder