• 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
8// A proto file which is imported by unittest.proto to test importing.
9
10syntax = "proto2";
11
12package objc.protobuf.tests.import;
13
14// Test public import
15import public "objectivec/Tests/unittest_import_public.proto";
16
17option objc_class_prefix = "Import";
18
19message Message {
20  optional int32 d = 1;
21}
22
23enum Enum {
24  IMPORT_FOO = 7;
25  IMPORT_BAR = 8;
26  IMPORT_BAZ = 9;
27}
28
29
30// To use an enum in a map, it must has the first value as 0.
31enum EnumForMap {
32  UNKNOWN = 0;
33  FOO = 1;
34  BAR = 2;
35}
36