Class TextExtractionModelMetadata.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<TextExtractionModelMetadata.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<TextExtractionModelMetadata.Builder>
      • getDefaultInstanceForType

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

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

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

        public TextExtractionModelMetadata.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<TextExtractionModelMetadata.Builder>
        Throws:
        IOException
      • getModelHint

        public String getModelHint()
         Indicates the scope of model use case.
        
         * `default`: Use to train a general text extraction model. Default value.
        
         * `health_care`: Use to train a text extraction model that is tuned for
           healthcare applications.
         
        string model_hint = 3;
        Specified by:
        getModelHint in interface TextExtractionModelMetadataOrBuilder
        Returns:
        The modelHint.
      • getModelHintBytes

        public com.google.protobuf.ByteString getModelHintBytes()
         Indicates the scope of model use case.
        
         * `default`: Use to train a general text extraction model. Default value.
        
         * `health_care`: Use to train a text extraction model that is tuned for
           healthcare applications.
         
        string model_hint = 3;
        Specified by:
        getModelHintBytes in interface TextExtractionModelMetadataOrBuilder
        Returns:
        The bytes for modelHint.
      • setModelHint

        public TextExtractionModelMetadata.Builder setModelHint​(String value)
         Indicates the scope of model use case.
        
         * `default`: Use to train a general text extraction model. Default value.
        
         * `health_care`: Use to train a text extraction model that is tuned for
           healthcare applications.
         
        string model_hint = 3;
        Parameters:
        value - The modelHint to set.
        Returns:
        This builder for chaining.
      • clearModelHint

        public TextExtractionModelMetadata.Builder clearModelHint()
         Indicates the scope of model use case.
        
         * `default`: Use to train a general text extraction model. Default value.
        
         * `health_care`: Use to train a text extraction model that is tuned for
           healthcare applications.
         
        string model_hint = 3;
        Returns:
        This builder for chaining.
      • setModelHintBytes

        public TextExtractionModelMetadata.Builder setModelHintBytes​(com.google.protobuf.ByteString value)
         Indicates the scope of model use case.
        
         * `default`: Use to train a general text extraction model. Default value.
        
         * `health_care`: Use to train a text extraction model that is tuned for
           healthcare applications.
         
        string model_hint = 3;
        Parameters:
        value - The bytes for modelHint to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

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