Class SqlTranslationErrorDetail (0.17.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
TypeDescription
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

ROW_FIELD_NUMBER

public static final int ROW_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SqlTranslationErrorDetail getDefaultInstance()
Returns
TypeDescription
SqlTranslationErrorDetail

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SqlTranslationErrorDetail.Builder newBuilder()
Returns
TypeDescription
SqlTranslationErrorDetail.Builder

newBuilder(SqlTranslationErrorDetail prototype)

public static SqlTranslationErrorDetail.Builder newBuilder(SqlTranslationErrorDetail prototype)
Parameter
NameDescription
prototypeSqlTranslationErrorDetail
Returns
TypeDescription
SqlTranslationErrorDetail.Builder

parseDelimitedFrom(InputStream input)

public static SqlTranslationErrorDetail parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SqlTranslationErrorDetail parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SqlTranslationErrorDetail parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SqlTranslationErrorDetail parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SqlTranslationErrorDetail parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SqlTranslationErrorDetail parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SqlTranslationErrorDetail parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SqlTranslationErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SqlTranslationErrorDetail> parser()
Returns
TypeDescription
Parser<SqlTranslationErrorDetail>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<SqlTranslationErrorDetail> getParserForType()
Returns
TypeDescription
Parser<SqlTranslationErrorDetail>
Overrides

getRow()

public long getRow()

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

int64 row = 1;

Returns
TypeDescription
long

The row.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SqlTranslationErrorDetail.Builder newBuilderForType()
Returns
TypeDescription
SqlTranslationErrorDetail.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SqlTranslationErrorDetail.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SqlTranslationErrorDetail.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SqlTranslationErrorDetail.Builder toBuilder()
Returns
TypeDescription
SqlTranslationErrorDetail.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException