From 33c92803d51098fad122246c9876caf9a8b55c92 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Mon, 11 May 2015 13:47:41 -0700 Subject: Include generated code of well-known types in protobuf C++ runtime. Change-Id: I23dee1c1d27b6440658680e9c273b6250213123c --- .../protobuf/unittest_well_known_types.proto | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/google/protobuf/unittest_well_known_types.proto (limited to 'src/google/protobuf/unittest_well_known_types.proto') 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; +} -- cgit v1.2.3