hw.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0-devel
  4. // protoc v3.6.1
  5. // source: hw.proto
  6. package helloworld
  7. import (
  8. empty "github.com/golang/protobuf/ptypes/empty"
  9. wrappers "github.com/golang/protobuf/ptypes/wrappers"
  10. _ "google.golang.org/genproto/googleapis/api/annotations"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. // The request message containing the user's name.
  23. type HelloRequest struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  28. }
  29. func (x *HelloRequest) Reset() {
  30. *x = HelloRequest{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_hw_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *HelloRequest) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*HelloRequest) ProtoMessage() {}
  41. func (x *HelloRequest) ProtoReflect() protoreflect.Message {
  42. mi := &file_hw_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
  53. func (*HelloRequest) Descriptor() ([]byte, []int) {
  54. return file_hw_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *HelloRequest) GetName() string {
  57. if x != nil {
  58. return x.Name
  59. }
  60. return ""
  61. }
  62. // The response message containing the greetings
  63. type HelloReply struct {
  64. state protoimpl.MessageState
  65. sizeCache protoimpl.SizeCache
  66. unknownFields protoimpl.UnknownFields
  67. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  68. }
  69. func (x *HelloReply) Reset() {
  70. *x = HelloReply{}
  71. if protoimpl.UnsafeEnabled {
  72. mi := &file_hw_proto_msgTypes[1]
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. ms.StoreMessageInfo(mi)
  75. }
  76. }
  77. func (x *HelloReply) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*HelloReply) ProtoMessage() {}
  81. func (x *HelloReply) ProtoReflect() protoreflect.Message {
  82. mi := &file_hw_proto_msgTypes[1]
  83. if protoimpl.UnsafeEnabled && x != nil {
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. if ms.LoadMessageInfo() == nil {
  86. ms.StoreMessageInfo(mi)
  87. }
  88. return ms
  89. }
  90. return mi.MessageOf(x)
  91. }
  92. // Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
  93. func (*HelloReply) Descriptor() ([]byte, []int) {
  94. return file_hw_proto_rawDescGZIP(), []int{1}
  95. }
  96. func (x *HelloReply) GetMessage() string {
  97. if x != nil {
  98. return x.Message
  99. }
  100. return ""
  101. }
  102. type Response struct {
  103. state protoimpl.MessageState
  104. sizeCache protoimpl.SizeCache
  105. unknownFields protoimpl.UnknownFields
  106. Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  107. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  108. }
  109. func (x *Response) Reset() {
  110. *x = Response{}
  111. if protoimpl.UnsafeEnabled {
  112. mi := &file_hw_proto_msgTypes[2]
  113. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  114. ms.StoreMessageInfo(mi)
  115. }
  116. }
  117. func (x *Response) String() string {
  118. return protoimpl.X.MessageStringOf(x)
  119. }
  120. func (*Response) ProtoMessage() {}
  121. func (x *Response) ProtoReflect() protoreflect.Message {
  122. mi := &file_hw_proto_msgTypes[2]
  123. if protoimpl.UnsafeEnabled && x != nil {
  124. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  125. if ms.LoadMessageInfo() == nil {
  126. ms.StoreMessageInfo(mi)
  127. }
  128. return ms
  129. }
  130. return mi.MessageOf(x)
  131. }
  132. // Deprecated: Use Response.ProtoReflect.Descriptor instead.
  133. func (*Response) Descriptor() ([]byte, []int) {
  134. return file_hw_proto_rawDescGZIP(), []int{2}
  135. }
  136. func (x *Response) GetCode() uint32 {
  137. if x != nil {
  138. return x.Code
  139. }
  140. return 0
  141. }
  142. func (x *Response) GetMsg() string {
  143. if x != nil {
  144. return x.Msg
  145. }
  146. return ""
  147. }
  148. type InferRequest struct {
  149. state protoimpl.MessageState
  150. sizeCache protoimpl.SizeCache
  151. unknownFields protoimpl.UnknownFields
  152. Rid string `protobuf:"bytes,1,opt,name=rid,proto3" json:"rid,omitempty"`
  153. Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
  154. Outlet string `protobuf:"bytes,3,opt,name=outlet,proto3" json:"outlet,omitempty"`
  155. Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
  156. Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
  157. Extra string `protobuf:"bytes,6,opt,name=extra,proto3" json:"extra,omitempty"`
  158. }
  159. func (x *InferRequest) Reset() {
  160. *x = InferRequest{}
  161. if protoimpl.UnsafeEnabled {
  162. mi := &file_hw_proto_msgTypes[3]
  163. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  164. ms.StoreMessageInfo(mi)
  165. }
  166. }
  167. func (x *InferRequest) String() string {
  168. return protoimpl.X.MessageStringOf(x)
  169. }
  170. func (*InferRequest) ProtoMessage() {}
  171. func (x *InferRequest) ProtoReflect() protoreflect.Message {
  172. mi := &file_hw_proto_msgTypes[3]
  173. if protoimpl.UnsafeEnabled && x != nil {
  174. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  175. if ms.LoadMessageInfo() == nil {
  176. ms.StoreMessageInfo(mi)
  177. }
  178. return ms
  179. }
  180. return mi.MessageOf(x)
  181. }
  182. // Deprecated: Use InferRequest.ProtoReflect.Descriptor instead.
  183. func (*InferRequest) Descriptor() ([]byte, []int) {
  184. return file_hw_proto_rawDescGZIP(), []int{3}
  185. }
  186. func (x *InferRequest) GetRid() string {
  187. if x != nil {
  188. return x.Rid
  189. }
  190. return ""
  191. }
  192. func (x *InferRequest) GetUuid() string {
  193. if x != nil {
  194. return x.Uuid
  195. }
  196. return ""
  197. }
  198. func (x *InferRequest) GetOutlet() string {
  199. if x != nil {
  200. return x.Outlet
  201. }
  202. return ""
  203. }
  204. func (x *InferRequest) GetPath() string {
  205. if x != nil {
  206. return x.Path
  207. }
  208. return ""
  209. }
  210. func (x *InferRequest) GetData() []byte {
  211. if x != nil {
  212. return x.Data
  213. }
  214. return nil
  215. }
  216. func (x *InferRequest) GetExtra() string {
  217. if x != nil {
  218. return x.Extra
  219. }
  220. return ""
  221. }
  222. type Box struct {
  223. state protoimpl.MessageState
  224. sizeCache protoimpl.SizeCache
  225. unknownFields protoimpl.UnknownFields
  226. X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
  227. Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
  228. W int32 `protobuf:"varint,3,opt,name=w,proto3" json:"w,omitempty"`
  229. H int32 `protobuf:"varint,4,opt,name=h,proto3" json:"h,omitempty"`
  230. }
  231. func (x *Box) Reset() {
  232. *x = Box{}
  233. if protoimpl.UnsafeEnabled {
  234. mi := &file_hw_proto_msgTypes[4]
  235. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  236. ms.StoreMessageInfo(mi)
  237. }
  238. }
  239. func (x *Box) String() string {
  240. return protoimpl.X.MessageStringOf(x)
  241. }
  242. func (*Box) ProtoMessage() {}
  243. func (x *Box) ProtoReflect() protoreflect.Message {
  244. mi := &file_hw_proto_msgTypes[4]
  245. if protoimpl.UnsafeEnabled && x != nil {
  246. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  247. if ms.LoadMessageInfo() == nil {
  248. ms.StoreMessageInfo(mi)
  249. }
  250. return ms
  251. }
  252. return mi.MessageOf(x)
  253. }
  254. // Deprecated: Use Box.ProtoReflect.Descriptor instead.
  255. func (*Box) Descriptor() ([]byte, []int) {
  256. return file_hw_proto_rawDescGZIP(), []int{4}
  257. }
  258. func (x *Box) GetX() int32 {
  259. if x != nil {
  260. return x.X
  261. }
  262. return 0
  263. }
  264. func (x *Box) GetY() int32 {
  265. if x != nil {
  266. return x.Y
  267. }
  268. return 0
  269. }
  270. func (x *Box) GetW() int32 {
  271. if x != nil {
  272. return x.W
  273. }
  274. return 0
  275. }
  276. func (x *Box) GetH() int32 {
  277. if x != nil {
  278. return x.H
  279. }
  280. return 0
  281. }
  282. type FeatureResult struct {
  283. state protoimpl.MessageState
  284. sizeCache protoimpl.SizeCache
  285. unknownFields protoimpl.UnknownFields
  286. Features []float32 `protobuf:"fixed32,1,rep,packed,name=features,proto3" json:"features,omitempty"`
  287. Box *Box `protobuf:"bytes,2,opt,name=box,proto3" json:"box,omitempty"`
  288. }
  289. func (x *FeatureResult) Reset() {
  290. *x = FeatureResult{}
  291. if protoimpl.UnsafeEnabled {
  292. mi := &file_hw_proto_msgTypes[5]
  293. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  294. ms.StoreMessageInfo(mi)
  295. }
  296. }
  297. func (x *FeatureResult) String() string {
  298. return protoimpl.X.MessageStringOf(x)
  299. }
  300. func (*FeatureResult) ProtoMessage() {}
  301. func (x *FeatureResult) ProtoReflect() protoreflect.Message {
  302. mi := &file_hw_proto_msgTypes[5]
  303. if protoimpl.UnsafeEnabled && x != nil {
  304. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  305. if ms.LoadMessageInfo() == nil {
  306. ms.StoreMessageInfo(mi)
  307. }
  308. return ms
  309. }
  310. return mi.MessageOf(x)
  311. }
  312. // Deprecated: Use FeatureResult.ProtoReflect.Descriptor instead.
  313. func (*FeatureResult) Descriptor() ([]byte, []int) {
  314. return file_hw_proto_rawDescGZIP(), []int{5}
  315. }
  316. func (x *FeatureResult) GetFeatures() []float32 {
  317. if x != nil {
  318. return x.Features
  319. }
  320. return nil
  321. }
  322. func (x *FeatureResult) GetBox() *Box {
  323. if x != nil {
  324. return x.Box
  325. }
  326. return nil
  327. }
  328. type FeatureResponse struct {
  329. state protoimpl.MessageState
  330. sizeCache protoimpl.SizeCache
  331. unknownFields protoimpl.UnknownFields
  332. Feature []*FeatureResult `protobuf:"bytes,1,rep,name=feature,proto3" json:"feature,omitempty"`
  333. }
  334. func (x *FeatureResponse) Reset() {
  335. *x = FeatureResponse{}
  336. if protoimpl.UnsafeEnabled {
  337. mi := &file_hw_proto_msgTypes[6]
  338. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  339. ms.StoreMessageInfo(mi)
  340. }
  341. }
  342. func (x *FeatureResponse) String() string {
  343. return protoimpl.X.MessageStringOf(x)
  344. }
  345. func (*FeatureResponse) ProtoMessage() {}
  346. func (x *FeatureResponse) ProtoReflect() protoreflect.Message {
  347. mi := &file_hw_proto_msgTypes[6]
  348. if protoimpl.UnsafeEnabled && x != nil {
  349. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  350. if ms.LoadMessageInfo() == nil {
  351. ms.StoreMessageInfo(mi)
  352. }
  353. return ms
  354. }
  355. return mi.MessageOf(x)
  356. }
  357. // Deprecated: Use FeatureResponse.ProtoReflect.Descriptor instead.
  358. func (*FeatureResponse) Descriptor() ([]byte, []int) {
  359. return file_hw_proto_rawDescGZIP(), []int{6}
  360. }
  361. func (x *FeatureResponse) GetFeature() []*FeatureResult {
  362. if x != nil {
  363. return x.Feature
  364. }
  365. return nil
  366. }
  367. type ObjectDetectionRequest struct {
  368. state protoimpl.MessageState
  369. sizeCache protoimpl.SizeCache
  370. unknownFields protoimpl.UnknownFields
  371. Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"`
  372. Base64Img string `protobuf:"bytes,2,opt,name=base64_img,json=base64Img,proto3" json:"base64_img,omitempty"`
  373. }
  374. func (x *ObjectDetectionRequest) Reset() {
  375. *x = ObjectDetectionRequest{}
  376. if protoimpl.UnsafeEnabled {
  377. mi := &file_hw_proto_msgTypes[7]
  378. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  379. ms.StoreMessageInfo(mi)
  380. }
  381. }
  382. func (x *ObjectDetectionRequest) String() string {
  383. return protoimpl.X.MessageStringOf(x)
  384. }
  385. func (*ObjectDetectionRequest) ProtoMessage() {}
  386. func (x *ObjectDetectionRequest) ProtoReflect() protoreflect.Message {
  387. mi := &file_hw_proto_msgTypes[7]
  388. if protoimpl.UnsafeEnabled && x != nil {
  389. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  390. if ms.LoadMessageInfo() == nil {
  391. ms.StoreMessageInfo(mi)
  392. }
  393. return ms
  394. }
  395. return mi.MessageOf(x)
  396. }
  397. // Deprecated: Use ObjectDetectionRequest.ProtoReflect.Descriptor instead.
  398. func (*ObjectDetectionRequest) Descriptor() ([]byte, []int) {
  399. return file_hw_proto_rawDescGZIP(), []int{7}
  400. }
  401. func (x *ObjectDetectionRequest) GetCmd() string {
  402. if x != nil {
  403. return x.Cmd
  404. }
  405. return ""
  406. }
  407. func (x *ObjectDetectionRequest) GetBase64Img() string {
  408. if x != nil {
  409. return x.Base64Img
  410. }
  411. return ""
  412. }
  413. type ObjectDetectionResponse struct {
  414. state protoimpl.MessageState
  415. sizeCache protoimpl.SizeCache
  416. unknownFields protoimpl.UnknownFields
  417. Info string `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
  418. Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
  419. Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
  420. Result string `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
  421. Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
  422. }
  423. func (x *ObjectDetectionResponse) Reset() {
  424. *x = ObjectDetectionResponse{}
  425. if protoimpl.UnsafeEnabled {
  426. mi := &file_hw_proto_msgTypes[8]
  427. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  428. ms.StoreMessageInfo(mi)
  429. }
  430. }
  431. func (x *ObjectDetectionResponse) String() string {
  432. return protoimpl.X.MessageStringOf(x)
  433. }
  434. func (*ObjectDetectionResponse) ProtoMessage() {}
  435. func (x *ObjectDetectionResponse) ProtoReflect() protoreflect.Message {
  436. mi := &file_hw_proto_msgTypes[8]
  437. if protoimpl.UnsafeEnabled && x != nil {
  438. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  439. if ms.LoadMessageInfo() == nil {
  440. ms.StoreMessageInfo(mi)
  441. }
  442. return ms
  443. }
  444. return mi.MessageOf(x)
  445. }
  446. // Deprecated: Use ObjectDetectionResponse.ProtoReflect.Descriptor instead.
  447. func (*ObjectDetectionResponse) Descriptor() ([]byte, []int) {
  448. return file_hw_proto_rawDescGZIP(), []int{8}
  449. }
  450. func (x *ObjectDetectionResponse) GetInfo() string {
  451. if x != nil {
  452. return x.Info
  453. }
  454. return ""
  455. }
  456. func (x *ObjectDetectionResponse) GetCode() int32 {
  457. if x != nil {
  458. return x.Code
  459. }
  460. return 0
  461. }
  462. func (x *ObjectDetectionResponse) GetImage() string {
  463. if x != nil {
  464. return x.Image
  465. }
  466. return ""
  467. }
  468. func (x *ObjectDetectionResponse) GetResult() string {
  469. if x != nil {
  470. return x.Result
  471. }
  472. return ""
  473. }
  474. func (x *ObjectDetectionResponse) GetType() string {
  475. if x != nil {
  476. return x.Type
  477. }
  478. return ""
  479. }
  480. var File_hw_proto protoreflect.FileDescriptor
  481. var file_hw_proto_rawDesc = []byte{
  482. 0x0a, 0x08, 0x68, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x68, 0x65, 0x6c, 0x6c,
  483. 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
  484. 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
  485. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
  486. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  487. 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  488. 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  489. 0x6f, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  490. 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  491. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x26, 0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65,
  492. 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01,
  493. 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x30, 0x0a,
  494. 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
  495. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a,
  496. 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22,
  497. 0x8a, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  498. 0x12, 0x10, 0x0a, 0x03, 0x72, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72,
  499. 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  500. 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x6c, 0x65, 0x74,
  501. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x6c, 0x65, 0x74, 0x12, 0x12,
  502. 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,
  503. 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c,
  504. 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18,
  505. 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x3d, 0x0a, 0x03,
  506. 0x42, 0x6f, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01,
  507. 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x79, 0x12,
  508. 0x0c, 0x0a, 0x01, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x77, 0x12, 0x0c, 0x0a,
  509. 0x01, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x68, 0x22, 0x4e, 0x0a, 0x0d, 0x46,
  510. 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1a, 0x0a, 0x08,
  511. 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x02, 0x52, 0x08,
  512. 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x03, 0x62, 0x6f, 0x78, 0x18,
  513. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72,
  514. 0x6c, 0x64, 0x2e, 0x42, 0x6f, 0x78, 0x52, 0x03, 0x62, 0x6f, 0x78, 0x22, 0x46, 0x0a, 0x0f, 0x46,
  515. 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33,
  516. 0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
  517. 0x19, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x46, 0x65, 0x61,
  518. 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x66, 0x65, 0x61, 0x74,
  519. 0x75, 0x72, 0x65, 0x22, 0x49, 0x0a, 0x16, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74,
  520. 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a,
  521. 0x03, 0x63, 0x6d, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x6d, 0x64, 0x12,
  522. 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x5f, 0x69, 0x6d, 0x67, 0x18, 0x02, 0x20,
  523. 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x49, 0x6d, 0x67, 0x22, 0x83,
  524. 0x01, 0x0a, 0x17, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69,
  525. 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e,
  526. 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x12,
  527. 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f,
  528. 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  529. 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75,
  530. 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
  531. 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  532. 0x74, 0x79, 0x70, 0x65, 0x32, 0x90, 0x03, 0x0a, 0x07, 0x47, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72,
  533. 0x12, 0x3e, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x18, 0x2e, 0x68,
  534. 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52,
  535. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f,
  536. 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
  537. 0x12, 0x3b, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x68, 0x65,
  538. 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65,
  539. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72,
  540. 0x6c, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a,
  541. 0x0b, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x2e, 0x67,
  542. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42,
  543. 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x1b, 0x2e, 0x68, 0x65, 0x6c, 0x6c,
  544. 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65,
  545. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7a, 0x0a, 0x10, 0x6f, 0x62, 0x6a, 0x65,
  546. 0x63, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x68,
  547. 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
  548. 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  549. 0x1a, 0x23, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x4f, 0x62,
  550. 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
  551. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x15, 0x2f,
  552. 0x76, 0x31, 0x2f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74,
  553. 0x69, 0x6f, 0x6e, 0x2f, 0x12, 0x41, 0x0a, 0x09, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75,
  554. 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  555. 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  556. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c,
  557. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x00, 0x42, 0x41, 0x0a, 0x1b, 0x69, 0x6f, 0x2e, 0x67, 0x72,
  558. 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x68, 0x65, 0x6c, 0x6c,
  559. 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x42, 0x0f, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x57, 0x6f, 0x72,
  560. 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x67, 0x72, 0x70, 0x63, 0x2f,
  561. 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  562. 0x6f, 0x33,
  563. }
  564. var (
  565. file_hw_proto_rawDescOnce sync.Once
  566. file_hw_proto_rawDescData = file_hw_proto_rawDesc
  567. )
  568. func file_hw_proto_rawDescGZIP() []byte {
  569. file_hw_proto_rawDescOnce.Do(func() {
  570. file_hw_proto_rawDescData = protoimpl.X.CompressGZIP(file_hw_proto_rawDescData)
  571. })
  572. return file_hw_proto_rawDescData
  573. }
  574. var file_hw_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  575. var file_hw_proto_goTypes = []interface{}{
  576. (*HelloRequest)(nil), // 0: helloworld.HelloRequest
  577. (*HelloReply)(nil), // 1: helloworld.HelloReply
  578. (*Response)(nil), // 2: helloworld.Response
  579. (*InferRequest)(nil), // 3: helloworld.InferRequest
  580. (*Box)(nil), // 4: helloworld.Box
  581. (*FeatureResult)(nil), // 5: helloworld.FeatureResult
  582. (*FeatureResponse)(nil), // 6: helloworld.FeatureResponse
  583. (*ObjectDetectionRequest)(nil), // 7: helloworld.ObjectDetectionRequest
  584. (*ObjectDetectionResponse)(nil), // 8: helloworld.ObjectDetectionResponse
  585. (*wrappers.BytesValue)(nil), // 9: google.protobuf.BytesValue
  586. (*empty.Empty)(nil), // 10: google.protobuf.Empty
  587. (*wrappers.BoolValue)(nil), // 11: google.protobuf.BoolValue
  588. }
  589. var file_hw_proto_depIdxs = []int32{
  590. 4, // 0: helloworld.FeatureResult.box:type_name -> helloworld.Box
  591. 5, // 1: helloworld.FeatureResponse.feature:type_name -> helloworld.FeatureResult
  592. 0, // 2: helloworld.Greeter.SayHello:input_type -> helloworld.HelloRequest
  593. 3, // 3: helloworld.Greeter.Compute:input_type -> helloworld.InferRequest
  594. 9, // 4: helloworld.Greeter.get_feature:input_type -> google.protobuf.BytesValue
  595. 7, // 5: helloworld.Greeter.object_detection:input_type -> helloworld.ObjectDetectionRequest
  596. 10, // 6: helloworld.Greeter.getStatus:input_type -> google.protobuf.Empty
  597. 1, // 7: helloworld.Greeter.SayHello:output_type -> helloworld.HelloReply
  598. 2, // 8: helloworld.Greeter.Compute:output_type -> helloworld.Response
  599. 6, // 9: helloworld.Greeter.get_feature:output_type -> helloworld.FeatureResponse
  600. 8, // 10: helloworld.Greeter.object_detection:output_type -> helloworld.ObjectDetectionResponse
  601. 11, // 11: helloworld.Greeter.getStatus:output_type -> google.protobuf.BoolValue
  602. 7, // [7:12] is the sub-list for method output_type
  603. 2, // [2:7] is the sub-list for method input_type
  604. 2, // [2:2] is the sub-list for extension type_name
  605. 2, // [2:2] is the sub-list for extension extendee
  606. 0, // [0:2] is the sub-list for field type_name
  607. }
  608. func init() { file_hw_proto_init() }
  609. func file_hw_proto_init() {
  610. if File_hw_proto != nil {
  611. return
  612. }
  613. if !protoimpl.UnsafeEnabled {
  614. file_hw_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  615. switch v := v.(*HelloRequest); i {
  616. case 0:
  617. return &v.state
  618. case 1:
  619. return &v.sizeCache
  620. case 2:
  621. return &v.unknownFields
  622. default:
  623. return nil
  624. }
  625. }
  626. file_hw_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  627. switch v := v.(*HelloReply); i {
  628. case 0:
  629. return &v.state
  630. case 1:
  631. return &v.sizeCache
  632. case 2:
  633. return &v.unknownFields
  634. default:
  635. return nil
  636. }
  637. }
  638. file_hw_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  639. switch v := v.(*Response); i {
  640. case 0:
  641. return &v.state
  642. case 1:
  643. return &v.sizeCache
  644. case 2:
  645. return &v.unknownFields
  646. default:
  647. return nil
  648. }
  649. }
  650. file_hw_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  651. switch v := v.(*InferRequest); i {
  652. case 0:
  653. return &v.state
  654. case 1:
  655. return &v.sizeCache
  656. case 2:
  657. return &v.unknownFields
  658. default:
  659. return nil
  660. }
  661. }
  662. file_hw_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  663. switch v := v.(*Box); i {
  664. case 0:
  665. return &v.state
  666. case 1:
  667. return &v.sizeCache
  668. case 2:
  669. return &v.unknownFields
  670. default:
  671. return nil
  672. }
  673. }
  674. file_hw_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  675. switch v := v.(*FeatureResult); i {
  676. case 0:
  677. return &v.state
  678. case 1:
  679. return &v.sizeCache
  680. case 2:
  681. return &v.unknownFields
  682. default:
  683. return nil
  684. }
  685. }
  686. file_hw_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  687. switch v := v.(*FeatureResponse); i {
  688. case 0:
  689. return &v.state
  690. case 1:
  691. return &v.sizeCache
  692. case 2:
  693. return &v.unknownFields
  694. default:
  695. return nil
  696. }
  697. }
  698. file_hw_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  699. switch v := v.(*ObjectDetectionRequest); i {
  700. case 0:
  701. return &v.state
  702. case 1:
  703. return &v.sizeCache
  704. case 2:
  705. return &v.unknownFields
  706. default:
  707. return nil
  708. }
  709. }
  710. file_hw_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  711. switch v := v.(*ObjectDetectionResponse); i {
  712. case 0:
  713. return &v.state
  714. case 1:
  715. return &v.sizeCache
  716. case 2:
  717. return &v.unknownFields
  718. default:
  719. return nil
  720. }
  721. }
  722. }
  723. type x struct{}
  724. out := protoimpl.TypeBuilder{
  725. File: protoimpl.DescBuilder{
  726. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  727. RawDescriptor: file_hw_proto_rawDesc,
  728. NumEnums: 0,
  729. NumMessages: 9,
  730. NumExtensions: 0,
  731. NumServices: 1,
  732. },
  733. GoTypes: file_hw_proto_goTypes,
  734. DependencyIndexes: file_hw_proto_depIdxs,
  735. MessageInfos: file_hw_proto_msgTypes,
  736. }.Build()
  737. File_hw_proto = out.File
  738. file_hw_proto_rawDesc = nil
  739. file_hw_proto_goTypes = nil
  740. file_hw_proto_depIdxs = nil
  741. }