Class SqlTranslationError (0.17.0)

public final class SqlTranslationError extends GeneratedMessageV3 implements SqlTranslationErrorOrBuilder

The detailed error object if the SQL translation job fails.

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

Static Fields

ERROR_DETAIL_FIELD_NUMBER

public static final int ERROR_DETAIL_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_TYPE_FIELD_NUMBER

public static final int ERROR_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SqlTranslationError getDefaultInstance()
Returns
TypeDescription
SqlTranslationError

getDescriptor()

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

newBuilder()

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

newBuilder(SqlTranslationError prototype)

public static SqlTranslationError.Builder newBuilder(SqlTranslationError prototype)
Parameter
NameDescription
prototypeSqlTranslationError
Returns
TypeDescription
SqlTranslationError.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SqlTranslationError getDefaultInstanceForType()
Returns
TypeDescription
SqlTranslationError

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.

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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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