Class MigrationSubtask.Builder (0.56.0)

public static final class MigrationSubtask.Builder extends GeneratedMessageV3.Builder<MigrationSubtask.Builder> implements MigrationSubtaskOrBuilder

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

Static Methods

getDescriptor()

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

Methods

addAllMetrics(Iterable<? extends TimeSeries> values)

public MigrationSubtask.Builder addAllMetrics(Iterable<? extends TimeSeries> values)

The metrics for the subtask.

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

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

addAllResourceErrorDetails(Iterable<? extends ResourceErrorDetail> values)

public MigrationSubtask.Builder addAllResourceErrorDetails(Iterable<? extends ResourceErrorDetail> 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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addMetrics(TimeSeries value)

public MigrationSubtask.Builder addMetrics(TimeSeries value)

The metrics for the subtask.

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

Parameter
Name Description
value TimeSeries
Returns
Type Description
MigrationSubtask.Builder

addMetrics(TimeSeries.Builder builderForValue)

public MigrationSubtask.Builder addMetrics(TimeSeries.Builder builderForValue)

The metrics for the subtask.

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

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

addMetrics(int index, TimeSeries value)

public MigrationSubtask.Builder addMetrics(int index, TimeSeries value)

The metrics for the subtask.

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

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

addMetrics(int index, TimeSeries.Builder builderForValue)

public MigrationSubtask.Builder addMetrics(int index, TimeSeries.Builder builderForValue)

The metrics for the subtask.

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

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

addMetricsBuilder()

public TimeSeries.Builder addMetricsBuilder()

The metrics for the subtask.

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

Returns
Type Description
TimeSeries.Builder

addMetricsBuilder(int index)

public TimeSeries.Builder addMetricsBuilder(int index)

The metrics for the subtask.

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

Parameter
Name Description
index int
Returns
Type Description
TimeSeries.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourceErrorDetails(ResourceErrorDetail value)

public MigrationSubtask.Builder addResourceErrorDetails(ResourceErrorDetail value)

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.v2alpha.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)

public MigrationSubtask.Builder addResourceErrorDetails(ResourceErrorDetail.Builder builderForValue)

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.v2alpha.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)

public MigrationSubtask.Builder addResourceErrorDetails(int index, ResourceErrorDetail value)

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.v2alpha.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)

public MigrationSubtask.Builder addResourceErrorDetails(int index, ResourceErrorDetail.Builder builderForValue)

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

public ResourceErrorDetail.Builder addResourceErrorDetailsBuilder()

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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceErrorDetail.Builder

addResourceErrorDetailsBuilder(int index)

public ResourceErrorDetail.Builder addResourceErrorDetailsBuilder(int index)

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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ResourceErrorDetail.Builder

build()

public MigrationSubtask build()
Returns
Type Description
MigrationSubtask

buildPartial()

public MigrationSubtask buildPartial()
Returns
Type Description
MigrationSubtask

clear()

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

clearCreateTime()

public MigrationSubtask.Builder clearCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
MigrationSubtask.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLastUpdateTime()

public MigrationSubtask.Builder clearLastUpdateTime()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
Type Description
MigrationSubtask.Builder

clearMetrics()

public MigrationSubtask.Builder clearMetrics()

The metrics for the subtask.

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

Returns
Type Description
MigrationSubtask.Builder

clearName()

public MigrationSubtask.Builder clearName()

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)

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

clearProcessingError()

public MigrationSubtask.Builder clearProcessingError()

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

public MigrationSubtask.Builder clearResourceErrorCount()

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

public MigrationSubtask.Builder clearResourceErrorDetails()

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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationSubtask.Builder

clearState()

public MigrationSubtask.Builder clearState()

Output only. The current state of the subtask.

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

Returns
Type Description
MigrationSubtask.Builder

This builder for chaining.

clearTaskId()

public MigrationSubtask.Builder clearTaskId()

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

public MigrationSubtask.Builder clearType()

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

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

getCreateTime()

public Timestamp getCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MigrationSubtask getDefaultInstanceForType()
Returns
Type Description
MigrationSubtask

getDescriptorForType()

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

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
Type Description
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
Type Description
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
Type Description
TimestampOrBuilder

getMetrics(int index)

public TimeSeries getMetrics(int index)

The metrics for the subtask.

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

Parameter
Name Description
index int
Returns
Type Description
TimeSeries

getMetricsBuilder(int index)

public TimeSeries.Builder getMetricsBuilder(int index)

The metrics for the subtask.

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

Parameter
Name Description
index int
Returns
Type Description
TimeSeries.Builder

getMetricsBuilderList()

public List<TimeSeries.Builder> getMetricsBuilderList()

The metrics for the subtask.

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

Returns
Type Description
List<Builder>

getMetricsCount()

public int getMetricsCount()

The metrics for the subtask.

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

Returns
Type Description
int

getMetricsList()

public List<TimeSeries> getMetricsList()

The metrics for the subtask.

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

Returns
Type Description
List<TimeSeries>

getMetricsOrBuilder(int index)

public TimeSeriesOrBuilder getMetricsOrBuilder(int index)

The metrics for the subtask.

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

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesOrBuilder

getMetricsOrBuilderList()

public List<? extends TimeSeriesOrBuilder> getMetricsOrBuilderList()

The metrics for the subtask.

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

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

getName()

public String getName()

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

public ByteString getNameBytes()

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

public ErrorInfo getProcessingError()

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

public ErrorInfo.Builder getProcessingErrorBuilder()

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

public ErrorInfoOrBuilder getProcessingErrorOrBuilder()

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

public int getResourceErrorCount()

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)

public ResourceErrorDetail getResourceErrorDetails(int index)

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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ResourceErrorDetail

getResourceErrorDetailsBuilder(int index)

public ResourceErrorDetail.Builder getResourceErrorDetailsBuilder(int index)

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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ResourceErrorDetail.Builder

getResourceErrorDetailsBuilderList()

public List<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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getResourceErrorDetailsCount()

public int getResourceErrorDetailsCount()

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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getResourceErrorDetailsList()

public List<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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ResourceErrorDetail>

getResourceErrorDetailsOrBuilder(int index)

public ResourceErrorDetailOrBuilder getResourceErrorDetailsOrBuilder(int index)

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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ResourceErrorDetailOrBuilder

getResourceErrorDetailsOrBuilderList()

public List<? extends ResourceErrorDetailOrBuilder> 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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getState()

public MigrationSubtask.State getState()

Output only. The current state of the subtask.

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

Returns
Type Description
MigrationSubtask.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the subtask.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getTaskId()

public String getTaskId()

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

string task_id = 2;

Returns
Type Description
String

The taskId.

getTaskIdBytes()

public ByteString getTaskIdBytes()

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

string task_id = 2;

Returns
Type Description
ByteString

The bytes for taskId.

getType()

public String getType()

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

public ByteString getTypeBytes()

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

public boolean hasCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
boolean

Whether the createTime field is set.

hasLastUpdateTime()

public boolean hasLastUpdateTime()

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

public boolean hasProcessingError()

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

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public MigrationSubtask.Builder mergeCreateTime(Timestamp value)

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)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastUpdateTime(Timestamp value)

public MigrationSubtask.Builder mergeLastUpdateTime(Timestamp value)

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)

public MigrationSubtask.Builder mergeProcessingError(ErrorInfo value)

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)

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

removeMetrics(int index)

public MigrationSubtask.Builder removeMetrics(int index)

The metrics for the subtask.

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

Parameter
Name Description
index int
Returns
Type Description
MigrationSubtask.Builder

removeResourceErrorDetails(int index)

public MigrationSubtask.Builder removeResourceErrorDetails(int index)

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.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MigrationSubtask.Builder

setCreateTime(Timestamp value)

public MigrationSubtask.Builder setCreateTime(Timestamp value)

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)

public MigrationSubtask.Builder setCreateTime(Timestamp.Builder builderForValue)

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)

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

setLastUpdateTime(Timestamp value)

public MigrationSubtask.Builder setLastUpdateTime(Timestamp value)

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)

public MigrationSubtask.Builder setLastUpdateTime(Timestamp.Builder builderForValue)

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)

public MigrationSubtask.Builder setMetrics(int index, TimeSeries value)

The metrics for the subtask.

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

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

setMetrics(int index, TimeSeries.Builder builderForValue)

public MigrationSubtask.Builder setMetrics(int index, TimeSeries.Builder builderForValue)

The metrics for the subtask.

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

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

setName(String value)

public MigrationSubtask.Builder setName(String value)

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)

public MigrationSubtask.Builder setNameBytes(ByteString value)

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)

public MigrationSubtask.Builder setProcessingError(ErrorInfo value)

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)

public MigrationSubtask.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 = 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)

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

setResourceErrorCount(int value)

public MigrationSubtask.Builder setResourceErrorCount(int value)

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)

public MigrationSubtask.Builder setResourceErrorDetails(int index, ResourceErrorDetail value)

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.v2alpha.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)

public MigrationSubtask.Builder setResourceErrorDetails(int index, ResourceErrorDetail.Builder builderForValue)

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.v2alpha.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)

public MigrationSubtask.Builder setState(MigrationSubtask.State value)

Output only. The current state of the subtask.

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

public MigrationSubtask.Builder setStateValue(int value)

Output only. The current state of the subtask.

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

public MigrationSubtask.Builder setTaskId(String value)

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)

public MigrationSubtask.Builder setTaskIdBytes(ByteString value)

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)

public MigrationSubtask.Builder setType(String value)

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)

public MigrationSubtask.Builder setTypeBytes(ByteString value)

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)

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