nominal_api_proto/proto/
nominal.events.v1.rs1#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct Event {
4 #[prost(oneof = "event::EventType", tags = "1, 2")]
5 pub event_type: ::core::option::Option<event::EventType>,
6}
7pub mod event {
9 #[derive(Clone, PartialEq, ::prost::Oneof)]
10 pub enum EventType {
11 #[prost(message, tag = "1")]
12 DataStream(super::DataStreamEvent),
13 #[prost(message, tag = "2")]
14 FileIngest(super::FileIngestEvent),
15 }
16}
17#[derive(Clone, PartialEq, ::prost::Message)]
18pub struct DataStreamEvent {
19 #[prost(message, repeated, tag = "1")]
20 pub write_batches_request: ::prost::alloc::vec::Vec<
21 super::super::direct_channel_writer::v2::InternalWriteBatchesRequest,
22 >,
23 #[prost(message, optional, tag = "2")]
24 pub event_timestamp: ::core::option::Option<super::super::types::time::Timestamp>,
25}
26#[derive(Clone, PartialEq, ::prost::Message)]
27pub struct FileIngestEvent {
28 #[prost(string, tag = "1")]
29 pub dataset_rid: ::prost::alloc::string::String,
30 #[prost(string, tag = "2")]
31 pub file_id: ::prost::alloc::string::String,
32 #[prost(message, optional, tag = "3")]
33 pub event_timestamp: ::core::option::Option<super::super::types::time::Timestamp>,
34 #[prost(bytes = "vec", tag = "4")]
35 pub ingest_request: ::prost::alloc::vec::Vec<u8>,
36}