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: kenton@google.com (Kenton Varda) 9// Based on original Protocol Buffers design by 10// Sanjay Ghemawat, Jeff Dean, and others. 11// 12// A proto file which is imported by unittest_proto3.proto to test importing. 13 14syntax = "proto3"; 15 16// We don't put this in a package within proto2 because we need to make sure 17// that the generated code doesn't depend on being in the proto2 namespace. 18// In test_util.h we do 19// "using namespace unittest_import = protobuf_unittest_import". 20package protobuf_unittest_import; 21 22option optimize_for = SPEED; 23option cc_enable_arenas = true; 24 25// Exercise the java_package option. 26option java_package = "com.google.protobuf.test"; 27option csharp_namespace = "Google.Protobuf.TestProtos"; 28 29// Do not set a java_outer_classname here to verify that Proto2 works without 30// one. 31 32// Test public import 33import public "google/protobuf/unittest_import_public_proto3.proto"; 34 35message ImportMessage { 36 int32 d = 1; 37} 38 39enum ImportEnum { 40 IMPORT_ENUM_UNSPECIFIED = 0; 41 IMPORT_FOO = 7; 42 IMPORT_BAR = 8; 43 IMPORT_BAZ = 9; 44} 45 46