123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851 |
- // Copyright 2023 EMQ Technologies Co., Ltd.
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.26.0-devel
- // protoc v3.6.1
- // source: hw.proto
- package service
- import (
- empty "github.com/golang/protobuf/ptypes/empty"
- wrappers "github.com/golang/protobuf/ptypes/wrappers"
- _ "google.golang.org/genproto/googleapis/api/annotations"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- // The request message containing the user's name.
- type HelloRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- }
- func (x *HelloRequest) Reset() {
- *x = HelloRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_hw_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *HelloRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*HelloRequest) ProtoMessage() {}
- func (x *HelloRequest) ProtoReflect() protoreflect.Message {
- mi := &file_hw_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RestHelloRequest.ProtoReflect.Descriptor instead.
- func (*HelloRequest) Descriptor() ([]byte, []int) {
- return file_hw_proto_rawDescGZIP(), []int{0}
- }
- func (x *HelloRequest) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- // The response message containing the greetings
- type HelloReply struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
- }
- func (x *HelloReply) Reset() {
- *x = HelloReply{}
- if protoimpl.UnsafeEnabled {
- mi := &file_hw_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *HelloReply) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*HelloReply) ProtoMessage() {}
- func (x *HelloReply) ProtoReflect() protoreflect.Message {
- mi := &file_hw_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RestHelloReply.ProtoReflect.Descriptor instead.
- func (*HelloReply) Descriptor() ([]byte, []int) {
- return file_hw_proto_rawDescGZIP(), []int{1}
- }
- func (x *HelloReply) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- type Response struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
- }
- func (x *Response) Reset() {
- *x = Response{}
- if protoimpl.UnsafeEnabled {
- mi := &file_hw_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Response) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Response) ProtoMessage() {}
- func (x *Response) ProtoReflect() protoreflect.Message {
- mi := &file_hw_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Response.ProtoReflect.Descriptor instead.
- func (*Response) Descriptor() ([]byte, []int) {
- return file_hw_proto_rawDescGZIP(), []int{2}
- }
- func (x *Response) GetCode() uint32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *Response) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- type InferRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Rid string `protobuf:"bytes,1,opt,name=rid,proto3" json:"rid,omitempty"`
- Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
- Outlet string `protobuf:"bytes,3,opt,name=outlet,proto3" json:"outlet,omitempty"`
- Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
- Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
- Extra string `protobuf:"bytes,6,opt,name=extra,proto3" json:"extra,omitempty"`
- }
- func (x *InferRequest) Reset() {
- *x = InferRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_hw_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *InferRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*InferRequest) ProtoMessage() {}
- func (x *InferRequest) ProtoReflect() protoreflect.Message {
- mi := &file_hw_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use InferRequest.ProtoReflect.Descriptor instead.
- func (*InferRequest) Descriptor() ([]byte, []int) {
- return file_hw_proto_rawDescGZIP(), []int{3}
- }
- func (x *InferRequest) GetRid() string {
- if x != nil {
- return x.Rid
- }
- return ""
- }
- func (x *InferRequest) GetUuid() string {
- if x != nil {
- return x.Uuid
- }
- return ""
- }
- func (x *InferRequest) GetOutlet() string {
- if x != nil {
- return x.Outlet
- }
- return ""
- }
- func (x *InferRequest) GetPath() string {
- if x != nil {
- return x.Path
- }
- return ""
- }
- func (x *InferRequest) GetData() []byte {
- if x != nil {
- return x.Data
- }
- return nil
- }
- func (x *InferRequest) GetExtra() string {
- if x != nil {
- return x.Extra
- }
- return ""
- }
- type Box struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
- Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
- W int32 `protobuf:"varint,3,opt,name=w,proto3" json:"w,omitempty"`
- H int32 `protobuf:"varint,4,opt,name=h,proto3" json:"h,omitempty"`
- }
- func (x *Box) Reset() {
- *x = Box{}
- if protoimpl.UnsafeEnabled {
- mi := &file_hw_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Box) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Box) ProtoMessage() {}
- func (x *Box) ProtoReflect() protoreflect.Message {
- mi := &file_hw_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Box.ProtoReflect.Descriptor instead.
- func (*Box) Descriptor() ([]byte, []int) {
- return file_hw_proto_rawDescGZIP(), []int{4}
- }
- func (x *Box) GetX() int32 {
- if x != nil {
- return x.X
- }
- return 0
- }
- func (x *Box) GetY() int32 {
- if x != nil {
- return x.Y
- }
- return 0
- }
- func (x *Box) GetW() int32 {
- if x != nil {
- return x.W
- }
- return 0
- }
- func (x *Box) GetH() int32 {
- if x != nil {
- return x.H
- }
- return 0
- }
- type FeatureResult struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Features []float32 `protobuf:"fixed32,1,rep,packed,name=features,proto3" json:"features,omitempty"`
- Box *Box `protobuf:"bytes,2,opt,name=box,proto3" json:"box,omitempty"`
- }
- func (x *FeatureResult) Reset() {
- *x = FeatureResult{}
- if protoimpl.UnsafeEnabled {
- mi := &file_hw_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FeatureResult) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FeatureResult) ProtoMessage() {}
- func (x *FeatureResult) ProtoReflect() protoreflect.Message {
- mi := &file_hw_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FeatureResult.ProtoReflect.Descriptor instead.
- func (*FeatureResult) Descriptor() ([]byte, []int) {
- return file_hw_proto_rawDescGZIP(), []int{5}
- }
- func (x *FeatureResult) GetFeatures() []float32 {
- if x != nil {
- return x.Features
- }
- return nil
- }
- func (x *FeatureResult) GetBox() *Box {
- if x != nil {
- return x.Box
- }
- return nil
- }
- type FeatureResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Feature []*FeatureResult `protobuf:"bytes,1,rep,name=feature,proto3" json:"feature,omitempty"`
- }
- func (x *FeatureResponse) Reset() {
- *x = FeatureResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_hw_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FeatureResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FeatureResponse) ProtoMessage() {}
- func (x *FeatureResponse) ProtoReflect() protoreflect.Message {
- mi := &file_hw_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FeatureResponse.ProtoReflect.Descriptor instead.
- func (*FeatureResponse) Descriptor() ([]byte, []int) {
- return file_hw_proto_rawDescGZIP(), []int{6}
- }
- func (x *FeatureResponse) GetFeature() []*FeatureResult {
- if x != nil {
- return x.Feature
- }
- return nil
- }
- type ObjectDetectionRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"`
- Base64Img string `protobuf:"bytes,2,opt,name=base64_img,json=base64Img,proto3" json:"base64_img,omitempty"`
- }
- func (x *ObjectDetectionRequest) Reset() {
- *x = ObjectDetectionRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_hw_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ObjectDetectionRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ObjectDetectionRequest) ProtoMessage() {}
- func (x *ObjectDetectionRequest) ProtoReflect() protoreflect.Message {
- mi := &file_hw_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ObjectDetectionRequest.ProtoReflect.Descriptor instead.
- func (*ObjectDetectionRequest) Descriptor() ([]byte, []int) {
- return file_hw_proto_rawDescGZIP(), []int{7}
- }
- func (x *ObjectDetectionRequest) GetCmd() string {
- if x != nil {
- return x.Cmd
- }
- return ""
- }
- func (x *ObjectDetectionRequest) GetBase64Img() string {
- if x != nil {
- return x.Base64Img
- }
- return ""
- }
- type ObjectDetectionResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Info string `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
- Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
- Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
- Result string `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
- Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
- }
- func (x *ObjectDetectionResponse) Reset() {
- *x = ObjectDetectionResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_hw_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ObjectDetectionResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ObjectDetectionResponse) ProtoMessage() {}
- func (x *ObjectDetectionResponse) ProtoReflect() protoreflect.Message {
- mi := &file_hw_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ObjectDetectionResponse.ProtoReflect.Descriptor instead.
- func (*ObjectDetectionResponse) Descriptor() ([]byte, []int) {
- return file_hw_proto_rawDescGZIP(), []int{8}
- }
- func (x *ObjectDetectionResponse) GetInfo() string {
- if x != nil {
- return x.Info
- }
- return ""
- }
- func (x *ObjectDetectionResponse) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *ObjectDetectionResponse) GetImage() string {
- if x != nil {
- return x.Image
- }
- return ""
- }
- func (x *ObjectDetectionResponse) GetResult() string {
- if x != nil {
- return x.Result
- }
- return ""
- }
- func (x *ObjectDetectionResponse) GetType() string {
- if x != nil {
- return x.Type
- }
- return ""
- }
- var File_hw_proto protoreflect.FileDescriptor
- var file_hw_proto_rawDesc = []byte{
- 0x0a, 0x08, 0x68, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x68, 0x65, 0x6c, 0x6c,
- 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
- 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
- 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x26, 0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65,
- 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x30, 0x0a,
- 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a,
- 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22,
- 0x8a, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x12, 0x10, 0x0a, 0x03, 0x72, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72,
- 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x6c, 0x65, 0x74,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x6c, 0x65, 0x74, 0x12, 0x12,
- 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,
- 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c,
- 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18,
- 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x3d, 0x0a, 0x03,
- 0x42, 0x6f, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01,
- 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x79, 0x12,
- 0x0c, 0x0a, 0x01, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x77, 0x12, 0x0c, 0x0a,
- 0x01, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x68, 0x22, 0x4e, 0x0a, 0x0d, 0x46,
- 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1a, 0x0a, 0x08,
- 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x02, 0x52, 0x08,
- 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x03, 0x62, 0x6f, 0x78, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72,
- 0x6c, 0x64, 0x2e, 0x42, 0x6f, 0x78, 0x52, 0x03, 0x62, 0x6f, 0x78, 0x22, 0x46, 0x0a, 0x0f, 0x46,
- 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33,
- 0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
- 0x19, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x46, 0x65, 0x61,
- 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x66, 0x65, 0x61, 0x74,
- 0x75, 0x72, 0x65, 0x22, 0x49, 0x0a, 0x16, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74,
- 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a,
- 0x03, 0x63, 0x6d, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x6d, 0x64, 0x12,
- 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x5f, 0x69, 0x6d, 0x67, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x49, 0x6d, 0x67, 0x22, 0x83,
- 0x01, 0x0a, 0x17, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69,
- 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e,
- 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x12,
- 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f,
- 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75,
- 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
- 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
- 0x74, 0x79, 0x70, 0x65, 0x32, 0x90, 0x03, 0x0a, 0x07, 0x47, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72,
- 0x12, 0x3e, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x18, 0x2e, 0x68,
- 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f,
- 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
- 0x12, 0x3b, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x68, 0x65,
- 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72,
- 0x6c, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a,
- 0x0b, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x2e, 0x67,
- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42,
- 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x1b, 0x2e, 0x68, 0x65, 0x6c, 0x6c,
- 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7a, 0x0a, 0x10, 0x6f, 0x62, 0x6a, 0x65,
- 0x63, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x68,
- 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
- 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x23, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x4f, 0x62,
- 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x15, 0x2f,
- 0x76, 0x31, 0x2f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74,
- 0x69, 0x6f, 0x6e, 0x2f, 0x12, 0x41, 0x0a, 0x09, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75,
- 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c,
- 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x00, 0x42, 0x41, 0x0a, 0x1b, 0x69, 0x6f, 0x2e, 0x67, 0x72,
- 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x68, 0x65, 0x6c, 0x6c,
- 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x42, 0x0f, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x57, 0x6f, 0x72,
- 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x67, 0x72, 0x70, 0x63, 0x2f,
- 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x33,
- }
- var (
- file_hw_proto_rawDescOnce sync.Once
- file_hw_proto_rawDescData = file_hw_proto_rawDesc
- )
- func file_hw_proto_rawDescGZIP() []byte {
- file_hw_proto_rawDescOnce.Do(func() {
- file_hw_proto_rawDescData = protoimpl.X.CompressGZIP(file_hw_proto_rawDescData)
- })
- return file_hw_proto_rawDescData
- }
- var file_hw_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
- var file_hw_proto_goTypes = []interface{}{
- (*HelloRequest)(nil), // 0: helloworld.RestHelloRequest
- (*HelloReply)(nil), // 1: helloworld.RestHelloReply
- (*Response)(nil), // 2: helloworld.Response
- (*InferRequest)(nil), // 3: helloworld.InferRequest
- (*Box)(nil), // 4: helloworld.Box
- (*FeatureResult)(nil), // 5: helloworld.FeatureResult
- (*FeatureResponse)(nil), // 6: helloworld.FeatureResponse
- (*ObjectDetectionRequest)(nil), // 7: helloworld.ObjectDetectionRequest
- (*ObjectDetectionResponse)(nil), // 8: helloworld.ObjectDetectionResponse
- (*wrappers.BytesValue)(nil), // 9: google.protobuf.BytesValue
- (*empty.Empty)(nil), // 10: google.protobuf.Empty
- (*wrappers.BoolValue)(nil), // 11: google.protobuf.BoolValue
- }
- var file_hw_proto_depIdxs = []int32{
- 4, // 0: helloworld.FeatureResult.box:type_name -> helloworld.Box
- 5, // 1: helloworld.FeatureResponse.feature:type_name -> helloworld.FeatureResult
- 0, // 2: helloworld.Greeter.SayHello:input_type -> helloworld.RestHelloRequest
- 3, // 3: helloworld.Greeter.Compute:input_type -> helloworld.InferRequest
- 9, // 4: helloworld.Greeter.get_feature:input_type -> google.protobuf.BytesValue
- 7, // 5: helloworld.Greeter.object_detection:input_type -> helloworld.ObjectDetectionRequest
- 10, // 6: helloworld.Greeter.getStatus:input_type -> google.protobuf.Empty
- 1, // 7: helloworld.Greeter.SayHello:output_type -> helloworld.RestHelloReply
- 2, // 8: helloworld.Greeter.Compute:output_type -> helloworld.Response
- 6, // 9: helloworld.Greeter.get_feature:output_type -> helloworld.FeatureResponse
- 8, // 10: helloworld.Greeter.object_detection:output_type -> helloworld.ObjectDetectionResponse
- 11, // 11: helloworld.Greeter.getStatus:output_type -> google.protobuf.BoolValue
- 7, // [7:12] is the sub-list for method output_type
- 2, // [2:7] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
- func init() { file_hw_proto_init() }
- func file_hw_proto_init() {
- if File_hw_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_hw_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*HelloRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_hw_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*HelloReply); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_hw_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Response); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_hw_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*InferRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_hw_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Box); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_hw_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FeatureResult); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_hw_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FeatureResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_hw_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ObjectDetectionRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_hw_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ObjectDetectionResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_hw_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 9,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_hw_proto_goTypes,
- DependencyIndexes: file_hw_proto_depIdxs,
- MessageInfos: file_hw_proto_msgTypes,
- }.Build()
- File_hw_proto = out.File
- file_hw_proto_rawDesc = nil
- file_hw_proto_goTypes = nil
- file_hw_proto_depIdxs = nil
- }
|