harmos-protocol 0.1.15

Harmos v1 plugin protobuf messages and gRPC client and server.
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
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
// This file is @generated by prost-build.
/// Carries the operation identity, expected contract fingerprint and encoded payload for Invocations.Create.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InvocationsCreateRequest {
    /// Complete admitted operation routing identity; no provider prefix or provider selection is added.
    #[prost(string, tag = "1")]
    pub operation: ::prost::alloc::string::String,
    /// Expected operation contract digest used for admission; incompatible definitions refuse rather than invoking another shape.
    #[prost(bytes = "vec", tag = "2")]
    pub fingerprint: ::prost::alloc::vec::Vec<u8>,
    /// Encoded request of operation under the supplied contract fingerprint.
    #[prost(bytes = "vec", tag = "3")]
    pub payload: ::prost::alloc::vec::Vec<u8>,
}
/// Carries the declared operation's encoded unary result after admission and execution.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InvocationsCreateResponse {
    /// Encoded unary response of the invoked operation, including empty bytes for an empty success message.
    #[prost(bytes = "vec", tag = "1")]
    pub payload: ::prost::alloc::vec::Vec<u8>,
}
/// Carries the invocation handle for Invocations.Get.
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InvocationsGetRequest {
    /// Host-issued invocation handle; lifecycle access is restricted to the caller that owns the instance.
    #[prost(uint64, tag = "1")]
    pub instance: u64,
}
/// Reports the caller-owned invocation's current lifecycle state without returning its operation payload.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InvocationsGetResponse {
    /// Current lifecycle state of the caller-owned instance; this does not carry its operation response payload.
    #[prost(message, optional, tag = "1")]
    pub invocation: ::core::option::Option<crate::model::InstanceState>,
}
/// Carries the invocation handle and reason text for Invocations.Cancel.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InvocationsCancelRequest {
    /// Host-issued invocation handle; lifecycle access is restricted to the caller that owns the instance.
    #[prost(uint64, tag = "1")]
    pub instance: u64,
    #[prost(string, tag = "2")]
    pub reason: ::prost::alloc::string::String,
}
/// Reports lifecycle state after requesting cancellation; a cooperative handler may still produce its final result.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InvocationsCancelResponse {
    /// Current lifecycle state of the caller-owned instance; this does not carry its operation response payload.
    #[prost(message, optional, tag = "1")]
    pub invocation: ::core::option::Option<crate::model::InstanceState>,
}
/// Carries the invocation handle for Invocations.Watch.
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InvocationsWatchRequest {
    /// Host-issued invocation handle; lifecycle access is restricted to the caller that owns the instance.
    #[prost(uint64, tag = "1")]
    pub instance: u64,
}
/// Reports a lifecycle state observed while following the caller-owned invocation through settlement.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InvocationsWatchResponse {
    /// Current lifecycle state of the caller-owned instance; this does not carry its operation response payload.
    #[prost(message, optional, tag = "1")]
    pub invocation: ::core::option::Option<crate::model::InstanceState>,
}
/// Requests the calling party's complete admitted operation inventory.
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OperationsListRequest {}
/// Returns typed admitted operations and their owner, generation, projections and caller-specific grants.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationsListResponse {
    #[prost(message, repeated, tag = "1")]
    pub operations: ::prost::alloc::vec::Vec<crate::model::DiscoveredOperation>,
}
/// Selects one complete operation identity from the admitted registry.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OperationsGetRequest {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
}
/// Returns the selected operation's contract and caller-specific discovery metadata.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationsGetResponse {
    #[prost(message, optional, tag = "1")]
    pub operation: ::core::option::Option<crate::model::DiscoveredOperation>,
}
/// Carries the resource name and read boundary for Plugins.Get.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginsGetRequest {
    /// Persisted management entry identity, distinct from an advertised plugin/declarations ID.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Unset selects the latest manager snapshot; otherwise use an issued retained manager cut. Foreign, expired and unissued cuts refuse.
    #[prost(message, optional, tag = "2")]
    pub at: ::core::option::Option<crate::model::ReadCut>,
}
/// Returns one entry from the selected retained manager snapshot with its cut.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginsGetResponse {
    #[prost(message, optional, tag = "1")]
    pub entry: ::core::option::Option<PluginEntry>,
    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
    #[prost(message, optional, tag = "2")]
    pub resolved_at: ::core::option::Option<crate::model::ReadCut>,
}
/// Carries the read boundary for Plugins.List.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginsListRequest {
    /// Unset selects the latest manager snapshot; otherwise use an issued retained manager cut. Foreign, expired and unissued cuts refuse.
    #[prost(message, optional, tag = "1")]
    pub at: ::core::option::Option<crate::model::ReadCut>,
}
/// Returns the complete selected manager inventory with its cut.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginsListResponse {
    #[prost(message, repeated, tag = "1")]
    pub entries: ::prost::alloc::vec::Vec<PluginEntry>,
    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
    #[prost(message, optional, tag = "2")]
    pub resolved_at: ::core::option::Option<crate::model::ReadCut>,
}
/// Carries the resource name and read boundary for Plugins.Watch.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginsWatchRequest {
    /// Empty watches all entries; otherwise selects this exact management entry name.
    #[prost(string, optional, tag = "1")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    /// Unset selects the latest manager snapshot; otherwise use an issued retained manager cut. Foreign, expired and unissued cuts refuse.
    #[prost(message, optional, tag = "2")]
    pub at: ::core::option::Option<crate::model::ReadCut>,
}
/// Distinguishes an opening snapshot, entry changes and a requirement to restart the read.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginsWatchResponse {
    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
    #[prost(message, optional, tag = "1")]
    pub resolved_at: ::core::option::Option<crate::model::ReadCut>,
    /// Selects one variant; an unset discriminator carries no selected value.
    #[prost(oneof = "plugins_watch_response::Event", tags = "2, 3, 4")]
    pub event: ::core::option::Option<plugins_watch_response::Event>,
}
/// Nested message and enum types in `PluginsWatchResponse`.
pub mod plugins_watch_response {
    /// Selects one variant; an unset discriminator carries no selected value.
    #[allow(clippy::all)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Event {
        /// Required retained snapshot handle issued by this owner; preserve its token and original position.
        #[prost(message, tag = "2")]
        Snapshot(super::PluginSnapshot),
        #[prost(message, tag = "3")]
        Change(super::PluginChange),
        /// Continuity is unavailable; open a fresh read instead of treating this event as a successful continuation.
        #[prost(string, tag = "4")]
        ResyncRequired(::prost::alloc::string::String),
    }
}
/// Carries the request id, resource name, placement and replacement value for Plugins.Create.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginsCreateRequest {
    /// Nonempty caller-chosen identity for Create replay. Identical input returns its original response; reuse with changed input refuses.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
    /// Persisted management entry identity, distinct from an advertised plugin/declarations ID.
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub placement: ::core::option::Option<PluginPlacement>,
    #[prost(message, optional, tag = "4")]
    pub value: ::core::option::Option<PluginValue>,
    /// Opaque creator-chosen label; empty or absent means unspecified and replacement preserves it.
    #[prost(string, optional, tag = "5")]
    pub origin: ::core::option::Option<::prost::alloc::string::String>,
}
/// Returns the created entry and persisted receipt; identical request-ID replay returns this original response.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginsCreateResponse {
    #[prost(message, optional, tag = "1")]
    pub entry: ::core::option::Option<PluginEntry>,
    #[prost(message, optional, tag = "2")]
    pub receipt: ::core::option::Option<crate::model::Receipt>,
}
/// Carries the resource name, replacement value and expected revision for Plugins.Set.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginsSetRequest {
    /// Persisted management entry identity, distinct from an advertised plugin/declarations ID.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub value: ::core::option::Option<PluginValue>,
    /// Exact revision returned by the corresponding read. A mismatch refuses; read again before retrying with changed input.
    #[prost(bytes = "vec", tag = "3")]
    pub expected_revision: ::prost::alloc::vec::Vec<u8>,
}
/// Returns the resulting entry and mutation receipt after applying its complete writable value.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginsSetResponse {
    #[prost(message, optional, tag = "1")]
    pub entry: ::core::option::Option<PluginEntry>,
    #[prost(message, optional, tag = "2")]
    pub receipt: ::core::option::Option<crate::model::Receipt>,
}
/// Carries the resource name and expected revision for Plugins.Delete.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginsDeleteRequest {
    /// Persisted management entry identity, distinct from an advertised plugin/declarations ID.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Exact revision returned by the corresponding read. A mismatch refuses; read again before retrying with changed input.
    #[prost(bytes = "vec", tag = "2")]
    pub expected_revision: ::prost::alloc::vec::Vec<u8>,
}
/// Returns the durable management deletion receipt without exposing retired installation content.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginsDeleteResponse {
    #[prost(message, optional, tag = "1")]
    pub receipt: ::core::option::Option<crate::model::Receipt>,
}
/// Carries the resource name and expected revision for Plugins.Restart.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginsRestartRequest {
    /// Persisted management entry identity, distinct from an advertised plugin/declarations ID.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Exact revision returned by the corresponding read. A mismatch refuses; read again before retrying with changed input.
    #[prost(bytes = "vec", tag = "2")]
    pub expected_revision: ::prost::alloc::vec::Vec<u8>,
}
/// Returns the entry with its replacement activation initiated; connection readiness is observed separately.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginsRestartResponse {
    #[prost(message, optional, tag = "1")]
    pub entry: ::core::option::Option<PluginEntry>,
}
/// Carries the existing entry name, new managed placement, expected revision and replay identity.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginsReplaceRequest {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Required managed placement; replacement does not turn a remote entry into a managed one.
    #[prost(message, optional, tag = "2")]
    pub placement: ::core::option::Option<PluginPlacement>,
    /// Issued entry revision; a conflict requires getting the entry again before retrying.
    #[prost(bytes = "vec", tag = "3")]
    pub expected_revision: ::prost::alloc::vec::Vec<u8>,
    /// Nonempty request identity; identical input replays the original outcome and changed input refuses.
    #[prost(string, tag = "4")]
    pub request_id: ::prost::alloc::string::String,
}
/// Returns the replaced entry and its persisted mutation receipt.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginsReplaceResponse {
    #[prost(message, optional, tag = "1")]
    pub entry: ::core::option::Option<PluginEntry>,
    #[prost(message, optional, tag = "2")]
    pub receipt: ::core::option::Option<crate::model::Receipt>,
}
/// Contains the writable enablement state of a managed plugin entry.
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginValue {
    #[prost(bool, tag = "1")]
    pub enabled: bool,
}
/// Captures the running plugin's advertised identity, process start, negotiated revision and declarations.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginDescription {
    /// Plugin-advertised identity, distinct from the persisted management entry name.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Plugin-advertised semantic version, distinct from the negotiated protocol revision.
    #[prost(string, tag = "2")]
    pub version: ::prost::alloc::string::String,
    /// Plugin process startup timestamp, stable across connections to that process.
    #[prost(message, optional, tag = "3")]
    pub started_at: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "4")]
    pub declarations: ::core::option::Option<crate::model::Declarations>,
    /// Negotiated protocol revision, not a conditional management revision.
    #[prost(uint32, tag = "5")]
    pub revision: u32,
    #[prost(string, tag = "6")]
    pub sdk: ::prost::alloc::string::String,
    #[prost(string, tag = "7")]
    pub sdk_version: ::prost::alloc::string::String,
}
/// Connects the host to a remote plain HTTP plugin endpoint; the manager validates endpoint syntax.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginRemote {
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
}
/// Content references resolve through the library's in-process content owner; uploading belongs to the product.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginManaged {
    #[prost(message, optional, tag = "1")]
    pub content: ::core::option::Option<crate::model::FileReference>,
    /// Expected 32-byte digest of the uploaded executable content.
    #[prost(bytes = "vec", tag = "2")]
    pub sha256: ::prost::alloc::vec::Vec<u8>,
}
/// Marks a WebAssembly module registered in-process by the host. The host owns module loading and re-registration after restart.
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginGuest {}
/// Chooses managed uploaded content, a remote process or a host-registered WebAssembly guest.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginPlacement {
    /// Selects one variant; an unset discriminator carries no selected value.
    #[prost(oneof = "plugin_placement::Kind", tags = "1, 2, 3")]
    pub kind: ::core::option::Option<plugin_placement::Kind>,
}
/// Nested message and enum types in `PluginPlacement`.
pub mod plugin_placement {
    /// Selects one variant; an unset discriminator carries no selected value.
    #[allow(clippy::all)]
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        Managed(super::PluginManaged),
        #[prost(message, tag = "2")]
        Remote(super::PluginRemote),
        #[prost(message, tag = "3")]
        Guest(super::PluginGuest),
    }
}
/// Reports the managed child process identity, executable digest and process start time.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PluginProcess {
    /// Native managed child process ID; absent process metadata does not imply a remote process ID.
    #[prost(uint32, tag = "1")]
    pub id: u32,
    /// Digest of the managed executable selected for this process.
    #[prost(bytes = "vec", tag = "2")]
    pub executable_digest: ::prost::alloc::vec::Vec<u8>,
    /// Managed process start timestamp, distinct from activation/reconnect identity.
    #[prost(message, optional, tag = "3")]
    pub started_at: ::core::option::Option<::prost_types::Timestamp>,
}
/// Combines persisted management state with observed activation, process and failure information.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginEntry {
    /// Persisted management entry identity, distinct from the plugin's advertised declarations ID.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub placement: ::core::option::Option<PluginPlacement>,
    #[prost(message, optional, tag = "3")]
    pub value: ::core::option::Option<PluginValue>,
    /// Opaque conditional revision of the management value; resend it unchanged to Set/Delete/Restart.
    #[prost(bytes = "vec", tag = "4")]
    pub revision: ::prost::alloc::vec::Vec<u8>,
    #[prost(enumeration = "PluginState", tag = "5")]
    pub state: i32,
    /// Absent when the entry has no reported failure; failures retain machine classification and diagnostics.
    #[prost(message, optional, tag = "6")]
    pub failure: ::core::option::Option<crate::model::Failure>,
    /// Advertised description when an activation has supplied it; absent before discovery is available.
    #[prost(message, optional, tag = "7")]
    pub description: ::core::option::Option<PluginDescription>,
    /// Digest of the declarations observed for this entry's activation.
    #[prost(bytes = "vec", tag = "8")]
    pub declarations_digest: ::prost::alloc::vec::Vec<u8>,
    /// Managed process metadata when available; remote placement does not supply managed process metadata.
    #[prost(message, optional, tag = "9")]
    pub process: ::core::option::Option<PluginProcess>,
    /// Generation of the entry's activation; old calls and handles do not follow its replacement.
    #[prost(uint64, tag = "10")]
    pub activation: u64,
    /// Opaque creator-chosen label; empty means unspecified and only Delete then Create can change it.
    #[prost(string, tag = "11")]
    pub origin: ::prost::alloc::string::String,
}
/// Carries the entries selected at the opening boundary of a plugin watch.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginSnapshot {
    #[prost(message, repeated, tag = "1")]
    pub entries: ::prost::alloc::vec::Vec<PluginEntry>,
}
/// Replaces one entry or identifies an entry removed from the manager.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginChange {
    /// Selects one variant; an unset discriminator carries no selected value.
    #[prost(oneof = "plugin_change::Kind", tags = "1, 2")]
    pub kind: ::core::option::Option<plugin_change::Kind>,
}
/// Nested message and enum types in `PluginChange`.
pub mod plugin_change {
    /// Selects one variant; an unset discriminator carries no selected value.
    #[allow(clippy::all)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        Entry(super::PluginEntry),
        #[prost(string, tag = "2")]
        Deleted(::prost::alloc::string::String),
    }
}
/// The Persisted Entry Lifecycle, Independent of Its Placement.
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PluginState {
    Unspecified = 0,
    Connecting = 1,
    Ready = 2,
    Unavailable = 3,
    Stopped = 4,
    Stopping = 5,
}
impl PluginState {
    /// 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 => "PLUGIN_STATE_UNSPECIFIED",
            Self::Connecting => "PLUGIN_STATE_CONNECTING",
            Self::Ready => "PLUGIN_STATE_READY",
            Self::Unavailable => "PLUGIN_STATE_UNAVAILABLE",
            Self::Stopped => "PLUGIN_STATE_STOPPED",
            Self::Stopping => "PLUGIN_STATE_STOPPING",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "PLUGIN_STATE_UNSPECIFIED" => Some(Self::Unspecified),
            "PLUGIN_STATE_CONNECTING" => Some(Self::Connecting),
            "PLUGIN_STATE_READY" => Some(Self::Ready),
            "PLUGIN_STATE_UNAVAILABLE" => Some(Self::Unavailable),
            "PLUGIN_STATE_STOPPED" => Some(Self::Stopped),
            "PLUGIN_STATE_STOPPING" => Some(Self::Stopping),
            _ => None,
        }
    }
}
/// Identifies a persisted schema revision and its payload encoding; version numbers are identity, not a conversion request.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SchemaKey {
    /// Persistent schema identity; a type change does not silently reinterpret previously stored payloads.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Opaque schema revision identity, including derived stream revisions; numeric ordering does not select current.
    #[prost(uint32, tag = "2")]
    pub version: u32,
    #[prost(enumeration = "PayloadEncoding", tag = "3")]
    pub payload_encoding: i32,
}
/// Describes a persisted field's name, tag, scalar kind, cardinality and optional referenced definition.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SchemaField {
    /// Persisted field name used by schema traversal and query field paths.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Field/variant tag retained by the persisted schema.
    #[prost(uint32, tag = "2")]
    pub tag: u32,
    #[prost(enumeration = "SchemaKind", tag = "3")]
    pub kind: i32,
    #[prost(enumeration = "SchemaCardinality", tag = "4")]
    pub cardinality: i32,
    /// Index into SchemaGraph.definitions for MESSAGE fields; required for messages and refused on scalar fields.
    #[prost(uint64, optional, tag = "5")]
    pub definition: ::core::option::Option<u64>,
}
/// Keeps a definition's fields in payload order; reordering can change Postcard decoding.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchemaDefinition {
    #[prost(message, repeated, tag = "1")]
    pub fields: ::prost::alloc::vec::Vec<SchemaField>,
}
/// Retains serialization form, tagging and omission metadata for one schema definition.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchemaRepresentation {
    /// Index of the definition described by this representation.
    #[prost(uint64, tag = "1")]
    pub definition: u64,
    #[prost(enumeration = "SchemaForm", tag = "2")]
    pub form: i32,
    /// Serialization tag name when present; unset supplies no explicit tag.
    #[prost(string, optional, tag = "3")]
    pub tag: ::core::option::Option<::prost::alloc::string::String>,
    /// Serialization content-field name when present; unset supplies no explicit content field.
    #[prost(string, optional, tag = "4")]
    pub content: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(map = "string, enumeration(SchemaOmission)", tag = "5")]
    pub omissions: ::std::collections::HashMap<::prost::alloc::string::String, i32>,
    #[prost(string, repeated, tag = "6")]
    pub maps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Owns a finite, indexed schema graph with an explicit root and serialization representations.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchemaGraph {
    /// Index into definitions of the graph's root definition.
    #[prost(uint64, tag = "1")]
    pub root: u64,
    #[prost(message, repeated, tag = "2")]
    pub definitions: ::prost::alloc::vec::Vec<SchemaDefinition>,
    #[prost(message, repeated, tag = "3")]
    pub representations: ::prost::alloc::vec::Vec<SchemaRepresentation>,
}
/// Storage schema graphs describe persisted payloads; they do not change their encoding.
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PayloadEncoding {
    Unspecified = 0,
    PostcardV1 = 1,
}
impl PayloadEncoding {
    /// 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 => "PAYLOAD_ENCODING_UNSPECIFIED",
            Self::PostcardV1 => "POSTCARD_V1",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "PAYLOAD_ENCODING_UNSPECIFIED" => Some(Self::Unspecified),
            "POSTCARD_V1" => Some(Self::PostcardV1),
            _ => None,
        }
    }
}
/// The Number of Values Carried by a Schema Field.
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SchemaCardinality {
    Required = 0,
    Optional = 1,
    Repeated = 2,
    Variant = 3,
}
impl SchemaCardinality {
    /// 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::Required => "REQUIRED",
            Self::Optional => "OPTIONAL",
            Self::Repeated => "REPEATED",
            Self::Variant => "VARIANT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "REQUIRED" => Some(Self::Required),
            "OPTIONAL" => Some(Self::Optional),
            "REPEATED" => Some(Self::Repeated),
            "VARIANT" => Some(Self::Variant),
            _ => None,
        }
    }
}
/// The Primitive or Composite Value Category of a Field.
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SchemaKind {
    Bool = 0,
    Uint32 = 1,
    Uint64 = 2,
    Int32 = 3,
    Int64 = 4,
    Float32 = 5,
    Float64 = 6,
    String = 7,
    Bytes = 8,
    Message = 9,
}
impl SchemaKind {
    /// 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::Bool => "BOOL",
            Self::Uint32 => "UINT32",
            Self::Uint64 => "UINT64",
            Self::Int32 => "INT32",
            Self::Int64 => "INT64",
            Self::Float32 => "FLOAT32",
            Self::Float64 => "FLOAT64",
            Self::String => "STRING",
            Self::Bytes => "BYTES",
            Self::Message => "MESSAGE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "BOOL" => Some(Self::Bool),
            "UINT32" => Some(Self::Uint32),
            "UINT64" => Some(Self::Uint64),
            "INT32" => Some(Self::Int32),
            "INT64" => Some(Self::Int64),
            "FLOAT32" => Some(Self::Float32),
            "FLOAT64" => Some(Self::Float64),
            "STRING" => Some(Self::String),
            "BYTES" => Some(Self::Bytes),
            "MESSAGE" => Some(Self::Message),
            _ => None,
        }
    }
}
/// The Shape of a Schema Definition.
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SchemaForm {
    Object = 0,
    Unit = 1,
    Value = 2,
    Tuple = 3,
    External = 4,
    Internal = 5,
    Adjacent = 6,
    Untagged = 7,
}
impl SchemaForm {
    /// 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::Object => "OBJECT",
            Self::Unit => "UNIT",
            Self::Value => "VALUE",
            Self::Tuple => "TUPLE",
            Self::External => "EXTERNAL",
            Self::Internal => "INTERNAL",
            Self::Adjacent => "ADJACENT",
            Self::Untagged => "UNTAGGED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "OBJECT" => Some(Self::Object),
            "UNIT" => Some(Self::Unit),
            "VALUE" => Some(Self::Value),
            "TUPLE" => Some(Self::Tuple),
            "EXTERNAL" => Some(Self::External),
            "INTERNAL" => Some(Self::Internal),
            "ADJACENT" => Some(Self::Adjacent),
            "UNTAGGED" => Some(Self::Untagged),
            _ => None,
        }
    }
}
/// Why a Schema Definition Is Not Included in This Reply.
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SchemaOmission {
    OmitNone = 0,
    OmitEmpty = 1,
}
impl SchemaOmission {
    /// 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::OmitNone => "OMIT_NONE",
            Self::OmitEmpty => "OMIT_EMPTY",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "OMIT_NONE" => Some(Self::OmitNone),
            "OMIT_EMPTY" => Some(Self::OmitEmpty),
            _ => None,
        }
    }
}
/// Selects all registered schemas or one exact schema identity.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SchemasListRequest {
    /// Unset leaves schema identity unfiltered; a present identity must be valid.
    #[prost(string, optional, tag = "1")]
    pub schema: ::core::option::Option<::prost::alloc::string::String>,
}
/// Returns the complete typed persisted-schema registry selection.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchemasListResponse {
    #[prost(message, repeated, tag = "1")]
    pub schemas: ::prost::alloc::vec::Vec<SchemaDescription>,
}
/// Preserves the position, schema identity and definition graph formerly serialized by the registry handler.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchemaDescription {
    #[prost(message, optional, tag = "1")]
    pub position: ::core::option::Option<crate::model::Position>,
    #[prost(message, optional, tag = "2")]
    pub key: ::core::option::Option<SchemaKey>,
    #[prost(message, optional, tag = "3")]
    pub schema: ::core::option::Option<SchemaGraph>,
}
/// Request for Status.Get.
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StatusGetRequest {}
/// Returns current host health and its issued status boundary.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StatusGetResponse {
    #[prost(message, optional, tag = "1")]
    pub status: ::core::option::Option<HostStatus>,
    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
    #[prost(message, optional, tag = "2")]
    pub resolved_at: ::core::option::Option<crate::model::Position>,
}
/// Carries the read boundary for Status.Watch.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StatusWatchRequest {
    /// Unset selects the current history boundary; otherwise resend an issued position for this owner. Foreign, expired and unissued positions refuse.
    #[prost(message, optional, tag = "1")]
    pub at: ::core::option::Option<crate::model::Position>,
}
/// Returns a current host health observation and its issued status boundary.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StatusWatchResponse {
    #[prost(message, optional, tag = "1")]
    pub status: ::core::option::Option<HostStatus>,
    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
    #[prost(message, optional, tag = "2")]
    pub resolved_at: ::core::option::Option<crate::model::Position>,
}
/// Identifies this host process and the application/library versions it is running.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct HostIdentity {
    #[prost(string, tag = "1")]
    pub application_name: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub application_version: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub library_version: ::prost::alloc::string::String,
    /// Timestamp captured for this host process, rather than a status revision.
    #[prost(message, optional, tag = "4")]
    pub process_started_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Host identity supplied by the composing application.
    #[prost(string, tag = "5")]
    pub host_id: ::prost::alloc::string::String,
}
/// Reports one contributed component's availability and explanation.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct HealthComponent {
    /// Identity of the contributed component within this host's status inventory.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(enumeration = "ComponentState", tag = "2")]
    pub state: i32,
    #[prost(string, tag = "3")]
    pub reason: ::prost::alloc::string::String,
}
/// Combines host identity and contributed health; an unavailable component makes the host unavailable.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HostStatus {
    #[prost(message, optional, tag = "1")]
    pub identity: ::core::option::Option<HostIdentity>,
    #[prost(bool, tag = "2")]
    pub available: bool,
    #[prost(message, repeated, tag = "3")]
    pub components: ::prost::alloc::vec::Vec<HealthComponent>,
}
/// The Health Reported by One Contributing Component.
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ComponentState {
    Unspecified = 0,
    Healthy = 1,
    Degraded = 2,
    Unavailable = 3,
}
impl ComponentState {
    /// 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 => "COMPONENT_STATE_UNSPECIFIED",
            Self::Healthy => "COMPONENT_STATE_HEALTHY",
            Self::Degraded => "COMPONENT_STATE_DEGRADED",
            Self::Unavailable => "COMPONENT_STATE_UNAVAILABLE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "COMPONENT_STATE_UNSPECIFIED" => Some(Self::Unspecified),
            "COMPONENT_STATE_HEALTHY" => Some(Self::Healthy),
            "COMPONENT_STATE_DEGRADED" => Some(Self::Degraded),
            "COMPONENT_STATE_UNAVAILABLE" => Some(Self::Unavailable),
            _ => None,
        }
    }
}
/// Selects all stored stream identities or those using one exact schema identity.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StreamsListRequest {
    /// Unset leaves schema identity unfiltered; a present identity must be valid.
    #[prost(string, optional, tag = "1")]
    pub schema: ::core::option::Option<::prost::alloc::string::String>,
}
/// Returns the complete typed stored-stream registry selection.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamsListResponse {
    #[prost(message, repeated, tag = "1")]
    pub streams: ::prost::alloc::vec::Vec<StreamIdentity>,
}
/// Preserves the stream variant of the stored identity formerly serialized by the registry handler.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StreamIdentity {
    #[prost(message, optional, tag = "1")]
    pub schema: ::core::option::Option<SchemaKey>,
    /// Optional stored scope; absence remains distinct from an empty authored scope.
    #[prost(string, optional, tag = "2")]
    pub scope: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, tag = "3")]
    pub item: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub stream: ::prost::alloc::string::String,
    /// First storage position at which this stream identity was observed.
    #[prost(message, optional, tag = "5")]
    pub first: ::core::option::Option<crate::model::Position>,
}
/// Request for Time.Get.
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TimeGetRequest {}
/// Returns the authoritative host time, including virtual time when configured.
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TimeGetResponse {
    /// Authoritative host time, including virtual time when the host uses it.
    #[prost(message, optional, tag = "1")]
    pub now: ::core::option::Option<::prost_types::Timestamp>,
}
/// Carries the wait duration for Time.Sleep.
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TimeSleepRequest {
    /// Unset means a zero-duration wait. Seconds must be in 0..315576000000 and nanos in 0..999999999.
    #[prost(message, optional, tag = "1")]
    pub duration: ::core::option::Option<::prost_types::Duration>,
}
/// Acknowledges completion of the host-clock wait.
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TimeSleepResponse {}

pub mod access;

pub mod plugins;

pub mod status;