Struct google_api_proto::google::cloud::automl::v1beta1::PredictRequest
source · pub struct PredictRequest {
pub name: String,
pub payload: Option<ExamplePayload>,
pub params: BTreeMap<String, String>,
}
Expand description
Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
Fields§
§name: String
Required. Name of the model requested to serve the prediction.
payload: Option<ExamplePayload>
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.
params: BTreeMap<String, String>
Additional domain-specific parameters, any string must be up to 25000 characters long.
-
For Image Classification:
score_threshold
- (float) A value from 0.0 to 1.0. When the model makes predictions for an image, it will only produce results that have at least this confidence score. The default is 0.5. -
For Image Object Detection:
score_threshold
- (float) When Model detects objects on the image, it will only produce bounding boxes which have at least this confidence score. Value in 0 to 1 range, default is 0.5.max_bounding_box_count
- (int64) No more than this number of bounding boxes will be returned in the response. Default is 100, the requested value may be limited by server. -
For Tables: feature_importance - (boolean) Whether feature importance should be populated in the returned TablesAnnotation. The default is false.
Trait Implementations§
source§impl Clone for PredictRequest
impl Clone for PredictRequest
source§fn clone(&self) -> PredictRequest
fn clone(&self) -> PredictRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PredictRequest
impl Debug for PredictRequest
source§impl Default for PredictRequest
impl Default for PredictRequest
source§impl Message for PredictRequest
impl Message for PredictRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for PredictRequest
impl PartialEq for PredictRequest
source§fn eq(&self, other: &PredictRequest) -> bool
fn eq(&self, other: &PredictRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PredictRequest
Auto Trait Implementations§
impl !Freeze for PredictRequest
impl RefUnwindSafe for PredictRequest
impl Send for PredictRequest
impl Sync for PredictRequest
impl Unpin for PredictRequest
impl UnwindSafe for PredictRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request