unittest_drop_unknown_fields.proto 875 B

12345678910111213141516171819202122232425262728293031323334353637
  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. edition = "2023";
  8. package unittest_drop_unknown_fields;
  9. // Treat all fields as implicit present by default (proto3 behavior).
  10. option features.field_presence = IMPLICIT;
  11. option objc_class_prefix = "DropUnknowns";
  12. option csharp_namespace = "Google.Protobuf.TestProtos";
  13. message Foo {
  14. enum NestedEnum {
  15. FOO = 0;
  16. BAR = 1;
  17. BAZ = 2;
  18. }
  19. int32 int32_value = 1;
  20. NestedEnum enum_value = 2;
  21. }
  22. message FooWithExtraFields {
  23. enum NestedEnum {
  24. FOO = 0;
  25. BAR = 1;
  26. BAZ = 2;
  27. MOO = 3;
  28. }
  29. int32 int32_value = 1;
  30. NestedEnum enum_value = 2;
  31. int32 extra_int32_value = 3;
  32. }