Class TranslateQueryResponse (0.83.0)

publicfinalclass TranslateQueryResponseextendsGeneratedMessageV3implementsTranslateQueryResponseOrBuilder

The response of translating a SQL query to Standard SQL.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

ERRORS_FIELD_NUMBER

publicstaticfinalintERRORS_FIELD_NUMBER
Field Value
Type Description
int

TRANSLATED_QUERY_FIELD_NUMBER

publicstaticfinalintTRANSLATED_QUERY_FIELD_NUMBER
Field Value
Type Description
int

TRANSLATION_JOB_FIELD_NUMBER

publicstaticfinalintTRANSLATION_JOB_FIELD_NUMBER
Field Value
Type Description
int

WARNINGS_FIELD_NUMBER

publicstaticfinalintWARNINGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticTranslateQueryResponsegetDefaultInstance()
Returns
Type Description
TranslateQueryResponse

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticTranslateQueryResponse.BuildernewBuilder()
Returns
Type Description
TranslateQueryResponse.Builder

newBuilder(TranslateQueryResponse prototype)

publicstaticTranslateQueryResponse.BuildernewBuilder(TranslateQueryResponseprototype)
Parameter
Name Description
prototype TranslateQueryResponse
Returns
Type Description
TranslateQueryResponse.Builder

parseDelimitedFrom(InputStream input)

publicstaticTranslateQueryResponseparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTranslateQueryResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticTranslateQueryResponseparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticTranslateQueryResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticTranslateQueryResponseparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticTranslateQueryResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticTranslateQueryResponseparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTranslateQueryResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticTranslateQueryResponseparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTranslateQueryResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticTranslateQueryResponseparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticTranslateQueryResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslateQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<TranslateQueryResponse>parser()
Returns
Type Description
Parser<TranslateQueryResponse>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicTranslateQueryResponsegetDefaultInstanceForType()
Returns
Type Description
TranslateQueryResponse

getErrors(int index)

publicSqlTranslationErrorgetErrors(intindex)

The list of errors encountered during the translation, if present.

repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;

Parameter
Name Description
index int
Returns
Type Description
SqlTranslationError

getErrorsCount()

publicintgetErrorsCount()

The list of errors encountered during the translation, if present.

repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;

Returns
Type Description
int

getErrorsList()

publicList<SqlTranslationError>getErrorsList()

The list of errors encountered during the translation, if present.

repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;

Returns
Type Description
List<SqlTranslationError>

getErrorsOrBuilder(int index)

publicSqlTranslationErrorOrBuildergetErrorsOrBuilder(intindex)

The list of errors encountered during the translation, if present.

repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;

Parameter
Name Description
index int
Returns
Type Description
SqlTranslationErrorOrBuilder

getErrorsOrBuilderList()

publicList<?extendsSqlTranslationErrorOrBuilder>getErrorsOrBuilderList()

The list of errors encountered during the translation, if present.

repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;

Returns
Type Description
List<? extends com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder>

getParserForType()

publicParser<TranslateQueryResponse>getParserForType()
Returns
Type Description
Parser<TranslateQueryResponse>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getTranslatedQuery()

publicStringgetTranslatedQuery()

The translated result. This will be empty if the translation fails.

string translated_query = 1;

Returns
Type Description
String

The translatedQuery.

getTranslatedQueryBytes()

publicByteStringgetTranslatedQueryBytes()

The translated result. This will be empty if the translation fails.

string translated_query = 1;

Returns
Type Description
ByteString

The bytes for translatedQuery.

getTranslationJob()

publicStringgetTranslationJob()

Output only. Immutable. The unique identifier for the SQL translation job. Example: projects/123/locations/us/translation/1234

string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The translationJob.

getTranslationJobBytes()

publicByteStringgetTranslationJobBytes()

Output only. Immutable. The unique identifier for the SQL translation job. Example: projects/123/locations/us/translation/1234

string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for translationJob.

getWarnings(int index)

publicSqlTranslationWarninggetWarnings(intindex)

The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.

repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;

Parameter
Name Description
index int
Returns
Type Description
SqlTranslationWarning

getWarningsCount()

publicintgetWarningsCount()

The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.

repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;

Returns
Type Description
int

getWarningsList()

publicList<SqlTranslationWarning>getWarningsList()

The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.

repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;

Returns
Type Description
List<SqlTranslationWarning>

getWarningsOrBuilder(int index)

publicSqlTranslationWarningOrBuildergetWarningsOrBuilder(intindex)

The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.

repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;

Parameter
Name Description
index int
Returns
Type Description
SqlTranslationWarningOrBuilder

getWarningsOrBuilderList()

publicList<?extendsSqlTranslationWarningOrBuilder>getWarningsOrBuilderList()

The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.

repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;

Returns
Type Description
List<? extends com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder>

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicTranslateQueryResponse.BuildernewBuilderForType()
Returns
Type Description
TranslateQueryResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedTranslateQueryResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TranslateQueryResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicTranslateQueryResponse.BuildertoBuilder()
Returns
Type Description
TranslateQueryResponse.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.