Class MigrationTask.Builder (0.47.0)

public static final class MigrationTask.Builder extends GeneratedMessageV3.Builder<MigrationTask.Builder> implements MigrationTaskOrBuilder

A single task for a migration which has details about the configuration of the task.

Protobuf type google.cloud.bigquery.migration.v2alpha.MigrationTask

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MigrationTask.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MigrationTask.Builder
Overrides

build()

public MigrationTask build()
Returns
Type Description
MigrationTask

buildPartial()

public MigrationTask buildPartial()
Returns
Type Description
MigrationTask

clear()

public MigrationTask.Builder clear()
Returns
Type Description
MigrationTask.Builder
Overrides

clearAssessmentTaskDetails()

public MigrationTask.Builder clearAssessmentTaskDetails()

Task configuration for Assessment.

.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12;

Returns
Type Description
MigrationTask.Builder

clearCreateTime()

public MigrationTask.Builder clearCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
MigrationTask.Builder

clearDetails()

public MigrationTask.Builder clearDetails()

DEPRECATED! Use one of the task_details below. The details of the task. The type URL must be one of the supported task details messages and correspond to the Task's type.

.google.protobuf.Any details = 3;

Returns
Type Description
MigrationTask.Builder

clearField(Descriptors.FieldDescriptor field)

public MigrationTask.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MigrationTask.Builder
Overrides

clearId()

public MigrationTask.Builder clearId()

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clearLastUpdateTime()

public MigrationTask.Builder clearLastUpdateTime()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
MigrationTask.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MigrationTask.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MigrationTask.Builder
Overrides

clearOrchestrationResult()

public MigrationTask.Builder clearOrchestrationResult()

Output only. Additional information about the orchestration.

.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTask.Builder

clearProcessingError()

public MigrationTask.Builder clearProcessingError()

Output only. An explanation that may be populated when the task is in FAILED state.

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTask.Builder

clearState()

public MigrationTask.Builder clearState()

Output only. The current state of the task.

.google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clearTaskDetails()

public MigrationTask.Builder clearTaskDetails()
Returns
Type Description
MigrationTask.Builder

clearTranslationTaskDetails()

public MigrationTask.Builder clearTranslationTaskDetails()

Task configuration for Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13;

Returns
Type Description
MigrationTask.Builder

clearType()

public MigrationTask.Builder clearType()

The type of the task. This must be a supported task type.

string type = 2;

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clone()

public MigrationTask.Builder clone()
Returns
Type Description
MigrationTask.Builder
Overrides

getAssessmentTaskDetails()

public AssessmentTaskDetails getAssessmentTaskDetails()

Task configuration for Assessment.

.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12;

Returns
Type Description
AssessmentTaskDetails

The assessmentTaskDetails.

getAssessmentTaskDetailsBuilder()

public AssessmentTaskDetails.Builder getAssessmentTaskDetailsBuilder()

Task configuration for Assessment.

.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12;

Returns
Type Description
AssessmentTaskDetails.Builder

getAssessmentTaskDetailsOrBuilder()

public AssessmentTaskDetailsOrBuilder getAssessmentTaskDetailsOrBuilder()

Task configuration for Assessment.

.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12;

Returns
Type Description
AssessmentTaskDetailsOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MigrationTask getDefaultInstanceForType()
Returns
Type Description
MigrationTask

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDetails()

public Any getDetails()

DEPRECATED! Use one of the task_details below. The details of the task. The type URL must be one of the supported task details messages and correspond to the Task's type.

.google.protobuf.Any details = 3;

Returns
Type Description
Any

The details.

getDetailsBuilder()

public Any.Builder getDetailsBuilder()

DEPRECATED! Use one of the task_details below. The details of the task. The type URL must be one of the supported task details messages and correspond to the Task's type.

.google.protobuf.Any details = 3;

Returns
Type Description
Builder

getDetailsOrBuilder()

public AnyOrBuilder getDetailsOrBuilder()

DEPRECATED! Use one of the task_details below. The details of the task. The type URL must be one of the supported task details messages and correspond to the Task's type.

.google.protobuf.Any details = 3;

Returns
Type Description
AnyOrBuilder

getId()

public String getId()

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for id.

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
TimestampOrBuilder

getOrchestrationResult()

public MigrationTaskOrchestrationResult getOrchestrationResult()

Output only. Additional information about the orchestration.

.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTaskOrchestrationResult

The orchestrationResult.

getOrchestrationResultBuilder()

public MigrationTaskOrchestrationResult.Builder getOrchestrationResultBuilder()

Output only. Additional information about the orchestration.

.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTaskOrchestrationResult.Builder

getOrchestrationResultOrBuilder()

public MigrationTaskOrchestrationResultOrBuilder getOrchestrationResultOrBuilder()

Output only. Additional information about the orchestration.

.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTaskOrchestrationResultOrBuilder

getProcessingError()

public ErrorInfo getProcessingError()

Output only. An explanation that may be populated when the task is in FAILED state.

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.ErrorInfo

The processingError.

getProcessingErrorBuilder()

public ErrorInfo.Builder getProcessingErrorBuilder()

Output only. An explanation that may be populated when the task is in FAILED state.

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.ErrorInfo.Builder

getProcessingErrorOrBuilder()

public ErrorInfoOrBuilder getProcessingErrorOrBuilder()

Output only. An explanation that may be populated when the task is in FAILED state.

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.ErrorInfoOrBuilder

getState()

public MigrationTask.State getState()

Output only. The current state of the task.

.google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTask.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the task.

.google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTaskDetailsCase()

public MigrationTask.TaskDetailsCase getTaskDetailsCase()
Returns
Type Description
MigrationTask.TaskDetailsCase

getTranslationTaskDetails()

public TranslationTaskDetails getTranslationTaskDetails()

Task configuration for Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13;

Returns
Type Description
TranslationTaskDetails

The translationTaskDetails.

getTranslationTaskDetailsBuilder()

public TranslationTaskDetails.Builder getTranslationTaskDetailsBuilder()

Task configuration for Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13;

Returns
Type Description
TranslationTaskDetails.Builder

getTranslationTaskDetailsOrBuilder()

public TranslationTaskDetailsOrBuilder getTranslationTaskDetailsOrBuilder()

Task configuration for Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13;

Returns
Type Description
TranslationTaskDetailsOrBuilder

getType()

public String getType()

The type of the task. This must be a supported task type.

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of the task. This must be a supported task type.

string type = 2;

Returns
Type Description
ByteString

The bytes for type.

hasAssessmentTaskDetails()

public boolean hasAssessmentTaskDetails()

Task configuration for Assessment.

.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12;

Returns
Type Description
boolean

Whether the assessmentTaskDetails field is set.

hasCreateTime()

public boolean hasCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
boolean

Whether the createTime field is set.

hasDetails()

public boolean hasDetails()

DEPRECATED! Use one of the task_details below. The details of the task. The type URL must be one of the supported task details messages and correspond to the Task's type.

.google.protobuf.Any details = 3;

Returns
Type Description
boolean

Whether the details field is set.

hasLastUpdateTime()

public boolean hasLastUpdateTime()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
boolean

Whether the lastUpdateTime field is set.

hasOrchestrationResult()

public boolean hasOrchestrationResult()

Output only. Additional information about the orchestration.

.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the orchestrationResult field is set.

hasProcessingError()

public boolean hasProcessingError()

Output only. An explanation that may be populated when the task is in FAILED state.

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the processingError field is set.

hasTranslationTaskDetails()

public boolean hasTranslationTaskDetails()

Task configuration for Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13;

Returns
Type Description
boolean

Whether the translationTaskDetails field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAssessmentTaskDetails(AssessmentTaskDetails value)

public MigrationTask.Builder mergeAssessmentTaskDetails(AssessmentTaskDetails value)

Task configuration for Assessment.

.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12;

Parameter
Name Description
value AssessmentTaskDetails
Returns
Type Description
MigrationTask.Builder

mergeCreateTime(Timestamp value)

public MigrationTask.Builder mergeCreateTime(Timestamp value)

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationTask.Builder

mergeDetails(Any value)

public MigrationTask.Builder mergeDetails(Any value)

DEPRECATED! Use one of the task_details below. The details of the task. The type URL must be one of the supported task details messages and correspond to the Task's type.

.google.protobuf.Any details = 3;

Parameter
Name Description
value Any
Returns
Type Description
MigrationTask.Builder

mergeFrom(MigrationTask other)

public MigrationTask.Builder mergeFrom(MigrationTask other)
Parameter
Name Description
other MigrationTask
Returns
Type Description
MigrationTask.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MigrationTask.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationTask.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MigrationTask.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MigrationTask.Builder
Overrides

mergeLastUpdateTime(Timestamp value)

public MigrationTask.Builder mergeLastUpdateTime(Timestamp value)

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationTask.Builder

mergeOrchestrationResult(MigrationTaskOrchestrationResult value)

public MigrationTask.Builder mergeOrchestrationResult(MigrationTaskOrchestrationResult value)

Output only. Additional information about the orchestration.

.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MigrationTaskOrchestrationResult
Returns
Type Description
MigrationTask.Builder

mergeProcessingError(ErrorInfo value)

public MigrationTask.Builder mergeProcessingError(ErrorInfo value)

Output only. An explanation that may be populated when the task is in FAILED state.

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.ErrorInfo
Returns
Type Description
MigrationTask.Builder

mergeTranslationTaskDetails(TranslationTaskDetails value)

public MigrationTask.Builder mergeTranslationTaskDetails(TranslationTaskDetails value)

Task configuration for Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13;

Parameter
Name Description
value TranslationTaskDetails
Returns
Type Description
MigrationTask.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MigrationTask.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MigrationTask.Builder
Overrides

setAssessmentTaskDetails(AssessmentTaskDetails value)

public MigrationTask.Builder setAssessmentTaskDetails(AssessmentTaskDetails value)

Task configuration for Assessment.

.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12;

Parameter
Name Description
value AssessmentTaskDetails
Returns
Type Description
MigrationTask.Builder

setAssessmentTaskDetails(AssessmentTaskDetails.Builder builderForValue)

public MigrationTask.Builder setAssessmentTaskDetails(AssessmentTaskDetails.Builder builderForValue)

Task configuration for Assessment.

.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12;

Parameter
Name Description
builderForValue AssessmentTaskDetails.Builder
Returns
Type Description
MigrationTask.Builder

setCreateTime(Timestamp value)

public MigrationTask.Builder setCreateTime(Timestamp value)

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationTask.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MigrationTask.Builder setCreateTime(Timestamp.Builder builderForValue)

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MigrationTask.Builder

setDetails(Any value)

public MigrationTask.Builder setDetails(Any value)

DEPRECATED! Use one of the task_details below. The details of the task. The type URL must be one of the supported task details messages and correspond to the Task's type.

.google.protobuf.Any details = 3;

Parameter
Name Description
value Any
Returns
Type Description
MigrationTask.Builder

setDetails(Any.Builder builderForValue)

public MigrationTask.Builder setDetails(Any.Builder builderForValue)

DEPRECATED! Use one of the task_details below. The details of the task. The type URL must be one of the supported task details messages and correspond to the Task's type.

.google.protobuf.Any details = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MigrationTask.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MigrationTask.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MigrationTask.Builder
Overrides

setId(String value)

public MigrationTask.Builder setId(String value)

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setIdBytes(ByteString value)

public MigrationTask.Builder setIdBytes(ByteString value)

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setLastUpdateTime(Timestamp value)

public MigrationTask.Builder setLastUpdateTime(Timestamp value)

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationTask.Builder

setLastUpdateTime(Timestamp.Builder builderForValue)

public MigrationTask.Builder setLastUpdateTime(Timestamp.Builder builderForValue)

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MigrationTask.Builder

setOrchestrationResult(MigrationTaskOrchestrationResult value)

public MigrationTask.Builder setOrchestrationResult(MigrationTaskOrchestrationResult value)

Output only. Additional information about the orchestration.

.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MigrationTaskOrchestrationResult
Returns
Type Description
MigrationTask.Builder

setOrchestrationResult(MigrationTaskOrchestrationResult.Builder builderForValue)

public MigrationTask.Builder setOrchestrationResult(MigrationTaskOrchestrationResult.Builder builderForValue)

Output only. Additional information about the orchestration.

.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue MigrationTaskOrchestrationResult.Builder
Returns
Type Description
MigrationTask.Builder

setProcessingError(ErrorInfo value)

public MigrationTask.Builder setProcessingError(ErrorInfo value)

Output only. An explanation that may be populated when the task is in FAILED state.

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.ErrorInfo
Returns
Type Description
MigrationTask.Builder

setProcessingError(ErrorInfo.Builder builderForValue)

public MigrationTask.Builder setProcessingError(ErrorInfo.Builder builderForValue)

Output only. An explanation that may be populated when the task is in FAILED state.

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.rpc.ErrorInfo.Builder
Returns
Type Description
MigrationTask.Builder

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

public MigrationTask.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MigrationTask.Builder
Overrides

setState(MigrationTask.State value)

public MigrationTask.Builder setState(MigrationTask.State value)

Output only. The current state of the task.

.google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MigrationTask.State

The state to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setStateValue(int value)

public MigrationTask.Builder setStateValue(int value)

Output only. The current state of the task.

.google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setTranslationTaskDetails(TranslationTaskDetails value)

public MigrationTask.Builder setTranslationTaskDetails(TranslationTaskDetails value)

Task configuration for Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13;

Parameter
Name Description
value TranslationTaskDetails
Returns
Type Description
MigrationTask.Builder

setTranslationTaskDetails(TranslationTaskDetails.Builder builderForValue)

public MigrationTask.Builder setTranslationTaskDetails(TranslationTaskDetails.Builder builderForValue)

Task configuration for Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13;

Parameter
Name Description
builderForValue TranslationTaskDetails.Builder
Returns
Type Description
MigrationTask.Builder

setType(String value)

public MigrationTask.Builder setType(String value)

The type of the task. This must be a supported task type.

string type = 2;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public MigrationTask.Builder setTypeBytes(ByteString value)

The type of the task. This must be a supported task type.

string type = 2;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MigrationTask.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MigrationTask.Builder
Overrides