• 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
8syntax = "proto2";
9
10package google.protobuf.python.internal;
11
12import public "google/protobuf/internal/more_messages.proto";
13
14import "google/protobuf/internal/descriptor_pool_test1.proto";
15
16message DescriptorPoolTest3 {
17  extend DescriptorPoolTest1 {
18    optional DescriptorPoolTest3 descriptor_pool_test = 1001;
19  }
20
21  enum NestedEnum {
22    NU = 13;
23    XI = 14;
24  }
25
26  optional NestedEnum nested_enum = 1 [default = XI];
27
28  message NestedMessage {
29    enum NestedEnum {
30      OMICRON = 15;
31      PI = 16;
32    }
33    optional NestedEnum nested_enum = 1 [default = PI];
34    optional string nested_field = 2 [default = "nu"];
35    optional DeepNestedMessage deep_nested_message = 3;
36
37    message DeepNestedMessage {
38      enum NestedEnum {
39        RHO = 17;
40        SIGMA = 18;
41      }
42      optional NestedEnum nested_enum = 1 [default = RHO];
43      optional string nested_field = 2 [default = "sigma"];
44    }
45  }
46
47  optional NestedMessage nested_message = 2;
48}
49