Class Document.Page.DetectedLanguage.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<Document.Page.DetectedLanguage.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<Document.Page.DetectedLanguage.Builder>
      • getDefaultInstanceForType

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

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

        public Document.Page.DetectedLanguage buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.DetectedLanguage.Builder>
      • getLanguageCode

        public String getLanguageCode()
         The [BCP-47 language
         code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
         such as `en-US` or `sr-Latn`.
         
        string language_code = 1;
        Specified by:
        getLanguageCode in interface Document.Page.DetectedLanguageOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         The [BCP-47 language
         code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
         such as `en-US` or `sr-Latn`.
         
        string language_code = 1;
        Specified by:
        getLanguageCodeBytes in interface Document.Page.DetectedLanguageOrBuilder
        Returns:
        The bytes for languageCode.
      • setLanguageCode

        public Document.Page.DetectedLanguage.Builder setLanguageCode​(String value)
         The [BCP-47 language
         code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
         such as `en-US` or `sr-Latn`.
         
        string language_code = 1;
        Parameters:
        value - The languageCode to set.
        Returns:
        This builder for chaining.
      • clearLanguageCode

        public Document.Page.DetectedLanguage.Builder clearLanguageCode()
         The [BCP-47 language
         code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
         such as `en-US` or `sr-Latn`.
         
        string language_code = 1;
        Returns:
        This builder for chaining.
      • setLanguageCodeBytes

        public Document.Page.DetectedLanguage.Builder setLanguageCodeBytes​(com.google.protobuf.ByteString value)
         The [BCP-47 language
         code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
         such as `en-US` or `sr-Latn`.
         
        string language_code = 1;
        Parameters:
        value - The bytes for languageCode to set.
        Returns:
        This builder for chaining.
      • setConfidence

        public Document.Page.DetectedLanguage.Builder setConfidence​(float value)
         Confidence of detected language. Range `[0, 1]`.
         
        float confidence = 2;
        Parameters:
        value - The confidence to set.
        Returns:
        This builder for chaining.
      • clearConfidence

        public Document.Page.DetectedLanguage.Builder clearConfidence()
         Confidence of detected language. Range `[0, 1]`.
         
        float confidence = 2;
        Returns:
        This builder for chaining.