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
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
public static final int ERRORS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TRANSLATED_QUERY_FIELD_NUMBER
public static final int TRANSLATED_QUERY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TRANSLATION_JOB_FIELD_NUMBER
public static final int TRANSLATION_JOB_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
WARNINGS_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static TranslateQueryResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static TranslateQueryResponse.Builder newBuilder()
newBuilder(TranslateQueryResponse prototype)
public static TranslateQueryResponse.Builder newBuilder(TranslateQueryResponse prototype)
public static TranslateQueryResponse parseDelimitedFrom(InputStream input)
public static TranslateQueryResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static TranslateQueryResponse parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TranslateQueryResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static TranslateQueryResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TranslateQueryResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TranslateQueryResponse parseFrom(CodedInputStream input)
public static TranslateQueryResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TranslateQueryResponse parseFrom(InputStream input)
public static TranslateQueryResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static TranslateQueryResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TranslateQueryResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<TranslateQueryResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public TranslateQueryResponse getDefaultInstanceForType()
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 |
---|
Name | Description |
index | int
|
getErrorsCount()
public int getErrorsCount()
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
Returns |
---|
Type | Description |
int | |
getErrorsList()
public List<SqlTranslationError> getErrorsList()
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
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 |
---|
Name | Description |
index | int
|
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()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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.
|
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
int | |
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;
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public TranslateQueryResponse.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TranslateQueryResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public TranslateQueryResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides