Class SqlTranslationError.Builder (0.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SqlTranslationError build()
Returns
TypeDescription
SqlTranslationError

buildPartial()

public SqlTranslationError buildPartial()
Returns
TypeDescription
SqlTranslationError

clear()

public SqlTranslationError.Builder clear()
Returns
TypeDescription
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
TypeDescription
SqlTranslationError.Builder

clearErrorType()

public SqlTranslationError.Builder clearErrorType()

The type of SQL translation error.

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

Returns
TypeDescription
SqlTranslationError.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SqlTranslationError.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SqlTranslationError.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public SqlTranslationError getDefaultInstanceForType()
Returns
TypeDescription
SqlTranslationError

getDescriptorForType()

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

getErrorType()

public SqlTranslationError.SqlTranslationErrorType getErrorType()

The type of SQL translation error.

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

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

Whether the errorDetail field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueSqlTranslationErrorDetail
Returns
TypeDescription
SqlTranslationError.Builder

mergeFrom(SqlTranslationError other)

public SqlTranslationError.Builder mergeFrom(SqlTranslationError other)
Parameter
NameDescription
otherSqlTranslationError
Returns
TypeDescription
SqlTranslationError.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SqlTranslationError.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SqlTranslationError.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SqlTranslationError.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueSqlTranslationErrorDetail
Returns
TypeDescription
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
NameDescription
builderForValueSqlTranslationErrorDetail.Builder
Returns
TypeDescription
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
NameDescription
valueSqlTranslationError.SqlTranslationErrorType

The errorType to set.

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

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

Returns
TypeDescription
SqlTranslationError.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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