From 992da867b78e8d5d53576690b8aad192f5dd07fc Mon Sep 17 00:00:00 2001 From: Philipp Falk <80761729+philippfalk@users.noreply.github.com> Date: Fri, 9 Jan 2026 12:17:39 +0100 Subject: [PATCH] feat: add community license type --- cpp/license.pb.cc | 14 +++++++------- cpp/license.pb.h | 7 ++++--- go/license/license.pb.go | 15 ++++++++++----- go/license/license_protoopaque.pb.go | 15 ++++++++++----- proto/license.proto | 1 + rust/license.rs | 3 +++ 6 files changed, 35 insertions(+), 20 deletions(-) diff --git a/cpp/license.pb.cc b/cpp/license.pb.cc index 2e57a20..75f7367 100644 --- a/cpp/license.pb.cc +++ b/cpp/license.pb.cc @@ -275,13 +275,13 @@ const char descriptor_table_protodef_license_2eproto[] ABSL_ATTRIBUTE_SECTION_VA "nt_data\030\r \001(\0132\021.license.CertDataH\000\210\001\001B\016\n" "\014_parent_data*^\n\014VerifyResult\022\026\n\022VERIFY_" "UNSPECIFIED\020\000\022\020\n\014VERIFY_ERROR\020\001\022\020\n\014VERIF" - "Y_VALID\020\002\022\022\n\016VERIFY_INVALID\020\003*\243\001\n\010CertTy" + "Y_VALID\020\002\022\022\n\016VERIFY_INVALID\020\003*\274\001\n\010CertTy" "pe\022\031\n\025CERT_TYPE_UNSPECIFIED\020\000\022\025\n\021CERT_TY" "PE_CA_ROOT\020\001\022\035\n\031CERT_TYPE_CA_INTERMEDIAT" "E\020\002\022\025\n\021CERT_TYPE_PARTNER\020\003\022\026\n\022CERT_TYPE_" - "CUSTOMER\020\004\022\027\n\023CERT_TYPE_TEMPORARY\020\005B*Z(g" - "ithub.com/thinkparq/protobuf/go/licenseb" - "\006proto3" + "CUSTOMER\020\004\022\027\n\023CERT_TYPE_TEMPORARY\020\005\022\027\n\023C" + "ERT_TYPE_COMMUNITY\020\006B*Z(github.com/think" + "parq/protobuf/go/licenseb\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_license_2eproto_deps[1] = { @@ -291,7 +291,7 @@ static ::absl::once_flag descriptor_table_license_2eproto_once; PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_license_2eproto = { false, false, - 1047, + 1072, descriptor_table_protodef_license_2eproto, "license.proto", &descriptor_table_license_2eproto_once, @@ -319,9 +319,9 @@ const ::google::protobuf::EnumDescriptor* CertType_descriptor() { return file_level_enum_descriptors_license_2eproto[1]; } PROTOBUF_CONSTINIT const uint32_t CertType_internal_data_[] = { - 393216u, 0u, }; + 458752u, 0u, }; bool CertType_IsValid(int value) { - return 0 <= value && value <= 5; + return 0 <= value && value <= 6; } // =================================================================== diff --git a/cpp/license.pb.h b/cpp/license.pb.h index 565d5fe..21eecdc 100644 --- a/cpp/license.pb.h +++ b/cpp/license.pb.h @@ -115,6 +115,7 @@ enum CertType : int { CERT_TYPE_PARTNER = 3, CERT_TYPE_CUSTOMER = 4, CERT_TYPE_TEMPORARY = 5, + CERT_TYPE_COMMUNITY = 6, CertType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(), CertType_INT_MAX_SENTINEL_DO_NOT_USE_ = @@ -124,8 +125,8 @@ enum CertType : int { bool CertType_IsValid(int value); extern const uint32_t CertType_internal_data_[]; constexpr CertType CertType_MIN = static_cast(0); -constexpr CertType CertType_MAX = static_cast(5); -constexpr int CertType_ARRAYSIZE = 5 + 1; +constexpr CertType CertType_MAX = static_cast(6); +constexpr int CertType_ARRAYSIZE = 6 + 1; const ::google::protobuf::EnumDescriptor* CertType_descriptor(); template @@ -138,7 +139,7 @@ const std::string& CertType_Name(T value) { template <> inline const std::string& CertType_Name(CertType value) { return ::google::protobuf::internal::NameOfDenseEnum( + 0, 6>( static_cast(value)); } inline bool CertType_Parse(absl::string_view name, CertType* value) { diff --git a/go/license/license.pb.go b/go/license/license.pb.go index d08bfc9..1796b4d 100644 --- a/go/license/license.pb.go +++ b/go/license/license.pb.go @@ -81,6 +81,7 @@ const ( CertType_CERT_TYPE_PARTNER CertType = 3 CertType_CERT_TYPE_CUSTOMER CertType = 4 CertType_CERT_TYPE_TEMPORARY CertType = 5 + CertType_CERT_TYPE_COMMUNITY CertType = 6 ) // Enum value maps for CertType. @@ -92,6 +93,7 @@ var ( 3: "CERT_TYPE_PARTNER", 4: "CERT_TYPE_CUSTOMER", 5: "CERT_TYPE_TEMPORARY", + 6: "CERT_TYPE_COMMUNITY", } CertType_value = map[string]int32{ "CERT_TYPE_UNSPECIFIED": 0, @@ -100,6 +102,7 @@ var ( "CERT_TYPE_PARTNER": 3, "CERT_TYPE_CUSTOMER": 4, "CERT_TYPE_TEMPORARY": 5, + "CERT_TYPE_COMMUNITY": 6, } ) @@ -754,7 +757,7 @@ var file_license_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x49, 0x4e, 0x56, - 0x41, 0x4c, 0x49, 0x44, 0x10, 0x03, 0x2a, 0xa3, 0x01, 0x0a, 0x08, 0x43, 0x65, 0x72, 0x74, 0x54, + 0x41, 0x4c, 0x49, 0x44, 0x10, 0x03, 0x2a, 0xbc, 0x01, 0x0a, 0x08, 0x43, 0x65, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x41, 0x5f, 0x52, @@ -764,10 +767,12 @@ var file_license_proto_rawDesc = []byte{ 0x45, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x4e, 0x45, 0x52, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x45, 0x52, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x4f, 0x52, 0x41, 0x52, 0x59, 0x10, 0x05, 0x42, 0x2a, 0x5a, 0x28, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x68, 0x69, 0x6e, 0x6b, - 0x70, 0x61, 0x72, 0x71, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, - 0x2f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x4f, 0x52, 0x41, 0x52, 0x59, 0x10, 0x05, 0x12, 0x17, 0x0a, 0x13, + 0x43, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, + 0x49, 0x54, 0x59, 0x10, 0x06, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x68, 0x69, 0x6e, 0x6b, 0x70, 0x61, 0x72, 0x71, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x2f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, + 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_license_proto_enumTypes = make([]protoimpl.EnumInfo, 2) diff --git a/go/license/license_protoopaque.pb.go b/go/license/license_protoopaque.pb.go index 90c7981..80c3d3e 100644 --- a/go/license/license_protoopaque.pb.go +++ b/go/license/license_protoopaque.pb.go @@ -81,6 +81,7 @@ const ( CertType_CERT_TYPE_PARTNER CertType = 3 CertType_CERT_TYPE_CUSTOMER CertType = 4 CertType_CERT_TYPE_TEMPORARY CertType = 5 + CertType_CERT_TYPE_COMMUNITY CertType = 6 ) // Enum value maps for CertType. @@ -92,6 +93,7 @@ var ( 3: "CERT_TYPE_PARTNER", 4: "CERT_TYPE_CUSTOMER", 5: "CERT_TYPE_TEMPORARY", + 6: "CERT_TYPE_COMMUNITY", } CertType_value = map[string]int32{ "CERT_TYPE_UNSPECIFIED": 0, @@ -100,6 +102,7 @@ var ( "CERT_TYPE_PARTNER": 3, "CERT_TYPE_CUSTOMER": 4, "CERT_TYPE_TEMPORARY": 5, + "CERT_TYPE_COMMUNITY": 6, } ) @@ -731,7 +734,7 @@ var file_license_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x49, 0x4e, 0x56, - 0x41, 0x4c, 0x49, 0x44, 0x10, 0x03, 0x2a, 0xa3, 0x01, 0x0a, 0x08, 0x43, 0x65, 0x72, 0x74, 0x54, + 0x41, 0x4c, 0x49, 0x44, 0x10, 0x03, 0x2a, 0xbc, 0x01, 0x0a, 0x08, 0x43, 0x65, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x41, 0x5f, 0x52, @@ -741,10 +744,12 @@ var file_license_proto_rawDesc = []byte{ 0x45, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x4e, 0x45, 0x52, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x45, 0x52, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x4f, 0x52, 0x41, 0x52, 0x59, 0x10, 0x05, 0x42, 0x2a, 0x5a, 0x28, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x68, 0x69, 0x6e, 0x6b, - 0x70, 0x61, 0x72, 0x71, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, - 0x2f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x4f, 0x52, 0x41, 0x52, 0x59, 0x10, 0x05, 0x12, 0x17, 0x0a, 0x13, + 0x43, 0x45, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, + 0x49, 0x54, 0x59, 0x10, 0x06, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x68, 0x69, 0x6e, 0x6b, 0x70, 0x61, 0x72, 0x71, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x2f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, + 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_license_proto_enumTypes = make([]protoimpl.EnumInfo, 2) diff --git a/proto/license.proto b/proto/license.proto index 3250a5f..4df077a 100644 --- a/proto/license.proto +++ b/proto/license.proto @@ -25,6 +25,7 @@ enum CertType { CERT_TYPE_PARTNER = 3; CERT_TYPE_CUSTOMER = 4; CERT_TYPE_TEMPORARY = 5; + CERT_TYPE_COMMUNITY = 6; } // The result of a certificate verfication operation. diff --git a/rust/license.rs b/rust/license.rs index e2702bc..7bda05a 100644 --- a/rust/license.rs +++ b/rust/license.rs @@ -126,6 +126,7 @@ pub enum CertType { Partner = 3, Customer = 4, Temporary = 5, + Community = 6, } impl CertType { /// String value of the enum field names used in the ProtoBuf definition. @@ -140,6 +141,7 @@ impl CertType { Self::Partner => "CERT_TYPE_PARTNER", Self::Customer => "CERT_TYPE_CUSTOMER", Self::Temporary => "CERT_TYPE_TEMPORARY", + Self::Community => "CERT_TYPE_COMMUNITY", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -151,6 +153,7 @@ impl CertType { "CERT_TYPE_PARTNER" => Some(Self::Partner), "CERT_TYPE_CUSTOMER" => Some(Self::Customer), "CERT_TYPE_TEMPORARY" => Some(Self::Temporary), + "CERT_TYPE_COMMUNITY" => Some(Self::Community), _ => None, } }