Class TranslateQueryResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TranslateQueryResponse.Builder>
com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.Builder
- All Implemented Interfaces:
TranslateQueryResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TranslateQueryResponse
public static final class TranslateQueryResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TranslateQueryResponse.Builder>
implements TranslateQueryResponseOrBuilder
The response of translating a SQL query to Standard SQL.Protobuf type
google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllErrors(Iterable<? extends SqlTranslationError> values) The list of errors encountered during the translation, if present.addAllWarnings(Iterable<? extends SqlTranslationWarning> values) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.addErrors(int index, SqlTranslationError value) The list of errors encountered during the translation, if present.addErrors(int index, SqlTranslationError.Builder builderForValue) The list of errors encountered during the translation, if present.addErrors(SqlTranslationError value) The list of errors encountered during the translation, if present.addErrors(SqlTranslationError.Builder builderForValue) The list of errors encountered during the translation, if present.The list of errors encountered during the translation, if present.addErrorsBuilder(int index) The list of errors encountered during the translation, if present.addWarnings(int index, SqlTranslationWarning value) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.addWarnings(int index, SqlTranslationWarning.Builder builderForValue) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.addWarnings(SqlTranslationWarning value) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.addWarnings(SqlTranslationWarning.Builder builderForValue) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.addWarningsBuilder(int index) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.build()clear()The list of errors encountered during the translation, if present.The translated result.Output only.The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetErrors(int index) The list of errors encountered during the translation, if present.getErrorsBuilder(int index) The list of errors encountered during the translation, if present.The list of errors encountered during the translation, if present.intThe list of errors encountered during the translation, if present.The list of errors encountered during the translation, if present.getErrorsOrBuilder(int index) The list of errors encountered during the translation, if present.List<? extends SqlTranslationErrorOrBuilder>The list of errors encountered during the translation, if present.The translated result.com.google.protobuf.ByteStringThe translated result.Output only.com.google.protobuf.ByteStringOutput only.getWarnings(int index) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.getWarningsBuilder(int index) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.intThe list of warnings encountered during the translation, if present, indicates non-semantically correct translation.The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.getWarningsOrBuilder(int index) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.List<? extends SqlTranslationWarningOrBuilder>The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TranslateQueryResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeErrors(int index) The list of errors encountered during the translation, if present.removeWarnings(int index) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.setErrors(int index, SqlTranslationError value) The list of errors encountered during the translation, if present.setErrors(int index, SqlTranslationError.Builder builderForValue) The list of errors encountered during the translation, if present.setTranslatedQuery(String value) The translated result.setTranslatedQueryBytes(com.google.protobuf.ByteString value) The translated result.setTranslationJob(String value) Output only.setTranslationJobBytes(com.google.protobuf.ByteString value) Output only.setWarnings(int index, SqlTranslationWarning value) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.setWarnings(int index, SqlTranslationWarning.Builder builderForValue) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TranslateQueryResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TranslateQueryResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TranslateQueryResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TranslateQueryResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TranslateQueryResponse.Builder>
-
mergeFrom
public TranslateQueryResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TranslateQueryResponse.Builder>- Throws:
IOException
-
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];- Specified by:
getTranslationJobin interfaceTranslateQueryResponseOrBuilder- Returns:
- The translationJob.
-
getTranslationJobBytes
public 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];- Specified by:
getTranslationJobBytesin interfaceTranslateQueryResponseOrBuilder- Returns:
- The bytes for translationJob.
-
setTranslationJob
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];- Parameters:
value- The translationJob to set.- Returns:
- This builder for chaining.
-
clearTranslationJob
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:
- This builder for chaining.
-
setTranslationJobBytes
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];- Parameters:
value- The bytes for translationJob to set.- Returns:
- This builder for chaining.
-
getTranslatedQuery
The translated result. This will be empty if the translation fails.
string translated_query = 1;- Specified by:
getTranslatedQueryin interfaceTranslateQueryResponseOrBuilder- Returns:
- The translatedQuery.
-
getTranslatedQueryBytes
public com.google.protobuf.ByteString getTranslatedQueryBytes()The translated result. This will be empty if the translation fails.
string translated_query = 1;- Specified by:
getTranslatedQueryBytesin interfaceTranslateQueryResponseOrBuilder- Returns:
- The bytes for translatedQuery.
-
setTranslatedQuery
The translated result. This will be empty if the translation fails.
string translated_query = 1;- Parameters:
value- The translatedQuery to set.- Returns:
- This builder for chaining.
-
clearTranslatedQuery
The translated result. This will be empty if the translation fails.
string translated_query = 1;- Returns:
- This builder for chaining.
-
setTranslatedQueryBytes
The translated result. This will be empty if the translation fails.
string translated_query = 1;- Parameters:
value- The bytes for translatedQuery to set.- Returns:
- This builder for chaining.
-
getErrorsList
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;- Specified by:
getErrorsListin interfaceTranslateQueryResponseOrBuilder
-
getErrorsCount
public int getErrorsCount()The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;- Specified by:
getErrorsCountin interfaceTranslateQueryResponseOrBuilder
-
getErrors
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;- Specified by:
getErrorsin interfaceTranslateQueryResponseOrBuilder
-
setErrors
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
setErrors
public TranslateQueryResponse.Builder setErrors(int index, SqlTranslationError.Builder builderForValue) The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
addErrors
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
addErrors
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
addErrors
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
addErrors
public TranslateQueryResponse.Builder addErrors(int index, SqlTranslationError.Builder builderForValue) The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
addAllErrors
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
clearErrors
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
removeErrors
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
getErrorsBuilder
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
getErrorsOrBuilder
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;- Specified by:
getErrorsOrBuilderin interfaceTranslateQueryResponseOrBuilder
-
getErrorsOrBuilderList
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;- Specified by:
getErrorsOrBuilderListin interfaceTranslateQueryResponseOrBuilder
-
addErrorsBuilder
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
addErrorsBuilder
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
getErrorsBuilderList
The list of errors encountered during the translation, if present.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; -
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;- Specified by:
getWarningsListin interfaceTranslateQueryResponseOrBuilder
-
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;- Specified by:
getWarningsCountin interfaceTranslateQueryResponseOrBuilder
-
getWarnings
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;- Specified by:
getWarningsin interfaceTranslateQueryResponseOrBuilder
-
setWarnings
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
setWarnings
public TranslateQueryResponse.Builder setWarnings(int index, SqlTranslationWarning.Builder builderForValue) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
addWarnings
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
addWarnings
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
addWarnings
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
addWarnings
public TranslateQueryResponse.Builder addWarnings(int index, SqlTranslationWarning.Builder builderForValue) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
addAllWarnings
public TranslateQueryResponse.Builder addAllWarnings(Iterable<? extends SqlTranslationWarning> values) The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
clearWarnings
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
removeWarnings
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
getWarningsBuilder
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
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;- Specified by:
getWarningsOrBuilderin interfaceTranslateQueryResponseOrBuilder
-
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;- Specified by:
getWarningsOrBuilderListin interfaceTranslateQueryResponseOrBuilder
-
addWarningsBuilder
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
addWarningsBuilder
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; -
getWarningsBuilderList
The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
-