Class SqlTranslationError.Builder (0.57.0)

public static final class SqlTranslationError.Builder extends GeneratedMessageV3.Builder<SqlTranslationError.Builder> implements SqlTranslationErrorOrBuilder

The detailed error object if the SQL translation job fails.

Protobuf type google.cloud.bigquery.migration.v2alpha.SqlTranslationError

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SqlTranslationError build()
Returns
Type Description
SqlTranslationError

buildPartial()

public SqlTranslationError buildPartial()
Returns
Type Description
SqlTranslationError

clear()

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

clearErrorDetail()

public SqlTranslationError.Builder clearErrorDetail()

Specifies the details of the error, including the error message and location from the source text.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;

Returns
Type Description
SqlTranslationError.Builder

clearErrorType()

public SqlTranslationError.Builder clearErrorType()

The type of SQL translation error.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;

Returns
Type Description
SqlTranslationError.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SqlTranslationError getDefaultInstanceForType()
Returns
Type Description
SqlTranslationError

getDescriptorForType()

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

getErrorDetail()

public SqlTranslationErrorDetail getErrorDetail()

Specifies the details of the error, including the error message and location from the source text.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;

Returns
Type Description
SqlTranslationErrorDetail

The errorDetail.

getErrorDetailBuilder()

public SqlTranslationErrorDetail.Builder getErrorDetailBuilder()

Specifies the details of the error, including the error message and location from the source text.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;

Returns
Type Description
SqlTranslationErrorDetail.Builder

getErrorDetailOrBuilder()

public SqlTranslationErrorDetailOrBuilder getErrorDetailOrBuilder()

Specifies the details of the error, including the error message and location from the source text.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;

Returns
Type Description
SqlTranslationErrorDetailOrBuilder

getErrorType()

public SqlTranslationError.SqlTranslationErrorType getErrorType()

The type of SQL translation error.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;

Returns
Type Description
SqlTranslationError.SqlTranslationErrorType

The errorType.

getErrorTypeValue()

public int getErrorTypeValue()

The type of SQL translation error.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for errorType.

hasErrorDetail()

public boolean hasErrorDetail()

Specifies the details of the error, including the error message and location from the source text.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;

Returns
Type Description
boolean

Whether the errorDetail field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeErrorDetail(SqlTranslationErrorDetail value)

public SqlTranslationError.Builder mergeErrorDetail(SqlTranslationErrorDetail value)

Specifies the details of the error, including the error message and location from the source text.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;

Parameter
Name Description
value SqlTranslationErrorDetail
Returns
Type Description
SqlTranslationError.Builder

mergeFrom(SqlTranslationError other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setErrorDetail(SqlTranslationErrorDetail value)

public SqlTranslationError.Builder setErrorDetail(SqlTranslationErrorDetail value)

Specifies the details of the error, including the error message and location from the source text.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;

Parameter
Name Description
value SqlTranslationErrorDetail
Returns
Type Description
SqlTranslationError.Builder

setErrorDetail(SqlTranslationErrorDetail.Builder builderForValue)

public SqlTranslationError.Builder setErrorDetail(SqlTranslationErrorDetail.Builder builderForValue)

Specifies the details of the error, including the error message and location from the source text.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;

Parameter
Name Description
builderForValue SqlTranslationErrorDetail.Builder
Returns
Type Description
SqlTranslationError.Builder

setErrorType(SqlTranslationError.SqlTranslationErrorType value)

public SqlTranslationError.Builder setErrorType(SqlTranslationError.SqlTranslationErrorType value)

The type of SQL translation error.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;

Parameter
Name Description
value SqlTranslationError.SqlTranslationErrorType

The errorType to set.

Returns
Type Description
SqlTranslationError.Builder

This builder for chaining.

setErrorTypeValue(int value)

public SqlTranslationError.Builder setErrorTypeValue(int value)

The type of SQL translation error.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;

Parameter
Name Description
value int

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

Returns
Type Description
SqlTranslationError.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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