Interface Document.LabelOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Document.Label, Document.Label.Builder
    Enclosing class:
    Document

    public static interface Document.LabelOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getAutomlModel()
      Label is generated AutoML model.
      com.google.protobuf.ByteString getAutomlModelBytes()
      Label is generated AutoML model.
      float getConfidence()
      Confidence score between 0 and 1 for label assignment.
      String getName()
      Name of the label.
      com.google.protobuf.ByteString getNameBytes()
      Name of the label.
      Document.Label.SourceCase getSourceCase()  
      boolean hasAutomlModel()
      Label is generated AutoML model.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasAutomlModel

        boolean hasAutomlModel()
         Label is generated AutoML model. This field stores the full resource
         name of the AutoML model.
        
         Format:
         `projects/{project-id}/locations/{location-id}/models/{model-id}`
         
        string automl_model = 2;
        Returns:
        Whether the automlModel field is set.
      • getAutomlModel

        String getAutomlModel()
         Label is generated AutoML model. This field stores the full resource
         name of the AutoML model.
        
         Format:
         `projects/{project-id}/locations/{location-id}/models/{model-id}`
         
        string automl_model = 2;
        Returns:
        The automlModel.
      • getAutomlModelBytes

        com.google.protobuf.ByteString getAutomlModelBytes()
         Label is generated AutoML model. This field stores the full resource
         name of the AutoML model.
        
         Format:
         `projects/{project-id}/locations/{location-id}/models/{model-id}`
         
        string automl_model = 2;
        Returns:
        The bytes for automlModel.
      • getName

        String getName()
         Name of the label.
        
         When the label is generated from AutoML Text Classification model, this
         field represents the name of the category.
         
        string name = 1;
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Name of the label.
        
         When the label is generated from AutoML Text Classification model, this
         field represents the name of the category.
         
        string name = 1;
        Returns:
        The bytes for name.
      • getConfidence

        float getConfidence()
         Confidence score between 0 and 1 for label assignment.
         
        float confidence = 3;
        Returns:
        The confidence.