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 8// Author: trafacz@google.com (Todd Rafacz) 9// Based on original Protocol Buffers design by 10// Sanjay Ghemawat, Jeff Dean, and others. 11// 12// A proto file we will use for unit testing. 13 14edition = "2023"; 15 16import "google/protobuf/descriptor.proto"; 17import "google/protobuf/unittest_lazy_dependencies_enum.proto"; 18 19// Some generic_services option(s) added automatically. 20// See: http://go/proto2-generic-services-default 21option cc_generic_services = true; // auto-added 22option java_generic_services = true; // auto-added 23option py_generic_services = true; // auto-added 24option cc_enable_arenas = true; 25 26// We don't put this in a package within proto2 because we need to make sure 27// that the generated code doesn't depend on being in the proto2 namespace. 28// In test_util.h we do "using namespace unittest = protobuf_unittest". 29package protobuf_unittest.lazy_imports; 30 31// Protos optimized for SPEED use a strict superset of the generated code 32// of equivalent ones optimized for CODE_SIZE, so we should optimize all our 33// tests for speed unless explicitly testing code size optimization. 34option optimize_for = SPEED; 35 36option java_outer_classname = "UnittestLazyImportsCustomOptionProto"; 37 38message LazyMessage { 39 int32 a = 1; 40} 41 42extend google.protobuf.MessageOptions { 43 LazyEnum lazy_enum_option = 138596335 [default = LAZY_ENUM_1]; 44} 45