From c5c9c6a7e05a44724bc4bc6192ff995b4398d559 Mon Sep 17 00:00:00 2001 From: Jie Luo Date: Wed, 29 Apr 2015 11:33:07 -0700 Subject: field presence Reflection and tests --- .../google/protobuf/field_presence_test.proto | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 csharp/protos/google/protobuf/field_presence_test.proto (limited to 'csharp/protos') diff --git a/csharp/protos/google/protobuf/field_presence_test.proto b/csharp/protos/google/protobuf/field_presence_test.proto new file mode 100644 index 00000000..43b4f04b --- /dev/null +++ b/csharp/protos/google/protobuf/field_presence_test.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +package field_presence_test; + +option java_package = "com.google.protobuf"; +option java_outer_classname = "FieldPresenceTestProto"; +option java_generate_equals_and_hash = true; + +message TestAllTypes { + enum NestedEnum { + FOO = 0; + BAR = 1; + BAZ = 2; + } + message NestedMessage { + optional int32 value = 1; + } + + optional int32 optional_int32 = 1; + optional string optional_string = 2; + optional bytes optional_bytes = 3; + optional NestedEnum optional_nested_enum = 4; + optional NestedMessage optional_nested_message = 5; +} -- cgit v1.2.3