Struct google_api_proto::google::cloud::aiplatform::v1::schema::predict::prediction::VideoClassificationPredictionResult
source · pub struct VideoClassificationPredictionResult {
pub id: String,
pub display_name: String,
pub type: String,
pub time_segment_start: Option<Duration>,
pub time_segment_end: Option<Duration>,
pub confidence: Option<f32>,
}
Expand description
Prediction output format for Video Classification.
Fields§
§id: String
The resource ID of the AnnotationSpec that had been identified.
display_name: String
The display name of the AnnotationSpec that had been identified.
type: String
The type of the prediction. The requested types can be configured via parameters. This will be one of
- segment-classification
- shot-classification
- one-sec-interval-classification
time_segment_start: Option<Duration>
The beginning, inclusive, of the video’s time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with “s” appended at the end. Note that for ‘segment-classification’ prediction type, this equals the original ‘timeSegmentStart’ from the input instance, for other types it is the start of a shot or a 1 second interval respectively.
time_segment_end: Option<Duration>
The end, exclusive, of the video’s time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with “s” appended at the end. Note that for ‘segment-classification’ prediction type, this equals the original ‘timeSegmentEnd’ from the input instance, for other types it is the end of a shot or a 1 second interval respectively.
confidence: Option<f32>
The Model’s confidence in correction of this prediction, higher value means higher confidence.
Trait Implementations§
source§impl Clone for VideoClassificationPredictionResult
impl Clone for VideoClassificationPredictionResult
source§fn clone(&self) -> VideoClassificationPredictionResult
fn clone(&self) -> VideoClassificationPredictionResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for VideoClassificationPredictionResult
impl Message for VideoClassificationPredictionResult
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 VideoClassificationPredictionResult
impl PartialEq for VideoClassificationPredictionResult
source§fn eq(&self, other: &VideoClassificationPredictionResult) -> bool
fn eq(&self, other: &VideoClassificationPredictionResult) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VideoClassificationPredictionResult
Auto Trait Implementations§
impl Freeze for VideoClassificationPredictionResult
impl RefUnwindSafe for VideoClassificationPredictionResult
impl Send for VideoClassificationPredictionResult
impl Sync for VideoClassificationPredictionResult
impl Unpin for VideoClassificationPredictionResult
impl UnwindSafe for VideoClassificationPredictionResult
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