aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/protos/google/protobuf/field_presence_test.proto
blob: 14d91312554be838aed6906d8682c3db3ecdf76d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
syntax = "proto3";

package Google.ProtocolBuffers.TestProtos.FieldPresence;

// TODO(jieluo): Add repeated fields, oneof, maps to TestAllTypes 
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;
}