Class SqlTranslationErrorDetail.Builder (0.19.0)

public static final class SqlTranslationErrorDetail.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SqlTranslationErrorDetail build()
Returns
TypeDescription
SqlTranslationErrorDetail

buildPartial()

public SqlTranslationErrorDetail buildPartial()
Returns
TypeDescription
SqlTranslationErrorDetail

clear()

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

clearColumn()

public SqlTranslationErrorDetail.Builder clearColumn()

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

int64 column = 2;

Returns
TypeDescription
SqlTranslationErrorDetail.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public SqlTranslationErrorDetail.Builder clearMessage()

A human-readable description of the error.

string message = 3;

Returns
TypeDescription
SqlTranslationErrorDetail.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRow()

public SqlTranslationErrorDetail.Builder clearRow()

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

int64 row = 1;

Returns
TypeDescription
SqlTranslationErrorDetail.Builder

This builder for chaining.

clone()

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

getColumn()

public long getColumn()

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

int64 column = 2;

Returns
TypeDescription
long

The column.

getDefaultInstanceForType()

public SqlTranslationErrorDetail getDefaultInstanceForType()
Returns
TypeDescription
SqlTranslationErrorDetail

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessage()

public String getMessage()

A human-readable description of the error.

string message = 3;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

A human-readable description of the error.

string message = 3;

Returns
TypeDescription
ByteString

The bytes for message.

getRow()

public long getRow()

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

int64 row = 1;

Returns
TypeDescription
long

The row.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SqlTranslationErrorDetail other)

public SqlTranslationErrorDetail.Builder mergeFrom(SqlTranslationErrorDetail other)
Parameter
NameDescription
otherSqlTranslationErrorDetail
Returns
TypeDescription
SqlTranslationErrorDetail.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SqlTranslationErrorDetail.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The column to set.

Returns
TypeDescription
SqlTranslationErrorDetail.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(String value)

public SqlTranslationErrorDetail.Builder setMessage(String value)

A human-readable description of the error.

string message = 3;

Parameter
NameDescription
valueString

The message to set.

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

The bytes for message to set.

Returns
TypeDescription
SqlTranslationErrorDetail.Builder

This builder for chaining.

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

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

setRow(long value)

public SqlTranslationErrorDetail.Builder setRow(long value)

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

int64 row = 1;

Parameter
NameDescription
valuelong

The row to set.

Returns
TypeDescription
SqlTranslationErrorDetail.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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