unittest_lazy_dependencies_enum.proto 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. // Author: trafacz@google.com (Todd Rafacz)
  8. // Based on original Protocol Buffers design by
  9. // Sanjay Ghemawat, Jeff Dean, and others.
  10. //
  11. // A proto file we will use for unit testing.
  12. edition = "2023";
  13. // Treat all enums as closed by default (proto2 behavior).
  14. option features.enum_type = CLOSED;
  15. // Some generic_services option(s) added automatically.
  16. // See: http://go/proto2-generic-services-default
  17. option cc_generic_services = true; // auto-added
  18. option java_generic_services = true; // auto-added
  19. option py_generic_services = true; // auto-added
  20. option cc_enable_arenas = true;
  21. // We don't put this in a package within proto2 because we need to make sure
  22. // that the generated code doesn't depend on being in the proto2 namespace.
  23. // In test_util.h we do "using namespace unittest = protobuf_unittest".
  24. package protobuf_unittest.lazy_imports;
  25. // Protos optimized for SPEED use a strict superset of the generated code
  26. // of equivalent ones optimized for CODE_SIZE, so we should optimize all our
  27. // tests for speed unless explicitly testing code size optimization.
  28. option optimize_for = SPEED;
  29. option java_outer_classname = "UnittestLazyImportsEnumProto";
  30. enum LazyEnum {
  31. LAZY_ENUM_0 = 0;
  32. LAZY_ENUM_1 = 1;
  33. }