public final class TranslateQueryResponse extends com.google.protobuf.GeneratedMessageV3 implements TranslateQueryResponseOrBuilder
The response of translating a SQL query to Standard SQL.Protobuf type
google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse| Modifier and Type | Class and Description |
|---|---|
static class |
TranslateQueryResponse.Builder
The response of translating a SQL query to Standard SQL.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ERRORS_FIELD_NUMBER |
static int |
TRANSLATED_QUERY_FIELD_NUMBER |
static int |
TRANSLATION_JOB_FIELD_NUMBER |
static int |
WARNINGS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static TranslateQueryResponse |
getDefaultInstance() |
TranslateQueryResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
SqlTranslationError |
getErrors(int index)
The list of errors encountered during the translation, if present.
|
int |
getErrorsCount()
The list of errors encountered during the translation, if present.
|
List<SqlTranslationError> |
getErrorsList()
The list of errors encountered during the translation, if present.
|
SqlTranslationErrorOrBuilder |
getErrorsOrBuilder(int index)
The list of errors encountered during the translation, if present.
|
List<? extends SqlTranslationErrorOrBuilder> |
getErrorsOrBuilderList()
The list of errors encountered during the translation, if present.
|
com.google.protobuf.Parser<TranslateQueryResponse> |
getParserForType() |
int |
getSerializedSize() |
String |
getTranslatedQuery()
The translated result.
|
com.google.protobuf.ByteString |
getTranslatedQueryBytes()
The translated result.
|
String |
getTranslationJob()
Output only.
|
com.google.protobuf.ByteString |
getTranslationJobBytes()
Output only.
|
SqlTranslationWarning |
getWarnings(int index)
The list of warnings encountered during the translation, if present,
indicates non-semantically correct translation.
|
int |
getWarningsCount()
The list of warnings encountered during the translation, if present,
indicates non-semantically correct translation.
|
List<SqlTranslationWarning> |
getWarningsList()
The list of warnings encountered during the translation, if present,
indicates non-semantically correct translation.
|
SqlTranslationWarningOrBuilder |
getWarningsOrBuilder(int index)
The list of warnings encountered during the translation, if present,
indicates non-semantically correct translation.
|
List<? extends SqlTranslationWarningOrBuilder> |
getWarningsOrBuilderList()
The list of warnings encountered during the translation, if present,
indicates non-semantically correct translation.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TranslateQueryResponse.Builder |
newBuilder() |
static TranslateQueryResponse.Builder |
newBuilder(TranslateQueryResponse prototype) |
TranslateQueryResponse.Builder |
newBuilderForType() |
protected TranslateQueryResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TranslateQueryResponse |
parseDelimitedFrom(InputStream input) |
static TranslateQueryResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TranslateQueryResponse |
parseFrom(byte[] data) |
static TranslateQueryResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TranslateQueryResponse |
parseFrom(ByteBuffer data) |
static TranslateQueryResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TranslateQueryResponse |
parseFrom(com.google.protobuf.ByteString data) |
static TranslateQueryResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TranslateQueryResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TranslateQueryResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TranslateQueryResponse |
parseFrom(InputStream input) |
static TranslateQueryResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TranslateQueryResponse> |
parser() |
TranslateQueryResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TRANSLATION_JOB_FIELD_NUMBER
public static final int TRANSLATED_QUERY_FIELD_NUMBER
public static final int ERRORS_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];
getTranslationJob in interface TranslateQueryResponseOrBuilderpublic com.google.protobuf.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];
getTranslationJobBytes in interface TranslateQueryResponseOrBuilderpublic String getTranslatedQuery()
The translated result. This will be empty if the translation fails.
string translated_query = 1;getTranslatedQuery in interface TranslateQueryResponseOrBuilderpublic com.google.protobuf.ByteString getTranslatedQueryBytes()
The translated result. This will be empty if the translation fails.
string translated_query = 1;getTranslatedQueryBytes in interface TranslateQueryResponseOrBuilderpublic List<SqlTranslationError> getErrorsList()
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;getErrorsList in interface TranslateQueryResponseOrBuilderpublic List<? extends SqlTranslationErrorOrBuilder> getErrorsOrBuilderList()
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;getErrorsOrBuilderList in interface TranslateQueryResponseOrBuilderpublic int getErrorsCount()
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;getErrorsCount in interface TranslateQueryResponseOrBuilderpublic SqlTranslationError getErrors(int index)
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;getErrors in interface TranslateQueryResponseOrBuilderpublic SqlTranslationErrorOrBuilder getErrorsOrBuilder(int index)
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;getErrorsOrBuilder in interface TranslateQueryResponseOrBuilderpublic 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;
getWarningsList in interface TranslateQueryResponseOrBuilderpublic 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;
getWarningsOrBuilderList in interface TranslateQueryResponseOrBuilderpublic 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;
getWarningsCount in interface TranslateQueryResponseOrBuilderpublic 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;
getWarnings in interface TranslateQueryResponseOrBuilderpublic 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;
getWarningsOrBuilder in interface TranslateQueryResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TranslateQueryResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateQueryResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateQueryResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateQueryResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateQueryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateQueryResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateQueryResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static TranslateQueryResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TranslateQueryResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TranslateQueryResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TranslateQueryResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TranslateQueryResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TranslateQueryResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TranslateQueryResponse.Builder newBuilder()
public static TranslateQueryResponse.Builder newBuilder(TranslateQueryResponse prototype)
public TranslateQueryResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TranslateQueryResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TranslateQueryResponse getDefaultInstance()
public static com.google.protobuf.Parser<TranslateQueryResponse> parser()
public com.google.protobuf.Parser<TranslateQueryResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TranslateQueryResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.