megacommerce-proto 0.3.69

Generated gRPC protobuf definitions for MegaCommerce
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
// This file is @generated by prost-build.
/// Generated client implementations.
pub mod uploader_service_client {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    #[derive(Debug, Clone)]
    pub struct UploaderServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl UploaderServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> UploaderServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::Body>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> UploaderServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::Body>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::Body>,
            >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
        {
            UploaderServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
    }
}
/// Generated server implementations.
pub mod uploader_service_server {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    /// Generated trait containing gRPC methods that should be implemented for use with UploaderServiceServer.
    #[async_trait]
    pub trait UploaderService: std::marker::Send + std::marker::Sync + 'static {}
    #[derive(Debug)]
    pub struct UploaderServiceServer<T> {
        inner: Arc<T>,
        accept_compression_encodings: EnabledCompressionEncodings,
        send_compression_encodings: EnabledCompressionEncodings,
        max_decoding_message_size: Option<usize>,
        max_encoding_message_size: Option<usize>,
    }
    impl<T> UploaderServiceServer<T> {
        pub fn new(inner: T) -> Self {
            Self::from_arc(Arc::new(inner))
        }
        pub fn from_arc(inner: Arc<T>) -> Self {
            Self {
                inner,
                accept_compression_encodings: Default::default(),
                send_compression_encodings: Default::default(),
                max_decoding_message_size: None,
                max_encoding_message_size: None,
            }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> InterceptedService<Self, F>
        where
            F: tonic::service::Interceptor,
        {
            InterceptedService::new(Self::new(inner), interceptor)
        }
        /// Enable decompressing requests with the given encoding.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.accept_compression_encodings.enable(encoding);
            self
        }
        /// Compress responses with the given encoding, if the client supports it.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.send_compression_encodings.enable(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.max_decoding_message_size = Some(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.max_encoding_message_size = Some(limit);
            self
        }
    }
    impl<T, B> tonic::codegen::Service<http::Request<B>> for UploaderServiceServer<T>
    where
        T: UploaderService,
        B: Body + std::marker::Send + 'static,
        B::Error: Into<StdError> + std::marker::Send + 'static,
    {
        type Response = http::Response<tonic::body::Body>;
        type Error = std::convert::Infallible;
        type Future = BoxFuture<Self::Response, Self::Error>;
        fn poll_ready(
            &mut self,
            _cx: &mut Context<'_>,
        ) -> Poll<std::result::Result<(), Self::Error>> {
            Poll::Ready(Ok(()))
        }
        fn call(&mut self, req: http::Request<B>) -> Self::Future {
            match req.uri().path() {
                _ => {
                    Box::pin(async move {
                        let mut response = http::Response::new(
                            tonic::body::Body::default(),
                        );
                        let headers = response.headers_mut();
                        headers
                            .insert(
                                tonic::Status::GRPC_STATUS,
                                (tonic::Code::Unimplemented as i32).into(),
                            );
                        headers
                            .insert(
                                http::header::CONTENT_TYPE,
                                tonic::metadata::GRPC_CONTENT_TYPE,
                            );
                        Ok(response)
                    })
                }
            }
        }
    }
    impl<T> Clone for UploaderServiceServer<T> {
        fn clone(&self) -> Self {
            let inner = self.inner.clone();
            Self {
                inner,
                accept_compression_encodings: self.accept_compression_encodings,
                send_compression_encodings: self.send_compression_encodings,
                max_decoding_message_size: self.max_decoding_message_size,
                max_encoding_message_size: self.max_encoding_message_size,
            }
        }
    }
    /// Generated gRPC service name
    pub const SERVICE_NAME: &str = "uploader.v1.UploaderService";
    impl<T> tonic::server::NamedService for UploaderServiceServer<T> {
        const NAME: &'static str = SERVICE_NAME;
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataStorageOptions {
    /// Rustus storage type.
    ///
    /// Storages are used to store uploads.
    ///
    /// NOTE: Rust default is `default_storage()` -> FileStorage. Apply this default if field absent.
    #[prost(enumeration = "AvailableDataStorages", tag = "1")]
    pub storage: i32,
    /// Rustus data directory
    ///
    /// This directory is used to store files for all `file_storage` storages.
    /// PathBuf in Rust -> string path here.
    ///
    /// NOTE: Rust default is `./data`.
    #[prost(string, tag = "2")]
    pub data_dir: ::prost::alloc::string::String,
    /// Storage directory structure. This template shows inner directory structure.
    /// You can use following variables: day, month, year or even environment variables.
    /// Example: "/year/month/day/env\[HOSTNAME\]/".
    #[prost(string, tag = "3")]
    pub dir_structure: ::prost::alloc::string::String,
    /// Forces fsync call after writing chunk to filesystem. Useful for network filesystems.
    #[prost(bool, tag = "4")]
    pub force_fsync: bool,
    /// S3 bucket to upload files to.
    ///
    /// This parameter is required for s3-based storages.
    #[prost(string, optional, tag = "10")]
    pub s3_bucket: ::core::option::Option<::prost::alloc::string::String>,
    /// S3 region.
    ///
    /// This parameter is required for s3-based storages.
    #[prost(string, optional, tag = "11")]
    pub s3_region: ::core::option::Option<::prost::alloc::string::String>,
    /// S3 access key.
    ///
    /// This parameter is required for s3-based storages.
    #[prost(string, optional, tag = "12")]
    pub s3_access_key: ::core::option::Option<::prost::alloc::string::String>,
    /// S3 access key path.
    ///
    /// path to file that has s3-access-key inside.
    ///
    /// This parameter is used for s3-based storages.
    #[prost(string, optional, tag = "13")]
    pub s3_access_key_path: ::core::option::Option<::prost::alloc::string::String>,
    /// S3 secret key.
    ///
    /// This parameter is required for s3-based storages.
    #[prost(string, optional, tag = "14")]
    pub s3_secret_key: ::core::option::Option<::prost::alloc::string::String>,
    /// S3 secret key path.
    ///
    /// path to file that has s3-secret-key inside.
    ///
    /// This parameter is required for s3-based storages.
    #[prost(string, optional, tag = "15")]
    pub s3_secret_key_path: ::core::option::Option<::prost::alloc::string::String>,
    /// S3 URL.
    ///
    /// This parameter is required for s3-based storages.
    #[prost(string, optional, tag = "16")]
    pub s3_url: ::core::option::Option<::prost::alloc::string::String>,
    /// S3 force path style.
    ///
    /// This parameter is required for some s3-based storages (e.g. MinIO).
    #[prost(bool, tag = "17")]
    pub s3_force_path_style: bool,
    /// S3 security token.
    ///
    /// This parameter is used for temporary credentials.
    #[prost(string, optional, tag = "18")]
    pub s3_security_token: ::core::option::Option<::prost::alloc::string::String>,
    /// S3 session token.
    #[prost(string, optional, tag = "19")]
    pub s3_session_token: ::core::option::Option<::prost::alloc::string::String>,
    /// S3 profile.
    #[prost(string, optional, tag = "20")]
    pub s3_profile: ::core::option::Option<::prost::alloc::string::String>,
    /// Additional S3 headers. These headers are passed to every request to s3.
    /// Useful for configuring ACLs.
    #[prost(string, optional, tag = "21")]
    pub s3_headers: ::core::option::Option<::prost::alloc::string::String>,
    /// Number of concurrent downloads of partial files from S3.
    /// When performing concatenation, Rustus downloads all partial files
    /// from S3 and concatenates them into a single file.
    ///
    /// This parameter controls the number of concurrent downloads.
    ///
    /// NOTE: Rust default = 10
    #[prost(uint32, tag = "22")]
    pub s3_concat_concurrent_downloads: u32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InfoStoreOptions {
    /// / Type of info storage.
    /// /
    /// / Info storages are used to store information about uploads.
    /// /
    /// / This information is used in HEAD requests.
    ///
    /// NOTE: Rust default = Files
    #[prost(enumeration = "AvailableInfoStorages", tag = "1")]
    pub info_storage: i32,
    /// / Rustus info directory
    /// /
    /// / This directory is used to store .info files for `file_info_storage`.
    ///
    /// NOTE: Rust default = "./data"
    #[prost(string, tag = "2")]
    pub info_dir: ::prost::alloc::string::String,
    /// / Connection string for remote info storages.
    /// /
    /// / This connection string is used for storages which require connection.
    /// / Examples of such storages are `Postgres`, `MySQL` or `Redis`.
    /// /
    /// / Value must include all connection details.
    #[prost(string, optional, tag = "3")]
    pub info_db_dsn: ::core::option::Option<::prost::alloc::string::String>,
    /// redis_info_expiration: Option<usize> in Rust -> optional uint64 here
    #[prost(uint64, optional, tag = "4")]
    pub redis_info_expiration: ::core::option::Option<u64>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AmqpHooksOptions {
    /// / Url for AMQP server.
    #[prost(string, optional, tag = "1")]
    pub url: ::core::option::Option<::prost::alloc::string::String>,
    /// / Rustus will create exchange if enabled.
    #[prost(bool, tag = "2")]
    pub declare_exchange: bool,
    /// / Rustus will create all queues for communication and bind them
    /// / to exchange if enabled.
    #[prost(bool, tag = "3")]
    pub declare_queues: bool,
    /// / Durability type of exchange.
    #[prost(bool, tag = "4")]
    pub durable_exchange: bool,
    /// / Durability type of queues.
    #[prost(bool, tag = "5")]
    pub durable_queues: bool,
    /// / Adds celery specific headers.
    #[prost(bool, tag = "6")]
    pub celery: bool,
    /// / Name of amqp exchange.
    ///
    /// default "rustus" in Rust
    #[prost(string, tag = "10")]
    pub exchange: ::prost::alloc::string::String,
    /// / Exchange kind.
    ///
    /// default "topic" in Rust
    #[prost(string, tag = "11")]
    pub exchange_kind: ::prost::alloc::string::String,
    /// / Routing key to use when sending message to an exchange.
    #[prost(string, optional, tag = "12")]
    pub routing_key: ::core::option::Option<::prost::alloc::string::String>,
    /// / Prefix for all AMQP queues.
    ///
    /// default "rustus" in Rust
    #[prost(string, tag = "13")]
    pub queues_prefix: ::prost::alloc::string::String,
    /// / Maximum number of connections for `RabbitMQ`.
    ///
    /// default 10
    #[prost(uint64, tag = "14")]
    pub connection_pool_size: u64,
    /// / Maximum number of opened channels for each connection.
    ///
    /// default 10
    #[prost(uint64, tag = "15")]
    pub channel_pool_size: u64,
    /// / After this amount of time the connection will be dropped.
    #[prost(uint64, optional, tag = "16")]
    pub idle_connection_timeout: ::core::option::Option<u64>,
    /// / After this amount of time in seconds, the channel will be closed.
    #[prost(uint64, optional, tag = "17")]
    pub idle_channels_timeout: ::core::option::Option<u64>,
    /// / Declares all objects with auto-delete property set.
    #[prost(bool, tag = "18")]
    pub auto_delete: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KafkaHookOptions {
    /// / Kafka urls.
    /// / List of brokers to connect to in the format `host:port`.
    /// / If you have multiple brokers, separate them with commas.
    /// / Corresponds to `bootstrap.servers` in Kafka configuration.
    #[prost(string, optional, tag = "1")]
    pub urls: ::core::option::Option<::prost::alloc::string::String>,
    /// / Kafka producer client.id.
    #[prost(string, optional, tag = "2")]
    pub client_id: ::core::option::Option<::prost::alloc::string::String>,
    /// / Kafka required acks.
    #[prost(string, optional, tag = "5")]
    pub required_acks: ::core::option::Option<::prost::alloc::string::String>,
    /// / Compression codec.
    #[prost(string, optional, tag = "6")]
    pub compression: ::core::option::Option<::prost::alloc::string::String>,
    /// / Kafka idle timeout in seconds.
    #[prost(uint64, optional, tag = "7")]
    pub idle_timeout: ::core::option::Option<u64>,
    /// / Kafka send timeout in seconds.
    #[prost(uint64, optional, tag = "8")]
    pub send_timeout: ::core::option::Option<u64>,
    /// / Extra options for Kafka.
    /// / In Rust this is ExtraKafkaOptions; here it's a map of strings.
    #[prost(map = "string, string", tag = "20")]
    pub extra_kafka_opts: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Mutual exclusion: topic OR prefix (Rust validate enforces this).
    #[prost(oneof = "kafka_hook_options::TopicOrPrefix", tags = "3, 4")]
    pub topic_or_prefix: ::core::option::Option<kafka_hook_options::TopicOrPrefix>,
}
/// Nested message and enum types in `KafkaHookOptions`.
pub mod kafka_hook_options {
    /// Mutual exclusion: topic OR prefix (Rust validate enforces this).
    #[derive(serde::Serialize, serde::Deserialize)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum TopicOrPrefix {
        #[prost(string, tag = "3")]
        Topic(::prost::alloc::string::String),
        #[prost(string, tag = "4")]
        Prefix(::prost::alloc::string::String),
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NatsHookOptions {
    /// / List of URLs to connect to NATS. Commas are used as delimiters.
    #[prost(string, repeated, tag = "1")]
    pub urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// / Wait for replies from NATS.
    #[prost(bool, tag = "4")]
    pub wait_for_replies: bool,
    /// / NATS user to connect to the server.
    #[prost(string, optional, tag = "10")]
    pub username: ::core::option::Option<::prost::alloc::string::String>,
    /// / NATS password to connect to the server.
    #[prost(string, optional, tag = "11")]
    pub password: ::core::option::Option<::prost::alloc::string::String>,
    /// / NATS token to connect to the server.
    #[prost(string, optional, tag = "12")]
    pub token: ::core::option::Option<::prost::alloc::string::String>,
    /// Mutual exclusion: subject OR prefix (Rust validate enforces this).
    #[prost(oneof = "nats_hook_options::SubjectOrPrefix", tags = "2, 3")]
    pub subject_or_prefix: ::core::option::Option<nats_hook_options::SubjectOrPrefix>,
}
/// Nested message and enum types in `NatsHookOptions`.
pub mod nats_hook_options {
    /// Mutual exclusion: subject OR prefix (Rust validate enforces this).
    #[derive(serde::Serialize, serde::Deserialize)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum SubjectOrPrefix {
        #[prost(string, tag = "2")]
        Subject(::prost::alloc::string::String),
        #[prost(string, tag = "3")]
        Prefix(::prost::alloc::string::String),
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotificationsOptions {
    /// / Notifications format.
    /// /
    /// / This format will be used in all messages about hooks.
    ///
    /// default Format::Default in Rust
    #[prost(enumeration = "Format", tag = "1")]
    pub hooks_format: i32,
    /// / Enabled hooks for notifications.
    ///
    /// default set in Rust (pre-create, post-create, ...)
    #[prost(enumeration = "Hook", repeated, tag = "2")]
    pub hooks: ::prost::alloc::vec::Vec<i32>,
    /// / Use this option if you use rustus behind any proxy. Like Nginx or Traefik.
    #[prost(bool, tag = "3")]
    pub behind_proxy: bool,
    /// / List of URLS to send webhooks to.
    #[prost(string, repeated, tag = "4")]
    pub hooks_http_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// / Timeout for all HTTP requests in seconds.
    #[prost(uint64, optional, tag = "5")]
    pub http_hook_timeout: ::core::option::Option<u64>,
    /// List of headers to forward from client.
    #[prost(string, repeated, tag = "6")]
    pub hooks_http_proxy_headers: ::prost::alloc::vec::Vec<
        ::prost::alloc::string::String,
    >,
    /// / Directory for executable hook files.
    #[prost(string, optional, tag = "10")]
    pub hooks_dir: ::core::option::Option<::prost::alloc::string::String>,
    /// / Executable file which must be called for notifying about upload status.
    #[prost(string, optional, tag = "11")]
    pub hooks_file: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "20")]
    pub amqp_hook_opts: ::core::option::Option<AmqpHooksOptions>,
    #[prost(message, optional, tag = "21")]
    pub kafka_hook_opts: ::core::option::Option<KafkaHookOptions>,
    #[prost(message, optional, tag = "22")]
    pub nats_hook_opts: ::core::option::Option<NatsHookOptions>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SentryOptions {
    #[prost(string, optional, tag = "1")]
    pub dsn: ::core::option::Option<::prost::alloc::string::String>,
    /// sample_rate: f32 in Rust -> float here (no presence tracking for float in proto3
    /// unless you use wrapper; we keep it as scalar and document default)
    ///
    /// Rust default = 1.0; consumers should apply if zero/absent
    #[prost(float, tag = "2")]
    pub sample_rate: f32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RustusConf {
    /// / Rustus server host
    #[prost(string, tag = "1")]
    pub host: ::prost::alloc::string::String,
    /// / Rustus server port
    #[prost(uint32, tag = "2")]
    pub port: u32,
    #[prost(bool, tag = "3")]
    pub disable_health_access_log: bool,
    /// / Rustus base API url
    #[prost(string, tag = "4")]
    pub url: ::prost::alloc::string::String,
    /// / Allowed hosts for CORS protocol.
    #[prost(string, repeated, tag = "10")]
    pub cors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// / Maximum payload size.
    #[prost(uint64, tag = "11")]
    pub max_body_size: u64,
    /// / Rustus maximum log level (string; maps to log::LevelFilter in Rust)
    #[prost(string, tag = "12")]
    pub log_level: ::prost::alloc::string::String,
    /// / Number of actix workers (optional: None -> auto)
    #[prost(uint64, optional, tag = "13")]
    pub workers: ::core::option::Option<u64>,
    /// / Enabled extensions for TUS protocol.
    #[prost(enumeration = "Extension", repeated, tag = "14")]
    pub tus_extensions: ::prost::alloc::vec::Vec<i32>,
    /// / Allow creation of empty files when Upload-Length header equals 0.
    #[prost(bool, tag = "15")]
    pub allow_empty: bool,
    /// / Remove part files after concatenation is done.
    #[prost(bool, tag = "16")]
    pub remove_parts: bool,
    /// / Maximum size of file that can be uploaded. Optional -> presence matters.
    #[prost(uint64, optional, tag = "17")]
    pub max_file_size: ::core::option::Option<u64>,
    /// Nested option messages
    #[prost(message, optional, tag = "20")]
    pub storage_opts: ::core::option::Option<DataStorageOptions>,
    #[prost(message, optional, tag = "21")]
    pub info_storage_opts: ::core::option::Option<InfoStoreOptions>,
    #[prost(message, optional, tag = "22")]
    pub notification_opts: ::core::option::Option<NotificationsOptions>,
    #[prost(message, optional, tag = "23")]
    pub sentry_opts: ::core::option::Option<SentryOptions>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AvailableDataStorages {
    Unspecified = 0,
    FileStorage = 1,
    S3 = 2,
    HybridS3 = 3,
}
impl AvailableDataStorages {
    /// 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::Unspecified => "AVAILABLE_DATA_STORAGES_UNSPECIFIED",
            Self::FileStorage => "FILE_STORAGE",
            Self::S3 => "S3",
            Self::HybridS3 => "HYBRID_S3",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "AVAILABLE_DATA_STORAGES_UNSPECIFIED" => Some(Self::Unspecified),
            "FILE_STORAGE" => Some(Self::FileStorage),
            "S3" => Some(Self::S3),
            "HYBRID_S3" => Some(Self::HybridS3),
            _ => None,
        }
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AvailableInfoStorages {
    Unspecified = 0,
    Files = 1,
    Redis = 2,
    Postgres = 3,
}
impl AvailableInfoStorages {
    /// 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::Unspecified => "AVAILABLE_INFO_STORAGES_UNSPECIFIED",
            Self::Files => "FILES",
            Self::Redis => "REDIS",
            Self::Postgres => "POSTGRES",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "AVAILABLE_INFO_STORAGES_UNSPECIFIED" => Some(Self::Unspecified),
            "FILES" => Some(Self::Files),
            "REDIS" => Some(Self::Redis),
            "POSTGRES" => Some(Self::Postgres),
            _ => None,
        }
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Hook {
    Unspecified = 0,
    PreCreate = 1,
    PostCreate = 2,
    PostReceive = 3,
    PreTerminate = 4,
    PostTerminate = 5,
    PostFinish = 6,
}
impl Hook {
    /// 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::Unspecified => "HOOK_UNSPECIFIED",
            Self::PreCreate => "PRE_CREATE",
            Self::PostCreate => "POST_CREATE",
            Self::PostReceive => "POST_RECEIVE",
            Self::PreTerminate => "PRE_TERMINATE",
            Self::PostTerminate => "POST_TERMINATE",
            Self::PostFinish => "POST_FINISH",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "HOOK_UNSPECIFIED" => Some(Self::Unspecified),
            "PRE_CREATE" => Some(Self::PreCreate),
            "POST_CREATE" => Some(Self::PostCreate),
            "POST_RECEIVE" => Some(Self::PostReceive),
            "PRE_TERMINATE" => Some(Self::PreTerminate),
            "POST_TERMINATE" => Some(Self::PostTerminate),
            "POST_FINISH" => Some(Self::PostFinish),
            _ => None,
        }
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Format {
    Unspecified = 0,
    Default = 1,
    V2 = 2,
}
impl Format {
    /// 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::Unspecified => "FORMAT_UNSPECIFIED",
            Self::Default => "DEFAULT",
            Self::V2 => "V2",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "FORMAT_UNSPECIFIED" => Some(Self::Unspecified),
            "DEFAULT" => Some(Self::Default),
            "V2" => Some(Self::V2),
            _ => None,
        }
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Extension {
    Unspecified = 0,
    Getting = 1,
    Creation = 2,
    CreationWithUpload = 3,
    CreationDeferLength = 4,
    Termination = 5,
    Concatenation = 6,
    Checksum = 7,
}
impl Extension {
    /// 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::Unspecified => "EXTENSION_UNSPECIFIED",
            Self::Getting => "GETTING",
            Self::Creation => "CREATION",
            Self::CreationWithUpload => "CREATION_WITH_UPLOAD",
            Self::CreationDeferLength => "CREATION_DEFER_LENGTH",
            Self::Termination => "TERMINATION",
            Self::Concatenation => "CONCATENATION",
            Self::Checksum => "CHECKSUM",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "EXTENSION_UNSPECIFIED" => Some(Self::Unspecified),
            "GETTING" => Some(Self::Getting),
            "CREATION" => Some(Self::Creation),
            "CREATION_WITH_UPLOAD" => Some(Self::CreationWithUpload),
            "CREATION_DEFER_LENGTH" => Some(Self::CreationDeferLength),
            "TERMINATION" => Some(Self::Termination),
            "CONCATENATION" => Some(Self::Concatenation),
            "CHECKSUM" => Some(Self::Checksum),
            _ => None,
        }
    }
}