test_import_all.proto 988 B

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