Interface SimilaritiesResponseOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.protobuf.Struct getExtras()
      Implementation-specific information can be encoded here
      com.google.protobuf.StructOrBuilder getExtrasOrBuilder()
      Implementation-specific information can be encoded here
      double getSimilarities​(int index)
      List of similarities ordered just like the original `text_tuples`.
      int getSimilaritiesCount()
      List of similarities ordered just like the original `text_tuples`.
      java.util.List<java.lang.Double> getSimilaritiesList()
      List of similarities ordered just like the original `text_tuples`.
      boolean hasExtras()
      Implementation-specific information can be encoded here
      • 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

      • getSimilaritiesList

        java.util.List<java.lang.Double> getSimilaritiesList()
         List of similarities ordered just like the original `text_tuples`.
         
        repeated double similarities = 1 [json_name = "similarities"];
        Returns:
        A list containing the similarities.
      • getSimilaritiesCount

        int getSimilaritiesCount()
         List of similarities ordered just like the original `text_tuples`.
         
        repeated double similarities = 1 [json_name = "similarities"];
        Returns:
        The count of similarities.
      • getSimilarities

        double getSimilarities​(int index)
         List of similarities ordered just like the original `text_tuples`.
         
        repeated double similarities = 1 [json_name = "similarities"];
        Parameters:
        index - The index of the element to return.
        Returns:
        The similarities at the given index.
      • hasExtras

        boolean hasExtras()
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
        Returns:
        Whether the extras field is set.
      • getExtras

        com.google.protobuf.Struct getExtras()
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
        Returns:
        The extras.
      • getExtrasOrBuilder

        com.google.protobuf.StructOrBuilder getExtrasOrBuilder()
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];