Skip to content

Commit 122d2a1

Browse files
committed
rust(feat): Build and include descriptor set
1 parent 6f485d7 commit 122d2a1

9 files changed

Lines changed: 3153 additions & 1084 deletions

File tree

go/gen/buf/validate/validate.pb.go

Lines changed: 1272 additions & 905 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/gen/buf/validate/validate_vtproto.pb.go

Lines changed: 1391 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/buf.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ deps:
44
- remote: buf.build
55
owner: bufbuild
66
repository: protovalidate
7-
commit: 52f32327d4b045a79293a6ad4e7e1236
8-
digest: shake256:ddff976f6322abaecd49ff0b271b7f8dec485046bafc52fe31f3272b555fa2829328be24d71ececefca38c87319173a31f1e931984066531b6ca2016b3598146
7+
commit: 2a1774d888024a9b93ce7eb4b59f6a83
8+
digest: shake256:35b3d88f6b0fbf159d9eedfc2fbfa976490e6bca1d98914c1c71f29bfe2da6261fca56c057975b3e5c022b3234a0f2eea8e2d1b599a937c6c5d63d21201a9bc3
99
- remote: buf.build
1010
owner: googleapis
1111
repository: googleapis

python/lib/buf/validate/validate_pb2.py

Lines changed: 82 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/lib/buf/validate/validate_pb2.pyi

Lines changed: 163 additions & 11 deletions
Large diffs are not rendered by default.
986 KB
Binary file not shown.

rust/crates/sift_rs/src/gen/buf.validate.rs

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ pub struct Rule {
1313
#[allow(clippy::derive_partial_eq_without_eq)]
1414
#[derive(Clone, PartialEq, ::prost::Message)]
1515
pub struct MessageRules {
16+
#[prost(string, repeated, tag="5")]
17+
pub cel_expression: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1618
#[prost(message, repeated, tag="3")]
1719
pub cel: ::prost::alloc::vec::Vec<Rule>,
1820
#[prost(message, repeated, tag="4")]
@@ -35,13 +37,15 @@ pub struct OneofRules {
3537
#[allow(clippy::derive_partial_eq_without_eq)]
3638
#[derive(Clone, PartialEq, ::prost::Message)]
3739
pub struct FieldRules {
40+
#[prost(string, repeated, tag="29")]
41+
pub cel_expression: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3842
#[prost(message, repeated, tag="23")]
3943
pub cel: ::prost::alloc::vec::Vec<Rule>,
4044
#[prost(bool, optional, tag="25")]
4145
pub required: ::core::option::Option<bool>,
4246
#[prost(enumeration="Ignore", optional, tag="27")]
4347
pub ignore: ::core::option::Option<i32>,
44-
#[prost(oneof="field_rules::Type", tags="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22")]
48+
#[prost(oneof="field_rules::Type", tags="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 28, 22")]
4549
pub r#type: ::core::option::Option<field_rules::Type>,
4650
}
4751
/// Nested message and enum types in `FieldRules`.
@@ -89,6 +93,8 @@ pub mod field_rules {
8993
Any(super::AnyRules),
9094
#[prost(message, tag="21")]
9195
Duration(super::DurationRules),
96+
#[prost(message, tag="28")]
97+
FieldMask(super::FieldMaskRules),
9298
#[prost(message, tag="22")]
9399
Timestamp(super::TimestampRules),
94100
}
@@ -566,7 +572,7 @@ pub struct StringRules {
566572
pub strict: ::core::option::Option<bool>,
567573
#[prost(string, repeated, tag="34")]
568574
pub example: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
569-
#[prost(oneof="string_rules::WellKnown", tags="12, 13, 14, 15, 16, 17, 18, 21, 22, 33, 26, 27, 28, 29, 30, 31, 32, 24")]
575+
#[prost(oneof="string_rules::WellKnown", tags="12, 13, 14, 15, 16, 17, 18, 21, 22, 33, 26, 27, 28, 29, 30, 31, 32, 35, 24")]
570576
pub well_known: ::core::option::Option<string_rules::WellKnown>,
571577
}
572578
/// Nested message and enum types in `StringRules`.
@@ -608,6 +614,8 @@ pub mod string_rules {
608614
Ipv6Prefix(bool),
609615
#[prost(bool, tag="32")]
610616
HostAndPort(bool),
617+
#[prost(bool, tag="35")]
618+
Ulid(bool),
611619
#[prost(enumeration="super::KnownRegex", tag="24")]
612620
WellKnownRegex(i32),
613621
}
@@ -637,7 +645,7 @@ pub struct BytesRules {
637645
pub not_in: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
638646
#[prost(bytes="vec", repeated, tag="14")]
639647
pub example: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
640-
#[prost(oneof="bytes_rules::WellKnown", tags="10, 11, 12")]
648+
#[prost(oneof="bytes_rules::WellKnown", tags="10, 11, 12, 15")]
641649
pub well_known: ::core::option::Option<bytes_rules::WellKnown>,
642650
}
643651
/// Nested message and enum types in `BytesRules`.
@@ -651,6 +659,8 @@ pub mod bytes_rules {
651659
Ipv4(bool),
652660
#[prost(bool, tag="12")]
653661
Ipv6(bool),
662+
#[prost(bool, tag="15")]
663+
Uuid(bool),
654664
}
655665
}
656666
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -736,6 +746,18 @@ pub mod duration_rules {
736746
}
737747
#[allow(clippy::derive_partial_eq_without_eq)]
738748
#[derive(Clone, PartialEq, ::prost::Message)]
749+
pub struct FieldMaskRules {
750+
#[prost(message, optional, tag="1")]
751+
pub r#const: ::core::option::Option<::pbjson_types::FieldMask>,
752+
#[prost(string, repeated, tag="2")]
753+
pub r#in: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
754+
#[prost(string, repeated, tag="3")]
755+
pub not_in: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
756+
#[prost(message, repeated, tag="4")]
757+
pub example: ::prost::alloc::vec::Vec<::pbjson_types::FieldMask>,
758+
}
759+
#[allow(clippy::derive_partial_eq_without_eq)]
760+
#[derive(Clone, PartialEq, ::prost::Message)]
739761
pub struct TimestampRules {
740762
#[prost(message, optional, tag="2")]
741763
pub r#const: ::core::option::Option<::pbjson_types::Timestamp>,

0 commit comments

Comments
 (0)