Skip to content

Commit

Permalink
Merge pull request #2703 from square/bquenaudon.2023-11-05.bumpprotobuf
Browse files Browse the repository at this point in the history
Bump protobuf .proto files
  • Loading branch information
oldergod authored Nov 5, 2023
2 parents cc0f603 + a3e0e60 commit c51acc7
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions wire-schema/src/jvmMain/resources/google/protobuf/descriptor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,10 @@ message FieldDescriptorProto {
TYPE_BOOL = 8;
TYPE_STRING = 9;
// Tag-delimited aggregate.
// Group type is deprecated and not supported in proto3. However, Proto3
// Group type is deprecated and not supported after google.protobuf. However, Proto3
// implementations should still be able to parse the group wire format and
// treat group fields as unknown fields.
// treat group fields as unknown fields. In Editions, the group wire format
// can be enabled via the `message_encoding` feature.
TYPE_GROUP = 10;
TYPE_MESSAGE = 11; // Length-delimited aggregate.

Expand All @@ -246,8 +247,11 @@ message FieldDescriptorProto {
enum Label {
// 0 is reserved for errors
LABEL_OPTIONAL = 1;
LABEL_REQUIRED = 2;
LABEL_REPEATED = 3;
// The required label is only allowed in google.protobuf. In proto3 and Editions
// it's explicitly prohibited. In Editions, the `field_presence` feature
// can be used to get this behavior.
LABEL_REQUIRED = 2;
}

optional string name = 1;
Expand Down Expand Up @@ -640,7 +644,9 @@ message FieldOptions {
// a more efficient representation on the wire. Rather than repeatedly
// writing the tag and type for each element, the entire array is encoded as
// a single length-delimited blob. In proto3, only explicit setting it to
// false will avoid using packed encoding.
// false will avoid using packed encoding. This option is prohibited in
// Editions, but the `repeated_field_encoding` feature can be used to control
// the behavior.
optional bool packed = 2;

// The jstype option determines the JavaScript type used for values of the
Expand Down Expand Up @@ -968,14 +974,14 @@ message FeatureSet {

enum Utf8Validation {
UTF8_VALIDATION_UNKNOWN = 0;
UNVERIFIED = 1;
NONE = 1;
VERIFY = 2;
}
optional Utf8Validation utf8_validation = 4 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FIELD,
targets = TARGET_TYPE_FILE,
edition_defaults = { edition: EDITION_PROTO2, value: "UNVERIFIED" },
edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
];

Expand Down

0 comments on commit c51acc7

Please sign in to comment.