aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/protos
diff options
context:
space:
mode:
authorGravatar Jie Luo <anandolee@gmail.com>2015-04-29 11:33:07 -0700
committerGravatar Jie Luo <anandolee@gmail.com>2015-04-29 11:33:07 -0700
commitc5c9c6a7e05a44724bc4bc6192ff995b4398d559 (patch)
treebb4eab9a4c4830b7e6d91f83b1309498a9e41578 /csharp/protos
parent8bae6c09bc8c8be808f0acc9b2ad4c9811493060 (diff)
field presence Reflection and tests
Diffstat (limited to 'csharp/protos')
-rw-r--r--csharp/protos/google/protobuf/field_presence_test.proto24
1 files changed, 24 insertions, 0 deletions
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;
+}