| Index: third_party/protobuf/src/google/protobuf/unittest_optimize_for.proto
|
| diff --git a/third_party/protobuf/src/google/protobuf/unittest_optimize_for.proto b/third_party/protobuf/src/google/protobuf/unittest_optimize_for.proto
|
| index feecbef8d4a90961b35be988402e49e74fed313c..ee9cc7bd49211d2bbfc33219f334cd57142983f4 100644
|
| --- a/third_party/protobuf/src/google/protobuf/unittest_optimize_for.proto
|
| +++ b/third_party/protobuf/src/google/protobuf/unittest_optimize_for.proto
|
| @@ -1,6 +1,6 @@
|
| // Protocol Buffers - Google's data interchange format
|
| // Copyright 2008 Google Inc. All rights reserved.
|
| -// http://code.google.com/p/protobuf/
|
| +// https://developers.google.com/protocol-buffers/
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| @@ -34,6 +34,7 @@
|
| //
|
| // A proto file which uses optimize_for = CODE_SIZE.
|
|
|
| +syntax = "proto2";
|
| import "google/protobuf/unittest.proto";
|
|
|
| package protobuf_unittest;
|
| @@ -50,12 +51,17 @@ message TestOptimizedForSize {
|
| optional int32 test_extension = 1234;
|
| optional TestRequiredOptimizedForSize test_extension2 = 1235;
|
| }
|
| +
|
| + oneof foo {
|
| + int32 integer_field = 2;
|
| + string string_field = 3;
|
| + }
|
| }
|
|
|
| message TestRequiredOptimizedForSize {
|
| required int32 x = 1;
|
| }
|
| -
|
| +
|
| message TestOptionalOptimizedForSize {
|
| optional TestRequiredOptimizedForSize o = 1;
|
| }
|
|
|