public final class TranslateQueryResponse extends GeneratedMessageV3 implements TranslateQueryResponseOrBuilder
The response of translating a SQL query to Standard SQL.
Protobuf type google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse
Static Fields
ERRORS_FIELD_NUMBER
public static final int ERRORS_FIELD_NUMBER
Field Value
TRANSLATED_QUERY_FIELD_NUMBER
public static final int TRANSLATED_QUERY_FIELD_NUMBER
Field Value
TRANSLATION_JOB_FIELD_NUMBER
public static final int TRANSLATION_JOB_FIELD_NUMBER
Field Value
WARNINGS_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static TranslateQueryResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TranslateQueryResponse.Builder newBuilder()
Returns
newBuilder(TranslateQueryResponse prototype)
public static TranslateQueryResponse.Builder newBuilder(TranslateQueryResponse prototype)
Parameter
Returns
public static TranslateQueryResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TranslateQueryResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TranslateQueryResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TranslateQueryResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TranslateQueryResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TranslateQueryResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TranslateQueryResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TranslateQueryResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TranslateQueryResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TranslateQueryResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TranslateQueryResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TranslateQueryResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TranslateQueryResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public TranslateQueryResponse getDefaultInstanceForType()
Returns
getErrors(int index)
public SqlTranslationError getErrors(int index)
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
Parameter
Returns
getErrorsCount()
public int getErrorsCount()
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
Returns
getErrorsList()
public List<SqlTranslationError> getErrorsList()
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
Returns
getErrorsOrBuilder(int index)
public SqlTranslationErrorOrBuilder getErrorsOrBuilder(int index)
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
Parameter
Returns
getErrorsOrBuilderList()
public List<? extends SqlTranslationErrorOrBuilder> 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()
public Parser<TranslateQueryResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTranslatedQuery()
public String getTranslatedQuery()
The translated result. This will be empty if the translation fails.
string translated_query = 1;
Returns
Type | Description |
String | The translatedQuery.
|
getTranslatedQueryBytes()
public ByteString getTranslatedQueryBytes()
The translated result. This will be empty if the translation fails.
string translated_query = 1;
Returns
Type | Description |
ByteString | The bytes for translatedQuery.
|
getTranslationJob()
public String getTranslationJob()
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()
public ByteString getTranslationJobBytes()
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.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getWarnings(int index)
public SqlTranslationWarning getWarnings(int index)
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
Returns
getWarningsCount()
public int getWarningsCount()
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
getWarningsList()
public List<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
getWarningsOrBuilder(int index)
public SqlTranslationWarningOrBuilder getWarningsOrBuilder(int index)
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
Returns
getWarningsOrBuilderList()
public List<? extends SqlTranslationWarningOrBuilder> 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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TranslateQueryResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TranslateQueryResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TranslateQueryResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions