Class TranslateQueryResponse.Builder

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public TranslateQueryResponse.Builder addWarnings​(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​(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;
      • 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;
      • setUnknownFields

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

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