All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.api.HitOrBuilder Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

public interface HitOrBuilder extends
    // @@protoc_insertion_point(interface_extends:clarifai.api.Hit)
    com.google.protobuf.MessageOrBuilder {

  /**
   * 
   * This is the score for the ranked Hit results of the search query. This score is a number
   * between 0.0 and 1.0 as it represents a confidence in the search Hit. For example, if you search
   * for "car" and get a close matching Hit, the score should be close to 1.0. If you get a score
   * of close to 0.0 that means it's very disimilar to your query, in this case NOT a "car". There
   * is a special intermediate score of 0.5 that means that the Hit is not really correlated with
   * your search query (ie. not similar or dissimlar to the query) which is a common occurrence
   * when using negate queries.
   * Note: some queries that are just filtering down your app of inputs may just return a score of
   * 1.0 for all Hits.
   * 
* * float score = 1 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The score. */ float getScore(); /** *
   * This is the matched input returned from the search query. This will contain information about
   * the Input such as the url, created_at time and trusted annotation information (for backwards
   * compatibility with apps that existed before Annotations were introduced.
   * 
* * .clarifai.api.Input input = 2; * @return Whether the input field is set. */ boolean hasInput(); /** *
   * This is the matched input returned from the search query. This will contain information about
   * the Input such as the url, created_at time and trusted annotation information (for backwards
   * compatibility with apps that existed before Annotations were introduced.
   * 
* * .clarifai.api.Input input = 2; * @return The input. */ com.clarifai.grpc.api.Input getInput(); /** *
   * This is the matched input returned from the search query. This will contain information about
   * the Input such as the url, created_at time and trusted annotation information (for backwards
   * compatibility with apps that existed before Annotations were introduced.
   * 
* * .clarifai.api.Input input = 2; */ com.clarifai.grpc.api.InputOrBuilder getInputOrBuilder(); /** *
   * We also provide back the specific matched annotation for the above input. We do this in order
   * to support more complex Annotation queries in the And message below. For example if we match
   * the search results to a region in your input, or a frame in a video input, this annotation
   * field will be that matched annotation info and the input will be the image/video that the user
   * originally added which contains those regions / frames.
   * 
* * .clarifai.api.Annotation annotation = 3; * @return Whether the annotation field is set. */ boolean hasAnnotation(); /** *
   * We also provide back the specific matched annotation for the above input. We do this in order
   * to support more complex Annotation queries in the And message below. For example if we match
   * the search results to a region in your input, or a frame in a video input, this annotation
   * field will be that matched annotation info and the input will be the image/video that the user
   * originally added which contains those regions / frames.
   * 
* * .clarifai.api.Annotation annotation = 3; * @return The annotation. */ com.clarifai.grpc.api.Annotation getAnnotation(); /** *
   * We also provide back the specific matched annotation for the above input. We do this in order
   * to support more complex Annotation queries in the And message below. For example if we match
   * the search results to a region in your input, or a frame in a video input, this annotation
   * field will be that matched annotation info and the input will be the image/video that the user
   * originally added which contains those regions / frames.
   * 
* * .clarifai.api.Annotation annotation = 3; */ com.clarifai.grpc.api.AnnotationOrBuilder getAnnotationOrBuilder(); /** *
   * The customer-facing id of the user who owns the app the asset came from.
   * 
* * string user_id = 4; * @return The userId. */ java.lang.String getUserId(); /** *
   * The customer-facing id of the user who owns the app the asset came from.
   * 
* * string user_id = 4; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** *
   * The cfid of the app the asset came from.
   * 
* * string app_id = 5; * @return The appId. */ java.lang.String getAppId(); /** *
   * The cfid of the app the asset came from.
   * 
* * string app_id = 5; * @return The bytes for appId. */ com.google.protobuf.ByteString getAppIdBytes(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy