test.proto 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2019 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. // This file contains a message which references a message that implements the
  5. // proto.Message interface but does not have the structure of a normal generated
  6. // message.
  7. syntax = "proto2";
  8. package goproto.proto.irregular;
  9. import "irregular/irregular.proto";
  10. option go_package = "google.golang.org/protobuf/internal/testprotos/irregular";
  11. message Message {
  12. optional IrregularMessage optional_message = 1;
  13. repeated IrregularMessage repeated_message = 2;
  14. required IrregularMessage required_message = 3;
  15. map<string,IrregularMessage> map_message = 4;
  16. oneof union {
  17. IrregularMessage oneof_message = 5;
  18. AberrantMessage oneof_aberrant_message = 6;
  19. }
  20. optional AberrantMessage optional_aberrant_message = 7;
  21. repeated AberrantMessage repeated_aberrant_message = 8;
  22. required AberrantMessage required_aberrant_message = 9;
  23. map<string,AberrantMessage> map_aberrant_message = 10;
  24. }