Class TranslateQueryResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TranslateQueryResponse.Builder>
com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.Builder
All Implemented Interfaces:
TranslateQueryResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TranslateQueryResponse

public static final class TranslateQueryResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<TranslateQueryResponse.Builder> implements TranslateQueryResponseOrBuilder
 The response of translating a SQL query to Standard SQL.
 
Protobuf type google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse
  • 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<TranslateQueryResponse.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<TranslateQueryResponse.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<TranslateQueryResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public TranslateQueryResponse.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<TranslateQueryResponse.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<TranslateQueryResponse.Builder>
    • mergeFrom

      public TranslateQueryResponse.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<TranslateQueryResponse.Builder>
      Throws:
      IOException
    • getTranslationJob

      public String getTranslationJob()
       Output only. Immutable. The unique identifier for the SQL translation job.
       Example: `projects/123/locations/us/translation/1234`
       
      string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTranslationJob in interface TranslateQueryResponseOrBuilder
      Returns:
      The translationJob.
    • getTranslationJobBytes

      public com.google.protobuf.ByteString getTranslationJobBytes()
       Output only. Immutable. The unique identifier for the SQL translation job.
       Example: `projects/123/locations/us/translation/1234`
       
      string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTranslationJobBytes in interface TranslateQueryResponseOrBuilder
      Returns:
      The bytes for translationJob.
    • setTranslationJob

      public TranslateQueryResponse.Builder setTranslationJob(String value)
       Output only. Immutable. The unique identifier for the SQL translation job.
       Example: `projects/123/locations/us/translation/1234`
       
      string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The translationJob to set.
      Returns:
      This builder for chaining.
    • clearTranslationJob

      public TranslateQueryResponse.Builder clearTranslationJob()
       Output only. Immutable. The unique identifier for the SQL translation job.
       Example: `projects/123/locations/us/translation/1234`
       
      string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setTranslationJobBytes

      public TranslateQueryResponse.Builder setTranslationJobBytes(com.google.protobuf.ByteString value)
       Output only. Immutable. The unique identifier for the SQL translation job.
       Example: `projects/123/locations/us/translation/1234`
       
      string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for translationJob to set.
      Returns:
      This builder for chaining.
    • getTranslatedQuery

      public String getTranslatedQuery()
       The translated result. This will be empty if the translation fails.
       
      string translated_query = 1;
      Specified by:
      getTranslatedQuery in interface TranslateQueryResponseOrBuilder
      Returns:
      The translatedQuery.
    • getTranslatedQueryBytes

      public com.google.protobuf.ByteString getTranslatedQueryBytes()
       The translated result. This will be empty if the translation fails.
       
      string translated_query = 1;
      Specified by:
      getTranslatedQueryBytes in interface TranslateQueryResponseOrBuilder
      Returns:
      The bytes for translatedQuery.
    • setTranslatedQuery

      public TranslateQueryResponse.Builder setTranslatedQuery(String value)
       The translated result. This will be empty if the translation fails.
       
      string translated_query = 1;
      Parameters:
      value - The translatedQuery to set.
      Returns:
      This builder for chaining.
    • clearTranslatedQuery

      public TranslateQueryResponse.Builder clearTranslatedQuery()
       The translated result. This will be empty if the translation fails.
       
      string translated_query = 1;
      Returns:
      This builder for chaining.
    • setTranslatedQueryBytes

      public TranslateQueryResponse.Builder setTranslatedQueryBytes(com.google.protobuf.ByteString value)
       The translated result. This will be empty if the translation fails.
       
      string translated_query = 1;
      Parameters:
      value - The bytes for translatedQuery to set.
      Returns:
      This builder for chaining.
    • getErrorsList

      public List<SqlTranslationError> getErrorsList()
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
      Specified by:
      getErrorsList in interface TranslateQueryResponseOrBuilder
    • getErrorsCount

      public int getErrorsCount()
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
      Specified by:
      getErrorsCount in interface TranslateQueryResponseOrBuilder
    • getErrors

      public SqlTranslationError getErrors(int index)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
      Specified by:
      getErrors in interface TranslateQueryResponseOrBuilder
    • setErrors

      public TranslateQueryResponse.Builder setErrors(int index, SqlTranslationError value)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • setErrors

      public TranslateQueryResponse.Builder setErrors(int index, SqlTranslationError.Builder builderForValue)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • addErrors

       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • addErrors

      public TranslateQueryResponse.Builder addErrors(int index, SqlTranslationError value)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • addErrors

      public TranslateQueryResponse.Builder addErrors(SqlTranslationError.Builder builderForValue)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • addErrors

      public TranslateQueryResponse.Builder addErrors(int index, SqlTranslationError.Builder builderForValue)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • addAllErrors

      public TranslateQueryResponse.Builder addAllErrors(Iterable<? extends SqlTranslationError> values)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • clearErrors

      public TranslateQueryResponse.Builder clearErrors()
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • removeErrors

      public TranslateQueryResponse.Builder removeErrors(int index)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • getErrorsBuilder

      public SqlTranslationError.Builder getErrorsBuilder(int index)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • getErrorsOrBuilder

      public SqlTranslationErrorOrBuilder getErrorsOrBuilder(int index)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
      Specified by:
      getErrorsOrBuilder in interface TranslateQueryResponseOrBuilder
    • getErrorsOrBuilderList

      public List<? extends SqlTranslationErrorOrBuilder> getErrorsOrBuilderList()
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
      Specified by:
      getErrorsOrBuilderList in interface TranslateQueryResponseOrBuilder
    • addErrorsBuilder

      public SqlTranslationError.Builder addErrorsBuilder()
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • addErrorsBuilder

      public SqlTranslationError.Builder addErrorsBuilder(int index)
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • getErrorsBuilderList

      public List<SqlTranslationError.Builder> getErrorsBuilderList()
       The list of errors encountered during the translation, if present.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2;
    • getWarningsList

      public List<SqlTranslationWarning> getWarningsList()
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
      Specified by:
      getWarningsList in interface TranslateQueryResponseOrBuilder
    • getWarningsCount

      public int getWarningsCount()
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
      Specified by:
      getWarningsCount in interface TranslateQueryResponseOrBuilder
    • getWarnings

      public SqlTranslationWarning getWarnings(int index)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
      Specified by:
      getWarnings in interface TranslateQueryResponseOrBuilder
    • setWarnings

      public TranslateQueryResponse.Builder setWarnings(int index, SqlTranslationWarning value)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • setWarnings

      public TranslateQueryResponse.Builder setWarnings(int index, SqlTranslationWarning.Builder builderForValue)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • addWarnings

       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • addWarnings

      public TranslateQueryResponse.Builder addWarnings(int index, SqlTranslationWarning value)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • addWarnings

      public TranslateQueryResponse.Builder addWarnings(SqlTranslationWarning.Builder builderForValue)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • addWarnings

      public TranslateQueryResponse.Builder addWarnings(int index, SqlTranslationWarning.Builder builderForValue)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • addAllWarnings

      public TranslateQueryResponse.Builder addAllWarnings(Iterable<? extends SqlTranslationWarning> values)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • clearWarnings

      public TranslateQueryResponse.Builder clearWarnings()
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • removeWarnings

      public TranslateQueryResponse.Builder removeWarnings(int index)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • getWarningsBuilder

      public SqlTranslationWarning.Builder getWarningsBuilder(int index)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • getWarningsOrBuilder

      public SqlTranslationWarningOrBuilder getWarningsOrBuilder(int index)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
      Specified by:
      getWarningsOrBuilder in interface TranslateQueryResponseOrBuilder
    • getWarningsOrBuilderList

      public List<? extends SqlTranslationWarningOrBuilder> getWarningsOrBuilderList()
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
      Specified by:
      getWarningsOrBuilderList in interface TranslateQueryResponseOrBuilder
    • addWarningsBuilder

      public SqlTranslationWarning.Builder addWarningsBuilder()
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • addWarningsBuilder

      public SqlTranslationWarning.Builder addWarningsBuilder(int index)
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;
    • getWarningsBuilderList

      public List<SqlTranslationWarning.Builder> getWarningsBuilderList()
       The list of warnings encountered during the translation, if present,
       indicates non-semantically correct translation.
       
      repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3;