test.pb.go 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: irregular/test.proto
  3. package irregular
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  7. sync "sync"
  8. )
  9. const (
  10. // Verify that runtime/protoimpl is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  14. )
  15. type Message struct {
  16. state protoimpl.MessageState
  17. OptionalMessage *IrregularMessage `protobuf:"bytes,1,opt,name=optional_message,json=optionalMessage" json:"optional_message,omitempty"`
  18. RepeatedMessage []*IrregularMessage `protobuf:"bytes,2,rep,name=repeated_message,json=repeatedMessage" json:"repeated_message,omitempty"`
  19. RequiredMessage *IrregularMessage `protobuf:"bytes,3,req,name=required_message,json=requiredMessage" json:"required_message,omitempty"`
  20. MapMessage map[string]*IrregularMessage `protobuf:"bytes,4,rep,name=map_message,json=mapMessage" json:"map_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  21. // Types that are valid to be assigned to Union:
  22. // *Message_OneofMessage
  23. Union isMessage_Union `protobuf_oneof:"union"`
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. }
  27. func (x *Message) Reset() {
  28. *x = Message{}
  29. }
  30. func (x *Message) String() string {
  31. return protoimpl.X.MessageStringOf(x)
  32. }
  33. func (*Message) ProtoMessage() {}
  34. func (x *Message) ProtoReflect() protoreflect.Message {
  35. mi := &file_irregular_test_proto_msgTypes[0]
  36. if protoimpl.UnsafeEnabled && x != nil {
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. if ms.LoadMessageInfo() == nil {
  39. ms.StoreMessageInfo(mi)
  40. }
  41. return ms
  42. }
  43. return mi.MessageOf(x)
  44. }
  45. // Deprecated: Use Message.ProtoReflect.Type instead.
  46. func (*Message) Descriptor() ([]byte, []int) {
  47. return file_irregular_test_proto_rawDescGZIP(), []int{0}
  48. }
  49. func (x *Message) GetOptionalMessage() *IrregularMessage {
  50. if x != nil {
  51. return x.OptionalMessage
  52. }
  53. return nil
  54. }
  55. func (x *Message) GetRepeatedMessage() []*IrregularMessage {
  56. if x != nil {
  57. return x.RepeatedMessage
  58. }
  59. return nil
  60. }
  61. func (x *Message) GetRequiredMessage() *IrregularMessage {
  62. if x != nil {
  63. return x.RequiredMessage
  64. }
  65. return nil
  66. }
  67. func (x *Message) GetMapMessage() map[string]*IrregularMessage {
  68. if x != nil {
  69. return x.MapMessage
  70. }
  71. return nil
  72. }
  73. func (m *Message) GetUnion() isMessage_Union {
  74. if m != nil {
  75. return m.Union
  76. }
  77. return nil
  78. }
  79. func (x *Message) GetOneofMessage() *IrregularMessage {
  80. if x, ok := x.GetUnion().(*Message_OneofMessage); ok {
  81. return x.OneofMessage
  82. }
  83. return nil
  84. }
  85. type isMessage_Union interface {
  86. isMessage_Union()
  87. }
  88. type Message_OneofMessage struct {
  89. OneofMessage *IrregularMessage `protobuf:"bytes,5,opt,name=oneof_message,json=oneofMessage,oneof"`
  90. }
  91. func (*Message_OneofMessage) isMessage_Union() {}
  92. var File_irregular_test_proto protoreflect.FileDescriptor
  93. var file_irregular_test_proto_rawDesc = []byte{
  94. 0x0a, 0x14, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74,
  95. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  96. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x1a,
  97. 0x19, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67,
  98. 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x04, 0x0a, 0x07, 0x4d,
  99. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  100. 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  101. 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  102. 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67,
  103. 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x6f, 0x70, 0x74,
  104. 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10,
  105. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  106. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  107. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
  108. 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  109. 0x65, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
  110. 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6d,
  111. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67,
  112. 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72,
  113. 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
  114. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
  115. 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x6d, 0x61, 0x70, 0x5f,
  116. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e,
  117. 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72,
  118. 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  119. 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
  120. 0x0a, 0x6d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x6f,
  121. 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01,
  122. 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
  123. 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72,
  124. 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52,
  125. 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x68, 0x0a,
  126. 0x0f, 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
  127. 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
  128. 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  129. 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  130. 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65,
  131. 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61,
  132. 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e,
  133. 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
  134. 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69,
  135. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
  136. 0x6f, 0x73, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
  137. }
  138. var (
  139. file_irregular_test_proto_rawDescOnce sync.Once
  140. file_irregular_test_proto_rawDescData = file_irregular_test_proto_rawDesc
  141. )
  142. func file_irregular_test_proto_rawDescGZIP() []byte {
  143. file_irregular_test_proto_rawDescOnce.Do(func() {
  144. file_irregular_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_irregular_test_proto_rawDescData)
  145. })
  146. return file_irregular_test_proto_rawDescData
  147. }
  148. var file_irregular_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  149. var file_irregular_test_proto_goTypes = []interface{}{
  150. (*Message)(nil), // 0: goproto.proto.irregular.Message
  151. nil, // 1: goproto.proto.irregular.Message.MapMessageEntry
  152. (*IrregularMessage)(nil), // 2: goproto.proto.irregular.IrregularMessage
  153. }
  154. var file_irregular_test_proto_depIdxs = []int32{
  155. 2, // goproto.proto.irregular.Message.optional_message:type_name -> goproto.proto.irregular.IrregularMessage
  156. 2, // goproto.proto.irregular.Message.repeated_message:type_name -> goproto.proto.irregular.IrregularMessage
  157. 2, // goproto.proto.irregular.Message.required_message:type_name -> goproto.proto.irregular.IrregularMessage
  158. 1, // goproto.proto.irregular.Message.map_message:type_name -> goproto.proto.irregular.Message.MapMessageEntry
  159. 2, // goproto.proto.irregular.Message.oneof_message:type_name -> goproto.proto.irregular.IrregularMessage
  160. 2, // goproto.proto.irregular.Message.MapMessageEntry.value:type_name -> goproto.proto.irregular.IrregularMessage
  161. 6, // starting offset of method output_type sub-list
  162. 6, // starting offset of method input_type sub-list
  163. 6, // starting offset of extension type_name sub-list
  164. 6, // starting offset of extension extendee sub-list
  165. 0, // starting offset of field type_name sub-list
  166. }
  167. func init() { file_irregular_test_proto_init() }
  168. func file_irregular_test_proto_init() {
  169. if File_irregular_test_proto != nil {
  170. return
  171. }
  172. file_irregular_irregular_proto_init()
  173. if !protoimpl.UnsafeEnabled {
  174. file_irregular_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  175. switch v := v.(*Message); i {
  176. case 0:
  177. return &v.state
  178. case 6:
  179. return &v.sizeCache
  180. case 7:
  181. return &v.unknownFields
  182. default:
  183. return nil
  184. }
  185. }
  186. }
  187. file_irregular_test_proto_msgTypes[0].OneofWrappers = []interface{}{
  188. (*Message_OneofMessage)(nil),
  189. }
  190. out := protoimpl.TypeBuilder{
  191. File: protoimpl.DescBuilder{
  192. RawDescriptor: file_irregular_test_proto_rawDesc,
  193. NumEnums: 0,
  194. NumMessages: 2,
  195. NumExtensions: 0,
  196. NumServices: 0,
  197. },
  198. GoTypes: file_irregular_test_proto_goTypes,
  199. DependencyIndexes: file_irregular_test_proto_depIdxs,
  200. MessageInfos: file_irregular_test_proto_msgTypes,
  201. }.Build()
  202. File_irregular_test_proto = out.File
  203. file_irregular_test_proto_rawDesc = nil
  204. file_irregular_test_proto_goTypes = nil
  205. file_irregular_test_proto_depIdxs = nil
  206. }