cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.proto
raw| 1 | // Copyright 2020 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 | syntax = "proto2"; |
| 6 | |
| 7 | package oneoftest; |
| 8 | |
| 9 | option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/issue780_oneof_conflict"; |
| 10 | |
| 11 | message Foo { |
| 12 | oneof bar { // must be generated as Bar field in Foo struct |
| 13 | string get_bar = 1; |
| 14 | } |
| 15 | } |