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()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticTranslateQueryResponse.BuildernewBuilder()
newBuilder(TranslateQueryResponse prototype)
publicstaticTranslateQueryResponse.BuildernewBuilder(TranslateQueryResponseprototype)
publicstaticTranslateQueryResponseparseDelimitedFrom(InputStreaminput)
publicstaticTranslateQueryResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticTranslateQueryResponseparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticTranslateQueryResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticTranslateQueryResponseparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticTranslateQueryResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticTranslateQueryResponseparseFrom(CodedInputStreaminput)
publicstaticTranslateQueryResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticTranslateQueryResponseparseFrom(InputStreaminput)
publicstaticTranslateQueryResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticTranslateQueryResponseparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticTranslateQueryResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<TranslateQueryResponse>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicTranslateQueryResponsegetDefaultInstanceForType()
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
|
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;
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
|
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()
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
|
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;
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
|
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()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicTranslateQueryResponse.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedTranslateQueryResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicTranslateQueryResponse.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides