Debian Codegraph @

gen/pb-rust/sigstore-protobuf-specs/src/generated/dev.sigstore.events.v1.rs

raw
1 // This file is @generated by prost-build.
2 #[derive(
3 sigstore_protobuf_specs_derive::Deserialize_proto,
4 sigstore_protobuf_specs_derive::Serialize_proto
5 )]
6 #[derive(::prost_reflect::ReflectMessage)]
7 #[prost_reflect(message_name = "dev.sigstore.events.v1.CloudEvent")]
8 #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")]
9 #[derive(Clone, PartialEq, ::prost::Message)]
10 pub struct CloudEvent {
11 /// Required Attributes
12 #[prost(string, tag = "1")]
13 pub id: ::prost::alloc::string::String,
14 /// URI-reference
15 #[prost(string, tag = "2")]
16 pub source: ::prost::alloc::string::String,
17 #[prost(string, tag = "3")]
18 pub spec_version: ::prost::alloc::string::String,
19 #[prost(string, tag = "4")]
20 pub r#type: ::prost::alloc::string::String,
21 /// Optional & Extension Attributes
22 #[prost(map = "string, message", tag = "5")]
23 pub attributes: ::std::collections::HashMap<
24 ::prost::alloc::string::String,
25 cloud_event::CloudEventAttributeValue,
26 >,
27 /// -- CloudEvent Data (Bytes, Text, or Proto)
28 #[prost(oneof = "cloud_event::Data", tags = "6, 7, 8")]
29 pub data: ::core::option::Option<cloud_event::Data>,
30 }
31 /// Nested message and enum types in `CloudEvent`.
32 pub mod cloud_event {
33 #[derive(
34 sigstore_protobuf_specs_derive::Deserialize_proto,
35 sigstore_protobuf_specs_derive::Serialize_proto
36 )]
37 #[derive(::prost_reflect::ReflectMessage)]
38 #[prost_reflect(
39 message_name = "dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue"
40 )]
41 #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")]
42 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
43 pub struct CloudEventAttributeValue {
44 #[prost(
45 oneof = "cloud_event_attribute_value::Attr",
46 tags = "1, 2, 3, 4, 5, 6, 7"
47 )]
48 pub attr: ::core::option::Option<cloud_event_attribute_value::Attr>,
49 }
50 /// Nested message and enum types in `CloudEventAttributeValue`.
51 pub mod cloud_event_attribute_value {
52 #[derive(
53 sigstore_protobuf_specs_derive::Deserialize_proto,
54 sigstore_protobuf_specs_derive::Serialize_proto
55 )]
56 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
57 pub enum Attr {
58 #[prost(bool, tag = "1")]
59 CeBoolean(bool),
60 #[prost(int32, tag = "2")]
61 CeInteger(i32),
62 #[prost(string, tag = "3")]
63 CeString(::prost::alloc::string::String),
64 #[prost(bytes, tag = "4")]
65 CeBytes(::prost::alloc::vec::Vec<u8>),
66 #[prost(string, tag = "5")]
67 CeUri(::prost::alloc::string::String),
68 #[prost(string, tag = "6")]
69 CeUriRef(::prost::alloc::string::String),
70 #[prost(message, tag = "7")]
71 CeTimestamp(::prost_types::Timestamp),
72 }
73 }
74 /// -- CloudEvent Data (Bytes, Text, or Proto)
75 #[derive(
76 sigstore_protobuf_specs_derive::Deserialize_proto,
77 sigstore_protobuf_specs_derive::Serialize_proto
78 )]
79 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
80 pub enum Data {
81 #[prost(bytes, tag = "6")]
82 BinaryData(::prost::alloc::vec::Vec<u8>),
83 #[prost(string, tag = "7")]
84 TextData(::prost::alloc::string::String),
85 #[prost(message, tag = "8")]
86 ProtoData(::prost_types::Any),
87 }
88 }
89 #[derive(
90 sigstore_protobuf_specs_derive::Deserialize_proto,
91 sigstore_protobuf_specs_derive::Serialize_proto
92 )]
93 #[derive(::prost_reflect::ReflectMessage)]
94 #[prost_reflect(message_name = "dev.sigstore.events.v1.CloudEventBatch")]
95 #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")]
96 #[derive(Clone, PartialEq, ::prost::Message)]
97 pub struct CloudEventBatch {
98 #[prost(message, repeated, tag = "1")]
99 pub events: ::prost::alloc::vec::Vec<CloudEvent>,
100 }