#![allow(rustdoc::bare_urls)]
#![allow(rustdoc::broken_intra_doc_links)]
#![allow(rustdoc::invalid_html_tags)]
#![allow(rustdoc::redundant_explicit_links)]
#![no_implicit_prelude]
extern crate bytes;
extern crate serde;
extern crate serde_json;
extern crate serde_with;
extern crate std;
extern crate wkt;
mod debug;
mod deserialize;
mod serialize;
#[derive(Clone, Default, PartialEq)]
#[non_exhaustive]
pub struct ImageClassificationPredictionParams {
pub confidence_threshold: f32,
pub max_predictions: i32,
pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
}
impl ImageClassificationPredictionParams {
pub fn new() -> Self {
std::default::Default::default()
}
pub fn set_confidence_threshold<T: std::convert::Into<f32>>(mut self, v: T) -> Self {
self.confidence_threshold = v.into();
self
}
pub fn set_max_predictions<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
self.max_predictions = v.into();
self
}
}
impl wkt::message::Message for ImageClassificationPredictionParams {
fn typename() -> &'static str {
"type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams"
}
}
#[derive(Clone, Default, PartialEq)]
#[non_exhaustive]
pub struct ImageObjectDetectionPredictionParams {
pub confidence_threshold: f32,
pub max_predictions: i32,
pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
}
impl ImageObjectDetectionPredictionParams {
pub fn new() -> Self {
std::default::Default::default()
}
pub fn set_confidence_threshold<T: std::convert::Into<f32>>(mut self, v: T) -> Self {
self.confidence_threshold = v.into();
self
}
pub fn set_max_predictions<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
self.max_predictions = v.into();
self
}
}
impl wkt::message::Message for ImageObjectDetectionPredictionParams {
fn typename() -> &'static str {
"type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams"
}
}
#[derive(Clone, Default, PartialEq)]
#[non_exhaustive]
pub struct ImageSegmentationPredictionParams {
pub confidence_threshold: f32,
pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
}
impl ImageSegmentationPredictionParams {
pub fn new() -> Self {
std::default::Default::default()
}
pub fn set_confidence_threshold<T: std::convert::Into<f32>>(mut self, v: T) -> Self {
self.confidence_threshold = v.into();
self
}
}
impl wkt::message::Message for ImageSegmentationPredictionParams {
fn typename() -> &'static str {
"type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams"
}
}
#[derive(Clone, Default, PartialEq)]
#[non_exhaustive]
pub struct VideoActionRecognitionPredictionParams {
pub confidence_threshold: f32,
pub max_predictions: i32,
pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
}
impl VideoActionRecognitionPredictionParams {
pub fn new() -> Self {
std::default::Default::default()
}
pub fn set_confidence_threshold<T: std::convert::Into<f32>>(mut self, v: T) -> Self {
self.confidence_threshold = v.into();
self
}
pub fn set_max_predictions<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
self.max_predictions = v.into();
self
}
}
impl wkt::message::Message for VideoActionRecognitionPredictionParams {
fn typename() -> &'static str {
"type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams"
}
}
#[derive(Clone, Default, PartialEq)]
#[non_exhaustive]
pub struct VideoClassificationPredictionParams {
pub confidence_threshold: f32,
pub max_predictions: i32,
pub segment_classification: bool,
pub shot_classification: bool,
pub one_sec_interval_classification: bool,
pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
}
impl VideoClassificationPredictionParams {
pub fn new() -> Self {
std::default::Default::default()
}
pub fn set_confidence_threshold<T: std::convert::Into<f32>>(mut self, v: T) -> Self {
self.confidence_threshold = v.into();
self
}
pub fn set_max_predictions<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
self.max_predictions = v.into();
self
}
pub fn set_segment_classification<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
self.segment_classification = v.into();
self
}
pub fn set_shot_classification<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
self.shot_classification = v.into();
self
}
pub fn set_one_sec_interval_classification<T: std::convert::Into<bool>>(
mut self,
v: T,
) -> Self {
self.one_sec_interval_classification = v.into();
self
}
}
impl wkt::message::Message for VideoClassificationPredictionParams {
fn typename() -> &'static str {
"type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams"
}
}
#[derive(Clone, Default, PartialEq)]
#[non_exhaustive]
pub struct VideoObjectTrackingPredictionParams {
pub confidence_threshold: f32,
pub max_predictions: i32,
pub min_bounding_box_size: f32,
pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
}
impl VideoObjectTrackingPredictionParams {
pub fn new() -> Self {
std::default::Default::default()
}
pub fn set_confidence_threshold<T: std::convert::Into<f32>>(mut self, v: T) -> Self {
self.confidence_threshold = v.into();
self
}
pub fn set_max_predictions<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
self.max_predictions = v.into();
self
}
pub fn set_min_bounding_box_size<T: std::convert::Into<f32>>(mut self, v: T) -> Self {
self.min_bounding_box_size = v.into();
self
}
}
impl wkt::message::Message for VideoObjectTrackingPredictionParams {
fn typename() -> &'static str {
"type.googleapis.com/google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams"
}
}