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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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.
    • getErrorType

       The type of SQL translation error.
       
      .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1;
      Specified by:
      getErrorType in interface SqlTranslationErrorOrBuilder
      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

      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

       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 interface SqlTranslationErrorOrBuilder