...

Text file src/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/c.proto

Documentation: google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public

     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
     5syntax = "proto2";
     6
     7package goproto.protoc.import_public;
     8
     9option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public";
    10
    11import "cmd/protoc-gen-go/testdata/import_public/a.proto";
    12
    13message UsingPublicImport {
    14  // Local is declared in b.proto, which is a public import of a.proto.
    15  optional Local local = 1;
    16  // Sub2Message is declared in sub2/a.proto, which is a public import of
    17  // sub/a.proto, which is a public import of a.proto.
    18  optional sub2.Sub2Message sub2 = 2; // declared in sub2/a.proto
    19}

View as plain text