• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Protocol Buffers - Google's data interchange format
2// Copyright 2008 Google Inc.  All rights reserved.
3//
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file or at
6// https://developers.google.com/open-source/licenses/bsd
7
8edition = "2023";
9
10package unittest_drop_unknown_fields;
11
12// Treat all fields as implicit present by default (proto3 behavior).
13option features.field_presence = IMPLICIT;
14option objc_class_prefix = "DropUnknowns";
15option csharp_namespace = "Google.Protobuf.TestProtos";
16
17message Foo {
18  enum NestedEnum {
19    FOO = 0;
20    BAR = 1;
21    BAZ = 2;
22  }
23  int32 int32_value = 1;
24  NestedEnum enum_value = 2;
25}
26
27message FooWithExtraFields {
28  enum NestedEnum {
29    FOO = 0;
30    BAR = 1;
31    BAZ = 2;
32    MOO = 3;
33  }
34  int32 int32_value = 1;
35  NestedEnum enum_value = 2;
36  int32 extra_int32_value = 3;
37}
38