cmd/protoc-gen-go/testdata/protoeditions/nested_messages.proto
raw| 1 | // Copyright 2024 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 | |
| 5 | edition = "2023"; |
| 6 | |
| 7 | package goproto.protoc.protoeditions; |
| 8 | |
| 9 | option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/protoeditions"; |
| 10 | |
| 11 | message Layer1 { |
| 12 | message Layer2 { |
| 13 | message Layer3 {} |
| 14 | Layer3 l3 = 1; |
| 15 | } |
| 16 | Layer2 l2 = 1; |
| 17 | Layer2.Layer3 l3 = 2; |
| 18 | } |