| Index: third_party/protobuf/java/compatibility_tests/v2.5.0/more_protos/src/proto/com/google/protobuf/non_nested_extension_lite.proto
|
| diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/struct.proto b/third_party/protobuf/java/compatibility_tests/v2.5.0/more_protos/src/proto/com/google/protobuf/non_nested_extension_lite.proto
|
| similarity index 80%
|
| copy from third_party/protobuf/src/google/protobuf/util/internal/testdata/struct.proto
|
| copy to third_party/protobuf/java/compatibility_tests/v2.5.0/more_protos/src/proto/com/google/protobuf/non_nested_extension_lite.proto
|
| index c15aba0d6d9881b8963a0353cdd1e0aa0b4adc11..3c82659b5e823de6c9a7ed71e2ee28ace2d5c0f1 100644
|
| --- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/struct.proto
|
| +++ b/third_party/protobuf/java/compatibility_tests/v2.5.0/more_protos/src/proto/com/google/protobuf/non_nested_extension_lite.proto
|
| @@ -1,6 +1,6 @@
|
| // Protocol Buffers - Google's data interchange format
|
| // Copyright 2008 Google Inc. All rights reserved.
|
| -// https://developers.google.com/protocol-buffers/
|
| +// http://code.google.com/p/protobuf/
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| @@ -28,18 +28,23 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Proto to test proto3 struct.
|
| -syntax = "proto3";
|
| +// Author: Darick Tong (darick@google.com)
|
| +//
|
| +// A proto file with extensions for a MessageLite messages.
|
| +
|
|
|
| -package google.protobuf.testing.structs;
|
| -option java_package = "com.google.protobuf.testing.structs";
|
| +package protobuf_unittest;
|
|
|
| -import "google/protobuf/struct.proto";
|
| +option optimize_for = LITE_RUNTIME;
|
|
|
| -message StructType {
|
| - google.protobuf.Struct object = 1;
|
| +message MessageLiteToBeExtended {
|
| + extensions 1 to max;
|
| }
|
|
|
| -service TestService {
|
| - rpc Call(StructType) returns (StructType);
|
| +message MyNonNestedExtensionLite {
|
| }
|
| +
|
| +extend MessageLiteToBeExtended {
|
| + optional MyNonNestedExtensionLite nonNestedExtensionLite = 1;
|
| +}
|
| +
|
|
|