1#[allow(clippy::all)]
4#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5pub struct History {
6 #[prost(string, tag = "1")]
8 pub store: ::prost::alloc::string::String,
9 #[prost(string, tag = "2")]
11 pub epoch: ::prost::alloc::string::String,
12}
13#[allow(clippy::all)]
15#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
16pub struct Position {
17 #[prost(message, optional, tag = "1")]
19 pub history: ::core::option::Option<History>,
20 #[prost(uint64, tag = "2")]
22 pub sequence: u64,
23}
24#[allow(clippy::all)]
26#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
27pub struct ResourceRevision {
28 #[prost(string, tag = "1")]
30 pub name: ::prost::alloc::string::String,
31 #[prost(bytes = "vec", tag = "2")]
33 pub revision: ::prost::alloc::vec::Vec<u8>,
34}
35#[allow(clippy::all)]
37#[derive(Clone, PartialEq, ::prost::Message)]
38pub struct ReadCut {
39 #[prost(message, repeated, tag = "1")]
41 pub positions: ::prost::alloc::vec::Vec<Position>,
42 #[prost(message, repeated, tag = "2")]
44 pub revisions: ::prost::alloc::vec::Vec<ResourceRevision>,
45}
46#[allow(clippy::all)]
48#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
49pub struct InstanceState {
50 #[prost(string, tag = "1")]
51 pub phase: ::prost::alloc::string::String,
52 #[prost(string, tag = "2")]
53 pub outcome: ::prost::alloc::string::String,
54 #[prost(bool, tag = "3")]
55 pub cancellation_requested: bool,
56 #[prost(uint32, tag = "4")]
57 pub attempt: u32,
58}
59#[allow(clippy::all)]
61#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
62#[repr(i32)]
63pub enum Callers {
64 Unspecified = 0,
65 Clients = 1,
66 Plugins = 2,
67 All = 3,
68}
69impl Callers {
70 pub fn as_str_name(&self) -> &'static str {
75 match self {
76 Self::Unspecified => "CALLERS_UNSPECIFIED",
77 Self::Clients => "CLIENTS",
78 Self::Plugins => "PLUGINS",
79 Self::All => "ALL",
80 }
81 }
82 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
84 match value {
85 "CALLERS_UNSPECIFIED" => Some(Self::Unspecified),
86 "CLIENTS" => Some(Self::Clients),
87 "PLUGINS" => Some(Self::Plugins),
88 "ALL" => Some(Self::All),
89 _ => None,
90 }
91 }
92}
93#[allow(clippy::all)]
95#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
96pub struct OperationPolicy {
97 #[prost(message, optional, tag = "1")]
99 pub timeout: ::core::option::Option<::prost_types::Duration>,
100 #[prost(message, optional, tag = "2")]
102 pub attempt_timeout: ::core::option::Option<::prost_types::Duration>,
103 #[prost(message, optional, tag = "3")]
105 pub cancellation_timeout: ::core::option::Option<::prost_types::Duration>,
106 #[prost(message, optional, tag = "4")]
108 pub retries: ::core::option::Option<RetryPolicy>,
109}
110#[allow(clippy::all)]
112#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
113pub struct RetryPolicy {
114 #[prost(uint64, tag = "1")]
116 pub total_attempts: u64,
117 #[prost(message, optional, tag = "2")]
119 pub initial: ::core::option::Option<::prost_types::Duration>,
120 #[prost(message, optional, tag = "3")]
122 pub maximum: ::core::option::Option<::prost_types::Duration>,
123 #[prost(bool, tag = "4")]
125 pub deterministic_jitter: bool,
126}
127#[allow(clippy::all)]
129#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
130pub struct OperationContract {
131 #[prost(string, tag = "1")]
134 pub id: ::prost::alloc::string::String,
135 #[prost(string, tag = "2")]
137 pub request: ::prost::alloc::string::String,
138 #[prost(string, tag = "3")]
140 pub response: ::prost::alloc::string::String,
141 #[prost(enumeration = "Visibility", tag = "4")]
143 pub visibility: i32,
144 #[prost(message, optional, tag = "5")]
146 pub policy: ::core::option::Option<OperationPolicy>,
147 #[prost(bytes = "vec", tag = "6")]
149 pub fingerprint: ::prost::alloc::vec::Vec<u8>,
150 #[prost(string, tag = "7")]
151 pub description: ::prost::alloc::string::String,
152 #[prost(bool, tag = "8")]
154 pub replay_safe: bool,
155 #[prost(string, tag = "9")]
157 pub lane: ::prost::alloc::string::String,
158}
159#[allow(clippy::all)]
161#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
162pub struct Requirement {
163 #[prost(string, tag = "1")]
165 pub id: ::prost::alloc::string::String,
166 #[prost(bytes = "vec", tag = "2")]
168 pub fingerprint: ::prost::alloc::vec::Vec<u8>,
169}
170#[derive(serde::Serialize, serde::Deserialize)]
172#[allow(clippy::all)]
173#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
174pub struct Protobuf {
175 #[prost(bytes = "vec", tag = "1")]
177 pub descriptors: ::prost::alloc::vec::Vec<u8>,
178 #[prost(string, tag = "2")]
180 pub request: ::prost::alloc::string::String,
181 #[prost(string, tag = "3")]
183 pub response: ::prost::alloc::string::String,
184 #[prost(string, optional, tag = "4")]
186 pub input: ::core::option::Option<::prost::alloc::string::String>,
187 #[prost(string, optional, tag = "5")]
189 pub output: ::core::option::Option<::prost::alloc::string::String>,
190}
191#[allow(clippy::all)]
193#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
194pub struct Grpc {
195 #[prost(string, tag = "1")]
196 pub package: ::prost::alloc::string::String,
197 #[prost(string, tag = "2")]
198 pub service: ::prost::alloc::string::String,
199 #[prost(string, tag = "3")]
200 pub method: ::prost::alloc::string::String,
201 #[prost(bool, tag = "4")]
203 pub managed: bool,
204}
205#[allow(clippy::all)]
207#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
208pub struct Grant {
209 #[prost(string, tag = "1")]
211 pub operation: ::prost::alloc::string::String,
212 #[prost(string, optional, tag = "2")]
214 pub scope: ::core::option::Option<::prost::alloc::string::String>,
215}
216#[allow(clippy::all)]
218#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
219pub struct DiscoveredContract {
220 #[prost(string, tag = "1")]
222 pub id: ::prost::alloc::string::String,
223 #[prost(string, tag = "2")]
224 pub description: ::prost::alloc::string::String,
225 #[prost(enumeration = "Visibility", tag = "3")]
226 pub visibility: i32,
227 #[prost(message, optional, tag = "4")]
228 pub policy: ::core::option::Option<OperationPolicy>,
229 #[prost(bool, tag = "5")]
231 pub replay_safe: bool,
232 #[prost(bytes = "vec", tag = "6")]
234 pub fingerprint: ::prost::alloc::vec::Vec<u8>,
235 #[prost(message, optional, tag = "7")]
237 pub protobuf: ::core::option::Option<Protobuf>,
238 #[prost(message, optional, tag = "8")]
239 pub grpc: ::core::option::Option<Grpc>,
240 #[prost(enumeration = "Callers", tag = "9")]
242 pub callers: i32,
243}
244#[allow(clippy::all)]
246#[derive(Clone, PartialEq, ::prost::Message)]
247pub struct DiscoveredOperation {
248 #[prost(string, tag = "1")]
250 pub owner: ::prost::alloc::string::String,
251 #[prost(uint64, tag = "2")]
253 pub generation: u64,
254 #[prost(message, optional, tag = "3")]
255 pub contract: ::core::option::Option<DiscoveredContract>,
256 #[prost(message, repeated, tag = "4")]
257 pub grants: ::prost::alloc::vec::Vec<Grant>,
258 #[prost(bool, tag = "5")]
260 pub conditional_access: bool,
261 #[prost(bool, tag = "6")]
263 pub grpc_available: bool,
264}
265#[allow(clippy::all)]
267#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
268#[repr(i32)]
269pub enum Visibility {
270 Unspecified = 0,
271 Private = 1,
273 Public = 2,
275 Protected = 3,
277}
278impl Visibility {
279 pub fn as_str_name(&self) -> &'static str {
284 match self {
285 Self::Unspecified => "VISIBILITY_UNSPECIFIED",
286 Self::Private => "VISIBILITY_PRIVATE",
287 Self::Public => "VISIBILITY_PUBLIC",
288 Self::Protected => "VISIBILITY_PROTECTED",
289 }
290 }
291 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
293 match value {
294 "VISIBILITY_UNSPECIFIED" => Some(Self::Unspecified),
295 "VISIBILITY_PRIVATE" => Some(Self::Private),
296 "VISIBILITY_PUBLIC" => Some(Self::Public),
297 "VISIBILITY_PROTECTED" => Some(Self::Protected),
298 _ => None,
299 }
300 }
301}
302#[allow(clippy::all)]
304#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
305pub struct Receipt {
306 #[prost(string, tag = "1")]
308 pub request_id: ::prost::alloc::string::String,
309 #[prost(message, optional, tag = "2")]
311 pub accepted_at: ::core::option::Option<Position>,
312 #[prost(message, optional, tag = "3")]
314 pub durable_at: ::core::option::Option<Position>,
315 #[prost(bool, tag = "4")]
317 pub completed: bool,
318}
319#[allow(clippy::all)]
321#[derive(Clone, PartialEq, ::prost::Message)]
322pub struct SettingsDeclarations {
323 #[prost(message, repeated, tag = "1")]
324 pub values: ::prost::alloc::vec::Vec<SettingDeclaration>,
325}
326#[allow(clippy::all)]
328#[derive(Clone, PartialEq, ::prost::Message)]
329pub struct SettingDeclaration {
330 #[prost(string, tag = "1")]
331 pub name: ::prost::alloc::string::String,
332 #[prost(string, tag = "2")]
333 pub title: ::prost::alloc::string::String,
334 #[prost(string, tag = "3")]
335 pub description: ::prost::alloc::string::String,
336 #[prost(message, optional, tag = "4")]
338 pub default: ::core::option::Option<SettingValue>,
339 #[prost(message, optional, tag = "5")]
341 pub minimum: ::core::option::Option<SettingValue>,
342 #[prost(message, optional, tag = "6")]
344 pub maximum: ::core::option::Option<SettingValue>,
345 #[prost(message, repeated, tag = "7")]
347 pub choices: ::prost::alloc::vec::Vec<SettingValue>,
348 #[prost(bool, tag = "8")]
350 pub required: bool,
351}
352#[allow(clippy::all)]
354#[derive(Clone, PartialEq, ::prost::Message)]
355pub struct SettingValue {
356 #[prost(oneof = "setting_value::Value", tags = "1, 2, 3, 4, 5")]
357 pub value: ::core::option::Option<setting_value::Value>,
358}
359pub mod setting_value {
361 #[allow(clippy::all)]
362 #[derive(Clone, PartialEq, ::prost::Oneof)]
363 pub enum Value {
364 #[prost(bool, tag = "1")]
365 Flag(bool),
366 #[prost(int64, tag = "2")]
367 Integer(i64),
368 #[prost(double, tag = "3")]
369 Number(f64),
370 #[prost(string, tag = "4")]
371 Text(::prost::alloc::string::String),
372 #[prost(message, tag = "5")]
373 Duration(::prost_types::Duration),
374 }
375}
376#[allow(clippy::all)]
378#[derive(Clone, PartialEq, ::prost::Message)]
379pub struct SettingValues {
380 #[prost(map = "string, message", tag = "1")]
382 pub values: ::std::collections::HashMap<
383 ::prost::alloc::string::String,
384 SettingValue,
385 >,
386}
387#[allow(clippy::all)]
389#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
390pub struct StreamDeclaration {
391 #[prost(string, tag = "1")]
393 pub id: ::prost::alloc::string::String,
394 #[prost(string, tag = "2")]
396 pub row: ::prost::alloc::string::String,
397 #[prost(string, tag = "3")]
398 pub description: ::prost::alloc::string::String,
399 #[prost(message, optional, tag = "4")]
402 pub interval: ::core::option::Option<::prost_types::Duration>,
403 #[prost(string, tag = "5")]
405 pub interval_setting: ::prost::alloc::string::String,
406 #[prost(string, tag = "6")]
409 pub window_setting: ::prost::alloc::string::String,
410 #[prost(string, tag = "7")]
413 pub collection: ::prost::alloc::string::String,
414}
415#[allow(clippy::all)]
417#[derive(Clone, PartialEq, ::prost::Message)]
418pub struct Declarations {
419 #[prost(message, repeated, tag = "1")]
421 pub operations: ::prost::alloc::vec::Vec<OperationContract>,
422 #[prost(message, repeated, tag = "2")]
424 pub requires: ::prost::alloc::vec::Vec<Requirement>,
425 #[prost(message, repeated, tag = "3")]
427 pub streams: ::prost::alloc::vec::Vec<StreamDeclaration>,
428 #[prost(message, repeated, tag = "4")]
430 pub sections: ::prost::alloc::vec::Vec<Section>,
431 #[prost(bytes = "vec", tag = "5")]
433 pub digest: ::prost::alloc::vec::Vec<u8>,
434 #[prost(message, optional, tag = "6")]
436 pub types: ::core::option::Option<::prost_types::FileDescriptorSet>,
437 #[prost(message, repeated, tag = "7")]
439 pub lanes: ::prost::alloc::vec::Vec<LaneDeclaration>,
440}
441#[allow(clippy::all)]
443#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
444pub struct LaneDeclaration {
445 #[prost(string, tag = "1")]
446 pub name: ::prost::alloc::string::String,
447 #[prost(oneof = "lane_declaration::Capacity", tags = "2, 3, 4")]
449 pub capacity: ::core::option::Option<lane_declaration::Capacity>,
450}
451pub mod lane_declaration {
453 #[allow(clippy::all)]
455 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
456 pub enum Capacity {
457 #[prost(bool, tag = "2")]
459 Serial(bool),
460 #[prost(uint32, tag = "3")]
462 Concurrent(u32),
463 #[prost(bool, tag = "4")]
465 Unbounded(bool),
466 }
467}
468#[allow(clippy::all)]
470#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
471pub struct Section {
472 #[prost(string, tag = "1")]
475 pub r#type: ::prost::alloc::string::String,
476 #[prost(bytes = "vec", tag = "2")]
478 pub payload: ::prost::alloc::vec::Vec<u8>,
479}
480#[allow(clippy::all)]
482#[derive(Clone, PartialEq, ::prost::Message)]
483pub struct Failure {
484 #[prost(enumeration = "Classification", tag = "1")]
485 pub classification: i32,
486 #[prost(string, tag = "2")]
488 pub code: ::prost::alloc::string::String,
489 #[prost(string, tag = "3")]
491 pub message: ::prost::alloc::string::String,
492 #[prost(string, tag = "4")]
494 pub action: ::prost::alloc::string::String,
495 #[prost(string, tag = "5")]
497 pub operation: ::prost::alloc::string::String,
498 #[prost(string, tag = "6")]
499 pub plugin: ::prost::alloc::string::String,
500 #[prost(message, optional, boxed, tag = "7")]
502 pub cause: ::core::option::Option<::prost::alloc::boxed::Box<Failure>>,
503 #[prost(map = "string, string", tag = "8")]
505 pub details: ::std::collections::HashMap<
506 ::prost::alloc::string::String,
507 ::prost::alloc::string::String,
508 >,
509 #[prost(string, tag = "9")]
511 pub diagnostics: ::prost::alloc::string::String,
512 #[prost(message, optional, tag = "10")]
514 pub retry: ::core::option::Option<OperationRetry>,
515}
516#[allow(clippy::all)]
518#[derive(Clone, Copy, PartialEq, ::prost::Message)]
519pub struct OperationRetry {
520 #[prost(bool, tag = "1")]
521 pub retryable: bool,
522 #[prost(uint64, tag = "2")]
524 pub attempts: u64,
525 #[prost(uint64, tag = "3")]
526 pub max_attempts: u64,
527 #[prost(double, tag = "4")]
529 pub next_after_s: f64,
530}
531#[allow(clippy::all)]
533#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
534#[repr(i32)]
535pub enum Classification {
536 Unspecified = 0,
537 Permanent = 1,
539 Transient = 2,
541 Cancelled = 3,
542 TimedOut = 4,
543 Refused = 5,
545 Invalid = 6,
547}
548impl Classification {
549 pub fn as_str_name(&self) -> &'static str {
554 match self {
555 Self::Unspecified => "CLASSIFICATION_UNSPECIFIED",
556 Self::Permanent => "CLASSIFICATION_PERMANENT",
557 Self::Transient => "CLASSIFICATION_TRANSIENT",
558 Self::Cancelled => "CLASSIFICATION_CANCELLED",
559 Self::TimedOut => "CLASSIFICATION_TIMED_OUT",
560 Self::Refused => "CLASSIFICATION_REFUSED",
561 Self::Invalid => "CLASSIFICATION_INVALID",
562 }
563 }
564 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
566 match value {
567 "CLASSIFICATION_UNSPECIFIED" => Some(Self::Unspecified),
568 "CLASSIFICATION_PERMANENT" => Some(Self::Permanent),
569 "CLASSIFICATION_TRANSIENT" => Some(Self::Transient),
570 "CLASSIFICATION_CANCELLED" => Some(Self::Cancelled),
571 "CLASSIFICATION_TIMED_OUT" => Some(Self::TimedOut),
572 "CLASSIFICATION_REFUSED" => Some(Self::Refused),
573 "CLASSIFICATION_INVALID" => Some(Self::Invalid),
574 _ => None,
575 }
576 }
577}
578#[allow(clippy::all)]
580#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
581pub struct PageRequest {
582 #[prost(uint32, tag = "1")]
584 pub page_size: u32,
585 #[prost(uint64, tag = "2")]
587 pub max_bytes: u64,
588 #[prost(string, tag = "3")]
590 pub page_token: ::prost::alloc::string::String,
591}
592#[allow(clippy::all)]
595#[derive(Clone, PartialEq, ::prost::Message)]
596pub struct ListFileProductionsRequest {
597 #[prost(string, tag = "1")]
599 pub scope: ::prost::alloc::string::String,
600 #[prost(message, optional, tag = "2")]
601 pub page: ::core::option::Option<PageRequest>,
602 #[prost(message, optional, tag = "3")]
604 pub at: ::core::option::Option<ReadCut>,
605}
606#[allow(clippy::all)]
608#[derive(Clone, PartialEq, ::prost::Message)]
609pub struct ListFileProductionsResponse {
610 #[prost(message, repeated, tag = "1")]
611 pub productions: ::prost::alloc::vec::Vec<Upload>,
612 #[prost(string, tag = "2")]
614 pub next_page_token: ::prost::alloc::string::String,
615 #[prost(message, optional, tag = "3")]
617 pub resolved_at: ::core::option::Option<ReadCut>,
618}
619#[allow(clippy::all)]
621#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
622pub struct FileMetadata {
623 #[prost(string, tag = "1")]
625 pub id: ::prost::alloc::string::String,
626 #[prost(string, optional, tag = "2")]
628 pub scope: ::core::option::Option<::prost::alloc::string::String>,
629 #[prost(string, tag = "3")]
630 pub media_type: ::prost::alloc::string::String,
631 #[prost(uint64, optional, tag = "4")]
633 pub expected_length: ::core::option::Option<u64>,
634 #[prost(bytes = "vec", optional, tag = "5")]
636 pub expected_sha256: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
637}
638#[allow(clippy::all)]
640#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
641pub struct FileReference {
642 #[prost(message, optional, tag = "1")]
644 pub position: ::core::option::Option<Position>,
645 #[prost(message, optional, tag = "2")]
646 pub metadata: ::core::option::Option<FileMetadata>,
647 #[prost(uint64, tag = "3")]
648 pub length: u64,
649 #[prost(bytes = "vec", tag = "4")]
651 pub sha256: ::prost::alloc::vec::Vec<u8>,
652}
653#[allow(clippy::all)]
655#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
656pub struct File {
657 #[prost(message, optional, tag = "1")]
658 pub reference: ::core::option::Option<FileReference>,
659}
660#[allow(clippy::all)]
662#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
663pub struct Upload {
664 #[prost(string, tag = "1")]
666 pub id: ::prost::alloc::string::String,
667 #[prost(message, optional, tag = "2")]
669 pub history: ::core::option::Option<History>,
670 #[prost(uint64, tag = "3")]
672 pub writer_generation: u64,
673 #[prost(uint64, tag = "4")]
675 pub accepted_length: u64,
676 #[prost(uint64, tag = "5")]
678 pub durable_length: u64,
679 #[prost(enumeration = "UploadState", tag = "6")]
680 pub state: i32,
681}
682#[allow(clippy::all)]
684#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
685#[repr(i32)]
686pub enum UploadState {
687 Unspecified = 0,
688 Producing = 1,
689 Finished = 2,
690 Abandoned = 3,
691}
692impl UploadState {
693 pub fn as_str_name(&self) -> &'static str {
698 match self {
699 Self::Unspecified => "UPLOAD_STATE_UNSPECIFIED",
700 Self::Producing => "UPLOAD_STATE_PRODUCING",
701 Self::Finished => "UPLOAD_STATE_FINISHED",
702 Self::Abandoned => "UPLOAD_STATE_ABANDONED",
703 }
704 }
705 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
707 match value {
708 "UPLOAD_STATE_UNSPECIFIED" => Some(Self::Unspecified),
709 "UPLOAD_STATE_PRODUCING" => Some(Self::Producing),
710 "UPLOAD_STATE_FINISHED" => Some(Self::Finished),
711 "UPLOAD_STATE_ABANDONED" => Some(Self::Abandoned),
712 _ => None,
713 }
714 }
715}
716#[derive(serde::Serialize, serde::Deserialize)]
718#[allow(clippy::all)]
719#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
720pub struct StorageTransferSettings {
721 #[prost(uint64, optional, tag = "1", default = "4194304")]
723 pub chunk_bytes: ::core::option::Option<u64>,
724}
725#[allow(clippy::all)]
727#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
728pub struct MessageSettings {
729 #[prost(uint64, optional, tag = "1", default = "8388608")]
731 pub message_bytes: ::core::option::Option<u64>,
732}
733#[allow(clippy::all)]
735#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
736#[repr(i32)]
737pub enum TransferFraming {
738 Unspecified = 0,
739 Bytes = 512,
740}
741impl TransferFraming {
742 pub fn as_str_name(&self) -> &'static str {
747 match self {
748 Self::Unspecified => "TRANSFER_FRAMING_UNSPECIFIED",
749 Self::Bytes => "TRANSFER_FRAMING_BYTES",
750 }
751 }
752 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
754 match value {
755 "TRANSFER_FRAMING_UNSPECIFIED" => Some(Self::Unspecified),
756 "TRANSFER_FRAMING_BYTES" => Some(Self::Bytes),
757 _ => None,
758 }
759 }
760}