bin/x86-windows/google/protobuf/descriptor.proto in grpc-tools-1.67.0 vs bin/x86-windows/google/protobuf/descriptor.proto in grpc-tools-1.68.1
- old
+ new
@@ -633,17 +633,18 @@
// Clients can define custom options in extensions of this message. See above.
extensions 1000 to max;
}
message FieldOptions {
+ // NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
// The ctype option instructs the C++ code generator to use a different
// representation of the field than it normally would. See the specific
// options below. This option is only implemented to support use of
// [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
- // type "bytes" in the open source release -- sorry, we'll try to include
- // other types in a future version!
- optional CType ctype = 1 [default = STRING];
+ // type "bytes" in the open source release.
+ // TODO: make ctype actually deprecated.
+ optional CType ctype = 1 [/*deprecated = true,*/ default = STRING];
enum CType {
// Default mode.
STRING = 0;
// The option [ctype=CORD] may be applied to a non-repeated field of type
@@ -972,15 +973,14 @@
}
optional FieldPresence field_presence = 1 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FIELD,
targets = TARGET_TYPE_FILE,
- // TODO Enable this in google3 once protoc rolls out.
feature_support = {
edition_introduced: EDITION_2023,
},
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPLICIT" },
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPLICIT" },
edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
];
enum EnumType {
@@ -990,15 +990,14 @@
}
optional EnumType enum_type = 2 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_ENUM,
targets = TARGET_TYPE_FILE,
- // TODO Enable this in google3 once protoc rolls out.
feature_support = {
edition_introduced: EDITION_2023,
},
- edition_defaults = { edition: EDITION_PROTO2, value: "CLOSED" },
+ edition_defaults = { edition: EDITION_LEGACY, value: "CLOSED" },
edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" }
];
enum RepeatedFieldEncoding {
REPEATED_FIELD_ENCODING_UNKNOWN = 0;
@@ -1007,15 +1006,14 @@
}
optional RepeatedFieldEncoding repeated_field_encoding = 3 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FIELD,
targets = TARGET_TYPE_FILE,
- // TODO Enable this in google3 once protoc rolls out.
feature_support = {
edition_introduced: EDITION_2023,
},
- edition_defaults = { edition: EDITION_PROTO2, value: "EXPANDED" },
+ edition_defaults = { edition: EDITION_LEGACY, value: "EXPANDED" },
edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" }
];
enum Utf8Validation {
UTF8_VALIDATION_UNKNOWN = 0;
@@ -1025,15 +1023,14 @@
}
optional Utf8Validation utf8_validation = 4 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FIELD,
targets = TARGET_TYPE_FILE,
- // TODO Enable this in google3 once protoc rolls out.
feature_support = {
edition_introduced: EDITION_2023,
},
- edition_defaults = { edition: EDITION_PROTO2, value: "NONE" },
+ edition_defaults = { edition: EDITION_LEGACY, value: "NONE" },
edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" }
];
enum MessageEncoding {
MESSAGE_ENCODING_UNKNOWN = 0;
@@ -1042,15 +1039,14 @@
}
optional MessageEncoding message_encoding = 5 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FIELD,
targets = TARGET_TYPE_FILE,
- // TODO Enable this in google3 once protoc rolls out.
feature_support = {
edition_introduced: EDITION_2023,
},
- edition_defaults = { edition: EDITION_PROTO2, value: "LENGTH_PREFIXED" }
+ edition_defaults = { edition: EDITION_LEGACY, value: "LENGTH_PREFIXED" }
];
enum JsonFormat {
JSON_FORMAT_UNKNOWN = 0;
ALLOW = 1;
@@ -1059,14 +1055,13 @@
optional JsonFormat json_format = 6 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_MESSAGE,
targets = TARGET_TYPE_ENUM,
targets = TARGET_TYPE_FILE,
- // TODO Enable this in google3 once protoc rolls out.
feature_support = {
edition_introduced: EDITION_2023,
},
- edition_defaults = { edition: EDITION_PROTO2, value: "LEGACY_BEST_EFFORT" },
+ edition_defaults = { edition: EDITION_LEGACY, value: "LEGACY_BEST_EFFORT" },
edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" }
];
reserved 999;