Class MigrationTask.Builder (0.9.0)

publicstaticfinalclass MigrationTask.BuilderextendsGeneratedMessageV3.Builder<MigrationTask.Builder>implementsMigrationTaskOrBuilder

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

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicMigrationTask.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicMigrationTaskbuild()
Returns
Type Description

buildPartial()

publicMigrationTaskbuildPartial()
Returns
Type Description

clear()

publicMigrationTask.Builderclear()
Returns
Type Description
Overrides

clearCreateTime()

publicMigrationTask.BuilderclearCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description

clearField(Descriptors.FieldDescriptor field)

publicMigrationTask.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearId()

publicMigrationTask.BuilderclearId()

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()

publicMigrationTask.BuilderclearLastUpdateTime()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description

clearOneof(Descriptors.OneofDescriptor oneof)

publicMigrationTask.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearProcessingError()

publicMigrationTask.BuilderclearProcessingError()

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

clearState()

publicMigrationTask.BuilderclearState()

Output only. The current state of the task.

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

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clearTaskDetails()

publicMigrationTask.BuilderclearTaskDetails()
Returns
Type Description

clearTranslationConfigDetails()

publicMigrationTask.BuilderclearTranslationConfigDetails()

Task configuration for Batch SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Returns
Type Description

clearType()

publicMigrationTask.BuilderclearType()

The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ.

string type = 2;

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clone()

publicMigrationTask.Builderclone()
Returns
Type Description
Overrides

getCreateTime()

publicTimestampgetCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

publicTimestamp.BuildergetCreateTimeBuilder()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description

getDefaultInstanceForType()

publicMigrationTaskgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getId()

publicStringgetId()

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()

publicByteStringgetIdBytes()

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()

publicTimestampgetLastUpdateTime()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

publicTimestamp.BuildergetLastUpdateTimeBuilder()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description

getLastUpdateTimeOrBuilder()

publicTimestampOrBuildergetLastUpdateTimeOrBuilder()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description

getProcessingError()

publicErrorInfogetProcessingError()

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()

publicErrorInfo.BuildergetProcessingErrorBuilder()

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()

publicErrorInfoOrBuildergetProcessingErrorOrBuilder()

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()

publicMigrationTask.StategetState()

Output only. The current state of the task.

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

Returns
Type Description
MigrationTask.State

The state.

getStateValue()

publicintgetStateValue()

Output only. The current state of the task.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getTaskDetailsCase()

publicMigrationTask.TaskDetailsCasegetTaskDetailsCase()
Returns
Type Description

getTranslationConfigDetails()

publicTranslationConfigDetailsgetTranslationConfigDetails()

Task configuration for Batch SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Returns
Type Description
TranslationConfigDetails

The translationConfigDetails.

getTranslationConfigDetailsBuilder()

publicTranslationConfigDetails.BuildergetTranslationConfigDetailsBuilder()

Task configuration for Batch SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Returns
Type Description

getTranslationConfigDetailsOrBuilder()

publicTranslationConfigDetailsOrBuildergetTranslationConfigDetailsOrBuilder()

Task configuration for Batch SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Returns
Type Description

getType()

publicStringgetType()

The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ.

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

publicByteStringgetTypeBytes()

The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ.

string type = 2;

Returns
Type Description
ByteString

The bytes for type.

hasCreateTime()

publicbooleanhasCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
boolean

Whether the createTime field is set.

hasLastUpdateTime()

publicbooleanhasLastUpdateTime()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
boolean

Whether the lastUpdateTime field is set.

hasProcessingError()

publicbooleanhasProcessingError()

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.

hasTranslationConfigDetails()

publicbooleanhasTranslationConfigDetails()

Task configuration for Batch SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Returns
Type Description
boolean

Whether the translationConfigDetails field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeCreateTime(Timestamp value)

publicMigrationTask.BuildermergeCreateTime(Timestampvalue)

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description

mergeFrom(MigrationTask other)

publicMigrationTask.BuildermergeFrom(MigrationTaskother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicMigrationTask.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicMigrationTask.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeLastUpdateTime(Timestamp value)

publicMigrationTask.BuildermergeLastUpdateTime(Timestampvalue)

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description

mergeProcessingError(ErrorInfo value)

publicMigrationTask.BuildermergeProcessingError(ErrorInfovalue)

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

mergeTranslationConfigDetails(TranslationConfigDetails value)

publicMigrationTask.BuildermergeTranslationConfigDetails(TranslationConfigDetailsvalue)

Task configuration for Batch SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Parameter
Name Description
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalMigrationTask.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setCreateTime(Timestamp value)

publicMigrationTask.BuildersetCreateTime(Timestampvalue)

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description

setCreateTime(Timestamp.Builder builderForValue)

publicMigrationTask.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description

setField(Descriptors.FieldDescriptor field, Object value)

publicMigrationTask.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setId(String value)

publicMigrationTask.BuildersetId(Stringvalue)

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)

publicMigrationTask.BuildersetIdBytes(ByteStringvalue)

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)

publicMigrationTask.BuildersetLastUpdateTime(Timestampvalue)

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description

setLastUpdateTime(Timestamp.Builder builderForValue)

publicMigrationTask.BuildersetLastUpdateTime(Timestamp.BuilderbuilderForValue)

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description

setProcessingError(ErrorInfo value)

publicMigrationTask.BuildersetProcessingError(ErrorInfovalue)

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

setProcessingError(ErrorInfo.Builder builderForValue)

publicMigrationTask.BuildersetProcessingError(ErrorInfo.BuilderbuilderForValue)

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

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

publicMigrationTask.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setState(MigrationTask.State value)

publicMigrationTask.BuildersetState(MigrationTask.Statevalue)

Output only. The current state of the task.

.google.cloud.bigquery.migration.v2.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)

publicMigrationTask.BuildersetStateValue(intvalue)

Output only. The current state of the task.

.google.cloud.bigquery.migration.v2.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.

setTranslationConfigDetails(TranslationConfigDetails value)

publicMigrationTask.BuildersetTranslationConfigDetails(TranslationConfigDetailsvalue)

Task configuration for Batch SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Parameter
Name Description
Returns
Type Description

setTranslationConfigDetails(TranslationConfigDetails.Builder builderForValue)

publicMigrationTask.BuildersetTranslationConfigDetails(TranslationConfigDetails.BuilderbuilderForValue)

Task configuration for Batch SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Parameter
Name Description
Returns
Type Description

setType(String value)

publicMigrationTask.BuildersetType(Stringvalue)

The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ.

string type = 2;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setTypeBytes(ByteString value)

publicMigrationTask.BuildersetTypeBytes(ByteStringvalue)

The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ.

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)

publicfinalMigrationTask.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.