[][src]Struct gcp_client::google::cloud::automl::v1::PredictResponse

pub struct PredictResponse {
    pub payload: Vec<AnnotationPayload>,
    pub preprocessed_input: Option<ExamplePayload>,
    pub metadata: HashMap<String, String>,
}

Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].

Fields

payload: Vec<AnnotationPayload>

Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.

preprocessed_input: Option<ExamplePayload>

The preprocessed example that AutoML actually makes prediction on. Empty if AutoML does not preprocess the input example.

For AutoML Natural Language (Classification, Entity Extraction, and Sentiment Analysis), if the input is a document, the recognized text is returned in the [document_text][google.cloud.automl.v1.Document.document_text] property.

metadata: HashMap<String, String>

Additional domain-specific prediction response metadata.

AutoML Vision Object Detection

max_bounding_box_count : (int64) The maximum number of bounding boxes to return per image.

AutoML Natural Language Sentiment Analysis

sentiment_score : (float, deprecated) A value between -1 and 1, -1 maps to least positive sentiment, while 1 maps to the most positive one and the higher the score, the more positive the sentiment in the document is. Yet these values are relative to the training data, so e.g. if all data was positive then -1 is also positive (though the least). sentiment_score is not the same as "score" and "magnitude" from Sentiment Analysis in the Natural Language API.

Trait Implementations

impl Clone for PredictResponse[src]

impl Debug for PredictResponse[src]

impl Default for PredictResponse[src]

impl Message for PredictResponse[src]

impl PartialEq<PredictResponse> for PredictResponse[src]

impl StructuralPartialEq for PredictResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]