hw.pb_test.go 27 KB

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