diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2015-05-11 13:47:41 -0700 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2015-05-11 13:47:41 -0700 |
commit | 33c92803d51098fad122246c9876caf9a8b55c92 (patch) | |
tree | b3f7a5dd4fdd3180f82fbf1973e2d6d94d3fcbd6 /src/google/protobuf/unittest_well_known_types.proto | |
parent | de5d45500c9a00a5810911a54abb2a6108697ac2 (diff) | |
download | protobuf-33c92803d51098fad122246c9876caf9a8b55c92.tar.gz protobuf-33c92803d51098fad122246c9876caf9a8b55c92.tar.bz2 protobuf-33c92803d51098fad122246c9876caf9a8b55c92.zip |
Include generated code of well-known types in protobuf C++ runtime.
Change-Id: I23dee1c1d27b6440658680e9c273b6250213123c
Diffstat (limited to 'src/google/protobuf/unittest_well_known_types.proto')
-rw-r--r-- | src/google/protobuf/unittest_well_known_types.proto | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/google/protobuf/unittest_well_known_types.proto b/src/google/protobuf/unittest_well_known_types.proto new file mode 100644 index 00000000..2d422d8c --- /dev/null +++ b/src/google/protobuf/unittest_well_known_types.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package protobuf_unittest; + +import "google/protobuf/any.proto"; +import "google/protobuf/api.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/source_context.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/type.proto"; +import "google/protobuf/wrappers.proto"; + +// Test that we can include all well-known types. +message TestWellKnownTypes { + google.protobuf.Any any_field = 1; + google.protobuf.Api api_field = 2; + google.protobuf.Duration duration_field = 3; + google.protobuf.Empty empty_field = 4; + google.protobuf.FieldMask field_mask_field = 5; + google.protobuf.SourceContext source_context_field = 6; + google.protobuf.Struct struct_field = 7; + google.protobuf.Timestamp timestamp_field = 8; + google.protobuf.Type type_field = 9; + google.protobuf.Int32Value int32_field = 10; +} |