| 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 |
option features.message_encoding = DELIMITED; |
| 11 |
|
| 12 |
message MessageWithMaps { |
| 13 |
map<string, string> map_without_message = 1; |
| 14 |
map<uint32, bytes> map_without_message_b = 2; |
| 15 |
map<int64, NestedMessage> map_with_message = 3; |
| 16 |
message NestedMessage { |
| 17 |
uint64 id = 1; |
| 18 |
string name = 2; |
| 19 |
} |
| 20 |
NestedMessage nested_message = 4; |
| 21 |
repeated NestedMessage repeated_message = 5; |
| 22 |
} |