2018-09-17 22:11:24 +00:00
|
|
|
// Copyright 2018 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.
|
|
|
|
|
2018-10-09 19:49:13 +00:00
|
|
|
syntax = "proto2";
|
2018-09-17 22:11:24 +00:00
|
|
|
|
|
|
|
package goproto.protoc.import_public;
|
|
|
|
|
2018-09-22 00:44:00 +00:00
|
|
|
option go_package = "github.com/golang/protobuf/v2/cmd/protoc-gen-go/testdata/import_public";
|
2018-09-17 22:11:24 +00:00
|
|
|
|
2019-01-07 00:22:13 +00:00
|
|
|
import public "import_public/sub/a.proto"; // Different Go package.
|
|
|
|
import public "import_public/sub2/a.proto"; // Different Go package.
|
|
|
|
import public "import_public/b.proto"; // Same Go package.
|
2018-09-17 22:11:24 +00:00
|
|
|
|
|
|
|
message Public {
|
2018-10-09 19:49:13 +00:00
|
|
|
optional goproto.protoc.import_public.sub.M m = 1;
|
|
|
|
optional goproto.protoc.import_public.sub.E e = 2;
|
|
|
|
optional Local local = 3;
|
2018-09-17 22:11:24 +00:00
|
|
|
}
|