fieldnames.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  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: fieldnames/fieldnames.proto
  6. package fieldnames
  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. // Assorted edge cases in field name conflict resolution.
  14. //
  15. // Not all (or possibly any) of these behave in an easily-understood fashion.
  16. // This exists to demonstrate the current behavior and catch unintended
  17. // changes in it.
  18. type Message struct {
  19. state protoimpl.MessageState
  20. sizeCache protoimpl.SizeCache
  21. unknownFields protoimpl.UnknownFields
  22. // Various CamelCase conversions.
  23. FieldOne *string `protobuf:"bytes,1,opt,name=field_one,json=fieldOne" json:"field_one,omitempty"`
  24. FieldTwo *string `protobuf:"bytes,2,opt,name=FieldTwo" json:"FieldTwo,omitempty"`
  25. FieldThree *string `protobuf:"bytes,3,opt,name=fieldThree" json:"fieldThree,omitempty"`
  26. Field_Four *string `protobuf:"bytes,4,opt,name=field__four,json=fieldFour" json:"field__four,omitempty"`
  27. // Field names that conflict with standard methods on the message struct.
  28. Descriptor_ *string `protobuf:"bytes,10,opt,name=descriptor" json:"descriptor,omitempty"`
  29. Marshal_ *string `protobuf:"bytes,11,opt,name=marshal" json:"marshal,omitempty"`
  30. Unmarshal_ *string `protobuf:"bytes,12,opt,name=unmarshal" json:"unmarshal,omitempty"`
  31. ProtoMessage_ *string `protobuf:"bytes,13,opt,name=proto_message,json=protoMessage" json:"proto_message,omitempty"`
  32. // Field names that conflict with each other after CamelCasing.
  33. CamelCase *string `protobuf:"bytes,20,opt,name=CamelCase" json:"CamelCase,omitempty"`
  34. CamelCase_ *string `protobuf:"bytes,21,opt,name=CamelCase_,json=CamelCase" json:"CamelCase_,omitempty"`
  35. CamelCase__ *string `protobuf:"bytes,22,opt,name=camel_case,json=camelCase" json:"camel_case,omitempty"` // conflicts with 20, 21
  36. CamelCase___ *string `protobuf:"bytes,23,opt,name=CamelCase__,json=CamelCase" json:"CamelCase__,omitempty"` // conflicts with 21, 21, renamed 22
  37. // Field with a getter that conflicts with another field.
  38. GetName *string `protobuf:"bytes,30,opt,name=get_name,json=getName" json:"get_name,omitempty"`
  39. Name_ *string `protobuf:"bytes,31,opt,name=name" json:"name,omitempty"`
  40. // Oneof that conflicts with its first field: The oneof is renamed.
  41. //
  42. // Types that are assignable to OneofConflictA_:
  43. // *Message_OneofConflictA
  44. OneofConflictA_ isMessage_OneofConflictA_ `protobuf_oneof:"oneof_conflict_a"`
  45. // Oneof that conflicts with its second field: The field is renamed.
  46. //
  47. // Types that are assignable to OneofConflictB:
  48. // *Message_OneofNoConflict
  49. // *Message_OneofConflictB_
  50. OneofConflictB isMessage_OneofConflictB `protobuf_oneof:"oneof_conflict_b"`
  51. // Oneof with a field name that conflicts with a nested message.
  52. //
  53. // Types that are assignable to OneofConflictC:
  54. // *Message_OneofMessageConflict_
  55. OneofConflictC isMessage_OneofConflictC `protobuf_oneof:"oneof_conflict_c"`
  56. }
  57. func (x *Message) Reset() {
  58. *x = Message{}
  59. }
  60. func (x *Message) String() string {
  61. return protoimpl.X.MessageStringOf(x)
  62. }
  63. func (*Message) ProtoMessage() {}
  64. func (x *Message) ProtoReflect() protoreflect.Message {
  65. mi := &file_fieldnames_fieldnames_proto_msgTypes[0]
  66. if protoimpl.UnsafeEnabled && x != nil {
  67. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  68. if ms.LoadMessageInfo() == nil {
  69. ms.StoreMessageInfo(mi)
  70. }
  71. return ms
  72. }
  73. return mi.MessageOf(x)
  74. }
  75. // Deprecated: Use Message.ProtoReflect.Descriptor instead.
  76. func (*Message) Descriptor() ([]byte, []int) {
  77. return file_fieldnames_fieldnames_proto_rawDescGZIP(), []int{0}
  78. }
  79. func (x *Message) GetFieldOne() string {
  80. if x != nil && x.FieldOne != nil {
  81. return *x.FieldOne
  82. }
  83. return ""
  84. }
  85. func (x *Message) GetFieldTwo() string {
  86. if x != nil && x.FieldTwo != nil {
  87. return *x.FieldTwo
  88. }
  89. return ""
  90. }
  91. func (x *Message) GetFieldThree() string {
  92. if x != nil && x.FieldThree != nil {
  93. return *x.FieldThree
  94. }
  95. return ""
  96. }
  97. func (x *Message) GetField_Four() string {
  98. if x != nil && x.Field_Four != nil {
  99. return *x.Field_Four
  100. }
  101. return ""
  102. }
  103. func (x *Message) GetDescriptor_() string {
  104. if x != nil && x.Descriptor_ != nil {
  105. return *x.Descriptor_
  106. }
  107. return ""
  108. }
  109. func (x *Message) GetMarshal_() string {
  110. if x != nil && x.Marshal_ != nil {
  111. return *x.Marshal_
  112. }
  113. return ""
  114. }
  115. func (x *Message) GetUnmarshal_() string {
  116. if x != nil && x.Unmarshal_ != nil {
  117. return *x.Unmarshal_
  118. }
  119. return ""
  120. }
  121. func (x *Message) GetProtoMessage_() string {
  122. if x != nil && x.ProtoMessage_ != nil {
  123. return *x.ProtoMessage_
  124. }
  125. return ""
  126. }
  127. func (x *Message) GetCamelCase() string {
  128. if x != nil && x.CamelCase != nil {
  129. return *x.CamelCase
  130. }
  131. return ""
  132. }
  133. func (x *Message) GetCamelCase_() string {
  134. if x != nil && x.CamelCase_ != nil {
  135. return *x.CamelCase_
  136. }
  137. return ""
  138. }
  139. func (x *Message) GetCamelCase__() string {
  140. if x != nil && x.CamelCase__ != nil {
  141. return *x.CamelCase__
  142. }
  143. return ""
  144. }
  145. func (x *Message) GetCamelCase___() string {
  146. if x != nil && x.CamelCase___ != nil {
  147. return *x.CamelCase___
  148. }
  149. return ""
  150. }
  151. func (x *Message) GetGetName() string {
  152. if x != nil && x.GetName != nil {
  153. return *x.GetName
  154. }
  155. return ""
  156. }
  157. func (x *Message) GetName_() string {
  158. if x != nil && x.Name_ != nil {
  159. return *x.Name_
  160. }
  161. return ""
  162. }
  163. func (m *Message) GetOneofConflictA_() isMessage_OneofConflictA_ {
  164. if m != nil {
  165. return m.OneofConflictA_
  166. }
  167. return nil
  168. }
  169. func (x *Message) GetOneofConflictA() string {
  170. if x, ok := x.GetOneofConflictA_().(*Message_OneofConflictA); ok {
  171. return x.OneofConflictA
  172. }
  173. return ""
  174. }
  175. func (m *Message) GetOneofConflictB() isMessage_OneofConflictB {
  176. if m != nil {
  177. return m.OneofConflictB
  178. }
  179. return nil
  180. }
  181. func (x *Message) GetOneofNoConflict() string {
  182. if x, ok := x.GetOneofConflictB().(*Message_OneofNoConflict); ok {
  183. return x.OneofNoConflict
  184. }
  185. return ""
  186. }
  187. func (x *Message) GetOneofConflictB_() string {
  188. if x, ok := x.GetOneofConflictB().(*Message_OneofConflictB_); ok {
  189. return x.OneofConflictB_
  190. }
  191. return ""
  192. }
  193. func (m *Message) GetOneofConflictC() isMessage_OneofConflictC {
  194. if m != nil {
  195. return m.OneofConflictC
  196. }
  197. return nil
  198. }
  199. func (x *Message) GetOneofMessageConflict() string {
  200. if x, ok := x.GetOneofConflictC().(*Message_OneofMessageConflict_); ok {
  201. return x.OneofMessageConflict
  202. }
  203. return ""
  204. }
  205. type isMessage_OneofConflictA_ interface {
  206. isMessage_OneofConflictA_()
  207. }
  208. type Message_OneofConflictA struct {
  209. OneofConflictA string `protobuf:"bytes,40,opt,name=OneofConflictA,oneof"`
  210. }
  211. func (*Message_OneofConflictA) isMessage_OneofConflictA_() {}
  212. type isMessage_OneofConflictB interface {
  213. isMessage_OneofConflictB()
  214. }
  215. type Message_OneofNoConflict struct {
  216. OneofNoConflict string `protobuf:"bytes,50,opt,name=oneof_no_conflict,json=oneofNoConflict,oneof"`
  217. }
  218. type Message_OneofConflictB_ struct {
  219. OneofConflictB_ string `protobuf:"bytes,51,opt,name=OneofConflictB,oneof"`
  220. }
  221. func (*Message_OneofNoConflict) isMessage_OneofConflictB() {}
  222. func (*Message_OneofConflictB_) isMessage_OneofConflictB() {}
  223. type isMessage_OneofConflictC interface {
  224. isMessage_OneofConflictC()
  225. }
  226. type Message_OneofMessageConflict_ struct {
  227. OneofMessageConflict string `protobuf:"bytes,60,opt,name=oneof_message_conflict,json=oneofMessageConflict,oneof"`
  228. }
  229. func (*Message_OneofMessageConflict_) isMessage_OneofConflictC() {}
  230. type Message_OneofMessageConflict struct {
  231. state protoimpl.MessageState
  232. sizeCache protoimpl.SizeCache
  233. unknownFields protoimpl.UnknownFields
  234. }
  235. func (x *Message_OneofMessageConflict) Reset() {
  236. *x = Message_OneofMessageConflict{}
  237. }
  238. func (x *Message_OneofMessageConflict) String() string {
  239. return protoimpl.X.MessageStringOf(x)
  240. }
  241. func (*Message_OneofMessageConflict) ProtoMessage() {}
  242. func (x *Message_OneofMessageConflict) ProtoReflect() protoreflect.Message {
  243. mi := &file_fieldnames_fieldnames_proto_msgTypes[1]
  244. if protoimpl.UnsafeEnabled && x != nil {
  245. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  246. if ms.LoadMessageInfo() == nil {
  247. ms.StoreMessageInfo(mi)
  248. }
  249. return ms
  250. }
  251. return mi.MessageOf(x)
  252. }
  253. // Deprecated: Use Message_OneofMessageConflict.ProtoReflect.Descriptor instead.
  254. func (*Message_OneofMessageConflict) Descriptor() ([]byte, []int) {
  255. return file_fieldnames_fieldnames_proto_rawDescGZIP(), []int{0, 0}
  256. }
  257. var File_fieldnames_fieldnames_proto protoreflect.FileDescriptor
  258. var file_fieldnames_fieldnames_proto_rawDesc = []byte{
  259. 0x0a, 0x1b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x2f, 0x66, 0x69, 0x65,
  260. 0x6c, 0x64, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67,
  261. 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x66, 0x69,
  262. 0x65, 0x6c, 0x64, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0xb8, 0x05, 0x0a, 0x07, 0x4d, 0x65, 0x73,
  263. 0x73, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6f, 0x6e,
  264. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x6e,
  265. 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x77, 0x6f, 0x18, 0x02, 0x20,
  266. 0x01, 0x28, 0x09, 0x52, 0x08, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x77, 0x6f, 0x12, 0x1e, 0x0a,
  267. 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x68, 0x72, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  268. 0x09, 0x52, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x68, 0x72, 0x65, 0x65, 0x12, 0x1e, 0x0a,
  269. 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x5f, 0x66, 0x6f, 0x75, 0x72, 0x18, 0x04, 0x20, 0x01,
  270. 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x46, 0x6f, 0x75, 0x72, 0x12, 0x1e, 0x0a,
  271. 0x0a, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28,
  272. 0x09, 0x52, 0x0a, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a,
  273. 0x07, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  274. 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x6e, 0x6d, 0x61, 0x72,
  275. 0x73, 0x68, 0x61, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x6e, 0x6d, 0x61,
  276. 0x72, 0x73, 0x68, 0x61, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d,
  277. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72,
  278. 0x6f, 0x74, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x61,
  279. 0x6d, 0x65, 0x6c, 0x43, 0x61, 0x73, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x43,
  280. 0x61, 0x6d, 0x65, 0x6c, 0x43, 0x61, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x43, 0x61, 0x6d, 0x65,
  281. 0x6c, 0x43, 0x61, 0x73, 0x65, 0x5f, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x43, 0x61,
  282. 0x6d, 0x65, 0x6c, 0x43, 0x61, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x6c,
  283. 0x5f, 0x63, 0x61, 0x73, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x61, 0x6d,
  284. 0x65, 0x6c, 0x43, 0x61, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0b, 0x43, 0x61, 0x6d, 0x65, 0x6c, 0x43,
  285. 0x61, 0x73, 0x65, 0x5f, 0x5f, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x43, 0x61, 0x6d,
  286. 0x65, 0x6c, 0x43, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x65, 0x74, 0x5f, 0x6e, 0x61,
  287. 0x6d, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x65, 0x74, 0x4e, 0x61, 0x6d,
  288. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52,
  289. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x43, 0x6f,
  290. 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x41, 0x18, 0x28, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
  291. 0x0e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x41, 0x12,
  292. 0x2c, 0x0a, 0x11, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
  293. 0x6c, 0x69, 0x63, 0x74, 0x18, 0x32, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0f, 0x6f, 0x6e,
  294. 0x65, 0x6f, 0x66, 0x4e, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x12, 0x28, 0x0a,
  295. 0x0e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x42, 0x18,
  296. 0x33, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x43, 0x6f,
  297. 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x42, 0x12, 0x36, 0x0a, 0x16, 0x6f, 0x6e, 0x65, 0x6f, 0x66,
  298. 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63,
  299. 0x74, 0x18, 0x3c, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x14, 0x6f, 0x6e, 0x65, 0x6f, 0x66,
  300. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x1a,
  301. 0x16, 0x0a, 0x14, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x43,
  302. 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x42, 0x12, 0x0a, 0x10, 0x6f, 0x6e, 0x65, 0x6f, 0x66,
  303. 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x5f, 0x61, 0x42, 0x12, 0x0a, 0x10, 0x6f,
  304. 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x5f, 0x62, 0x42,
  305. 0x12, 0x0a, 0x10, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63,
  306. 0x74, 0x5f, 0x63, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
  307. 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  308. 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
  309. 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x66, 0x69, 0x65,
  310. 0x6c, 0x64, 0x6e, 0x61, 0x6d, 0x65, 0x73,
  311. }
  312. var (
  313. file_fieldnames_fieldnames_proto_rawDescOnce sync.Once
  314. file_fieldnames_fieldnames_proto_rawDescData = file_fieldnames_fieldnames_proto_rawDesc
  315. )
  316. func file_fieldnames_fieldnames_proto_rawDescGZIP() []byte {
  317. file_fieldnames_fieldnames_proto_rawDescOnce.Do(func() {
  318. file_fieldnames_fieldnames_proto_rawDescData = protoimpl.X.CompressGZIP(file_fieldnames_fieldnames_proto_rawDescData)
  319. })
  320. return file_fieldnames_fieldnames_proto_rawDescData
  321. }
  322. var file_fieldnames_fieldnames_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  323. var file_fieldnames_fieldnames_proto_goTypes = []interface{}{
  324. (*Message)(nil), // 0: goproto.protoc.fieldnames.Message
  325. (*Message_OneofMessageConflict)(nil), // 1: goproto.protoc.fieldnames.Message.OneofMessageConflict
  326. }
  327. var file_fieldnames_fieldnames_proto_depIdxs = []int32{
  328. 0, // [0:0] is the sub-list for method output_type
  329. 0, // [0:0] is the sub-list for method input_type
  330. 0, // [0:0] is the sub-list for extension type_name
  331. 0, // [0:0] is the sub-list for extension extendee
  332. 0, // [0:0] is the sub-list for field type_name
  333. }
  334. func init() { file_fieldnames_fieldnames_proto_init() }
  335. func file_fieldnames_fieldnames_proto_init() {
  336. if File_fieldnames_fieldnames_proto != nil {
  337. return
  338. }
  339. if !protoimpl.UnsafeEnabled {
  340. file_fieldnames_fieldnames_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  341. switch v := v.(*Message); i {
  342. case 0:
  343. return &v.state
  344. case 1:
  345. return &v.sizeCache
  346. case 2:
  347. return &v.unknownFields
  348. default:
  349. return nil
  350. }
  351. }
  352. file_fieldnames_fieldnames_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  353. switch v := v.(*Message_OneofMessageConflict); i {
  354. case 0:
  355. return &v.state
  356. case 1:
  357. return &v.sizeCache
  358. case 2:
  359. return &v.unknownFields
  360. default:
  361. return nil
  362. }
  363. }
  364. }
  365. file_fieldnames_fieldnames_proto_msgTypes[0].OneofWrappers = []interface{}{
  366. (*Message_OneofConflictA)(nil),
  367. (*Message_OneofNoConflict)(nil),
  368. (*Message_OneofConflictB_)(nil),
  369. (*Message_OneofMessageConflict_)(nil),
  370. }
  371. type x struct{}
  372. out := protoimpl.TypeBuilder{
  373. File: protoimpl.DescBuilder{
  374. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  375. RawDescriptor: file_fieldnames_fieldnames_proto_rawDesc,
  376. NumEnums: 0,
  377. NumMessages: 2,
  378. NumExtensions: 0,
  379. NumServices: 0,
  380. },
  381. GoTypes: file_fieldnames_fieldnames_proto_goTypes,
  382. DependencyIndexes: file_fieldnames_fieldnames_proto_depIdxs,
  383. MessageInfos: file_fieldnames_fieldnames_proto_msgTypes,
  384. }.Build()
  385. File_fieldnames_fieldnames_proto = out.File
  386. file_fieldnames_fieldnames_proto_rawDesc = nil
  387. file_fieldnames_fieldnames_proto_goTypes = nil
  388. file_fieldnames_fieldnames_proto_depIdxs = nil
  389. }