nominal-api-proto 0.1484.0

Protobuf/gRPC API bindings for the Nominal platform
Documentation
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Segment {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub video_rid: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "3")]
    pub dataset_file_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "4")]
    pub data_handle: ::core::option::Option<super::super::types::Handle>,
    #[prost(double, tag = "5")]
    pub frame_rate: f64,
    #[prost(double, tag = "6")]
    pub duration_seconds: f64,
    #[prost(message, optional, tag = "7")]
    pub frame_timestamps: ::core::option::Option<FrameTimestamps>,
    #[prost(message, optional, tag = "8")]
    pub end_timestamp: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FrameTimestamps {
    #[prost(double, repeated, packed = "false", tag = "1")]
    pub media_timestamps_seconds: ::prost::alloc::vec::Vec<f64>,
    #[prost(message, repeated, tag = "2")]
    pub absolute_timestamps: ::prost::alloc::vec::Vec<
        super::super::super::google::protobuf::Timestamp,
    >,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum VideoError {
    InvalidRequest = 0,
}
impl VideoError {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::InvalidRequest => "VIDEO_ERROR_INVALID_REQUEST",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "VIDEO_ERROR_INVALID_REQUEST" => Some(Self::InvalidRequest),
            _ => None,
        }
    }
}