...

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

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

     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 = "proto3";
     6
     7package test;
     8
     9option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports";
    10
    11// test_a_1/m*.proto are in the same Go package and proto package.
    12// test_a_*/*.proto are in different Go packages, but the same proto package.
    13// test_b_1/*.proto are in the same Go package, but different proto packages.
    14// fmt/m.proto has a package name which conflicts with "fmt".
    15import "cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto";
    16import "cmd/protoc-gen-go/testdata/imports/test_a_1/m2.proto";
    17import "cmd/protoc-gen-go/testdata/imports/test_a_2/m3.proto"; // unused in this file
    18import "cmd/protoc-gen-go/testdata/imports/test_a_2/m4.proto"; // unused in this file
    19import "cmd/protoc-gen-go/testdata/imports/test_b_1/m1.proto";
    20import "cmd/protoc-gen-go/testdata/imports/test_b_1/m2.proto";
    21import "cmd/protoc-gen-go/testdata/imports/fmt/m.proto";
    22
    23message All {
    24  test.a.M1 am1 = 1;
    25  test.a.M2 am2 = 2;
    26  test.b.part1.M1 bm1 = 5;
    27  test.b.part2.M2 bm2 = 6;
    28  fmt.M fmt = 7;
    29}

View as plain text