Interface SearchExamplesResponse.SimilarExampleOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SearchExamplesResponse.SimilarExample, SearchExamplesResponse.SimilarExample.Builder
Enclosing class:
SearchExamplesResponse

public static interface SearchExamplesResponse.SimilarExampleOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The example that is similar to the searched query.
    The example that is similar to the searched query.
    float
    The similarity score of this example.
    boolean
    The example that is similar to the searched query.

    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 Details

    • hasExample

      boolean hasExample()
       The example that is similar to the searched query.
       
      .google.cloud.aiplatform.v1beta1.Example example = 1;
      Returns:
      Whether the example field is set.
    • getExample

      Example getExample()
       The example that is similar to the searched query.
       
      .google.cloud.aiplatform.v1beta1.Example example = 1;
      Returns:
      The example.
    • getExampleOrBuilder

      ExampleOrBuilder getExampleOrBuilder()
       The example that is similar to the searched query.
       
      .google.cloud.aiplatform.v1beta1.Example example = 1;
    • getSimilarityScore

      float getSimilarityScore()
       The similarity score of this example.
       
      float similarity_score = 2;
      Returns:
      The similarityScore.