Class MigrationTask.Builder (0.44.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MigrationTask.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MigrationTask.Builder
Overrides

build()

public MigrationTask build()
Returns
TypeDescription
MigrationTask

buildPartial()

public MigrationTask buildPartial()
Returns
TypeDescription
MigrationTask

clear()

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

clearCreateTime()

public MigrationTask.Builder clearCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
MigrationTask.Builder

clearField(Descriptors.FieldDescriptor field)

public MigrationTask.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MigrationTask.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MigrationTask.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MigrationTask.Builder

This builder for chaining.

clearTaskDetails()

public MigrationTask.Builder clearTaskDetails()
Returns
TypeDescription
MigrationTask.Builder

clearTranslationConfigDetails()

public MigrationTask.Builder clearTranslationConfigDetails()

Task configuration for Batch SQL Translation.

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

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

string type = 2;

Returns
TypeDescription
MigrationTask.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MigrationTask getDefaultInstanceForType()
Returns
TypeDescription
MigrationTask

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for id.

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
TypeDescription
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
TypeDescription
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time when the task was last updated.

.google.protobuf.Timestamp last_update_time = 7;

Returns
TypeDescription
TimestampOrBuilder

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

Returns
TypeDescription
com.google.rpc.ErrorInfoOrBuilder

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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for state.

getTaskDetailsCase()

public MigrationTask.TaskDetailsCase getTaskDetailsCase()
Returns
TypeDescription
MigrationTask.TaskDetailsCase

getTranslationConfigDetails()

public TranslationConfigDetails getTranslationConfigDetails()

Task configuration for Batch SQL Translation.

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

Returns
TypeDescription
TranslationConfigDetails

The translationConfigDetails.

getTranslationConfigDetailsBuilder()

public TranslationConfigDetails.Builder getTranslationConfigDetailsBuilder()

Task configuration for Batch SQL Translation.

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

Returns
TypeDescription
TranslationConfigDetails.Builder

getTranslationConfigDetailsOrBuilder()

public TranslationConfigDetailsOrBuilder getTranslationConfigDetailsOrBuilder()

Task configuration for Batch SQL Translation.

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

Returns
TypeDescription
TranslationConfigDetailsOrBuilder

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.

string type = 2;

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

string type = 2;

Returns
TypeDescription
ByteString

The bytes for type.

hasCreateTime()

public boolean hasCreateTime()

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

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

Returns
TypeDescription
boolean

Whether the processingError field is set.

hasTranslationConfigDetails()

public boolean hasTranslationConfigDetails()

Task configuration for Batch SQL Translation.

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

Returns
TypeDescription
boolean

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

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationTask.Builder

mergeFrom(MigrationTask other)

public MigrationTask.Builder mergeFrom(MigrationTask other)
Parameter
NameDescription
otherMigrationTask
Returns
TypeDescription
MigrationTask.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTranslationConfigDetails(TranslationConfigDetails value)

public MigrationTask.Builder mergeTranslationConfigDetails(TranslationConfigDetails value)

Task configuration for Batch SQL Translation.

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

Parameter
NameDescription
valueTranslationConfigDetails
Returns
TypeDescription
MigrationTask.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateTime(Timestamp value)

public MigrationTask.Builder setCreateTime(Timestamp value)

Time when the task was created.

.google.protobuf.Timestamp create_time = 6;

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

setField(Descriptors.FieldDescriptor field, Object value)

public MigrationTask.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

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

The bytes for id to set.

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

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

public MigrationTask.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MigrationTask.Builder
Overrides

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
NameDescription
valueMigrationTask.State

The state to set.

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

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

Returns
TypeDescription
MigrationTask.Builder

This builder for chaining.

setTranslationConfigDetails(TranslationConfigDetails value)

public MigrationTask.Builder setTranslationConfigDetails(TranslationConfigDetails value)

Task configuration for Batch SQL Translation.

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

Parameter
NameDescription
valueTranslationConfigDetails
Returns
TypeDescription
MigrationTask.Builder

setTranslationConfigDetails(TranslationConfigDetails.Builder builderForValue)

public MigrationTask.Builder setTranslationConfigDetails(TranslationConfigDetails.Builder builderForValue)

Task configuration for Batch SQL Translation.

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

Parameter
NameDescription
builderForValueTranslationConfigDetails.Builder
Returns
TypeDescription
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.

string type = 2;

Parameter
NameDescription
valueString

The type to set.

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

string type = 2;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
MigrationTask.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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