| 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 |
|
| 5 |
syntax = "proto2"; |
| 6 |
|
| 7 |
package goproto.protoc.import_public; |
| 8 |
|
| 9 |
// Same Go package. |
| 10 |
import public "cmd/protoc-gen-go/testdata/import_public/b.proto"; |
| 11 |
|
| 12 |
// Different Go package. |
| 13 |
import public "cmd/protoc-gen-go/testdata/import_public/sub/a.proto"; |
| 14 |
|
| 15 |
option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public"; |
| 16 |
|
| 17 |
message Public { |
| 18 |
optional goproto.protoc.import_public.sub.M m = 1; |
| 19 |
optional goproto.protoc.import_public.sub.E e = 2; |
| 20 |
optional Local local = 3; |
| 21 |
} |