Interface PhraseSet.PhraseOrBuilder

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

    public static interface PhraseSet.PhraseOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      float getBoost()
      Hint Boost.
      String getValue()
      The phrase itself.
      com.google.protobuf.ByteString getValueBytes()
      The phrase itself.
      • 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

      • getValue

        String getValue()
         The phrase itself.
         
        string value = 1;
        Returns:
        The value.
      • getValueBytes

        com.google.protobuf.ByteString getValueBytes()
         The phrase itself.
         
        string value = 1;
        Returns:
        The bytes for value.
      • getBoost

        float getBoost()
         Hint Boost. Overrides the boost set at the phrase set level.
         Positive value will increase the probability that a specific phrase will
         be recognized over other similar sounding phrases. The higher the boost,
         the higher the chance of false positive recognition as well. Negative
         boost values would correspond to anti-biasing. Anti-biasing is not
         enabled, so negative boost values will return an error. Boost values must
         be between 0 and 20. Any values outside that range will return an error.
         We recommend using a binary search approach to finding the optimal value
         for your use case as well as adding phrases both with and without boost
         to your requests.
         
        float boost = 2;
        Returns:
        The boost.