mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-11 15:40:44 +00:00
Change-Id: Ied684945de38ab1895c3ce8afaa1d84cda1e24f9 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/566037 Auto-Submit: Lasse Folger <lassefolger@google.com> Reviewed-by: Michael Stapelberg <stapelberg@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
20 lines
697 B
Protocol Buffer
20 lines
697 B
Protocol Buffer
// 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.
|
|
|
|
syntax = "proto2";
|
|
|
|
package goproto.protoc.import_public;
|
|
|
|
import "cmd/protoc-gen-go/testdata/import_public/a.proto";
|
|
|
|
option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public";
|
|
|
|
message UsingPublicImport {
|
|
// Local is declared in b.proto, which is a public import of a.proto.
|
|
optional Local local = 1;
|
|
// Sub2Message is declared in sub2/a.proto, which is a public import of
|
|
// sub/a.proto, which is a public import of a.proto.
|
|
optional sub2.Sub2Message sub2 = 2; // declared in sub2/a.proto
|
|
}
|