aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/unittest_well_known_types.proto
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2015-05-11 13:47:41 -0700
committerGravatar Feng Xiao <xfxyjwf@gmail.com>2015-05-11 13:47:41 -0700
commit33c92803d51098fad122246c9876caf9a8b55c92 (patch)
treeb3f7a5dd4fdd3180f82fbf1973e2d6d94d3fcbd6 /src/google/protobuf/unittest_well_known_types.proto
parentde5d45500c9a00a5810911a54abb2a6108697ac2 (diff)
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.proto28
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;
+}