Class SqlTranslationErrorDetail.Builder (0.86.0)

public static final class SqlTranslationErrorDetail.Builder extends GeneratedMessage.Builder<SqlTranslationErrorDetail.Builder> implements SqlTranslationErrorDetailOrBuilder

Structured error object capturing the error message and the location in the source text where the error occurs.

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

Static Methods

getDescriptor()

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

Methods

build()

public SqlTranslationErrorDetail build()
Returns
Type Description
SqlTranslationErrorDetail

buildPartial()

public SqlTranslationErrorDetail buildPartial()
Returns
Type Description
SqlTranslationErrorDetail

clear()

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

clearColumn()

public SqlTranslationErrorDetail.Builder clearColumn()

Specifie the column from the source texts where the error occurred.

int64 column = 2;

Returns
Type Description
SqlTranslationErrorDetail.Builder

This builder for chaining.

clearMessage()

public SqlTranslationErrorDetail.Builder clearMessage()

A human-readable description of the error.

string message = 3;

Returns
Type Description
SqlTranslationErrorDetail.Builder

This builder for chaining.

clearRow()

public SqlTranslationErrorDetail.Builder clearRow()

Specifies the row from the source text where the error occurred.

int64 row = 1;

Returns
Type Description
SqlTranslationErrorDetail.Builder

This builder for chaining.

getColumn()

public long getColumn()

Specifie the column from the source texts where the error occurred.

int64 column = 2;

Returns
Type Description
long

The column.

getDefaultInstanceForType()

public SqlTranslationErrorDetail getDefaultInstanceForType()
Returns
Type Description
SqlTranslationErrorDetail

getDescriptorForType()

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

getMessage()

public String getMessage()

A human-readable description of the error.

string message = 3;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

A human-readable description of the error.

string message = 3;

Returns
Type Description
ByteString

The bytes for message.

getRow()

public long getRow()

Specifies the row from the source text where the error occurred.

int64 row = 1;

Returns
Type Description
long

The row.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SqlTranslationErrorDetail other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setColumn(long value)

public SqlTranslationErrorDetail.Builder setColumn(long value)

Specifie the column from the source texts where the error occurred.

int64 column = 2;

Parameter
Name Description
value long

The column to set.

Returns
Type Description
SqlTranslationErrorDetail.Builder

This builder for chaining.

setMessage(String value)

public SqlTranslationErrorDetail.Builder setMessage(String value)

A human-readable description of the error.

string message = 3;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
SqlTranslationErrorDetail.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public SqlTranslationErrorDetail.Builder setMessageBytes(ByteString value)

A human-readable description of the error.

string message = 3;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
SqlTranslationErrorDetail.Builder

This builder for chaining.

setRow(long value)

public SqlTranslationErrorDetail.Builder setRow(long value)

Specifies the row from the source text where the error occurred.

int64 row = 1;

Parameter
Name Description
value long

The row to set.

Returns
Type Description
SqlTranslationErrorDetail.Builder

This builder for chaining.