Class SqlTranslationError.Builder (0.51.0)

publicstaticfinalclass SqlTranslationError.BuilderextendsGeneratedMessageV3.Builder<SqlTranslationError.Builder>implementsSqlTranslationErrorOrBuilder

The detailed error object if the SQL translation job fails.

Protobuf type google.cloud.bigquery.migration.v2alpha.SqlTranslationError

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicSqlTranslationError.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SqlTranslationError.Builder
Overrides

build()

publicSqlTranslationErrorbuild()
Returns
Type Description
SqlTranslationError

buildPartial()

publicSqlTranslationErrorbuildPartial()
Returns
Type Description
SqlTranslationError

clear()

publicSqlTranslationError.Builderclear()
Returns
Type Description
SqlTranslationError.Builder
Overrides

clearErrorDetail()

publicSqlTranslationError.BuilderclearErrorDetail()

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;

Returns
Type Description
SqlTranslationError.Builder

clearErrorType()

publicSqlTranslationError.BuilderclearErrorType()

The type of SQL translation error.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;

Returns
Type Description
SqlTranslationError.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicSqlTranslationError.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SqlTranslationError.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicSqlTranslationError.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SqlTranslationError.Builder
Overrides

clone()

publicSqlTranslationError.Builderclone()
Returns
Type Description
SqlTranslationError.Builder
Overrides

getDefaultInstanceForType()

publicSqlTranslationErrorgetDefaultInstanceForType()
Returns
Type Description
SqlTranslationError

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getErrorDetail()

publicSqlTranslationErrorDetailgetErrorDetail()

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;

Returns
Type Description
SqlTranslationErrorDetail

The errorDetail.

getErrorDetailBuilder()

publicSqlTranslationErrorDetail.BuildergetErrorDetailBuilder()

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;

Returns
Type Description
SqlTranslationErrorDetail.Builder

getErrorDetailOrBuilder()

publicSqlTranslationErrorDetailOrBuildergetErrorDetailOrBuilder()

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;

Returns
Type Description
SqlTranslationErrorDetailOrBuilder

getErrorType()

publicSqlTranslationError.SqlTranslationErrorTypegetErrorType()

The type of SQL translation error.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;

Returns
Type Description
SqlTranslationError.SqlTranslationErrorType

The errorType.

getErrorTypeValue()

publicintgetErrorTypeValue()

The type of SQL translation error.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for errorType.

hasErrorDetail()

publicbooleanhasErrorDetail()

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;

Returns
Type Description
boolean

Whether the errorDetail field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeErrorDetail(SqlTranslationErrorDetail value)

publicSqlTranslationError.BuildermergeErrorDetail(SqlTranslationErrorDetailvalue)

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;

Parameter
Name Description
value SqlTranslationErrorDetail
Returns
Type Description
SqlTranslationError.Builder

mergeFrom(SqlTranslationError other)

publicSqlTranslationError.BuildermergeFrom(SqlTranslationErrorother)
Parameter
Name Description
other SqlTranslationError
Returns
Type Description
SqlTranslationError.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicSqlTranslationError.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlTranslationError.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicSqlTranslationError.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
SqlTranslationError.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSqlTranslationError.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SqlTranslationError.Builder
Overrides

setErrorDetail(SqlTranslationErrorDetail value)

publicSqlTranslationError.BuildersetErrorDetail(SqlTranslationErrorDetailvalue)

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;

Parameter
Name Description
value SqlTranslationErrorDetail
Returns
Type Description
SqlTranslationError.Builder

setErrorDetail(SqlTranslationErrorDetail.Builder builderForValue)

publicSqlTranslationError.BuildersetErrorDetail(SqlTranslationErrorDetail.BuilderbuilderForValue)

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;

Parameter
Name Description
builderForValue SqlTranslationErrorDetail.Builder
Returns
Type Description
SqlTranslationError.Builder

setErrorType(SqlTranslationError.SqlTranslationErrorType value)

publicSqlTranslationError.BuildersetErrorType(SqlTranslationError.SqlTranslationErrorTypevalue)

The type of SQL translation error.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;

Parameter
Name Description
value SqlTranslationError.SqlTranslationErrorType

The errorType to set.

Returns
Type Description
SqlTranslationError.Builder

This builder for chaining.

setErrorTypeValue(int value)

publicSqlTranslationError.BuildersetErrorTypeValue(intvalue)

The type of SQL translation error.

.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for errorType to set.

Returns
Type Description
SqlTranslationError.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicSqlTranslationError.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SqlTranslationError.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicSqlTranslationError.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SqlTranslationError.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSqlTranslationError.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SqlTranslationError.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.