Class SqlTranslationError.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SqlTranslationError.Builder> implements SqlTranslationErrorOrBuilder
The detailed error object if the SQL translation job fails.
Protobuf typegoogle.cloud.bigquery.migration.v2alpha.SqlTranslationError
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlTranslationError.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SqlTranslationError
build()
SqlTranslationError
buildPartial()
SqlTranslationError.Builder
clear()
SqlTranslationError.Builder
clearErrorDetail()
Specifies the details of the error, including the error message and location from the source text.SqlTranslationError.Builder
clearErrorType()
The type of SQL translation error.SqlTranslationError.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SqlTranslationError.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SqlTranslationError.Builder
clone()
SqlTranslationError
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
SqlTranslationErrorDetail
getErrorDetail()
Specifies the details of the error, including the error message and location from the source text.SqlTranslationErrorDetail.Builder
getErrorDetailBuilder()
Specifies the details of the error, including the error message and location from the source text.SqlTranslationErrorDetailOrBuilder
getErrorDetailOrBuilder()
Specifies the details of the error, including the error message and location from the source text.SqlTranslationError.SqlTranslationErrorType
getErrorType()
The type of SQL translation error.int
getErrorTypeValue()
The type of SQL translation error.boolean
hasErrorDetail()
Specifies the details of the error, including the error message and location from the source text.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SqlTranslationError.Builder
mergeErrorDetail(SqlTranslationErrorDetail value)
Specifies the details of the error, including the error message and location from the source text.SqlTranslationError.Builder
mergeFrom(SqlTranslationError other)
SqlTranslationError.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SqlTranslationError.Builder
mergeFrom(com.google.protobuf.Message other)
SqlTranslationError.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SqlTranslationError.Builder
setErrorDetail(SqlTranslationErrorDetail value)
Specifies the details of the error, including the error message and location from the source text.SqlTranslationError.Builder
setErrorDetail(SqlTranslationErrorDetail.Builder builderForValue)
Specifies the details of the error, including the error message and location from the source text.SqlTranslationError.Builder
setErrorType(SqlTranslationError.SqlTranslationErrorType value)
The type of SQL translation error.SqlTranslationError.Builder
setErrorTypeValue(int value)
The type of SQL translation error.SqlTranslationError.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SqlTranslationError.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SqlTranslationError.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
clear
public SqlTranslationError.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
getDefaultInstanceForType
public SqlTranslationError getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SqlTranslationError build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SqlTranslationError buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SqlTranslationError.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
setField
public SqlTranslationError.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
clearField
public SqlTranslationError.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
clearOneof
public SqlTranslationError.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
setRepeatedField
public SqlTranslationError.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
addRepeatedField
public SqlTranslationError.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
mergeFrom
public SqlTranslationError.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SqlTranslationError.Builder>
-
mergeFrom
public SqlTranslationError.Builder mergeFrom(SqlTranslationError other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
mergeFrom
public SqlTranslationError.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getErrorTypeValue
in interfaceSqlTranslationErrorOrBuilder
- Returns:
- The enum numeric value on the wire for errorType.
-
setErrorTypeValue
public SqlTranslationError.Builder setErrorTypeValue(int value)
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
public SqlTranslationError.SqlTranslationErrorType getErrorType()
The type of SQL translation error.
.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;
- Specified by:
getErrorType
in interfaceSqlTranslationErrorOrBuilder
- Returns:
- The errorType.
-
setErrorType
public SqlTranslationError.Builder setErrorType(SqlTranslationError.SqlTranslationErrorType value)
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
public SqlTranslationError.Builder 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:
hasErrorDetail
in interfaceSqlTranslationErrorOrBuilder
- Returns:
- Whether the errorDetail field is set.
-
getErrorDetail
public SqlTranslationErrorDetail 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:
getErrorDetail
in interfaceSqlTranslationErrorOrBuilder
- Returns:
- The errorDetail.
-
setErrorDetail
public SqlTranslationError.Builder setErrorDetail(SqlTranslationErrorDetail value)
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
public SqlTranslationError.Builder mergeErrorDetail(SqlTranslationErrorDetail value)
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
public SqlTranslationError.Builder 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
public SqlTranslationErrorDetail.Builder 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
public SqlTranslationErrorDetailOrBuilder 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:
getErrorDetailOrBuilder
in interfaceSqlTranslationErrorOrBuilder
-
setUnknownFields
public final SqlTranslationError.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
mergeUnknownFields
public final SqlTranslationError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
-
-