Class 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 type google.cloud.bigquery.migration.v2alpha.SqlTranslationError
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
      • clear

        public SqlTranslationError.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
      • getDefaultInstanceForType

        public SqlTranslationError getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public SqlTranslationError build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public SqlTranslationError buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public SqlTranslationError.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
      • setField

        public SqlTranslationError.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
      • clearField

        public SqlTranslationError.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
      • clearOneof

        public SqlTranslationError.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
      • addRepeatedField

        public SqlTranslationError.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
      • mergeFrom

        public SqlTranslationError.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SqlTranslationError.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface SqlTranslationErrorOrBuilder
        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.
      • 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 interface SqlTranslationErrorOrBuilder
        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 interface SqlTranslationErrorOrBuilder
        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;
      • setUnknownFields

        public final SqlTranslationError.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>
      • mergeUnknownFields

        public final SqlTranslationError.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SqlTranslationError.Builder>