diff --git a/build.assets/versions.mk b/build.assets/versions.mk index fe283c022c7..f2ab6edd2f1 100644 --- a/build.assets/versions.mk +++ b/build.assets/versions.mk @@ -18,7 +18,7 @@ LIBPCSCLITE_VERSION ?= 1.9.9-teleport DEVTOOLSET ?= devtoolset-12 # Protogen related versions. -BUF_VERSION ?= v1.50.1 +BUF_VERSION ?= v1.56.0 # Keep in sync with api/proto/buf.yaml (and buf.lock). GOGO_PROTO_TAG ?= v1.3.2 NODE_GRPC_TOOLS_VERSION ?= 1.12.4 diff --git a/gen/proto/ts/google/protobuf/descriptor_pb.ts b/gen/proto/ts/google/protobuf/descriptor_pb.ts index c0f84db4647..b93d72a7387 100644 --- a/gen/proto/ts/google/protobuf/descriptor_pb.ts +++ b/gen/proto/ts/google/protobuf/descriptor_pb.ts @@ -97,6 +97,13 @@ export interface FileDescriptorProto { * @generated from protobuf field: repeated int32 weak_dependency = 11; */ weakDependency: number[]; + /** + * Names of files imported by this file purely for the purpose of providing + * option extensions. These are excluded from the dependency list above. + * + * @generated from protobuf field: repeated string option_dependency = 15; + */ + optionDependency: string[]; /** * All top-level definitions in this file. * @@ -133,12 +140,18 @@ export interface FileDescriptorProto { * The supported values are "proto2", "proto3", and "editions". * * If `edition` is present, this value must be "editions". + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * * @generated from protobuf field: optional string syntax = 12; */ syntax?: string; /** * The edition of the proto file. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * * @generated from protobuf field: optional google.protobuf.Edition edition = 14; */ @@ -193,6 +206,12 @@ export interface DescriptorProto { * @generated from protobuf field: repeated string reserved_name = 10; */ reservedName: string[]; + /** + * Support for `export` and `local` keywords on enums. + * + * @generated from protobuf field: optional google.protobuf.SymbolVisibility visibility = 11; + */ + visibility?: SymbolVisibility; } /** * @generated from protobuf message google.protobuf.DescriptorProto.ExtensionRange @@ -596,6 +615,12 @@ export interface EnumDescriptorProto { * @generated from protobuf field: repeated string reserved_name = 5; */ reservedName: string[]; + /** + * Support for `export` and `local` keywords on enums. + * + * @generated from protobuf field: optional google.protobuf.SymbolVisibility visibility = 6; + */ + visibility?: SymbolVisibility; } /** * Range of reserved numeric values. Reserved values may not be used by @@ -889,6 +914,9 @@ export interface FileOptions { rubyPackage?: string; /** * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50; */ @@ -1020,6 +1048,9 @@ export interface MessageOptions { deprecatedLegacyJsonFieldConflicts?: boolean; /** * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * * @generated from protobuf field: optional google.protobuf.FeatureSet features = 12; */ @@ -1146,6 +1177,9 @@ export interface FieldOptions { editionDefaults: FieldOptions_EditionDefault[]; /** * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * * @generated from protobuf field: optional google.protobuf.FeatureSet features = 21; */ @@ -1334,6 +1368,9 @@ export enum FieldOptions_OptionTargetType { export interface OneofOptions { /** * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * * @generated from protobuf field: optional google.protobuf.FeatureSet features = 1; */ @@ -1379,6 +1416,9 @@ export interface EnumOptions { deprecatedLegacyJsonFieldConflicts?: boolean; /** * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * * @generated from protobuf field: optional google.protobuf.FeatureSet features = 7; */ @@ -1405,6 +1445,9 @@ export interface EnumValueOptions { deprecated?: boolean; /** * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * * @generated from protobuf field: optional google.protobuf.FeatureSet features = 2; */ @@ -1436,6 +1479,9 @@ export interface EnumValueOptions { export interface ServiceOptions { /** * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * * @generated from protobuf field: optional google.protobuf.FeatureSet features = 34; */ @@ -1485,6 +1531,9 @@ export interface MethodOptions { idempotencyLevel?: MethodOptions_IdempotencyLevel; /** * Any features defined in the specific edition. + * WARNING: This field should only be used by protobuf plugins or special + * cases like the proto compiler. Other uses are discouraged and + * developers should rely on the protoreflect APIs for their client language. * * @generated from protobuf field: optional google.protobuf.FeatureSet features = 35; */ @@ -1621,6 +1670,54 @@ export interface FeatureSet { * @generated from protobuf field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6; */ jsonFormat?: FeatureSet_JsonFormat; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7; + */ + enforceNamingStyle?: FeatureSet_EnforceNamingStyle; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8; + */ + defaultSymbolVisibility?: FeatureSet_VisibilityFeature_DefaultSymbolVisibility; +} +/** + * @generated from protobuf message google.protobuf.FeatureSet.VisibilityFeature + */ +export interface FeatureSet_VisibilityFeature { +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility + */ +export enum FeatureSet_VisibilityFeature_DefaultSymbolVisibility { + /** + * @generated from protobuf enum value: DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0; + */ + DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0, + /** + * Default pre-EDITION_2024, all UNSET visibility are export. + * + * @generated from protobuf enum value: EXPORT_ALL = 1; + */ + EXPORT_ALL = 1, + /** + * All top-level symbols default to export, nested default to local. + * + * @generated from protobuf enum value: EXPORT_TOP_LEVEL = 2; + */ + EXPORT_TOP_LEVEL = 2, + /** + * All symbols default to local. + * + * @generated from protobuf enum value: LOCAL_ALL = 3; + */ + LOCAL_ALL = 3, + /** + * All symbols local by default. Nested types cannot be exported. + * With special case caveat for message { enum {} reserved 1 to max; } + * This is the recommended setting for new protos. + * + * @generated from protobuf enum value: STRICT = 4; + */ + STRICT = 4 } /** * @generated from protobuf enum google.protobuf.FeatureSet.FieldPresence @@ -1728,6 +1825,23 @@ export enum FeatureSet_JsonFormat { */ LEGACY_BEST_EFFORT = 2 } +/** + * @generated from protobuf enum google.protobuf.FeatureSet.EnforceNamingStyle + */ +export enum FeatureSet_EnforceNamingStyle { + /** + * @generated from protobuf enum value: ENFORCE_NAMING_STYLE_UNKNOWN = 0; + */ + ENFORCE_NAMING_STYLE_UNKNOWN = 0, + /** + * @generated from protobuf enum value: STYLE2024 = 1; + */ + STYLE2024 = 1, + /** + * @generated from protobuf enum value: STYLE_LEGACY = 2; + */ + STYLE_LEGACY = 2 +} /** * A compiled specification for the defaults of a set of features. These * messages are generated from FeatureSet extensions and can be used to seed @@ -2099,6 +2213,29 @@ export enum Edition { */ EDITION_MAX = 2147483647 } +/** + * Describes the 'visibility' of a symbol with respect to the proto import + * system. Symbols can only be imported when the visibility rules do not prevent + * it (ex: local symbols cannot be imported). Visibility modifiers can only set + * on `message` and `enum` as they are the only types available to be referenced + * from other files. + * + * @generated from protobuf enum google.protobuf.SymbolVisibility + */ +export enum SymbolVisibility { + /** + * @generated from protobuf enum value: VISIBILITY_UNSET = 0; + */ + VISIBILITY_UNSET = 0, + /** + * @generated from protobuf enum value: VISIBILITY_LOCAL = 1; + */ + VISIBILITY_LOCAL = 1, + /** + * @generated from protobuf enum value: VISIBILITY_EXPORT = 2; + */ + VISIBILITY_EXPORT = 2 +} // @generated message type with reflection information, may provide speed optimized methods class FileDescriptorSet$Type extends MessageType { constructor() { @@ -2155,6 +2292,7 @@ class FileDescriptorProto$Type extends MessageType { { no: 3, name: "dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "public_dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ }, { no: 11, name: "weak_dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ }, + { no: 15, name: "option_dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "message_type", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DescriptorProto }, { no: 5, name: "enum_type", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumDescriptorProto }, { no: 6, name: "service", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ServiceDescriptorProto }, @@ -2170,6 +2308,7 @@ class FileDescriptorProto$Type extends MessageType { message.dependency = []; message.publicDependency = []; message.weakDependency = []; + message.optionDependency = []; message.messageType = []; message.enumType = []; message.service = []; @@ -2206,6 +2345,9 @@ class FileDescriptorProto$Type extends MessageType { else message.weakDependency.push(reader.int32()); break; + case /* repeated string option_dependency */ 15: + message.optionDependency.push(reader.string()); + break; case /* repeated google.protobuf.DescriptorProto message_type */ 4: message.messageType.push(DescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2257,6 +2399,9 @@ class FileDescriptorProto$Type extends MessageType { /* repeated int32 weak_dependency = 11; */ for (let i = 0; i < message.weakDependency.length; i++) writer.tag(11, WireType.Varint).int32(message.weakDependency[i]); + /* repeated string option_dependency = 15; */ + for (let i = 0; i < message.optionDependency.length; i++) + writer.tag(15, WireType.LengthDelimited).string(message.optionDependency[i]); /* repeated google.protobuf.DescriptorProto message_type = 4; */ for (let i = 0; i < message.messageType.length; i++) DescriptorProto.internalBinaryWrite(message.messageType[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); @@ -2304,7 +2449,8 @@ class DescriptorProto$Type extends MessageType { { no: 8, name: "oneof_decl", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OneofDescriptorProto }, { no: 7, name: "options", kind: "message", T: () => MessageOptions }, { no: 9, name: "reserved_range", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DescriptorProto_ReservedRange }, - { no: 10, name: "reserved_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + { no: 10, name: "reserved_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 11, name: "visibility", kind: "enum", opt: true, T: () => ["google.protobuf.SymbolVisibility", SymbolVisibility] } ]); } create(value?: PartialMessage): DescriptorProto { @@ -2356,6 +2502,9 @@ class DescriptorProto$Type extends MessageType { case /* repeated string reserved_name */ 10: message.reservedName.push(reader.string()); break; + case /* optional google.protobuf.SymbolVisibility visibility */ 11: + message.visibility = reader.int32(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -2398,6 +2547,9 @@ class DescriptorProto$Type extends MessageType { /* repeated string reserved_name = 10; */ for (let i = 0; i < message.reservedName.length; i++) writer.tag(10, WireType.LengthDelimited).string(message.reservedName[i]); + /* optional google.protobuf.SymbolVisibility visibility = 11; */ + if (message.visibility !== undefined) + writer.tag(11, WireType.Varint).int32(message.visibility); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -2841,7 +2993,8 @@ class EnumDescriptorProto$Type extends MessageType { { no: 2, name: "value", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumValueDescriptorProto }, { no: 3, name: "options", kind: "message", T: () => EnumOptions }, { no: 4, name: "reserved_range", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumDescriptorProto_EnumReservedRange }, - { no: 5, name: "reserved_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + { no: 5, name: "reserved_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 6, name: "visibility", kind: "enum", opt: true, T: () => ["google.protobuf.SymbolVisibility", SymbolVisibility] } ]); } create(value?: PartialMessage): EnumDescriptorProto { @@ -2873,6 +3026,9 @@ class EnumDescriptorProto$Type extends MessageType { case /* repeated string reserved_name */ 5: message.reservedName.push(reader.string()); break; + case /* optional google.protobuf.SymbolVisibility visibility */ 6: + message.visibility = reader.int32(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -2900,6 +3056,9 @@ class EnumDescriptorProto$Type extends MessageType { /* repeated string reserved_name = 5; */ for (let i = 0; i < message.reservedName.length; i++) writer.tag(5, WireType.LengthDelimited).string(message.reservedName[i]); + /* optional google.protobuf.SymbolVisibility visibility = 6; */ + if (message.visibility !== undefined) + writer.tag(6, WireType.Varint).int32(message.visibility); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -4191,7 +4350,9 @@ class FeatureSet$Type extends MessageType { { no: 3, name: "repeated_field_encoding", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.RepeatedFieldEncoding", FeatureSet_RepeatedFieldEncoding] }, { no: 4, name: "utf8_validation", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.Utf8Validation", FeatureSet_Utf8Validation] }, { no: 5, name: "message_encoding", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.MessageEncoding", FeatureSet_MessageEncoding] }, - { no: 6, name: "json_format", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.JsonFormat", FeatureSet_JsonFormat] } + { no: 6, name: "json_format", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.JsonFormat", FeatureSet_JsonFormat] }, + { no: 7, name: "enforce_naming_style", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.EnforceNamingStyle", FeatureSet_EnforceNamingStyle] }, + { no: 8, name: "default_symbol_visibility", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility", FeatureSet_VisibilityFeature_DefaultSymbolVisibility] } ]); } create(value?: PartialMessage): FeatureSet { @@ -4223,6 +4384,12 @@ class FeatureSet$Type extends MessageType { case /* optional google.protobuf.FeatureSet.JsonFormat json_format */ 6: message.jsonFormat = reader.int32(); break; + case /* optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style */ 7: + message.enforceNamingStyle = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility */ 8: + message.defaultSymbolVisibility = reader.int32(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -4253,6 +4420,12 @@ class FeatureSet$Type extends MessageType { /* optional google.protobuf.FeatureSet.JsonFormat json_format = 6; */ if (message.jsonFormat !== undefined) writer.tag(6, WireType.Varint).int32(message.jsonFormat); + /* optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7; */ + if (message.enforceNamingStyle !== undefined) + writer.tag(7, WireType.Varint).int32(message.enforceNamingStyle); + /* optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8; */ + if (message.defaultSymbolVisibility !== undefined) + writer.tag(8, WireType.Varint).int32(message.defaultSymbolVisibility); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -4264,6 +4437,31 @@ class FeatureSet$Type extends MessageType { */ export const FeatureSet = new FeatureSet$Type(); // @generated message type with reflection information, may provide speed optimized methods +class FeatureSet_VisibilityFeature$Type extends MessageType { + constructor() { + super("google.protobuf.FeatureSet.VisibilityFeature", []); + } + create(value?: PartialMessage): FeatureSet_VisibilityFeature { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSet_VisibilityFeature): FeatureSet_VisibilityFeature { + return target ?? this.create(); + } + internalBinaryWrite(message: FeatureSet_VisibilityFeature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSet.VisibilityFeature + */ +export const FeatureSet_VisibilityFeature = new FeatureSet_VisibilityFeature$Type(); +// @generated message type with reflection information, may provide speed optimized methods class FeatureSetDefaults$Type extends MessageType { constructor() { super("google.protobuf.FeatureSetDefaults", [