proto2.pb.go 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. // Code generated by protoc-gen-go. DO NOT EDIT.
  5. // source: proto2/proto2.proto
  6. package proto2
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. type Message struct {
  14. state protoimpl.MessageState
  15. sizeCache protoimpl.SizeCache
  16. unknownFields protoimpl.UnknownFields
  17. I32 *int32 `protobuf:"varint,1,opt,name=i32" json:"i32,omitempty"`
  18. M *Message `protobuf:"bytes,2,opt,name=m" json:"m,omitempty"`
  19. }
  20. func (x *Message) Reset() {
  21. *x = Message{}
  22. }
  23. func (x *Message) String() string {
  24. return protoimpl.X.MessageStringOf(x)
  25. }
  26. func (*Message) ProtoMessage() {}
  27. func (x *Message) ProtoReflect() protoreflect.Message {
  28. mi := &file_proto2_proto2_proto_msgTypes[0]
  29. if protoimpl.UnsafeEnabled && x != nil {
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. if ms.LoadMessageInfo() == nil {
  32. ms.StoreMessageInfo(mi)
  33. }
  34. return ms
  35. }
  36. return mi.MessageOf(x)
  37. }
  38. // Deprecated: Use Message.ProtoReflect.Descriptor instead.
  39. func (*Message) Descriptor() ([]byte, []int) {
  40. return file_proto2_proto2_proto_rawDescGZIP(), []int{0}
  41. }
  42. func (x *Message) GetI32() int32 {
  43. if x != nil && x.I32 != nil {
  44. return *x.I32
  45. }
  46. return 0
  47. }
  48. func (x *Message) GetM() *Message {
  49. if x != nil {
  50. return x.M
  51. }
  52. return nil
  53. }
  54. var File_proto2_proto2_proto protoreflect.FileDescriptor
  55. var file_proto2_proto2_proto_rawDesc = []byte{
  56. 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e,
  57. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
  58. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x49, 0x0a, 0x07,
  59. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x33, 0x32, 0x18, 0x01,
  60. 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x69, 0x33, 0x32, 0x12, 0x2c, 0x0a, 0x01, 0x6d, 0x18, 0x02,
  61. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
  62. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x4d, 0x65, 0x73,
  63. 0x73, 0x61, 0x67, 0x65, 0x52, 0x01, 0x6d, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  64. 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f,
  65. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
  66. 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61,
  67. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
  68. }
  69. var (
  70. file_proto2_proto2_proto_rawDescOnce sync.Once
  71. file_proto2_proto2_proto_rawDescData = file_proto2_proto2_proto_rawDesc
  72. )
  73. func file_proto2_proto2_proto_rawDescGZIP() []byte {
  74. file_proto2_proto2_proto_rawDescOnce.Do(func() {
  75. file_proto2_proto2_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_proto2_proto_rawDescData)
  76. })
  77. return file_proto2_proto2_proto_rawDescData
  78. }
  79. var file_proto2_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  80. var file_proto2_proto2_proto_goTypes = []interface{}{
  81. (*Message)(nil), // 0: goproto.protoc.proto2.Message
  82. }
  83. var file_proto2_proto2_proto_depIdxs = []int32{
  84. 0, // 0: goproto.protoc.proto2.Message.m:type_name -> goproto.protoc.proto2.Message
  85. 1, // [1:1] is the sub-list for method output_type
  86. 1, // [1:1] is the sub-list for method input_type
  87. 1, // [1:1] is the sub-list for extension type_name
  88. 1, // [1:1] is the sub-list for extension extendee
  89. 0, // [0:1] is the sub-list for field type_name
  90. }
  91. func init() { file_proto2_proto2_proto_init() }
  92. func file_proto2_proto2_proto_init() {
  93. if File_proto2_proto2_proto != nil {
  94. return
  95. }
  96. if !protoimpl.UnsafeEnabled {
  97. file_proto2_proto2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  98. switch v := v.(*Message); i {
  99. case 0:
  100. return &v.state
  101. case 1:
  102. return &v.sizeCache
  103. case 2:
  104. return &v.unknownFields
  105. default:
  106. return nil
  107. }
  108. }
  109. }
  110. type x struct{}
  111. out := protoimpl.TypeBuilder{
  112. File: protoimpl.DescBuilder{
  113. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  114. RawDescriptor: file_proto2_proto2_proto_rawDesc,
  115. NumEnums: 0,
  116. NumMessages: 1,
  117. NumExtensions: 0,
  118. NumServices: 0,
  119. },
  120. GoTypes: file_proto2_proto2_proto_goTypes,
  121. DependencyIndexes: file_proto2_proto2_proto_depIdxs,
  122. MessageInfos: file_proto2_proto2_proto_msgTypes,
  123. }.Build()
  124. File_proto2_proto2_proto = out.File
  125. file_proto2_proto2_proto_rawDesc = nil
  126. file_proto2_proto2_proto_goTypes = nil
  127. file_proto2_proto2_proto_depIdxs = nil
  128. }