test.proto 783 B

12345678910111213141516171819202122232425
  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. }
  19. }