transform.pb.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.23.0
  4. // protoc v3.12.3
  5. // source: transform.proto
  6. package transform
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. // This is a compile-time assertion that a sufficiently up-to-date version
  25. // of the legacy proto package is being used.
  26. const _ = proto.ProtoPackageIsVersion4
  27. type UserRequest struct {
  28. state protoimpl.MessageState
  29. sizeCache protoimpl.SizeCache
  30. unknownFields protoimpl.UnknownFields
  31. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  32. Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
  33. }
  34. func (x *UserRequest) Reset() {
  35. *x = UserRequest{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_transform_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *UserRequest) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*UserRequest) ProtoMessage() {}
  46. func (x *UserRequest) ProtoReflect() protoreflect.Message {
  47. mi := &file_transform_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use UserRequest.ProtoReflect.Descriptor instead.
  58. func (*UserRequest) Descriptor() ([]byte, []int) {
  59. return file_transform_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *UserRequest) GetId() string {
  62. if x != nil {
  63. return x.Id
  64. }
  65. return ""
  66. }
  67. func (x *UserRequest) GetPhone() string {
  68. if x != nil {
  69. return x.Phone
  70. }
  71. return ""
  72. }
  73. type UserResponse struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  78. Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
  79. Roles string `protobuf:"bytes,3,opt,name=roles,proto3" json:"roles,omitempty"`
  80. Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
  81. ErpRoleType int64 `protobuf:"varint,5,opt,name=erpRoleType,proto3" json:"erpRoleType,omitempty"`
  82. UserName string `protobuf:"bytes,6,opt,name=userName,proto3" json:"userName,omitempty"`
  83. CityName string `protobuf:"bytes,7,opt,name=cityName,proto3" json:"cityName,omitempty"`
  84. Gender int64 `protobuf:"varint,8,opt,name=gender,proto3" json:"gender,omitempty"`
  85. }
  86. func (x *UserResponse) Reset() {
  87. *x = UserResponse{}
  88. if protoimpl.UnsafeEnabled {
  89. mi := &file_transform_proto_msgTypes[1]
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. ms.StoreMessageInfo(mi)
  92. }
  93. }
  94. func (x *UserResponse) String() string {
  95. return protoimpl.X.MessageStringOf(x)
  96. }
  97. func (*UserResponse) ProtoMessage() {}
  98. func (x *UserResponse) ProtoReflect() protoreflect.Message {
  99. mi := &file_transform_proto_msgTypes[1]
  100. if protoimpl.UnsafeEnabled && x != nil {
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. if ms.LoadMessageInfo() == nil {
  103. ms.StoreMessageInfo(mi)
  104. }
  105. return ms
  106. }
  107. return mi.MessageOf(x)
  108. }
  109. // Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
  110. func (*UserResponse) Descriptor() ([]byte, []int) {
  111. return file_transform_proto_rawDescGZIP(), []int{1}
  112. }
  113. func (x *UserResponse) GetId() string {
  114. if x != nil {
  115. return x.Id
  116. }
  117. return ""
  118. }
  119. func (x *UserResponse) GetPhone() string {
  120. if x != nil {
  121. return x.Phone
  122. }
  123. return ""
  124. }
  125. func (x *UserResponse) GetRoles() string {
  126. if x != nil {
  127. return x.Roles
  128. }
  129. return ""
  130. }
  131. func (x *UserResponse) GetStatus() int64 {
  132. if x != nil {
  133. return x.Status
  134. }
  135. return 0
  136. }
  137. func (x *UserResponse) GetErpRoleType() int64 {
  138. if x != nil {
  139. return x.ErpRoleType
  140. }
  141. return 0
  142. }
  143. func (x *UserResponse) GetUserName() string {
  144. if x != nil {
  145. return x.UserName
  146. }
  147. return ""
  148. }
  149. func (x *UserResponse) GetCityName() string {
  150. if x != nil {
  151. return x.CityName
  152. }
  153. return ""
  154. }
  155. func (x *UserResponse) GetGender() int64 {
  156. if x != nil {
  157. return x.Gender
  158. }
  159. return 0
  160. }
  161. type Empty struct {
  162. state protoimpl.MessageState
  163. sizeCache protoimpl.SizeCache
  164. unknownFields protoimpl.UnknownFields
  165. }
  166. func (x *Empty) Reset() {
  167. *x = Empty{}
  168. if protoimpl.UnsafeEnabled {
  169. mi := &file_transform_proto_msgTypes[2]
  170. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  171. ms.StoreMessageInfo(mi)
  172. }
  173. }
  174. func (x *Empty) String() string {
  175. return protoimpl.X.MessageStringOf(x)
  176. }
  177. func (*Empty) ProtoMessage() {}
  178. func (x *Empty) ProtoReflect() protoreflect.Message {
  179. mi := &file_transform_proto_msgTypes[2]
  180. if protoimpl.UnsafeEnabled && x != nil {
  181. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  182. if ms.LoadMessageInfo() == nil {
  183. ms.StoreMessageInfo(mi)
  184. }
  185. return ms
  186. }
  187. return mi.MessageOf(x)
  188. }
  189. // Deprecated: Use Empty.ProtoReflect.Descriptor instead.
  190. func (*Empty) Descriptor() ([]byte, []int) {
  191. return file_transform_proto_rawDescGZIP(), []int{2}
  192. }
  193. type TreeNodes struct {
  194. state protoimpl.MessageState
  195. sizeCache protoimpl.SizeCache
  196. unknownFields protoimpl.UnknownFields
  197. Nodes []*TreeNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
  198. }
  199. func (x *TreeNodes) Reset() {
  200. *x = TreeNodes{}
  201. if protoimpl.UnsafeEnabled {
  202. mi := &file_transform_proto_msgTypes[3]
  203. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  204. ms.StoreMessageInfo(mi)
  205. }
  206. }
  207. func (x *TreeNodes) String() string {
  208. return protoimpl.X.MessageStringOf(x)
  209. }
  210. func (*TreeNodes) ProtoMessage() {}
  211. func (x *TreeNodes) ProtoReflect() protoreflect.Message {
  212. mi := &file_transform_proto_msgTypes[3]
  213. if protoimpl.UnsafeEnabled && x != nil {
  214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  215. if ms.LoadMessageInfo() == nil {
  216. ms.StoreMessageInfo(mi)
  217. }
  218. return ms
  219. }
  220. return mi.MessageOf(x)
  221. }
  222. // Deprecated: Use TreeNodes.ProtoReflect.Descriptor instead.
  223. func (*TreeNodes) Descriptor() ([]byte, []int) {
  224. return file_transform_proto_rawDescGZIP(), []int{3}
  225. }
  226. func (x *TreeNodes) GetNodes() []*TreeNode {
  227. if x != nil {
  228. return x.Nodes
  229. }
  230. return nil
  231. }
  232. type TreeNode struct {
  233. state protoimpl.MessageState
  234. sizeCache protoimpl.SizeCache
  235. unknownFields protoimpl.UnknownFields
  236. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  237. Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
  238. Parent int64 `protobuf:"varint,3,opt,name=parent,proto3" json:"parent,omitempty"`
  239. Tag *Tag `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
  240. Nodes []*TreeNode `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"`
  241. }
  242. func (x *TreeNode) Reset() {
  243. *x = TreeNode{}
  244. if protoimpl.UnsafeEnabled {
  245. mi := &file_transform_proto_msgTypes[4]
  246. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  247. ms.StoreMessageInfo(mi)
  248. }
  249. }
  250. func (x *TreeNode) String() string {
  251. return protoimpl.X.MessageStringOf(x)
  252. }
  253. func (*TreeNode) ProtoMessage() {}
  254. func (x *TreeNode) ProtoReflect() protoreflect.Message {
  255. mi := &file_transform_proto_msgTypes[4]
  256. if protoimpl.UnsafeEnabled && x != nil {
  257. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  258. if ms.LoadMessageInfo() == nil {
  259. ms.StoreMessageInfo(mi)
  260. }
  261. return ms
  262. }
  263. return mi.MessageOf(x)
  264. }
  265. // Deprecated: Use TreeNode.ProtoReflect.Descriptor instead.
  266. func (*TreeNode) Descriptor() ([]byte, []int) {
  267. return file_transform_proto_rawDescGZIP(), []int{4}
  268. }
  269. func (x *TreeNode) GetId() int64 {
  270. if x != nil {
  271. return x.Id
  272. }
  273. return 0
  274. }
  275. func (x *TreeNode) GetText() string {
  276. if x != nil {
  277. return x.Text
  278. }
  279. return ""
  280. }
  281. func (x *TreeNode) GetParent() int64 {
  282. if x != nil {
  283. return x.Parent
  284. }
  285. return 0
  286. }
  287. func (x *TreeNode) GetTag() *Tag {
  288. if x != nil {
  289. return x.Tag
  290. }
  291. return nil
  292. }
  293. func (x *TreeNode) GetNodes() []*TreeNode {
  294. if x != nil {
  295. return x.Nodes
  296. }
  297. return nil
  298. }
  299. type Tag struct {
  300. state protoimpl.MessageState
  301. sizeCache protoimpl.SizeCache
  302. unknownFields protoimpl.UnknownFields
  303. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  304. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  305. }
  306. func (x *Tag) Reset() {
  307. *x = Tag{}
  308. if protoimpl.UnsafeEnabled {
  309. mi := &file_transform_proto_msgTypes[5]
  310. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  311. ms.StoreMessageInfo(mi)
  312. }
  313. }
  314. func (x *Tag) String() string {
  315. return protoimpl.X.MessageStringOf(x)
  316. }
  317. func (*Tag) ProtoMessage() {}
  318. func (x *Tag) ProtoReflect() protoreflect.Message {
  319. mi := &file_transform_proto_msgTypes[5]
  320. if protoimpl.UnsafeEnabled && x != nil {
  321. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  322. if ms.LoadMessageInfo() == nil {
  323. ms.StoreMessageInfo(mi)
  324. }
  325. return ms
  326. }
  327. return mi.MessageOf(x)
  328. }
  329. // Deprecated: Use Tag.ProtoReflect.Descriptor instead.
  330. func (*Tag) Descriptor() ([]byte, []int) {
  331. return file_transform_proto_rawDescGZIP(), []int{5}
  332. }
  333. func (x *Tag) GetId() int64 {
  334. if x != nil {
  335. return x.Id
  336. }
  337. return 0
  338. }
  339. func (x *Tag) GetName() string {
  340. if x != nil {
  341. return x.Name
  342. }
  343. return ""
  344. }
  345. var File_transform_proto protoreflect.FileDescriptor
  346. var file_transform_proto_rawDesc = []byte{
  347. 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  348. 0x6f, 0x12, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x33, 0x0a, 0x0b,
  349. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  350. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70,
  351. 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e,
  352. 0x65, 0x22, 0xd4, 0x01, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  353. 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
  354. 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  355. 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65,
  356. 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x16,
  357. 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  358. 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x72, 0x70, 0x52, 0x6f, 0x6c,
  359. 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x72, 0x70,
  360. 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,
  361. 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
  362. 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
  363. 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
  364. 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03,
  365. 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74,
  366. 0x79, 0x22, 0x36, 0x0a, 0x09, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x29,
  367. 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e,
  368. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f,
  369. 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x08, 0x54, 0x72,
  370. 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  371. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02,
  372. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61,
  373. 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,
  374. 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
  375. 0x0e, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x61, 0x67, 0x52,
  376. 0x03, 0x74, 0x61, 0x67, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20,
  377. 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
  378. 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22,
  379. 0x29, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  380. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
  381. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0x81, 0x01, 0x0a, 0x09, 0x54,
  382. 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55,
  383. 0x73, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
  384. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x72,
  385. 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
  386. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x43, 0x69,
  387. 0x74, 0x79, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f,
  388. 0x72, 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  389. 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x62, 0x06,
  390. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  391. }
  392. var (
  393. file_transform_proto_rawDescOnce sync.Once
  394. file_transform_proto_rawDescData = file_transform_proto_rawDesc
  395. )
  396. func file_transform_proto_rawDescGZIP() []byte {
  397. file_transform_proto_rawDescOnce.Do(func() {
  398. file_transform_proto_rawDescData = protoimpl.X.CompressGZIP(file_transform_proto_rawDescData)
  399. })
  400. return file_transform_proto_rawDescData
  401. }
  402. var file_transform_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  403. var file_transform_proto_goTypes = []interface{}{
  404. (*UserRequest)(nil), // 0: transform.UserRequest
  405. (*UserResponse)(nil), // 1: transform.UserResponse
  406. (*Empty)(nil), // 2: transform.Empty
  407. (*TreeNodes)(nil), // 3: transform.TreeNodes
  408. (*TreeNode)(nil), // 4: transform.TreeNode
  409. (*Tag)(nil), // 5: transform.Tag
  410. }
  411. var file_transform_proto_depIdxs = []int32{
  412. 4, // 0: transform.TreeNodes.nodes:type_name -> transform.TreeNode
  413. 5, // 1: transform.TreeNode.tag:type_name -> transform.Tag
  414. 4, // 2: transform.TreeNode.nodes:type_name -> transform.TreeNode
  415. 0, // 3: transform.Transform.GetUser:input_type -> transform.UserRequest
  416. 2, // 4: transform.Transform.GetErpCityTree:input_type -> transform.Empty
  417. 1, // 5: transform.Transform.GetUser:output_type -> transform.UserResponse
  418. 3, // 6: transform.Transform.GetErpCityTree:output_type -> transform.TreeNodes
  419. 5, // [5:7] is the sub-list for method output_type
  420. 3, // [3:5] is the sub-list for method input_type
  421. 3, // [3:3] is the sub-list for extension type_name
  422. 3, // [3:3] is the sub-list for extension extendee
  423. 0, // [0:3] is the sub-list for field type_name
  424. }
  425. func init() { file_transform_proto_init() }
  426. func file_transform_proto_init() {
  427. if File_transform_proto != nil {
  428. return
  429. }
  430. if !protoimpl.UnsafeEnabled {
  431. file_transform_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  432. switch v := v.(*UserRequest); i {
  433. case 0:
  434. return &v.state
  435. case 1:
  436. return &v.sizeCache
  437. case 2:
  438. return &v.unknownFields
  439. default:
  440. return nil
  441. }
  442. }
  443. file_transform_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  444. switch v := v.(*UserResponse); i {
  445. case 0:
  446. return &v.state
  447. case 1:
  448. return &v.sizeCache
  449. case 2:
  450. return &v.unknownFields
  451. default:
  452. return nil
  453. }
  454. }
  455. file_transform_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  456. switch v := v.(*Empty); i {
  457. case 0:
  458. return &v.state
  459. case 1:
  460. return &v.sizeCache
  461. case 2:
  462. return &v.unknownFields
  463. default:
  464. return nil
  465. }
  466. }
  467. file_transform_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  468. switch v := v.(*TreeNodes); i {
  469. case 0:
  470. return &v.state
  471. case 1:
  472. return &v.sizeCache
  473. case 2:
  474. return &v.unknownFields
  475. default:
  476. return nil
  477. }
  478. }
  479. file_transform_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  480. switch v := v.(*TreeNode); i {
  481. case 0:
  482. return &v.state
  483. case 1:
  484. return &v.sizeCache
  485. case 2:
  486. return &v.unknownFields
  487. default:
  488. return nil
  489. }
  490. }
  491. file_transform_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  492. switch v := v.(*Tag); i {
  493. case 0:
  494. return &v.state
  495. case 1:
  496. return &v.sizeCache
  497. case 2:
  498. return &v.unknownFields
  499. default:
  500. return nil
  501. }
  502. }
  503. }
  504. type x struct{}
  505. out := protoimpl.TypeBuilder{
  506. File: protoimpl.DescBuilder{
  507. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  508. RawDescriptor: file_transform_proto_rawDesc,
  509. NumEnums: 0,
  510. NumMessages: 6,
  511. NumExtensions: 0,
  512. NumServices: 1,
  513. },
  514. GoTypes: file_transform_proto_goTypes,
  515. DependencyIndexes: file_transform_proto_depIdxs,
  516. MessageInfos: file_transform_proto_msgTypes,
  517. }.Build()
  518. File_transform_proto = out.File
  519. file_transform_proto_rawDesc = nil
  520. file_transform_proto_goTypes = nil
  521. file_transform_proto_depIdxs = nil
  522. }
  523. // Reference imports to suppress errors if they are not otherwise used.
  524. var _ context.Context
  525. var _ grpc.ClientConnInterface
  526. // This is a compile-time assertion to ensure that this generated file
  527. // is compatible with the grpc package it is being compiled against.
  528. const _ = grpc.SupportPackageIsVersion6
  529. // TransformClient is the client API for Transform service.
  530. //
  531. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  532. type TransformClient interface {
  533. GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
  534. GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
  535. }
  536. type transformClient struct {
  537. cc grpc.ClientConnInterface
  538. }
  539. func NewTransformClient(cc grpc.ClientConnInterface) TransformClient {
  540. return &transformClient{cc}
  541. }
  542. func (c *transformClient) GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error) {
  543. out := new(UserResponse)
  544. err := c.cc.Invoke(ctx, "/transform.Transform/GetUser", in, out, opts...)
  545. if err != nil {
  546. return nil, err
  547. }
  548. return out, nil
  549. }
  550. func (c *transformClient) GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error) {
  551. out := new(TreeNodes)
  552. err := c.cc.Invoke(ctx, "/transform.Transform/GetErpCityTree", in, out, opts...)
  553. if err != nil {
  554. return nil, err
  555. }
  556. return out, nil
  557. }
  558. // TransformServer is the server API for Transform service.
  559. type TransformServer interface {
  560. GetUser(context.Context, *UserRequest) (*UserResponse, error)
  561. GetErpCityTree(context.Context, *Empty) (*TreeNodes, error)
  562. }
  563. // UnimplementedTransformServer can be embedded to have forward compatible implementations.
  564. type UnimplementedTransformServer struct {
  565. }
  566. func (*UnimplementedTransformServer) GetUser(context.Context, *UserRequest) (*UserResponse, error) {
  567. return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
  568. }
  569. func (*UnimplementedTransformServer) GetErpCityTree(context.Context, *Empty) (*TreeNodes, error) {
  570. return nil, status.Errorf(codes.Unimplemented, "method GetErpCityTree not implemented")
  571. }
  572. func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
  573. s.RegisterService(&_Transform_serviceDesc, srv)
  574. }
  575. func _Transform_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  576. in := new(UserRequest)
  577. if err := dec(in); err != nil {
  578. return nil, err
  579. }
  580. if interceptor == nil {
  581. return srv.(TransformServer).GetUser(ctx, in)
  582. }
  583. info := &grpc.UnaryServerInfo{
  584. Server: srv,
  585. FullMethod: "/transform.Transform/GetUser",
  586. }
  587. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  588. return srv.(TransformServer).GetUser(ctx, req.(*UserRequest))
  589. }
  590. return interceptor(ctx, in, info, handler)
  591. }
  592. func _Transform_GetErpCityTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  593. in := new(Empty)
  594. if err := dec(in); err != nil {
  595. return nil, err
  596. }
  597. if interceptor == nil {
  598. return srv.(TransformServer).GetErpCityTree(ctx, in)
  599. }
  600. info := &grpc.UnaryServerInfo{
  601. Server: srv,
  602. FullMethod: "/transform.Transform/GetErpCityTree",
  603. }
  604. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  605. return srv.(TransformServer).GetErpCityTree(ctx, req.(*Empty))
  606. }
  607. return interceptor(ctx, in, info, handler)
  608. }
  609. var _Transform_serviceDesc = grpc.ServiceDesc{
  610. ServiceName: "transform.Transform",
  611. HandlerType: (*TransformServer)(nil),
  612. Methods: []grpc.MethodDesc{
  613. {
  614. MethodName: "GetUser",
  615. Handler: _Transform_GetUser_Handler,
  616. },
  617. {
  618. MethodName: "GetErpCityTree",
  619. Handler: _Transform_GetErpCityTree_Handler,
  620. },
  621. },
  622. Streams: []grpc.StreamDesc{},
  623. Metadata: "transform.proto",
  624. }