Class MigrationSubtask.Builder (0.22.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.v2.MigrationSubtask

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v2.TimeSeries metrics = 11;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.bigquery.migration.v2.TimeSeries>
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.bigquery.migration.v2.ResourceErrorDetail>
Returns
TypeDescription
MigrationSubtask.Builder

addMetrics(TimeSeries value)

public MigrationSubtask.Builder addMetrics(TimeSeries value)

The metrics for the subtask.

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

Parameter
NameDescription
valueTimeSeries
Returns
TypeDescription
MigrationSubtask.Builder

addMetrics(TimeSeries.Builder builderForValue)

public MigrationSubtask.Builder addMetrics(TimeSeries.Builder builderForValue)

The metrics for the subtask.

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

Parameter
NameDescription
builderForValueTimeSeries.Builder
Returns
TypeDescription
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.v2.TimeSeries metrics = 11;

Parameters
NameDescription
indexint
valueTimeSeries
Returns
TypeDescription
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.v2.TimeSeries metrics = 11;

Parameters
NameDescription
indexint
builderForValueTimeSeries.Builder
Returns
TypeDescription
MigrationSubtask.Builder

addMetricsBuilder()

public TimeSeries.Builder addMetricsBuilder()

The metrics for the subtask.

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

Returns
TypeDescription
TimeSeries.Builder

addMetricsBuilder(int index)

public TimeSeries.Builder addMetricsBuilder(int index)

The metrics for the subtask.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TimeSeries.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MigrationSubtask.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueResourceErrorDetail
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueResourceErrorDetail.Builder
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueResourceErrorDetail
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueResourceErrorDetail.Builder
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceErrorDetail.Builder

build()

public MigrationSubtask build()
Returns
TypeDescription
MigrationSubtask

buildPartial()

public MigrationSubtask buildPartial()
Returns
TypeDescription
MigrationSubtask

clear()

public MigrationSubtask.Builder clear()
Returns
TypeDescription
MigrationSubtask.Builder
Overrides

clearCreateTime()

public MigrationSubtask.Builder clearCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
MigrationSubtask.Builder

clearField(Descriptors.FieldDescriptor field)

public MigrationSubtask.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MigrationSubtask.Builder
Overrides

clearLastUpdateTime()

public MigrationSubtask.Builder clearLastUpdateTime()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
TypeDescription
MigrationSubtask.Builder

clearMetrics()

public MigrationSubtask.Builder clearMetrics()

The metrics for the subtask.

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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MigrationSubtask.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationSubtask.Builder

clearState()

public MigrationSubtask.Builder clearState()

Output only. The current state of the subtask.

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

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

This builder for chaining.

clone()

public MigrationSubtask.Builder clone()
Returns
TypeDescription
MigrationSubtask.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MigrationSubtask getDefaultInstanceForType()
Returns
TypeDescription
MigrationSubtask

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
TypeDescription
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
TypeDescription
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
TypeDescription
TimestampOrBuilder

getMetrics(int index)

public TimeSeries getMetrics(int index)

The metrics for the subtask.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TimeSeries

getMetricsBuilder(int index)

public TimeSeries.Builder getMetricsBuilder(int index)

The metrics for the subtask.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TimeSeries.Builder

getMetricsBuilderList()

public List<TimeSeries.Builder> getMetricsBuilderList()

The metrics for the subtask.

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

Returns
TypeDescription
List<Builder>

getMetricsCount()

public int getMetricsCount()

The metrics for the subtask.

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

Returns
TypeDescription
int

getMetricsList()

public List<TimeSeries> getMetricsList()

The metrics for the subtask.

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

Returns
TypeDescription
List<TimeSeries>

getMetricsOrBuilder(int index)

public TimeSeriesOrBuilder getMetricsOrBuilder(int index)

The metrics for the subtask.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TimeSeriesOrBuilder

getMetricsOrBuilderList()

public List<? extends TimeSeriesOrBuilder> getMetricsOrBuilderList()

The metrics for the subtask.

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

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.migration.v2.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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getState()

public MigrationSubtask.State getState()

Output only. The current state of the subtask.

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

Returns
TypeDescription
MigrationSubtask.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the subtask.

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

Returns
TypeDescription
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
TypeDescription
String

The taskId.

getTaskIdBytes()

public ByteString getTaskIdBytes()

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

string task_id = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for type.

hasCreateTime()

public boolean hasCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the processingError field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public MigrationSubtask.Builder mergeCreateTime(Timestamp value)

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationSubtask.Builder

mergeFrom(MigrationSubtask other)

public MigrationSubtask.Builder mergeFrom(MigrationSubtask other)
Parameter
NameDescription
otherMigrationSubtask
Returns
TypeDescription
MigrationSubtask.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MigrationSubtask.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationSubtask.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MigrationSubtask.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.ErrorInfo
Returns
TypeDescription
MigrationSubtask.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MigrationSubtask.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MigrationSubtask.Builder
Overrides

removeMetrics(int index)

public MigrationSubtask.Builder removeMetrics(int index)

The metrics for the subtask.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
MigrationSubtask.Builder

setCreateTime(Timestamp value)

public MigrationSubtask.Builder setCreateTime(Timestamp value)

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
MigrationSubtask.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MigrationSubtask.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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.v2.TimeSeries metrics = 11;

Parameters
NameDescription
indexint
valueTimeSeries
Returns
TypeDescription
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.v2.TimeSeries metrics = 11;

Parameters
NameDescription
indexint
builderForValueTimeSeries.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.ErrorInfo
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.ErrorInfo.Builder
Returns
TypeDescription
MigrationSubtask.Builder

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

public MigrationSubtask.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The resourceErrorCount to set.

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

Parameters
NameDescription
indexint
valueResourceErrorDetail
Returns
TypeDescription
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueResourceErrorDetail.Builder
Returns
TypeDescription
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.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMigrationSubtask.State

The state to set.

Returns
TypeDescription
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.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
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
NameDescription
valueString

The taskId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for taskId to set.

Returns
TypeDescription
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
NameDescription
valueString

The type to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
MigrationSubtask.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MigrationSubtask.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MigrationSubtask.Builder
Overrides