Class MigrationSubtask.Builder (0.21.0)

publicstaticfinalclass MigrationSubtask.BuilderextendsGeneratedMessageV3.Builder<MigrationSubtask.Builder>implementsMigrationSubtaskOrBuilder

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.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
Descriptor

Methods

addAllMetrics(Iterable<? extends TimeSeries> values)

publicMigrationSubtask.BuilderaddAllMetrics(Iterable<?extendsTimeSeries>values)

The metrics for the subtask.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.bigquery.migration.v2.TimeSeries>
Returns
Type Description
MigrationSubtask.Builder

addAllResourceErrorDetails(Iterable<? extends ResourceErrorDetail> values)

publicMigrationSubtask.BuilderaddAllResourceErrorDetails(Iterable<?extendsResourceErrorDetail>values)

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
values Iterable<? extends com.google.cloud.bigquery.migration.v2.ResourceErrorDetail>
Returns
Type Description
MigrationSubtask.Builder

addMetrics(TimeSeries value)

publicMigrationSubtask.BuilderaddMetrics(TimeSeriesvalue)

The metrics for the subtask.

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

Parameter
Name Description
value TimeSeries
Returns
Type Description
MigrationSubtask.Builder

addMetrics(TimeSeries.Builder builderForValue)

publicMigrationSubtask.BuilderaddMetrics(TimeSeries.BuilderbuilderForValue)

The metrics for the subtask.

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

Parameter
Name Description
builderForValue TimeSeries.Builder
Returns
Type Description
MigrationSubtask.Builder

addMetrics(int index, TimeSeries value)

publicMigrationSubtask.BuilderaddMetrics(intindex,TimeSeriesvalue)

The metrics for the subtask.

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

Parameters
Name Description
index int
value TimeSeries
Returns
Type Description
MigrationSubtask.Builder

addMetrics(int index, TimeSeries.Builder builderForValue)

publicMigrationSubtask.BuilderaddMetrics(intindex,TimeSeries.BuilderbuilderForValue)

The metrics for the subtask.

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

Parameters
Name Description
index int
builderForValue TimeSeries.Builder
Returns
Type Description
MigrationSubtask.Builder

addMetricsBuilder()

publicTimeSeries.BuilderaddMetricsBuilder()

The metrics for the subtask.

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

Returns
Type Description
TimeSeries.Builder

addMetricsBuilder(int index)

publicTimeSeries.BuilderaddMetricsBuilder(intindex)

The metrics for the subtask.

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

Parameter
Name Description
index int
Returns
Type Description
TimeSeries.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicMigrationSubtask.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MigrationSubtask.Builder
Overrides

addResourceErrorDetails(ResourceErrorDetail value)

publicMigrationSubtask.BuilderaddResourceErrorDetails(ResourceErrorDetailvalue)

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
value ResourceErrorDetail
Returns
Type Description
MigrationSubtask.Builder

addResourceErrorDetails(ResourceErrorDetail.Builder builderForValue)

publicMigrationSubtask.BuilderaddResourceErrorDetails(ResourceErrorDetail.BuilderbuilderForValue)

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
builderForValue ResourceErrorDetail.Builder
Returns
Type Description
MigrationSubtask.Builder

addResourceErrorDetails(int index, ResourceErrorDetail value)

publicMigrationSubtask.BuilderaddResourceErrorDetails(intindex,ResourceErrorDetailvalue)

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];

Parameters
Name Description
index int
value ResourceErrorDetail
Returns
Type Description
MigrationSubtask.Builder

addResourceErrorDetails(int index, ResourceErrorDetail.Builder builderForValue)

publicMigrationSubtask.BuilderaddResourceErrorDetails(intindex,ResourceErrorDetail.BuilderbuilderForValue)

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];

Parameters
Name Description
index int
builderForValue ResourceErrorDetail.Builder
Returns
Type Description
MigrationSubtask.Builder

addResourceErrorDetailsBuilder()

publicResourceErrorDetail.BuilderaddResourceErrorDetailsBuilder()

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
ResourceErrorDetail.Builder

addResourceErrorDetailsBuilder(int index)

publicResourceErrorDetail.BuilderaddResourceErrorDetailsBuilder(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.Builder

build()

publicMigrationSubtaskbuild()
Returns
Type Description
MigrationSubtask

buildPartial()

publicMigrationSubtaskbuildPartial()
Returns
Type Description
MigrationSubtask

clear()

publicMigrationSubtask.Builderclear()
Returns
Type Description
MigrationSubtask.Builder
Overrides

clearCreateTime()

publicMigrationSubtask.BuilderclearCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
MigrationSubtask.Builder

clearField(Descriptors.FieldDescriptor field)

publicMigrationSubtask.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MigrationSubtask.Builder
Overrides

clearLastUpdateTime()

publicMigrationSubtask.BuilderclearLastUpdateTime()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
Type Description
MigrationSubtask.Builder

clearMetrics()

publicMigrationSubtask.BuilderclearMetrics()

The metrics for the subtask.

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

Returns
Type Description
MigrationSubtask.Builder

clearName()

publicMigrationSubtask.BuilderclearName()

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
MigrationSubtask.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicMigrationSubtask.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MigrationSubtask.Builder
Overrides

clearProcessingError()

publicMigrationSubtask.BuilderclearProcessingError()

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
MigrationSubtask.Builder

clearResourceErrorCount()

publicMigrationSubtask.BuilderclearResourceErrorCount()

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
MigrationSubtask.Builder

This builder for chaining.

clearResourceErrorDetails()

publicMigrationSubtask.BuilderclearResourceErrorDetails()

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
MigrationSubtask.Builder

clearState()

publicMigrationSubtask.BuilderclearState()

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.Builder

This builder for chaining.

clearTaskId()

publicMigrationSubtask.BuilderclearTaskId()

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

string task_id = 2;

Returns
Type Description
MigrationSubtask.Builder

This builder for chaining.

clearType()

publicMigrationSubtask.BuilderclearType()

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
MigrationSubtask.Builder

This builder for chaining.

clone()

publicMigrationSubtask.Builderclone()
Returns
Type Description
MigrationSubtask.Builder
Overrides

getCreateTime()

publicTimestampgetCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

publicTimestamp.BuildergetCreateTimeBuilder()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicMigrationSubtaskgetDefaultInstanceForType()
Returns
Type Description
MigrationSubtask

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLastUpdateTime()

publicTimestampgetLastUpdateTime()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
Type Description
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

publicTimestamp.BuildergetLastUpdateTimeBuilder()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
Type Description
Builder

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

getMetricsBuilder(int index)

publicTimeSeries.BuildergetMetricsBuilder(intindex)

The metrics for the subtask.

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

Parameter
Name Description
index int
Returns
Type Description
TimeSeries.Builder

getMetricsBuilderList()

publicList<TimeSeries.Builder>getMetricsBuilderList()

The metrics for the subtask.

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

Returns
Type Description
List<Builder>

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.

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.

getProcessingErrorBuilder()

publicErrorInfo.BuildergetProcessingErrorBuilder()

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.Builder

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

getResourceErrorDetailsBuilder(int index)

publicResourceErrorDetail.BuildergetResourceErrorDetailsBuilder(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.Builder

getResourceErrorDetailsBuilderList()

publicList<ResourceErrorDetail.Builder>getResourceErrorDetailsBuilderList()

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<Builder>

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>

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

publicMigrationSubtask.BuildermergeCreateTime(Timestampvalue)

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationSubtask.Builder

mergeFrom(MigrationSubtask other)

publicMigrationSubtask.BuildermergeFrom(MigrationSubtaskother)
Parameter
Name Description
other MigrationSubtask
Returns
Type Description
MigrationSubtask.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicMigrationSubtask.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationSubtask.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicMigrationSubtask.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
MigrationSubtask.Builder
Overrides

mergeLastUpdateTime(Timestamp value)

publicMigrationSubtask.BuildermergeLastUpdateTime(Timestampvalue)

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationSubtask.Builder

mergeProcessingError(ErrorInfo value)

publicMigrationSubtask.BuildermergeProcessingError(ErrorInfovalue)

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];

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalMigrationSubtask.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MigrationSubtask.Builder
Overrides

removeMetrics(int index)

publicMigrationSubtask.BuilderremoveMetrics(intindex)

The metrics for the subtask.

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

Parameter
Name Description
index int
Returns
Type Description
MigrationSubtask.Builder

removeResourceErrorDetails(int index)

publicMigrationSubtask.BuilderremoveResourceErrorDetails(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
MigrationSubtask.Builder

setCreateTime(Timestamp value)

publicMigrationSubtask.BuildersetCreateTime(Timestampvalue)

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationSubtask.Builder

setCreateTime(Timestamp.Builder builderForValue)

publicMigrationSubtask.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MigrationSubtask.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicMigrationSubtask.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MigrationSubtask.Builder
Overrides

setLastUpdateTime(Timestamp value)

publicMigrationSubtask.BuildersetLastUpdateTime(Timestampvalue)

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationSubtask.Builder

setLastUpdateTime(Timestamp.Builder builderForValue)

publicMigrationSubtask.BuildersetLastUpdateTime(Timestamp.BuilderbuilderForValue)

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MigrationSubtask.Builder

setMetrics(int index, TimeSeries value)

publicMigrationSubtask.BuildersetMetrics(intindex,TimeSeriesvalue)

The metrics for the subtask.

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

Parameters
Name Description
index int
value TimeSeries
Returns
Type Description
MigrationSubtask.Builder

setMetrics(int index, TimeSeries.Builder builderForValue)

publicMigrationSubtask.BuildersetMetrics(intindex,TimeSeries.BuilderbuilderForValue)

The metrics for the subtask.

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

Parameters
Name Description
index int
builderForValue TimeSeries.Builder
Returns
Type Description
MigrationSubtask.Builder

setName(String value)

publicMigrationSubtask.BuildersetName(Stringvalue)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
MigrationSubtask.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicMigrationSubtask.BuildersetNameBytes(ByteStringvalue)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
MigrationSubtask.Builder

This builder for chaining.

setProcessingError(ErrorInfo value)

publicMigrationSubtask.BuildersetProcessingError(ErrorInfovalue)

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];

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

setProcessingError(ErrorInfo.Builder builderForValue)

publicMigrationSubtask.BuildersetProcessingError(ErrorInfo.BuilderbuilderForValue)

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];

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

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

publicMigrationSubtask.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MigrationSubtask.Builder
Overrides

setResourceErrorCount(int value)

publicMigrationSubtask.BuildersetResourceErrorCount(intvalue)

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;

Parameter
Name Description
value int

The resourceErrorCount to set.

Returns
Type Description
MigrationSubtask.Builder

This builder for chaining.

setResourceErrorDetails(int index, ResourceErrorDetail value)

publicMigrationSubtask.BuildersetResourceErrorDetails(intindex,ResourceErrorDetailvalue)

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];

Parameters
Name Description
index int
value ResourceErrorDetail
Returns
Type Description
MigrationSubtask.Builder

setResourceErrorDetails(int index, ResourceErrorDetail.Builder builderForValue)

publicMigrationSubtask.BuildersetResourceErrorDetails(intindex,ResourceErrorDetail.BuilderbuilderForValue)

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];

Parameters
Name Description
index int
builderForValue ResourceErrorDetail.Builder
Returns
Type Description
MigrationSubtask.Builder

setState(MigrationSubtask.State value)

publicMigrationSubtask.BuildersetState(MigrationSubtask.Statevalue)

Output only. The current state of the subtask.

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

Parameter
Name Description
value MigrationSubtask.State

The state to set.

Returns
Type Description
MigrationSubtask.Builder

This builder for chaining.

setStateValue(int value)

publicMigrationSubtask.BuildersetStateValue(intvalue)

Output only. The current state of the subtask.

.google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.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
MigrationSubtask.Builder

This builder for chaining.

setTaskId(String value)

publicMigrationSubtask.BuildersetTaskId(Stringvalue)

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

string task_id = 2;

Parameter
Name Description
value String

The taskId to set.

Returns
Type Description
MigrationSubtask.Builder

This builder for chaining.

setTaskIdBytes(ByteString value)

publicMigrationSubtask.BuildersetTaskIdBytes(ByteStringvalue)

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

string task_id = 2;

Parameter
Name Description
value ByteString

The bytes for taskId to set.

Returns
Type Description
MigrationSubtask.Builder

This builder for chaining.

setType(String value)

publicMigrationSubtask.BuildersetType(Stringvalue)

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;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
MigrationSubtask.Builder

This builder for chaining.

setTypeBytes(ByteString value)

publicMigrationSubtask.BuildersetTypeBytes(ByteStringvalue)

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;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
MigrationSubtask.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalMigrationSubtask.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MigrationSubtask.Builder
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.