// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// source: facedetect.proto
|
|
package protomsg
|
|
import (
|
context "context"
|
fmt "fmt"
|
proto "github.com/gogo/protobuf/proto"
|
grpc "google.golang.org/grpc"
|
codes "google.golang.org/grpc/codes"
|
status "google.golang.org/grpc/status"
|
io "io"
|
math "math"
|
math_bits "math/bits"
|
)
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
var _ = proto.Marshal
|
var _ = fmt.Errorf
|
var _ = math.Inf
|
|
// This is a compile-time assertion to ensure that this generated file
|
// is compatible with the proto package it is being compiled against.
|
// A compilation error at this line likely means your copy of the
|
// proto package needs to be updated.
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
type FaceDetectRequest struct {
|
ReqParam []byte `protobuf:"bytes,1,opt,name=reqParam,proto3" json:"reqParam,omitempty"`
|
}
|
|
func (m *FaceDetectRequest) Reset() { *m = FaceDetectRequest{} }
|
func (m *FaceDetectRequest) String() string { return proto.CompactTextString(m) }
|
func (*FaceDetectRequest) ProtoMessage() {}
|
func (*FaceDetectRequest) Descriptor() ([]byte, []int) {
|
return fileDescriptor_5314bd1755b5a080, []int{0}
|
}
|
func (m *FaceDetectRequest) XXX_Unmarshal(b []byte) error {
|
return m.Unmarshal(b)
|
}
|
func (m *FaceDetectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
if deterministic {
|
return xxx_messageInfo_FaceDetectRequest.Marshal(b, m, deterministic)
|
} else {
|
b = b[:cap(b)]
|
n, err := m.MarshalTo(b)
|
if err != nil {
|
return nil, err
|
}
|
return b[:n], nil
|
}
|
}
|
func (m *FaceDetectRequest) XXX_Merge(src proto.Message) {
|
xxx_messageInfo_FaceDetectRequest.Merge(m, src)
|
}
|
func (m *FaceDetectRequest) XXX_Size() int {
|
return m.Size()
|
}
|
func (m *FaceDetectRequest) XXX_DiscardUnknown() {
|
xxx_messageInfo_FaceDetectRequest.DiscardUnknown(m)
|
}
|
|
var xxx_messageInfo_FaceDetectRequest proto.InternalMessageInfo
|
|
func (m *FaceDetectRequest) GetReqParam() []byte {
|
if m != nil {
|
return m.ReqParam
|
}
|
return nil
|
}
|
|
func init() {
|
proto.RegisterType((*FaceDetectRequest)(nil), "protomsg.FaceDetectRequest")
|
}
|
|
func init() { proto.RegisterFile("facedetect.proto", fileDescriptor_5314bd1755b5a080) }
|
|
var fileDescriptor_5314bd1755b5a080 = []byte{
|
// 157 bytes of a gzipped FileDescriptorProto
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x48, 0x4b, 0x4c, 0x4e,
|
0x4d, 0x49, 0x2d, 0x49, 0x4d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53,
|
0xb9, 0xc5, 0xe9, 0x52, 0x9c, 0xc5, 0x29, 0xd9, 0x10, 0x41, 0x25, 0x7d, 0x2e, 0x41, 0xb7, 0xc4,
|
0xe4, 0x54, 0x17, 0xb0, 0xc2, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x21, 0x29, 0x2e, 0x8e,
|
0xa2, 0xd4, 0xc2, 0x80, 0xc4, 0xa2, 0xc4, 0x5c, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x9e, 0x20, 0x38,
|
0xdf, 0x28, 0x90, 0x8b, 0x0b, 0xa1, 0x41, 0xc8, 0x19, 0x85, 0x27, 0xad, 0x07, 0xb3, 0x42, 0x0f,
|
0xc3, 0x50, 0x29, 0x31, 0x84, 0x24, 0xd8, 0x24, 0x90, 0x8a, 0x80, 0xfc, 0x62, 0x25, 0x06, 0x27,
|
0x89, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63,
|
0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x48, 0x62, 0x03, 0x6b, 0x31, 0x06,
|
0x04, 0x00, 0x00, 0xff, 0xff, 0x92, 0xe0, 0xfb, 0x5b, 0xcd, 0x00, 0x00, 0x00,
|
}
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
var _ context.Context
|
var _ grpc.ClientConn
|
|
// This is a compile-time assertion to ensure that this generated file
|
// is compatible with the grpc package it is being compiled against.
|
const _ = grpc.SupportPackageIsVersion4
|
|
// FaceDetectClient is the client API for FaceDetect service.
|
//
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
type FaceDetectClient interface {
|
FaceDetect(ctx context.Context, in *FaceDetectRequest, opts ...grpc.CallOption) (*ParamFacePos, error)
|
}
|
|
type faceDetectClient struct {
|
cc *grpc.ClientConn
|
}
|
|
func NewFaceDetectClient(cc *grpc.ClientConn) FaceDetectClient {
|
return &faceDetectClient{cc}
|
}
|
|
func (c *faceDetectClient) FaceDetect(ctx context.Context, in *FaceDetectRequest, opts ...grpc.CallOption) (*ParamFacePos, error) {
|
out := new(ParamFacePos)
|
err := c.cc.Invoke(ctx, "/protomsg.FaceDetect/FaceDetect", in, out, opts...)
|
if err != nil {
|
return nil, err
|
}
|
return out, nil
|
}
|
|
// FaceDetectServer is the server API for FaceDetect service.
|
type FaceDetectServer interface {
|
FaceDetect(context.Context, *FaceDetectRequest) (*ParamFacePos, error)
|
}
|
|
// UnimplementedFaceDetectServer can be embedded to have forward compatible implementations.
|
type UnimplementedFaceDetectServer struct {
|
}
|
|
func (*UnimplementedFaceDetectServer) FaceDetect(ctx context.Context, req *FaceDetectRequest) (*ParamFacePos, error) {
|
return nil, status.Errorf(codes.Unimplemented, "method FaceDetect not implemented")
|
}
|
|
func RegisterFaceDetectServer(s *grpc.Server, srv FaceDetectServer) {
|
s.RegisterService(&_FaceDetect_serviceDesc, srv)
|
}
|
|
func _FaceDetect_FaceDetect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
in := new(FaceDetectRequest)
|
if err := dec(in); err != nil {
|
return nil, err
|
}
|
if interceptor == nil {
|
return srv.(FaceDetectServer).FaceDetect(ctx, in)
|
}
|
info := &grpc.UnaryServerInfo{
|
Server: srv,
|
FullMethod: "/protomsg.FaceDetect/FaceDetect",
|
}
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
return srv.(FaceDetectServer).FaceDetect(ctx, req.(*FaceDetectRequest))
|
}
|
return interceptor(ctx, in, info, handler)
|
}
|
|
var _FaceDetect_serviceDesc = grpc.ServiceDesc{
|
ServiceName: "protomsg.FaceDetect",
|
HandlerType: (*FaceDetectServer)(nil),
|
Methods: []grpc.MethodDesc{
|
{
|
MethodName: "FaceDetect",
|
Handler: _FaceDetect_FaceDetect_Handler,
|
},
|
},
|
Streams: []grpc.StreamDesc{},
|
Metadata: "facedetect.proto",
|
}
|
|
func (m *FaceDetectRequest) Marshal() (dAtA []byte, err error) {
|
size := m.Size()
|
dAtA = make([]byte, size)
|
n, err := m.MarshalTo(dAtA)
|
if err != nil {
|
return nil, err
|
}
|
return dAtA[:n], nil
|
}
|
|
func (m *FaceDetectRequest) MarshalTo(dAtA []byte) (int, error) {
|
var i int
|
_ = i
|
var l int
|
_ = l
|
if len(m.ReqParam) > 0 {
|
dAtA[i] = 0xa
|
i++
|
i = encodeVarintFacedetect(dAtA, i, uint64(len(m.ReqParam)))
|
i += copy(dAtA[i:], m.ReqParam)
|
}
|
return i, nil
|
}
|
|
func encodeVarintFacedetect(dAtA []byte, offset int, v uint64) int {
|
for v >= 1<<7 {
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
v >>= 7
|
offset++
|
}
|
dAtA[offset] = uint8(v)
|
return offset + 1
|
}
|
func (m *FaceDetectRequest) Size() (n int) {
|
if m == nil {
|
return 0
|
}
|
var l int
|
_ = l
|
l = len(m.ReqParam)
|
if l > 0 {
|
n += 1 + l + sovFacedetect(uint64(l))
|
}
|
return n
|
}
|
|
func sovFacedetect(x uint64) (n int) {
|
return (math_bits.Len64(x|1) + 6) / 7
|
}
|
func sozFacedetect(x uint64) (n int) {
|
return sovFacedetect(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
}
|
func (m *FaceDetectRequest) Unmarshal(dAtA []byte) error {
|
l := len(dAtA)
|
iNdEx := 0
|
for iNdEx < l {
|
preIndex := iNdEx
|
var wire uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowFacedetect
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
wire |= uint64(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
fieldNum := int32(wire >> 3)
|
wireType := int(wire & 0x7)
|
if wireType == 4 {
|
return fmt.Errorf("proto: FaceDetectRequest: wiretype end group for non-group")
|
}
|
if fieldNum <= 0 {
|
return fmt.Errorf("proto: FaceDetectRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
}
|
switch fieldNum {
|
case 1:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field ReqParam", wireType)
|
}
|
var byteLen int
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowFacedetect
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
byteLen |= int(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
if byteLen < 0 {
|
return ErrInvalidLengthFacedetect
|
}
|
postIndex := iNdEx + byteLen
|
if postIndex < 0 {
|
return ErrInvalidLengthFacedetect
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.ReqParam = append(m.ReqParam[:0], dAtA[iNdEx:postIndex]...)
|
if m.ReqParam == nil {
|
m.ReqParam = []byte{}
|
}
|
iNdEx = postIndex
|
default:
|
iNdEx = preIndex
|
skippy, err := skipFacedetect(dAtA[iNdEx:])
|
if err != nil {
|
return err
|
}
|
if skippy < 0 {
|
return ErrInvalidLengthFacedetect
|
}
|
if (iNdEx + skippy) < 0 {
|
return ErrInvalidLengthFacedetect
|
}
|
if (iNdEx + skippy) > l {
|
return io.ErrUnexpectedEOF
|
}
|
iNdEx += skippy
|
}
|
}
|
|
if iNdEx > l {
|
return io.ErrUnexpectedEOF
|
}
|
return nil
|
}
|
func skipFacedetect(dAtA []byte) (n int, err error) {
|
l := len(dAtA)
|
iNdEx := 0
|
for iNdEx < l {
|
var wire uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return 0, ErrIntOverflowFacedetect
|
}
|
if iNdEx >= l {
|
return 0, io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
wire |= (uint64(b) & 0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
wireType := int(wire & 0x7)
|
switch wireType {
|
case 0:
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return 0, ErrIntOverflowFacedetect
|
}
|
if iNdEx >= l {
|
return 0, io.ErrUnexpectedEOF
|
}
|
iNdEx++
|
if dAtA[iNdEx-1] < 0x80 {
|
break
|
}
|
}
|
return iNdEx, nil
|
case 1:
|
iNdEx += 8
|
return iNdEx, nil
|
case 2:
|
var length int
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return 0, ErrIntOverflowFacedetect
|
}
|
if iNdEx >= l {
|
return 0, io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
length |= (int(b) & 0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
if length < 0 {
|
return 0, ErrInvalidLengthFacedetect
|
}
|
iNdEx += length
|
if iNdEx < 0 {
|
return 0, ErrInvalidLengthFacedetect
|
}
|
return iNdEx, nil
|
case 3:
|
for {
|
var innerWire uint64
|
var start int = iNdEx
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return 0, ErrIntOverflowFacedetect
|
}
|
if iNdEx >= l {
|
return 0, io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
innerWire |= (uint64(b) & 0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
innerWireType := int(innerWire & 0x7)
|
if innerWireType == 4 {
|
break
|
}
|
next, err := skipFacedetect(dAtA[start:])
|
if err != nil {
|
return 0, err
|
}
|
iNdEx = start + next
|
if iNdEx < 0 {
|
return 0, ErrInvalidLengthFacedetect
|
}
|
}
|
return iNdEx, nil
|
case 4:
|
return iNdEx, nil
|
case 5:
|
iNdEx += 4
|
return iNdEx, nil
|
default:
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
}
|
}
|
panic("unreachable")
|
}
|
|
var (
|
ErrInvalidLengthFacedetect = fmt.Errorf("proto: negative length found during unmarshaling")
|
ErrIntOverflowFacedetect = fmt.Errorf("proto: integer overflow")
|
)
|