mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-29 18:32:46 +00:00
9a824c9a9e
This covers most of the TODO around validation. I left open the ones that we didn't have clear consensus on yet. Change-Id: I336c53173ee8d7447558b1e3a0c1ef945e986cd5 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/175140 Reviewed-by: Joe Tsai <joetsai@google.com> Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
20 lines
672 B
Protocol Buffer
20 lines
672 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;
|
|
|
|
option go_package = "github.com/golang/protobuf/v2/cmd/protoc-gen-go/testdata/import_public";
|
|
|
|
import "import_public/a.proto";
|
|
|
|
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
|
|
}
|