Class MigrationTask (0.30.0)

publicfinalclass MigrationTaskextendsGeneratedMessageV3implementsMigrationTaskOrBuilder

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

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)

Static Fields

ASSESSMENT_TASK_DETAILS_FIELD_NUMBER

publicstaticfinalintASSESSMENT_TASK_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DETAILS_FIELD_NUMBER

publicstaticfinalintDETAILS_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

publicstaticfinalintID_FIELD_NUMBER
Field Value
Type Description
int

LAST_UPDATE_TIME_FIELD_NUMBER

publicstaticfinalintLAST_UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ORCHESTRATION_RESULT_FIELD_NUMBER

publicstaticfinalintORCHESTRATION_RESULT_FIELD_NUMBER
Field Value
Type Description
int

PROCESSING_ERROR_FIELD_NUMBER

publicstaticfinalintPROCESSING_ERROR_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

publicstaticfinalintSTATE_FIELD_NUMBER
Field Value
Type Description
int

TRANSLATION_TASK_DETAILS_FIELD_NUMBER

publicstaticfinalintTRANSLATION_TASK_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

publicstaticfinalintTYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticMigrationTaskgetDefaultInstance()
Returns
Type Description
MigrationTask

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticMigrationTask.BuildernewBuilder()
Returns
Type Description
MigrationTask.Builder

newBuilder(MigrationTask prototype)

publicstaticMigrationTask.BuildernewBuilder(MigrationTaskprototype)
Parameter
Name Description
prototype MigrationTask
Returns
Type Description
MigrationTask.Builder

parseDelimitedFrom(InputStream input)

publicstaticMigrationTaskparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
MigrationTask
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticMigrationTaskparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationTask
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticMigrationTaskparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
MigrationTask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticMigrationTaskparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationTask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticMigrationTaskparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
MigrationTask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticMigrationTaskparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationTask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticMigrationTaskparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MigrationTask
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticMigrationTaskparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationTask
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticMigrationTaskparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
MigrationTask
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticMigrationTaskparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationTask
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticMigrationTaskparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MigrationTask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticMigrationTaskparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationTask
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<MigrationTask>parser()
Returns
Type Description
Parser<MigrationTask>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAssessmentTaskDetails()

publicAssessmentTaskDetailsgetAssessmentTaskDetails()

Task configuration for Assessment.

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

Returns
Type Description
AssessmentTaskDetails

The assessmentTaskDetails.

getAssessmentTaskDetailsOrBuilder()

publicAssessmentTaskDetailsOrBuildergetAssessmentTaskDetailsOrBuilder()

Task configuration for Assessment.

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

Returns
Type Description
AssessmentTaskDetailsOrBuilder

getCreateTime()

publicTimestampgetCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicMigrationTaskgetDefaultInstanceForType()
Returns
Type Description
MigrationTask

getDetails()

publicAnygetDetails()

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.

getDetailsOrBuilder()

publicAnyOrBuildergetDetailsOrBuilder()

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

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.

getLastUpdateTimeOrBuilder()

publicTimestampOrBuildergetLastUpdateTimeOrBuilder()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
TimestampOrBuilder

getOrchestrationResult()

publicMigrationTaskOrchestrationResultgetOrchestrationResult()

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.

getOrchestrationResultOrBuilder()

publicMigrationTaskOrchestrationResultOrBuildergetOrchestrationResultOrBuilder()

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

getParserForType()

publicParser<MigrationTask>getParserForType()
Returns
Type Description
Parser<MigrationTask>
Overrides

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.

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getState()

publicMigrationTask.StategetState()

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

publicintgetStateValue()

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

publicMigrationTask.TaskDetailsCasegetTaskDetailsCase()
Returns
Type Description
MigrationTask.TaskDetailsCase

getTranslationTaskDetails()

publicTranslationTaskDetailsgetTranslationTaskDetails()

Task configuration for Batch/Offline SQL Translation.

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

Returns
Type Description
TranslationTaskDetails

The translationTaskDetails.

getTranslationTaskDetailsOrBuilder()

publicTranslationTaskDetailsOrBuildergetTranslationTaskDetailsOrBuilder()

Task configuration for Batch/Offline SQL Translation.

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

Returns
Type Description
TranslationTaskDetailsOrBuilder

getType()

publicStringgetType()

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

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

publicByteStringgetTypeBytes()

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

string type = 2;

Returns
Type Description
ByteString

The bytes for type.

hasAssessmentTaskDetails()

publicbooleanhasAssessmentTaskDetails()

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

publicbooleanhasCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
boolean

Whether the createTime field is set.

hasDetails()

publicbooleanhasDetails()

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

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.

hasOrchestrationResult()

publicbooleanhasOrchestrationResult()

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

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.

hasTranslationTaskDetails()

publicbooleanhasTranslationTaskDetails()

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicMigrationTask.BuildernewBuilderForType()
Returns
Type Description
MigrationTask.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedMigrationTask.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MigrationTask.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicMigrationTask.BuildertoBuilder()
Returns
Type Description
MigrationTask.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.