Class SqlTranslationError.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SqlTranslationError.Builder>
com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder
- All Implemented Interfaces:
SqlTranslationErrorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SqlTranslationError
public static final class SqlTranslationError.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SqlTranslationError.Builder>
implements SqlTranslationErrorOrBuilder
The detailed error object if the SQL translation job fails.Protobuf type
google.cloud.bigquery.migration.v2alpha.SqlTranslationError-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies the details of the error, including the error message and location from the source text.The type of SQL translation error.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the details of the error, including the error message and location from the source text.Specifies the details of the error, including the error message and location from the source text.Specifies the details of the error, including the error message and location from the source text.The type of SQL translation error.intThe type of SQL translation error.booleanSpecifies the details of the error, including the error message and location from the source text.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanSpecifies the details of the error, including the error message and location from the source text.mergeFrom(SqlTranslationError other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Specifies the details of the error, including the error message and location from the source text.setErrorDetail(SqlTranslationErrorDetail.Builder builderForValue) Specifies the details of the error, including the error message and location from the source text.The type of SQL translation error.setErrorTypeValue(int value) The type of SQL translation error.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<SqlTranslationError.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<SqlTranslationError.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<SqlTranslationError.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<SqlTranslationError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SqlTranslationError.Builder>
-
mergeFrom
public SqlTranslationError.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<SqlTranslationError.Builder>- Throws:
IOException
-
getErrorTypeValue
public int getErrorTypeValue()The type of SQL translation error.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;- Specified by:
getErrorTypeValuein interfaceSqlTranslationErrorOrBuilder- Returns:
- The enum numeric value on the wire for errorType.
-
setErrorTypeValue
The type of SQL translation error.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;- Parameters:
value- The enum numeric value on the wire for errorType to set.- Returns:
- This builder for chaining.
-
getErrorType
The type of SQL translation error.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;- Specified by:
getErrorTypein interfaceSqlTranslationErrorOrBuilder- Returns:
- The errorType.
-
setErrorType
The type of SQL translation error.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;- Parameters:
value- The errorType to set.- Returns:
- This builder for chaining.
-
clearErrorType
The type of SQL translation error.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;- Returns:
- This builder for chaining.
-
hasErrorDetail
public boolean hasErrorDetail()Specifies the details of the error, including the error message and location from the source text.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;- Specified by:
hasErrorDetailin interfaceSqlTranslationErrorOrBuilder- Returns:
- Whether the errorDetail field is set.
-
getErrorDetail
Specifies the details of the error, including the error message and location from the source text.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;- Specified by:
getErrorDetailin interfaceSqlTranslationErrorOrBuilder- Returns:
- The errorDetail.
-
setErrorDetail
Specifies the details of the error, including the error message and location from the source text.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; -
setErrorDetail
public SqlTranslationError.Builder setErrorDetail(SqlTranslationErrorDetail.Builder builderForValue) Specifies the details of the error, including the error message and location from the source text.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; -
mergeErrorDetail
Specifies the details of the error, including the error message and location from the source text.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; -
clearErrorDetail
Specifies the details of the error, including the error message and location from the source text.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; -
getErrorDetailBuilder
Specifies the details of the error, including the error message and location from the source text.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; -
getErrorDetailOrBuilder
Specifies the details of the error, including the error message and location from the source text.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2;- Specified by:
getErrorDetailOrBuilderin interfaceSqlTranslationErrorOrBuilder
-