Class SqlTranslationErrorDetail (0.58.0)

public final class SqlTranslationErrorDetail extends GeneratedMessageV3 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 Fields

COLUMN_FIELD_NUMBER

public static final int COLUMN_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

ROW_FIELD_NUMBER

public static final int ROW_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SqlTranslationErrorDetail getDefaultInstance()
Returns
Type Description
SqlTranslationErrorDetail

getDescriptor()

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

newBuilder()

public static SqlTranslationErrorDetail.Builder newBuilder()
Returns
Type Description
SqlTranslationErrorDetail.Builder

newBuilder(SqlTranslationErrorDetail prototype)

public static SqlTranslationErrorDetail.Builder newBuilder(SqlTranslationErrorDetail prototype)
Parameter
Name Description
prototype SqlTranslationErrorDetail
Returns
Type Description
SqlTranslationErrorDetail.Builder

parseDelimitedFrom(InputStream input)

public static SqlTranslationErrorDetail parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SqlTranslationErrorDetail parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SqlTranslationErrorDetail parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SqlTranslationErrorDetail parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SqlTranslationErrorDetail parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SqlTranslationErrorDetail parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlTranslationErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SqlTranslationErrorDetail> parser()
Returns
Type Description
Parser<SqlTranslationErrorDetail>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<SqlTranslationErrorDetail> getParserForType()
Returns
Type Description
Parser<SqlTranslationErrorDetail>
Overrides

getRow()

public long getRow()

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

int64 row = 1;

Returns
Type Description
long

The row.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SqlTranslationErrorDetail.Builder newBuilderForType()
Returns
Type Description
SqlTranslationErrorDetail.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SqlTranslationErrorDetail.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SqlTranslationErrorDetail.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SqlTranslationErrorDetail.Builder toBuilder()
Returns
Type Description
SqlTranslationErrorDetail.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException