Skip to content

Commit

Permalink
Merge tag 'refs/tags/sync-piper' into sync-stage
Browse files Browse the repository at this point in the history
  • Loading branch information
acozzette committed Oct 12, 2021
2 parents 2cb674a + 7fc691d commit 39e2166
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions google/protobuf/test_messages_proto2.proto
Expand Up @@ -194,6 +194,22 @@ message TestAllTypesProto2 {
optional uint32 group_uint32 = 203;
}

// default values
optional int32 default_int32 = 241 [ default = -123456789];
optional int64 default_int64 = 242 [ default = -9123456789123456789];
optional uint32 default_uint32 = 243 [ default = 2123456789];
optional uint64 default_uint64 = 244 [ default = 10123456789123456789];
optional sint32 default_sint32 = 245 [ default = -123456789];
optional sint64 default_sint64 = 246 [default = -9123456789123456789];
optional fixed32 default_fixed32 = 247 [ default = 2123456789];
optional fixed64 default_fixed64 = 248 [ default = 10123456789123456789];
optional sfixed32 default_sfixed32 = 249 [ default = -123456789];
optional sfixed64 default_sfixed64 = 250 [default = -9123456789123456789];
optional float default_float = 251 [ default = 9e9];
optional double default_double = 252 [ default = 7e22];
optional bool default_bool = 253 [ default = true];
optional string default_string = 254 [ default = "Rosebud"];

// Test field-name-to-JSON-name convention.
// (protobuf says names can be any valid C/C++ identifier.)
optional int32 fieldname1 = 401;
Expand Down

0 comments on commit 39e2166

Please sign in to comment.