Class MigrationTask.Builder (0.50.0)

public static final class MigrationTask.Builder extends GeneratedMessageV3.Builder<MigrationTask.Builder> implements MigrationTaskOrBuilder

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

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

Static Methods

getDescriptor()

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

Methods

addAllMetrics(Iterable<? extends TimeSeries> values)

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

The metrics for the task.

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

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

addAllResourceErrorDetails(Iterable<? extends ResourceErrorDetail> values)

public MigrationTask.Builder addAllResourceErrorDetails(Iterable<? extends ResourceErrorDetail> values)

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

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

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

addMetrics(TimeSeries value)

public MigrationTask.Builder addMetrics(TimeSeries value)

The metrics for the task.

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

Parameter
Name Description
value TimeSeries
Returns
Type Description
MigrationTask.Builder

addMetrics(TimeSeries.Builder builderForValue)

public MigrationTask.Builder addMetrics(TimeSeries.Builder builderForValue)

The metrics for the task.

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

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

addMetrics(int index, TimeSeries value)

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

The metrics for the task.

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

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

addMetrics(int index, TimeSeries.Builder builderForValue)

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

The metrics for the task.

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

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

addMetricsBuilder()

public TimeSeries.Builder addMetricsBuilder()

The metrics for the task.

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

Returns
Type Description
TimeSeries.Builder

addMetricsBuilder(int index)

public TimeSeries.Builder addMetricsBuilder(int index)

The metrics for the task.

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

Parameter
Name Description
index int
Returns
Type Description
TimeSeries.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourceErrorDetails(ResourceErrorDetail value)

public MigrationTask.Builder addResourceErrorDetails(ResourceErrorDetail value)

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

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

Parameter
Name Description
value ResourceErrorDetail
Returns
Type Description
MigrationTask.Builder

addResourceErrorDetails(ResourceErrorDetail.Builder builderForValue)

public MigrationTask.Builder addResourceErrorDetails(ResourceErrorDetail.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue ResourceErrorDetail.Builder
Returns
Type Description
MigrationTask.Builder

addResourceErrorDetails(int index, ResourceErrorDetail value)

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

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

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

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

addResourceErrorDetails(int index, ResourceErrorDetail.Builder builderForValue)

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

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

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

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

addResourceErrorDetailsBuilder()

public ResourceErrorDetail.Builder addResourceErrorDetailsBuilder()

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

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.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 task. Presence of error details does not mean that the task failed.

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

Parameter
Name Description
index int
Returns
Type Description
ResourceErrorDetail.Builder

build()

public MigrationTask build()
Returns
Type Description
MigrationTask

buildPartial()

public MigrationTask buildPartial()
Returns
Type Description
MigrationTask

clear()

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

clearCreateTime()

public MigrationTask.Builder clearCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
MigrationTask.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public MigrationTask.Builder clearId()

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

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

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clearLastUpdateTime()

public MigrationTask.Builder clearLastUpdateTime()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
MigrationTask.Builder

clearMetrics()

public MigrationTask.Builder clearMetrics()

The metrics for the task.

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

Returns
Type Description
MigrationTask.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProcessingError()

public MigrationTask.Builder clearProcessingError()

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

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTask.Builder

clearResourceErrorCount()

public MigrationTask.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 = 18;

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clearResourceErrorDetails()

public MigrationTask.Builder clearResourceErrorDetails()

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

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

Returns
Type Description
MigrationTask.Builder

clearState()

public MigrationTask.Builder clearState()

Output only. The current state of the task.

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

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clearTaskDetails()

public MigrationTask.Builder clearTaskDetails()
Returns
Type Description
MigrationTask.Builder

clearTaskResult()

public MigrationTask.Builder clearTaskResult()

Output only. The result of the task.

.google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTask.Builder

clearTotalProcessingErrorCount()

public MigrationTask.Builder clearTotalProcessingErrorCount()

Count of all the processing errors in this task and its subtasks.

int32 total_processing_error_count = 21;

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clearTotalResourceErrorCount()

public MigrationTask.Builder clearTotalResourceErrorCount()

Count of all the resource errors in this task and its subtasks.

int32 total_resource_error_count = 22;

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clearTranslationConfigDetails()

public MigrationTask.Builder clearTranslationConfigDetails()

Task configuration for CW Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Returns
Type Description
MigrationTask.Builder

clearTranslationDetails()

public MigrationTask.Builder clearTranslationDetails()

Task details for unified SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;

Returns
Type Description
MigrationTask.Builder

clearType()

public MigrationTask.Builder clearType()

The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.

string type = 2;

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MigrationTask getDefaultInstanceForType()
Returns
Type Description
MigrationTask

getDescriptorForType()

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

getId()

public String getId()

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

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

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

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

Returns
Type Description
ByteString

The bytes for id.

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
Type Description
TimestampOrBuilder

getMetrics(int index)

public TimeSeries getMetrics(int index)

The metrics for the task.

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

Parameter
Name Description
index int
Returns
Type Description
TimeSeries

getMetricsBuilder(int index)

public TimeSeries.Builder getMetricsBuilder(int index)

The metrics for the task.

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

Parameter
Name Description
index int
Returns
Type Description
TimeSeries.Builder

getMetricsBuilderList()

public List<TimeSeries.Builder> getMetricsBuilderList()

The metrics for the task.

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

Returns
Type Description
List<Builder>

getMetricsCount()

public int getMetricsCount()

The metrics for the task.

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

Returns
Type Description
int

getMetricsList()

public List<TimeSeries> getMetricsList()

The metrics for the task.

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

Returns
Type Description
List<TimeSeries>

getMetricsOrBuilder(int index)

public TimeSeriesOrBuilder getMetricsOrBuilder(int index)

The metrics for the task.

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

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesOrBuilder

getMetricsOrBuilderList()

public List<? extends TimeSeriesOrBuilder> getMetricsOrBuilderList()

The metrics for the task.

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

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

getProcessingError()

public ErrorInfo getProcessingError()

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

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.ErrorInfo

The processingError.

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 = 5 [(.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 = 5 [(.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 = 18;

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 task. Presence of error details does not mean that the task failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.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 task. Presence of error details does not mean that the task failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.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 task. Presence of error details does not mean that the task failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.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 task. Presence of error details does not mean that the task failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.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 task. Presence of error details does not mean that the task failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.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 task. Presence of error details does not mean that the task failed.

repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.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 task. Presence of error details does not mean that the task failed.

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

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

getState()

public MigrationTask.State getState()

Output only. The current state of the task.

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

Returns
Type Description
MigrationTask.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the task.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getTaskDetailsCase()

public MigrationTask.TaskDetailsCase getTaskDetailsCase()
Returns
Type Description
MigrationTask.TaskDetailsCase

getTaskResult()

public MigrationTaskResult getTaskResult()

Output only. The result of the task.

.google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTaskResult

The taskResult.

getTaskResultBuilder()

public MigrationTaskResult.Builder getTaskResultBuilder()

Output only. The result of the task.

.google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTaskResult.Builder

getTaskResultOrBuilder()

public MigrationTaskResultOrBuilder getTaskResultOrBuilder()

Output only. The result of the task.

.google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationTaskResultOrBuilder

getTotalProcessingErrorCount()

public int getTotalProcessingErrorCount()

Count of all the processing errors in this task and its subtasks.

int32 total_processing_error_count = 21;

Returns
Type Description
int

The totalProcessingErrorCount.

getTotalResourceErrorCount()

public int getTotalResourceErrorCount()

Count of all the resource errors in this task and its subtasks.

int32 total_resource_error_count = 22;

Returns
Type Description
int

The totalResourceErrorCount.

getTranslationConfigDetails()

public TranslationConfigDetails getTranslationConfigDetails()

Task configuration for CW Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Returns
Type Description
TranslationConfigDetails

The translationConfigDetails.

getTranslationConfigDetailsBuilder()

public TranslationConfigDetails.Builder getTranslationConfigDetailsBuilder()

Task configuration for CW Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Returns
Type Description
TranslationConfigDetails.Builder

getTranslationConfigDetailsOrBuilder()

public TranslationConfigDetailsOrBuilder getTranslationConfigDetailsOrBuilder()

Task configuration for CW Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Returns
Type Description
TranslationConfigDetailsOrBuilder

getTranslationDetails()

public TranslationDetails getTranslationDetails()

Task details for unified SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;

Returns
Type Description
TranslationDetails

The translationDetails.

getTranslationDetailsBuilder()

public TranslationDetails.Builder getTranslationDetailsBuilder()

Task details for unified SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;

Returns
Type Description
TranslationDetails.Builder

getTranslationDetailsOrBuilder()

public TranslationDetailsOrBuilder getTranslationDetailsOrBuilder()

Task details for unified SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;

Returns
Type Description
TranslationDetailsOrBuilder

getType()

public String getType()

The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.

string type = 2;

Returns
Type Description
ByteString

The bytes for type.

hasCreateTime()

public boolean hasCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
boolean

Whether the createTime field is set.

hasLastUpdateTime()

public boolean hasLastUpdateTime()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

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

Returns
Type Description
boolean

Whether the processingError field is set.

hasTaskResult()

public boolean hasTaskResult()

Output only. The result of the task.

.google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the taskResult field is set.

hasTranslationConfigDetails()

public boolean hasTranslationConfigDetails()

Task configuration for CW Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Returns
Type Description
boolean

Whether the translationConfigDetails field is set.

hasTranslationDetails()

public boolean hasTranslationDetails()

Task details for unified SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;

Returns
Type Description
boolean

Whether the translationDetails 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 MigrationTask.Builder mergeCreateTime(Timestamp value)

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationTask.Builder

mergeFrom(MigrationTask other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastUpdateTime(Timestamp value)

public MigrationTask.Builder mergeLastUpdateTime(Timestamp value)

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationTask.Builder

mergeProcessingError(ErrorInfo value)

public MigrationTask.Builder mergeProcessingError(ErrorInfo value)

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

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

mergeTaskResult(MigrationTaskResult value)

public MigrationTask.Builder mergeTaskResult(MigrationTaskResult value)

Output only. The result of the task.

.google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MigrationTaskResult
Returns
Type Description
MigrationTask.Builder

mergeTranslationConfigDetails(TranslationConfigDetails value)

public MigrationTask.Builder mergeTranslationConfigDetails(TranslationConfigDetails value)

Task configuration for CW Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Parameter
Name Description
value TranslationConfigDetails
Returns
Type Description
MigrationTask.Builder

mergeTranslationDetails(TranslationDetails value)

public MigrationTask.Builder mergeTranslationDetails(TranslationDetails value)

Task details for unified SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;

Parameter
Name Description
value TranslationDetails
Returns
Type Description
MigrationTask.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMetrics(int index)

public MigrationTask.Builder removeMetrics(int index)

The metrics for the task.

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

Parameter
Name Description
index int
Returns
Type Description
MigrationTask.Builder

removeResourceErrorDetails(int index)

public MigrationTask.Builder removeResourceErrorDetails(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
MigrationTask.Builder

setCreateTime(Timestamp value)

public MigrationTask.Builder setCreateTime(Timestamp value)

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationTask.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MigrationTask.Builder setCreateTime(Timestamp.Builder builderForValue)

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MigrationTask.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public MigrationTask.Builder setId(String value)

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

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

Parameter
Name Description
value String

The id to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setIdBytes(ByteString value)

public MigrationTask.Builder setIdBytes(ByteString value)

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

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

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setLastUpdateTime(Timestamp value)

public MigrationTask.Builder setLastUpdateTime(Timestamp value)

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationTask.Builder

setLastUpdateTime(Timestamp.Builder builderForValue)

public MigrationTask.Builder setLastUpdateTime(Timestamp.Builder builderForValue)

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MigrationTask.Builder

setMetrics(int index, TimeSeries value)

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

The metrics for the task.

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

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

setMetrics(int index, TimeSeries.Builder builderForValue)

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

The metrics for the task.

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

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

setProcessingError(ErrorInfo value)

public MigrationTask.Builder setProcessingError(ErrorInfo value)

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

.google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setProcessingError(ErrorInfo.Builder builderForValue)

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

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

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

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

setResourceErrorCount(int value)

public MigrationTask.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 = 18;

Parameter
Name Description
value int

The resourceErrorCount to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setResourceErrorDetails(int index, ResourceErrorDetail value)

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

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

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

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

setResourceErrorDetails(int index, ResourceErrorDetail.Builder builderForValue)

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

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

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

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

setState(MigrationTask.State value)

public MigrationTask.Builder setState(MigrationTask.State value)

Output only. The current state of the task.

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

Parameter
Name Description
value MigrationTask.State

The state to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setStateValue(int value)

public MigrationTask.Builder setStateValue(int value)

Output only. The current state of the task.

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

This builder for chaining.

setTaskResult(MigrationTaskResult value)

public MigrationTask.Builder setTaskResult(MigrationTaskResult value)

Output only. The result of the task.

.google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MigrationTaskResult
Returns
Type Description
MigrationTask.Builder

setTaskResult(MigrationTaskResult.Builder builderForValue)

public MigrationTask.Builder setTaskResult(MigrationTaskResult.Builder builderForValue)

Output only. The result of the task.

.google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue MigrationTaskResult.Builder
Returns
Type Description
MigrationTask.Builder

setTotalProcessingErrorCount(int value)

public MigrationTask.Builder setTotalProcessingErrorCount(int value)

Count of all the processing errors in this task and its subtasks.

int32 total_processing_error_count = 21;

Parameter
Name Description
value int

The totalProcessingErrorCount to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setTotalResourceErrorCount(int value)

public MigrationTask.Builder setTotalResourceErrorCount(int value)

Count of all the resource errors in this task and its subtasks.

int32 total_resource_error_count = 22;

Parameter
Name Description
value int

The totalResourceErrorCount to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setTranslationConfigDetails(TranslationConfigDetails value)

public MigrationTask.Builder setTranslationConfigDetails(TranslationConfigDetails value)

Task configuration for CW Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Parameter
Name Description
value TranslationConfigDetails
Returns
Type Description
MigrationTask.Builder

setTranslationConfigDetails(TranslationConfigDetails.Builder builderForValue)

public MigrationTask.Builder setTranslationConfigDetails(TranslationConfigDetails.Builder builderForValue)

Task configuration for CW Batch/Offline SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;

Parameter
Name Description
builderForValue TranslationConfigDetails.Builder
Returns
Type Description
MigrationTask.Builder

setTranslationDetails(TranslationDetails value)

public MigrationTask.Builder setTranslationDetails(TranslationDetails value)

Task details for unified SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;

Parameter
Name Description
value TranslationDetails
Returns
Type Description
MigrationTask.Builder

setTranslationDetails(TranslationDetails.Builder builderForValue)

public MigrationTask.Builder setTranslationDetails(TranslationDetails.Builder builderForValue)

Task details for unified SQL Translation.

.google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;

Parameter
Name Description
builderForValue TranslationDetails.Builder
Returns
Type Description
MigrationTask.Builder

setType(String value)

public MigrationTask.Builder setType(String value)

The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.

string type = 2;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public MigrationTask.Builder setTypeBytes(ByteString value)

The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.

string type = 2;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
MigrationTask.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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