nested_messages.proto 453 B

12345678910111213141516171819
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. syntax = "proto2";
  5. package goproto.protoc.proto2;
  6. option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2";
  7. message Layer1 {
  8. message Layer2 {
  9. message Layer3 {
  10. }
  11. optional Layer3 l3 = 1;
  12. }
  13. optional Layer2 l2 = 1;
  14. optional Layer2.Layer3 l3 = 2;
  15. }