Class MigrationSubtask (0.24.0)

publicfinalclass MigrationSubtaskextendsGeneratedMessageV3implementsMigrationSubtaskOrBuilder

A subtask for a migration which carries details about the configuration of the subtask. The content of the details should not matter to the end user, but is a contract between the subtask creator and subtask worker.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)

Static Fields

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

LAST_UPDATE_TIME_FIELD_NUMBER

publicstaticfinalintLAST_UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

METRICS_FIELD_NUMBER

publicstaticfinalintMETRICS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

PROCESSING_ERROR_FIELD_NUMBER

publicstaticfinalintPROCESSING_ERROR_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_ERROR_COUNT_FIELD_NUMBER

publicstaticfinalintRESOURCE_ERROR_COUNT_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_ERROR_DETAILS_FIELD_NUMBER

publicstaticfinalintRESOURCE_ERROR_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

publicstaticfinalintSTATE_FIELD_NUMBER
Field Value
Type Description
int

TASK_ID_FIELD_NUMBER

publicstaticfinalintTASK_ID_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

publicstaticfinalintTYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticMigrationSubtaskgetDefaultInstance()
Returns
Type Description
MigrationSubtask

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticMigrationSubtask.BuildernewBuilder()
Returns
Type Description
MigrationSubtask.Builder

newBuilder(MigrationSubtask prototype)

publicstaticMigrationSubtask.BuildernewBuilder(MigrationSubtaskprototype)
Parameter
Name Description
prototype MigrationSubtask
Returns
Type Description
MigrationSubtask.Builder

parseDelimitedFrom(InputStream input)

publicstaticMigrationSubtaskparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
MigrationSubtask
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticMigrationSubtaskparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
MigrationSubtask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticMigrationSubtaskparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
MigrationSubtask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticMigrationSubtaskparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MigrationSubtask
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticMigrationSubtaskparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
MigrationSubtask
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticMigrationSubtaskparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MigrationSubtask
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCreateTime()

publicTimestampgetCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicMigrationSubtaskgetDefaultInstanceForType()
Returns
Type Description
MigrationSubtask

getLastUpdateTime()

publicTimestampgetLastUpdateTime()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
Type Description
Timestamp

The lastUpdateTime.

getLastUpdateTimeOrBuilder()

publicTimestampOrBuildergetLastUpdateTimeOrBuilder()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
Type Description
TimestampOrBuilder

getMetrics(int index)

publicTimeSeriesgetMetrics(intindex)

The metrics for the subtask.

repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;

Parameter
Name Description
index int
Returns
Type Description
TimeSeries

getMetricsCount()

publicintgetMetricsCount()

The metrics for the subtask.

repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;

Returns
Type Description
int

getMetricsList()

publicList<TimeSeries>getMetricsList()

The metrics for the subtask.

repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;

Returns
Type Description
List<TimeSeries>

getMetricsOrBuilder(int index)

publicTimeSeriesOrBuildergetMetricsOrBuilder(intindex)

The metrics for the subtask.

repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesOrBuilder

getMetricsOrBuilderList()

publicList<?extendsTimeSeriesOrBuilder>getMetricsOrBuilderList()

The metrics for the subtask.

repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;

Returns
Type Description
List<? extends com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder>

getName()

publicStringgetName()

Output only. Immutable. The resource name for the migration subtask. The ID is server-generated.

Example: projects/123/locations/us/workflows/345/subtasks/678

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

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Output only. Immutable. The resource name for the migration subtask. The ID is server-generated.

Example: projects/123/locations/us/workflows/345/subtasks/678

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getProcessingError()

publicErrorInfogetProcessingError()

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

.google.rpc.ErrorInfo processing_error = 6 [(.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 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.ErrorInfoOrBuilder

getResourceErrorCount()

publicintgetResourceErrorCount()

The number or resources with errors. Note: This is not the total number of errors as each resource can have more than one error. This is used to indicate truncation by having a resource_error_count that is higher than the size of resource_error_details.

int32 resource_error_count = 13;

Returns
Type Description
int

The resourceErrorCount.

getResourceErrorDetails(int index)

publicResourceErrorDetailgetResourceErrorDetails(intindex)

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ResourceErrorDetail

getResourceErrorDetailsCount()

publicintgetResourceErrorDetailsCount()

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getResourceErrorDetailsList()

publicList<ResourceErrorDetail>getResourceErrorDetailsList()

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ResourceErrorDetail>

getResourceErrorDetailsOrBuilder(int index)

publicResourceErrorDetailOrBuildergetResourceErrorDetailsOrBuilder(intindex)

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ResourceErrorDetailOrBuilder

getResourceErrorDetailsOrBuilderList()

publicList<?extendsResourceErrorDetailOrBuilder>getResourceErrorDetailsOrBuilderList()

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder>

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getState()

publicMigrationSubtask.StategetState()

Output only. The current state of the subtask.

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

Returns
Type Description
MigrationSubtask.State

The state.

getStateValue()

publicintgetStateValue()

Output only. The current state of the subtask.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getTaskId()

publicStringgetTaskId()

The unique ID of the task to which this subtask belongs.

string task_id = 2;

Returns
Type Description
String

The taskId.

getTaskIdBytes()

publicByteStringgetTaskIdBytes()

The unique ID of the task to which this subtask belongs.

string task_id = 2;

Returns
Type Description
ByteString

The bytes for taskId.

getType()

publicStringgetType()

The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks.

string type = 3;

Returns
Type Description
String

The type.

getTypeBytes()

publicByteStringgetTypeBytes()

The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks.

string type = 3;

Returns
Type Description
ByteString

The bytes for type.

hasCreateTime()

publicbooleanhasCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
boolean

Whether the createTime field is set.

hasLastUpdateTime()

publicbooleanhasLastUpdateTime()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

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 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the processingError 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()

publicMigrationSubtask.BuildernewBuilderForType()
Returns
Type Description
MigrationSubtask.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedMigrationSubtask.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MigrationSubtask.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicMigrationSubtask.BuildertoBuilder()
Returns
Type Description
MigrationSubtask.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.