mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-17 01:12:51 +00:00
c92333953e
Now we'll get a generator error if a file is missing a go_package option. Change-Id: I89eec716f86956e6c164a61f5531c140b74bc099 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/222378 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
16 lines
404 B
Protocol Buffer
16 lines
404 B
Protocol Buffer
// Copyright 2020 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
syntax = "proto2";
|
|
|
|
package oneoftest;
|
|
|
|
option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/issue780_oneof_conflict";
|
|
|
|
message Foo {
|
|
oneof bar { // must be generated as Bar field in Foo struct
|
|
string get_bar = 1;
|
|
}
|
|
}
|