#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamAnnotation {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub source_stream: ::prost::alloc::string::String,
#[prost(enumeration = "StreamAnnotationType", tag = "4")]
pub r#type: i32,
#[prost(oneof = "stream_annotation::AnnotationPayload", tags = "5, 6")]
pub annotation_payload: ::core::option::Option<stream_annotation::AnnotationPayload>,
}
pub mod stream_annotation {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum AnnotationPayload {
#[prost(message, tag = "5")]
ActiveZone(super::NormalizedPolygon),
#[prost(message, tag = "6")]
CrossingLine(super::NormalizedPolyline),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NormalizedPolygon {
#[prost(message, repeated, tag = "1")]
pub normalized_vertices: ::prost::alloc::vec::Vec<NormalizedVertex>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NormalizedPolyline {
#[prost(message, repeated, tag = "1")]
pub normalized_vertices: ::prost::alloc::vec::Vec<NormalizedVertex>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NormalizedVertex {
#[prost(float, tag = "1")]
pub x: f32,
#[prost(float, tag = "2")]
pub y: f32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Cluster {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub create_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(map = "string, string", tag = "4")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(map = "string, string", tag = "5")]
pub annotations: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "6")]
pub dataplane_service_endpoint: ::prost::alloc::string::String,
#[prost(enumeration = "cluster::State", tag = "7")]
pub state: i32,
#[prost(string, tag = "8")]
pub psc_target: ::prost::alloc::string::String,
}
pub mod cluster {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
Unspecified = 0,
Provisioning = 1,
Running = 2,
Stopping = 3,
Error = 4,
}
impl State {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "STATE_UNSPECIFIED",
Self::Provisioning => "PROVISIONING",
Self::Running => "RUNNING",
Self::Stopping => "STOPPING",
Self::Error => "ERROR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"PROVISIONING" => Some(Self::Provisioning),
"RUNNING" => Some(Self::Running),
"STOPPING" => Some(Self::Stopping),
"ERROR" => Some(Self::Error),
_ => None,
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GcsSource {
#[prost(string, repeated, tag = "1")]
pub uris: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttributeValue {
#[prost(oneof = "attribute_value::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<attribute_value::Value>,
}
pub mod attribute_value {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(int64, tag = "1")]
I(i64),
#[prost(float, tag = "2")]
F(f32),
#[prost(bool, tag = "3")]
B(bool),
#[prost(bytes, tag = "4")]
S(::prost::alloc::vec::Vec<u8>),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnalyzerDefinition {
#[prost(string, tag = "1")]
pub analyzer: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub operator: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub inputs: ::prost::alloc::vec::Vec<analyzer_definition::StreamInput>,
#[prost(map = "string, message", tag = "4")]
pub attrs: ::std::collections::HashMap<
::prost::alloc::string::String,
AttributeValue,
>,
#[prost(message, optional, tag = "5")]
pub debug_options: ::core::option::Option<analyzer_definition::DebugOptions>,
}
pub mod analyzer_definition {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamInput {
#[prost(string, tag = "1")]
pub input: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DebugOptions {
#[prost(map = "string, string", tag = "1")]
pub environment_variables: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnalysisDefinition {
#[prost(message, repeated, tag = "1")]
pub analyzers: ::prost::alloc::vec::Vec<AnalyzerDefinition>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunStatus {
#[prost(enumeration = "run_status::State", tag = "1")]
pub state: i32,
#[prost(string, tag = "2")]
pub reason: ::prost::alloc::string::String,
}
pub mod run_status {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
Unspecified = 0,
Initializing = 1,
Running = 2,
Completed = 3,
Failed = 4,
Pending = 5,
}
impl State {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "STATE_UNSPECIFIED",
Self::Initializing => "INITIALIZING",
Self::Running => "RUNNING",
Self::Completed => "COMPLETED",
Self::Failed => "FAILED",
Self::Pending => "PENDING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"INITIALIZING" => Some(Self::Initializing),
"RUNNING" => Some(Self::Running),
"COMPLETED" => Some(Self::Completed),
"FAILED" => Some(Self::Failed),
"PENDING" => Some(Self::Pending),
_ => None,
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Analysis {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub create_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(map = "string, string", tag = "4")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(message, optional, tag = "5")]
pub analysis_definition: ::core::option::Option<AnalysisDefinition>,
#[prost(map = "string, string", tag = "6")]
pub input_streams_mapping: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(map = "string, string", tag = "7")]
pub output_streams_mapping: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(bool, tag = "8")]
pub disable_event_watch: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Process {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub create_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(string, tag = "4")]
pub analysis: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "5")]
pub attribute_overrides: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "6")]
pub run_status: ::core::option::Option<RunStatus>,
#[prost(enumeration = "RunMode", tag = "7")]
pub run_mode: i32,
#[prost(string, tag = "8")]
pub event_id: ::prost::alloc::string::String,
#[prost(string, tag = "9")]
pub batch_id: ::prost::alloc::string::String,
#[prost(int32, tag = "10")]
pub retry_count: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Application {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub create_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(map = "string, string", tag = "4")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "5")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub description: ::prost::alloc::string::String,
#[prost(message, optional, tag = "7")]
pub application_configs: ::core::option::Option<ApplicationConfigs>,
#[prost(message, optional, tag = "8")]
pub runtime_info: ::core::option::Option<application::ApplicationRuntimeInfo>,
#[prost(enumeration = "application::State", tag = "9")]
pub state: i32,
#[prost(enumeration = "application::BillingMode", tag = "12")]
pub billing_mode: i32,
}
pub mod application {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplicationRuntimeInfo {
#[prost(message, optional, tag = "1")]
pub deploy_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, repeated, tag = "3")]
pub global_output_resources: ::prost::alloc::vec::Vec<
application_runtime_info::GlobalOutputResource,
>,
#[prost(message, optional, tag = "4")]
pub monitoring_config: ::core::option::Option<
application_runtime_info::MonitoringConfig,
>,
}
pub mod application_runtime_info {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GlobalOutputResource {
#[prost(string, tag = "1")]
pub output_resource: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub producer_node: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub key: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MonitoringConfig {
#[prost(bool, tag = "1")]
pub enabled: bool,
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
Unspecified = 0,
Created = 1,
Deploying = 2,
Deployed = 3,
Undeploying = 4,
Deleted = 5,
Error = 6,
Creating = 7,
Updating = 8,
Deleting = 9,
Fixing = 10,
}
impl State {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "STATE_UNSPECIFIED",
Self::Created => "CREATED",
Self::Deploying => "DEPLOYING",
Self::Deployed => "DEPLOYED",
Self::Undeploying => "UNDEPLOYING",
Self::Deleted => "DELETED",
Self::Error => "ERROR",
Self::Creating => "CREATING",
Self::Updating => "UPDATING",
Self::Deleting => "DELETING",
Self::Fixing => "FIXING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATED" => Some(Self::Created),
"DEPLOYING" => Some(Self::Deploying),
"DEPLOYED" => Some(Self::Deployed),
"UNDEPLOYING" => Some(Self::Undeploying),
"DELETED" => Some(Self::Deleted),
"ERROR" => Some(Self::Error),
"CREATING" => Some(Self::Creating),
"UPDATING" => Some(Self::Updating),
"DELETING" => Some(Self::Deleting),
"FIXING" => Some(Self::Fixing),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum BillingMode {
Unspecified = 0,
Payg = 1,
Monthly = 2,
}
impl BillingMode {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "BILLING_MODE_UNSPECIFIED",
Self::Payg => "PAYG",
Self::Monthly => "MONTHLY",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"BILLING_MODE_UNSPECIFIED" => Some(Self::Unspecified),
"PAYG" => Some(Self::Payg),
"MONTHLY" => Some(Self::Monthly),
_ => None,
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplicationConfigs {
#[prost(message, repeated, tag = "1")]
pub nodes: ::prost::alloc::vec::Vec<Node>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Node {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub node_config: ::core::option::Option<ProcessorConfig>,
#[prost(string, tag = "4")]
pub processor: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "5")]
pub parents: ::prost::alloc::vec::Vec<node::InputEdge>,
#[prost(oneof = "node::StreamOutputConfig", tags = "6")]
pub stream_output_config: ::core::option::Option<node::StreamOutputConfig>,
}
pub mod node {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InputEdge {
#[prost(string, tag = "1")]
pub parent_node: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub parent_output_channel: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub connected_input_channel: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum StreamOutputConfig {
#[prost(bool, tag = "6")]
OutputAllOutputChannelsToStream(bool),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Draft {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub create_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag = "7")]
pub update_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(map = "string, string", tag = "3")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "4")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub description: ::prost::alloc::string::String,
#[prost(message, optional, tag = "6")]
pub draft_application_configs: ::core::option::Option<ApplicationConfigs>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Processor {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub create_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(map = "string, string", tag = "4")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "5")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "10")]
pub description: ::prost::alloc::string::String,
#[prost(enumeration = "processor::ProcessorType", tag = "6")]
pub processor_type: i32,
#[prost(enumeration = "ModelType", tag = "13")]
pub model_type: i32,
#[prost(message, optional, tag = "7")]
pub custom_processor_source_info: ::core::option::Option<CustomProcessorSourceInfo>,
#[prost(enumeration = "processor::ProcessorState", tag = "8")]
pub state: i32,
#[prost(message, optional, tag = "11")]
pub processor_io_spec: ::core::option::Option<ProcessorIoSpec>,
#[prost(string, tag = "14")]
pub configuration_typeurl: ::prost::alloc::string::String,
#[prost(enumeration = "StreamAnnotationType", repeated, tag = "15")]
pub supported_annotation_types: ::prost::alloc::vec::Vec<i32>,
#[prost(bool, tag = "17")]
pub supports_post_processing: bool,
}
pub mod processor {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProcessorType {
Unspecified = 0,
Pretrained = 1,
Custom = 2,
Connector = 3,
}
impl ProcessorType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "PROCESSOR_TYPE_UNSPECIFIED",
Self::Pretrained => "PRETRAINED",
Self::Custom => "CUSTOM",
Self::Connector => "CONNECTOR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PROCESSOR_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"PRETRAINED" => Some(Self::Pretrained),
"CUSTOM" => Some(Self::Custom),
"CONNECTOR" => Some(Self::Connector),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ProcessorState {
Unspecified = 0,
Creating = 1,
Active = 2,
Deleting = 3,
Failed = 4,
}
impl ProcessorState {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "PROCESSOR_STATE_UNSPECIFIED",
Self::Creating => "CREATING",
Self::Active => "ACTIVE",
Self::Deleting => "DELETING",
Self::Failed => "FAILED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PROCESSOR_STATE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATING" => Some(Self::Creating),
"ACTIVE" => Some(Self::Active),
"DELETING" => Some(Self::Deleting),
"FAILED" => Some(Self::Failed),
_ => None,
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessorIoSpec {
#[prost(message, repeated, tag = "3")]
pub graph_input_channel_specs: ::prost::alloc::vec::Vec<
processor_io_spec::GraphInputChannelSpec,
>,
#[prost(message, repeated, tag = "4")]
pub graph_output_channel_specs: ::prost::alloc::vec::Vec<
processor_io_spec::GraphOutputChannelSpec,
>,
#[prost(message, repeated, tag = "5")]
pub instance_resource_input_binding_specs: ::prost::alloc::vec::Vec<
processor_io_spec::InstanceResourceInputBindingSpec,
>,
#[prost(message, repeated, tag = "6")]
pub instance_resource_output_binding_specs: ::prost::alloc::vec::Vec<
processor_io_spec::InstanceResourceOutputBindingSpec,
>,
}
pub mod processor_io_spec {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GraphInputChannelSpec {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration = "super::DataType", tag = "2")]
pub data_type: i32,
#[prost(string, repeated, tag = "5")]
pub accepted_data_type_uris: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
#[prost(bool, tag = "3")]
pub required: bool,
#[prost(int64, tag = "4")]
pub max_connection_allowed: i64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GraphOutputChannelSpec {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration = "super::DataType", tag = "2")]
pub data_type: i32,
#[prost(string, tag = "3")]
pub data_type_uri: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceResourceInputBindingSpec {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(
oneof = "instance_resource_input_binding_spec::ResourceType",
tags = "2, 3"
)]
pub resource_type: ::core::option::Option<
instance_resource_input_binding_spec::ResourceType,
>,
}
pub mod instance_resource_input_binding_spec {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ResourceType {
#[prost(string, tag = "2")]
ConfigTypeUri(::prost::alloc::string::String),
#[prost(string, tag = "3")]
ResourceTypeUri(::prost::alloc::string::String),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceResourceOutputBindingSpec {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub resource_type_uri: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub explicit: bool,
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomProcessorSourceInfo {
#[prost(enumeration = "custom_processor_source_info::SourceType", tag = "1")]
pub source_type: i32,
#[prost(map = "string, string", tag = "4")]
pub additional_info: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(message, optional, tag = "5")]
pub model_schema: ::core::option::Option<custom_processor_source_info::ModelSchema>,
#[prost(oneof = "custom_processor_source_info::ArtifactPath", tags = "2")]
pub artifact_path: ::core::option::Option<
custom_processor_source_info::ArtifactPath,
>,
}
pub mod custom_processor_source_info {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModelSchema {
#[prost(message, optional, tag = "1")]
pub instances_schema: ::core::option::Option<super::GcsSource>,
#[prost(message, optional, tag = "2")]
pub parameters_schema: ::core::option::Option<super::GcsSource>,
#[prost(message, optional, tag = "3")]
pub predictions_schema: ::core::option::Option<super::GcsSource>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SourceType {
Unspecified = 0,
VertexAutoml = 1,
VertexCustom = 2,
ProductRecognizer = 3,
}
impl SourceType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SOURCE_TYPE_UNSPECIFIED",
Self::VertexAutoml => "VERTEX_AUTOML",
Self::VertexCustom => "VERTEX_CUSTOM",
Self::ProductRecognizer => "PRODUCT_RECOGNIZER",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"VERTEX_AUTOML" => Some(Self::VertexAutoml),
"VERTEX_CUSTOM" => Some(Self::VertexCustom),
"PRODUCT_RECOGNIZER" => Some(Self::ProductRecognizer),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ArtifactPath {
#[prost(string, tag = "2")]
VertexModel(::prost::alloc::string::String),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessorConfig {
#[prost(
oneof = "processor_config::ProcessorConfig",
tags = "9, 20, 10, 11, 12, 15, 13, 14, 17, 18, 19, 22"
)]
pub processor_config: ::core::option::Option<processor_config::ProcessorConfig>,
}
pub mod processor_config {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ProcessorConfig {
#[prost(message, tag = "9")]
VideoStreamInputConfig(super::VideoStreamInputConfig),
#[prost(message, tag = "20")]
AiEnabledDevicesInputConfig(super::AiEnabledDevicesInputConfig),
#[prost(message, tag = "10")]
MediaWarehouseConfig(super::MediaWarehouseConfig),
#[prost(message, tag = "11")]
PersonBlurConfig(super::PersonBlurConfig),
#[prost(message, tag = "12")]
OccupancyCountConfig(super::OccupancyCountConfig),
#[prost(message, tag = "15")]
PersonVehicleDetectionConfig(super::PersonVehicleDetectionConfig),
#[prost(message, tag = "13")]
VertexAutomlVisionConfig(super::VertexAutoMlVisionConfig),
#[prost(message, tag = "14")]
VertexAutomlVideoConfig(super::VertexAutoMlVideoConfig),
#[prost(message, tag = "17")]
VertexCustomConfig(super::VertexCustomConfig),
#[prost(message, tag = "18")]
GeneralObjectDetectionConfig(super::GeneralObjectDetectionConfig),
#[prost(message, tag = "19")]
BigQueryConfig(super::BigQueryConfig),
#[prost(message, tag = "22")]
PersonalProtectiveEquipmentDetectionConfig(
super::PersonalProtectiveEquipmentDetectionConfig,
),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamWithAnnotation {
#[prost(string, tag = "1")]
pub stream: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub application_annotations: ::prost::alloc::vec::Vec<StreamAnnotation>,
#[prost(message, repeated, tag = "3")]
pub node_annotations: ::prost::alloc::vec::Vec<
stream_with_annotation::NodeAnnotation,
>,
}
pub mod stream_with_annotation {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeAnnotation {
#[prost(string, tag = "1")]
pub node: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub annotations: ::prost::alloc::vec::Vec<super::StreamAnnotation>,
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoStreamInputConfig {
#[prost(string, repeated, tag = "1")]
pub streams: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "2")]
pub streams_with_annotation: ::prost::alloc::vec::Vec<StreamWithAnnotation>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AiEnabledDevicesInputConfig {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MediaWarehouseConfig {
#[prost(string, tag = "1")]
pub corpus: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub region: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub ttl: ::core::option::Option<::pbjson_types::Duration>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PersonBlurConfig {
#[prost(enumeration = "person_blur_config::PersonBlurType", tag = "1")]
pub person_blur_type: i32,
#[prost(bool, tag = "2")]
pub faces_only: bool,
}
pub mod person_blur_config {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PersonBlurType {
Unspecified = 0,
FullOcculusion = 1,
BlurFilter = 2,
}
impl PersonBlurType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "PERSON_BLUR_TYPE_UNSPECIFIED",
Self::FullOcculusion => "FULL_OCCULUSION",
Self::BlurFilter => "BLUR_FILTER",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PERSON_BLUR_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"FULL_OCCULUSION" => Some(Self::FullOcculusion),
"BLUR_FILTER" => Some(Self::BlurFilter),
_ => None,
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OccupancyCountConfig {
#[prost(bool, tag = "1")]
pub enable_people_counting: bool,
#[prost(bool, tag = "2")]
pub enable_vehicle_counting: bool,
#[prost(bool, tag = "3")]
pub enable_dwelling_time_tracking: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PersonVehicleDetectionConfig {
#[prost(bool, tag = "1")]
pub enable_people_counting: bool,
#[prost(bool, tag = "2")]
pub enable_vehicle_counting: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PersonalProtectiveEquipmentDetectionConfig {
#[prost(bool, tag = "1")]
pub enable_face_coverage_detection: bool,
#[prost(bool, tag = "2")]
pub enable_head_coverage_detection: bool,
#[prost(bool, tag = "3")]
pub enable_hands_coverage_detection: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GeneralObjectDetectionConfig {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BigQueryConfig {
#[prost(string, tag = "1")]
pub table: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "2")]
pub cloud_function_mapping: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(bool, tag = "3")]
pub create_default_table_if_not_exists: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct VertexAutoMlVisionConfig {
#[prost(float, tag = "1")]
pub confidence_threshold: f32,
#[prost(int32, tag = "2")]
pub max_predictions: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VertexAutoMlVideoConfig {
#[prost(float, tag = "1")]
pub confidence_threshold: f32,
#[prost(string, repeated, tag = "2")]
pub blocked_labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(int32, tag = "3")]
pub max_predictions: i32,
#[prost(float, tag = "4")]
pub bounding_box_size_limit: f32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VertexCustomConfig {
#[prost(int32, tag = "1")]
pub max_prediction_fps: i32,
#[prost(message, optional, tag = "2")]
pub dedicated_resources: ::core::option::Option<DedicatedResources>,
#[prost(string, tag = "3")]
pub post_processing_cloud_function: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub attach_application_metadata: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MachineSpec {
#[prost(string, tag = "1")]
pub machine_type: ::prost::alloc::string::String,
#[prost(enumeration = "AcceleratorType", tag = "2")]
pub accelerator_type: i32,
#[prost(int32, tag = "3")]
pub accelerator_count: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoscalingMetricSpec {
#[prost(string, tag = "1")]
pub metric_name: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub target: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DedicatedResources {
#[prost(message, optional, tag = "1")]
pub machine_spec: ::core::option::Option<MachineSpec>,
#[prost(int32, tag = "2")]
pub min_replica_count: i32,
#[prost(int32, tag = "3")]
pub max_replica_count: i32,
#[prost(message, repeated, tag = "4")]
pub autoscaling_metric_specs: ::prost::alloc::vec::Vec<AutoscalingMetricSpec>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Stream {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub create_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(map = "string, string", tag = "4")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(map = "string, string", tag = "5")]
pub annotations: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "6")]
pub display_name: ::prost::alloc::string::String,
#[prost(bool, tag = "7")]
pub enable_hls_playback: bool,
#[prost(string, tag = "8")]
pub media_warehouse_asset: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub create_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(map = "string, string", tag = "4")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(map = "string, string", tag = "5")]
pub annotations: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(enumeration = "event::Clock", tag = "6")]
pub alignment_clock: i32,
#[prost(message, optional, tag = "7")]
pub grace_period: ::core::option::Option<::pbjson_types::Duration>,
}
pub mod event {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Clock {
Unspecified = 0,
Capture = 1,
Ingest = 2,
}
impl Clock {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "CLOCK_UNSPECIFIED",
Self::Capture => "CAPTURE",
Self::Ingest => "INGEST",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CLOCK_UNSPECIFIED" => Some(Self::Unspecified),
"CAPTURE" => Some(Self::Capture),
"INGEST" => Some(Self::Ingest),
_ => None,
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Series {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub create_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(map = "string, string", tag = "4")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(map = "string, string", tag = "5")]
pub annotations: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "6")]
pub stream: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub event: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SeriesEventData {
#[prost(message, optional, tag = "1")]
pub payload: ::core::option::Option<Series>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DraftEventData {
#[prost(message, optional, tag = "1")]
pub payload: ::core::option::Option<Draft>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessorEventData {
#[prost(message, optional, tag = "1")]
pub payload: ::core::option::Option<Processor>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnalysisEventData {
#[prost(message, optional, tag = "1")]
pub payload: ::core::option::Option<Analysis>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterEventData {
#[prost(message, optional, tag = "1")]
pub payload: ::core::option::Option<Cluster>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventEventData {
#[prost(message, optional, tag = "1")]
pub payload: ::core::option::Option<Event>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessEventData {
#[prost(message, optional, tag = "1")]
pub payload: ::core::option::Option<Process>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamEventData {
#[prost(message, optional, tag = "1")]
pub payload: ::core::option::Option<Stream>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplicationEventData {
#[prost(message, optional, tag = "1")]
pub payload: ::core::option::Option<Application>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum StreamAnnotationType {
Unspecified = 0,
ActiveZone = 1,
CrossingLine = 2,
}
impl StreamAnnotationType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "STREAM_ANNOTATION_TYPE_UNSPECIFIED",
Self::ActiveZone => "STREAM_ANNOTATION_TYPE_ACTIVE_ZONE",
Self::CrossingLine => "STREAM_ANNOTATION_TYPE_CROSSING_LINE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STREAM_ANNOTATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"STREAM_ANNOTATION_TYPE_ACTIVE_ZONE" => Some(Self::ActiveZone),
"STREAM_ANNOTATION_TYPE_CROSSING_LINE" => Some(Self::CrossingLine),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum RunMode {
Unspecified = 0,
Live = 1,
Submission = 2,
}
impl RunMode {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "RUN_MODE_UNSPECIFIED",
Self::Live => "LIVE",
Self::Submission => "SUBMISSION",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"RUN_MODE_UNSPECIFIED" => Some(Self::Unspecified),
"LIVE" => Some(Self::Live),
"SUBMISSION" => Some(Self::Submission),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ModelType {
Unspecified = 0,
ImageClassification = 1,
ObjectDetection = 2,
VideoClassification = 3,
VideoObjectTracking = 4,
VideoActionRecognition = 5,
OccupancyCounting = 6,
PersonBlur = 7,
VertexCustom = 8,
}
impl ModelType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "MODEL_TYPE_UNSPECIFIED",
Self::ImageClassification => "IMAGE_CLASSIFICATION",
Self::ObjectDetection => "OBJECT_DETECTION",
Self::VideoClassification => "VIDEO_CLASSIFICATION",
Self::VideoObjectTracking => "VIDEO_OBJECT_TRACKING",
Self::VideoActionRecognition => "VIDEO_ACTION_RECOGNITION",
Self::OccupancyCounting => "OCCUPANCY_COUNTING",
Self::PersonBlur => "PERSON_BLUR",
Self::VertexCustom => "VERTEX_CUSTOM",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MODEL_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"IMAGE_CLASSIFICATION" => Some(Self::ImageClassification),
"OBJECT_DETECTION" => Some(Self::ObjectDetection),
"VIDEO_CLASSIFICATION" => Some(Self::VideoClassification),
"VIDEO_OBJECT_TRACKING" => Some(Self::VideoObjectTracking),
"VIDEO_ACTION_RECOGNITION" => Some(Self::VideoActionRecognition),
"OCCUPANCY_COUNTING" => Some(Self::OccupancyCounting),
"PERSON_BLUR" => Some(Self::PersonBlur),
"VERTEX_CUSTOM" => Some(Self::VertexCustom),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AcceleratorType {
Unspecified = 0,
NvidiaTeslaK80 = 1,
NvidiaTeslaP100 = 2,
NvidiaTeslaV100 = 3,
NvidiaTeslaP4 = 4,
NvidiaTeslaT4 = 5,
NvidiaTeslaA100 = 8,
TpuV2 = 6,
TpuV3 = 7,
}
impl AcceleratorType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "ACCELERATOR_TYPE_UNSPECIFIED",
Self::NvidiaTeslaK80 => "NVIDIA_TESLA_K80",
Self::NvidiaTeslaP100 => "NVIDIA_TESLA_P100",
Self::NvidiaTeslaV100 => "NVIDIA_TESLA_V100",
Self::NvidiaTeslaP4 => "NVIDIA_TESLA_P4",
Self::NvidiaTeslaT4 => "NVIDIA_TESLA_T4",
Self::NvidiaTeslaA100 => "NVIDIA_TESLA_A100",
Self::TpuV2 => "TPU_V2",
Self::TpuV3 => "TPU_V3",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ACCELERATOR_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"NVIDIA_TESLA_K80" => Some(Self::NvidiaTeslaK80),
"NVIDIA_TESLA_P100" => Some(Self::NvidiaTeslaP100),
"NVIDIA_TESLA_V100" => Some(Self::NvidiaTeslaV100),
"NVIDIA_TESLA_P4" => Some(Self::NvidiaTeslaP4),
"NVIDIA_TESLA_T4" => Some(Self::NvidiaTeslaT4),
"NVIDIA_TESLA_A100" => Some(Self::NvidiaTeslaA100),
"TPU_V2" => Some(Self::TpuV2),
"TPU_V3" => Some(Self::TpuV3),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DataType {
Unspecified = 0,
Video = 1,
Image = 3,
Proto = 2,
}
impl DataType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "DATA_TYPE_UNSPECIFIED",
Self::Video => "VIDEO",
Self::Image => "IMAGE",
Self::Proto => "PROTO",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"VIDEO" => Some(Self::Video),
"IMAGE" => Some(Self::Image),
"PROTO" => Some(Self::Proto),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnalysisCreatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<AnalysisEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnalysisUpdatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<AnalysisEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnalysisDeletedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<AnalysisEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessCreatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ProcessEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessUpdatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ProcessEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessDeletedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ProcessEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplicationCreatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ApplicationEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplicationUpdatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ApplicationEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplicationDeletedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ApplicationEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DraftCreatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<DraftEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DraftUpdatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<DraftEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DraftDeletedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<DraftEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessorCreatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ProcessorEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessorUpdatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ProcessorEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessorDeletedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ProcessorEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterCreatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ClusterEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterUpdatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ClusterEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterDeletedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<ClusterEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamCreatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<StreamEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamUpdatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<StreamEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamDeletedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<StreamEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventCreatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<EventEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventUpdatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<EventEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventDeletedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<EventEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SeriesCreatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<SeriesEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SeriesUpdatedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<SeriesEventData>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(default)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SeriesDeletedEvent {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<SeriesEventData>,
}