Interface SentimentDataOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    SentimentData, SentimentData.Builder

    public interface SentimentDataOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      float getMagnitude()
      A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score.
      float getScore()
      The sentiment score between -1.0 (negative) and 1.0 (positive).
      • 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

      • getMagnitude

        float getMagnitude()
         A non-negative number from 0 to infinity which represents the abolute
         magnitude of sentiment regardless of score.
         
        float magnitude = 1;
        Returns:
        The magnitude.
      • getScore

        float getScore()
         The sentiment score between -1.0 (negative) and 1.0 (positive).
         
        float score = 2;
        Returns:
        The score.