From 80a7fcbb34c7f6a677db1bdb6370747365f86852 Mon Sep 17 00:00:00 2001 From: decoder Date: Fri, 30 Oct 2026 01:55:16 -0700 Subject: [PATCH] Re-sync the vendored shared schemas with protos v0.1.2 (protowire#447) Everything from `syntax` down now comes from trendvidia/protos v0.1.2, which adds file options. Declarations and field numbers are unchanged: protoc descriptors match before and after, file options aside. --- CHANGELOG.md | 4 ++++ proto/envelope/v1/envelope.proto | 5 ++++- proto/pxf/annotations.proto | 5 +++++ proto/pxf/bignum.proto | 12 ++++++++++-- proto/sbe/annotations.proto | 13 +++++++++++++ 5 files changed, 36 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c86ff8d..4c29f7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ format changes. ## [Unreleased] +### Changed + +- **The vendored shared schemas are re-synced with [trendvidia/protos](https://github.com/trendvidia/protos) v0.1.2** ([trendvidia/protowire#447](https://github.com/trendvidia/protowire/issues/447)). They gain protos' file options, and `envelope.proto`'s `go_package` now names a published package. Declarations and field numbers are unchanged, and so is this port's public API. + ## [1.1.0] — 2026-09-11 ### Added diff --git a/proto/envelope/v1/envelope.proto b/proto/envelope/v1/envelope.proto index c6f4e56..18efd44 100644 --- a/proto/envelope/v1/envelope.proto +++ b/proto/envelope/v1/envelope.proto @@ -17,7 +17,10 @@ syntax = "proto3"; package envelope.v1; -option go_package = "github.com/trendvidia/protowire/envelope/v1;envelope"; +option csharp_namespace = "Protowire.Envelopes.V1"; +option go_package = "github.com/trendvidia/protos/envelope/v1;envelopev1"; +option java_multiple_files = true; +option java_package = "org.protowire.envelope.v1"; // Envelope wraps every API response with transport metadata, // application-level error handling, and the success payload. diff --git a/proto/pxf/annotations.proto b/proto/pxf/annotations.proto index 98202cf..311c37f 100644 --- a/proto/pxf/annotations.proto +++ b/proto/pxf/annotations.proto @@ -7,6 +7,11 @@ package pxf; import "google/protobuf/descriptor.proto"; +option csharp_namespace = "Protowire.Pxf"; +option go_package = "github.com/trendvidia/protos/pxf;pxf"; +option java_multiple_files = true; +option java_package = "org.protowire.proto.pxf"; + // Extension numbers live in protowire's block in the global extension // registry, 1314–1363, granted by protocolbuffers/protobuf#28919; the PXF // sub-range is 1314–1318 (STABILITY.md promise 3). Before the block existed diff --git a/proto/pxf/bignum.proto b/proto/pxf/bignum.proto index 0b2ae14..bf8de5d 100644 --- a/proto/pxf/bignum.proto +++ b/proto/pxf/bignum.proto @@ -3,6 +3,11 @@ syntax = "proto3"; package pxf; +option csharp_namespace = "Protowire.Pxf"; +option go_package = "github.com/trendvidia/protos/pxf;pxf"; +option java_multiple_files = true; +option java_package = "org.protowire.proto.pxf"; + // Arbitrary-precision signed integer. // Wire: unsigned big-endian absolute value + sign flag. // PXF text: bare integer literal. @@ -20,9 +25,12 @@ message Decimal { bool negative = 3; } -// Arbitrary-precision binary floating point. +// Arbitrary-precision binary floating point: value = (-1)^negative × mantissa × 2^exponent, +// rounded to prec bits. // Wire: unsigned big-endian integer mantissa + binary exponent + precision + sign flag. -// PXF text: float literal with arbitrary mantissa precision. +// PXF text: numeric literal with a precision suffix, "p" and a bit count +// (e.g. "0.10000000000000001p53"), read at that precision, or at 256 bits +// without one. See draft -01 § PXF Annotations. message BigFloat { bytes mantissa = 1; int32 exponent = 2; diff --git a/proto/sbe/annotations.proto b/proto/sbe/annotations.proto index e47c1f9..4895e42 100644 --- a/proto/sbe/annotations.proto +++ b/proto/sbe/annotations.proto @@ -6,6 +6,19 @@ package sbe; import "google/protobuf/descriptor.proto"; +option csharp_namespace = "Protowire.Sbe"; +option go_package = "github.com/trendvidia/protos/sbe;sbe"; +option java_multiple_files = true; +option java_package = "org.protowire.proto.sbe"; + +// Extension numbers live in protowire's block in the global extension +// registry, 1314–1363, granted by protocolbuffers/protobuf#28919; the SBE +// sub-range is 1319–1326 (STABILITY.md promise 3). Before the block existed +// these sat at 50100, 50101, 50200, 50300 and 50301, inside an unregistered +// 50000–59999 squat. That range is retired and must never be reused: a +// descriptor carrying it predates v1.12 and should be diagnosed as stale +// rather than read. + extend google.protobuf.FileOptions { // SBE schema identifier. Required on files containing SBE messages. uint32 schema_id = 1319;