diff --git a/gen/pb-go/events/v1/events.pb.go b/gen/pb-go/events/v1/events.pb.go index 59b7d93d..203f702a 100644 --- a/gen/pb-go/events/v1/events.pb.go +++ b/gen/pb-go/events/v1/events.pb.go @@ -440,13 +440,15 @@ var file_events_proto_rawDesc = []byte{ 0x68, 0x12, 0x3a, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x58, 0x0a, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x6b, 0x0a, 0x1c, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0xea, 0x02, 0x10, 0x53, 0x69, 0x67, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x3a, 0x3a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( diff --git a/gen/pb-ruby/lib/events_pb.rb b/gen/pb-ruby/lib/events_pb.rb index b8d4b8c8..56d88668 100644 --- a/gen/pb-ruby/lib/events_pb.rb +++ b/gen/pb-ruby/lib/events_pb.rb @@ -37,14 +37,10 @@ end end -module Dev - module Sigstore - module Events - module V1 - CloudEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.events.v1.CloudEvent").msgclass - CloudEvent::CloudEventAttributeValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue").msgclass - CloudEventBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.events.v1.CloudEventBatch").msgclass - end - end +module Sigstore + module Events + CloudEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.events.v1.CloudEvent").msgclass + CloudEvent::CloudEventAttributeValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue").msgclass + CloudEventBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.events.v1.CloudEventBatch").msgclass end end diff --git a/gen/pb-rust/sigstore-protobuf-specs/src/generated/file_descriptor_set.bin b/gen/pb-rust/sigstore-protobuf-specs/src/generated/file_descriptor_set.bin index 5689ad9f..13c9ef2f 100644 Binary files a/gen/pb-rust/sigstore-protobuf-specs/src/generated/file_descriptor_set.bin and b/gen/pb-rust/sigstore-protobuf-specs/src/generated/file_descriptor_set.bin differ diff --git a/protos/events.proto b/protos/events.proto index 0091c326..7851fdce 100644 --- a/protos/events.proto +++ b/protos/events.proto @@ -23,41 +23,42 @@ syntax = "proto3"; package dev.sigstore.events.v1; - + import "google/protobuf/any.proto"; import "google/protobuf/timestamp.proto"; - + option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/events/v1"; option java_package = "dev.sigstore.proto.events.v1"; option java_multiple_files = true; - + option ruby_package = "Sigstore::Events"; + message CloudEvent { - + // -- CloudEvent Context Attributes - + // Required Attributes string id = 1; string source = 2; // URI-reference string spec_version = 3; string type = 4; - + // Optional & Extension Attributes map attributes = 5; - + // -- CloudEvent Data (Bytes, Text, or Proto) oneof data { bytes binary_data = 6; string text_data = 7; google.protobuf.Any proto_data = 8; } - + /** * The CloudEvent specification defines * seven attribute value types... */ - + message CloudEventAttributeValue { - + oneof attr { bool ce_boolean = 1; int32 ce_integer = 2; @@ -69,13 +70,12 @@ } } } - + /** * CloudEvent Protobuf Batch Format * */ - + message CloudEventBatch { repeated CloudEvent events = 1; } - \ No newline at end of file