|
@@ -0,0 +1,453 @@
|
|
|
+// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
+// versions:
|
|
|
+// protoc-gen-go v1.25.0
|
|
|
+// protoc v3.15.1
|
|
|
+// source: deduplication.proto
|
|
|
+
|
|
|
+package deduplication
|
|
|
+
|
|
|
+import (
|
|
|
+ context "context"
|
|
|
+ proto "github.com/golang/protobuf/proto"
|
|
|
+ grpc "google.golang.org/grpc"
|
|
|
+ codes "google.golang.org/grpc/codes"
|
|
|
+ status "google.golang.org/grpc/status"
|
|
|
+ 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)
|
|
|
+)
|
|
|
+
|
|
|
+// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
+// of the legacy proto package is being used.
|
|
|
+const _ = proto.ProtoPackageIsVersion4
|
|
|
+
|
|
|
+type Request struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ PersonId string `protobuf:"bytes,1,opt,name=personId,proto3" json:"personId,omitempty"` //人员id
|
|
|
+ InfoId string `protobuf:"bytes,2,opt,name=infoId,proto3" json:"infoId,omitempty"` //信息id 逗号分隔
|
|
|
+ EntId string `protobuf:"bytes,3,opt,name=entId,proto3" json:"entId,omitempty"` // 企业id
|
|
|
+ IsInsert bool `protobuf:"varint,4,opt,name=isInsert,proto3" json:"isInsert,omitempty"` // 是否插入不重复的数据
|
|
|
+ IsEnt bool `protobuf:"varint,5,opt,name=isEnt,proto3" json:"isEnt,omitempty"` // 是否按企业id判重
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Request) Reset() {
|
|
|
+ *x = Request{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_deduplication_proto_msgTypes[0]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Request) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*Request) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *Request) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_deduplication_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 Request.ProtoReflect.Descriptor instead.
|
|
|
+func (*Request) Descriptor() ([]byte, []int) {
|
|
|
+ return file_deduplication_proto_rawDescGZIP(), []int{0}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Request) GetPersonId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.PersonId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Request) GetInfoId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.InfoId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Request) GetEntId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.EntId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Request) GetIsInsert() bool {
|
|
|
+ if x != nil {
|
|
|
+ return x.IsInsert
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Request) GetIsEnt() bool {
|
|
|
+ if x != nil {
|
|
|
+ return x.IsEnt
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|
|
|
+
|
|
|
+type Info struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ TotalCount int64 `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"` // 本次查询info_id总量
|
|
|
+ ExistCount int64 `protobuf:"varint,2,opt,name=existCount,proto3" json:"existCount,omitempty"` // 已存在的info_id的数量
|
|
|
+ NewCount int64 `protobuf:"varint,3,opt,name=NewCount,proto3" json:"NewCount,omitempty"` // 不存在的info_id的数量
|
|
|
+ IsInsert bool `protobuf:"varint,4,opt,name=isInsert,proto3" json:"isInsert,omitempty"` // 是否插入新数据
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Info) Reset() {
|
|
|
+ *x = Info{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_deduplication_proto_msgTypes[1]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Info) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*Info) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *Info) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_deduplication_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 Info.ProtoReflect.Descriptor instead.
|
|
|
+func (*Info) Descriptor() ([]byte, []int) {
|
|
|
+ return file_deduplication_proto_rawDescGZIP(), []int{1}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Info) GetTotalCount() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.TotalCount
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Info) GetExistCount() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ExistCount
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Info) GetNewCount() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.NewCount
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Info) GetIsInsert() bool {
|
|
|
+ if x != nil {
|
|
|
+ return x.IsInsert
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|
|
|
+
|
|
|
+type Response struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
|
|
|
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
|
|
|
+ Data *Info `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Response) Reset() {
|
|
|
+ *x = Response{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_deduplication_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_deduplication_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_deduplication_proto_rawDescGZIP(), []int{2}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Response) GetCode() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Code
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Response) GetMessage() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Message
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Response) GetData() *Info {
|
|
|
+ if x != nil {
|
|
|
+ return x.Data
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+var File_deduplication_proto protoreflect.FileDescriptor
|
|
|
+
|
|
|
+var file_deduplication_proto_rawDesc = []byte{
|
|
|
+ 0x0a, 0x13, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
|
|
|
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61,
|
|
|
+ 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x85, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
+ 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06,
|
|
|
+ 0x69, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6e,
|
|
|
+ 0x66, 0x6f, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20,
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73,
|
|
|
+ 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73,
|
|
|
+ 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73, 0x45, 0x6e, 0x74, 0x18,
|
|
|
+ 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x45, 0x6e, 0x74, 0x22, 0x7e, 0x0a, 0x04,
|
|
|
+ 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75,
|
|
|
+ 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43,
|
|
|
+ 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x75,
|
|
|
+ 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x78, 0x69, 0x73, 0x74, 0x43,
|
|
|
+ 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x4e, 0x65, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74,
|
|
|
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x4e, 0x65, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74,
|
|
|
+ 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01,
|
|
|
+ 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x22, 0x61, 0x0a, 0x08,
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
|
|
|
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07,
|
|
|
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
|
|
|
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
|
|
|
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61,
|
|
|
+ 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32,
|
|
|
+ 0x55, 0x0a, 0x0d, 0x44, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
+ 0x12, 0x44, 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x44, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63,
|
|
|
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63,
|
|
|
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e,
|
|
|
+ 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65,
|
|
|
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+}
|
|
|
+
|
|
|
+var (
|
|
|
+ file_deduplication_proto_rawDescOnce sync.Once
|
|
|
+ file_deduplication_proto_rawDescData = file_deduplication_proto_rawDesc
|
|
|
+)
|
|
|
+
|
|
|
+func file_deduplication_proto_rawDescGZIP() []byte {
|
|
|
+ file_deduplication_proto_rawDescOnce.Do(func() {
|
|
|
+ file_deduplication_proto_rawDescData = protoimpl.X.CompressGZIP(file_deduplication_proto_rawDescData)
|
|
|
+ })
|
|
|
+ return file_deduplication_proto_rawDescData
|
|
|
+}
|
|
|
+
|
|
|
+var file_deduplication_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
|
+var file_deduplication_proto_goTypes = []interface{}{
|
|
|
+ (*Request)(nil), // 0: deduplication.Request
|
|
|
+ (*Info)(nil), // 1: deduplication.Info
|
|
|
+ (*Response)(nil), // 2: deduplication.Response
|
|
|
+}
|
|
|
+var file_deduplication_proto_depIdxs = []int32{
|
|
|
+ 1, // 0: deduplication.Response.data:type_name -> deduplication.Info
|
|
|
+ 0, // 1: deduplication.Deduplication.dataDeduplication:input_type -> deduplication.Request
|
|
|
+ 2, // 2: deduplication.Deduplication.dataDeduplication:output_type -> deduplication.Response
|
|
|
+ 2, // [2:3] is the sub-list for method output_type
|
|
|
+ 1, // [1:2] is the sub-list for method input_type
|
|
|
+ 1, // [1:1] is the sub-list for extension type_name
|
|
|
+ 1, // [1:1] is the sub-list for extension extendee
|
|
|
+ 0, // [0:1] is the sub-list for field type_name
|
|
|
+}
|
|
|
+
|
|
|
+func init() { file_deduplication_proto_init() }
|
|
|
+func file_deduplication_proto_init() {
|
|
|
+ if File_deduplication_proto != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if !protoimpl.UnsafeEnabled {
|
|
|
+ file_deduplication_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*Request); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_deduplication_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*Info); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_deduplication_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
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ type x struct{}
|
|
|
+ out := protoimpl.TypeBuilder{
|
|
|
+ File: protoimpl.DescBuilder{
|
|
|
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
+ RawDescriptor: file_deduplication_proto_rawDesc,
|
|
|
+ NumEnums: 0,
|
|
|
+ NumMessages: 3,
|
|
|
+ NumExtensions: 0,
|
|
|
+ NumServices: 1,
|
|
|
+ },
|
|
|
+ GoTypes: file_deduplication_proto_goTypes,
|
|
|
+ DependencyIndexes: file_deduplication_proto_depIdxs,
|
|
|
+ MessageInfos: file_deduplication_proto_msgTypes,
|
|
|
+ }.Build()
|
|
|
+ File_deduplication_proto = out.File
|
|
|
+ file_deduplication_proto_rawDesc = nil
|
|
|
+ file_deduplication_proto_goTypes = nil
|
|
|
+ file_deduplication_proto_depIdxs = nil
|
|
|
+}
|
|
|
+
|
|
|
+// Reference imports to suppress errors if they are not otherwise used.
|
|
|
+var _ context.Context
|
|
|
+var _ grpc.ClientConnInterface
|
|
|
+
|
|
|
+// 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.SupportPackageIsVersion6
|
|
|
+
|
|
|
+// DeduplicationClient is the client API for Deduplication service.
|
|
|
+//
|
|
|
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
+type DeduplicationClient interface {
|
|
|
+ // 数据判重
|
|
|
+ DataDeduplication(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
|
|
|
+}
|
|
|
+
|
|
|
+type deduplicationClient struct {
|
|
|
+ cc grpc.ClientConnInterface
|
|
|
+}
|
|
|
+
|
|
|
+func NewDeduplicationClient(cc grpc.ClientConnInterface) DeduplicationClient {
|
|
|
+ return &deduplicationClient{cc}
|
|
|
+}
|
|
|
+
|
|
|
+func (c *deduplicationClient) DataDeduplication(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
|
|
+ out := new(Response)
|
|
|
+ err := c.cc.Invoke(ctx, "/deduplication.Deduplication/dataDeduplication", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+// DeduplicationServer is the server API for Deduplication service.
|
|
|
+type DeduplicationServer interface {
|
|
|
+ // 数据判重
|
|
|
+ DataDeduplication(context.Context, *Request) (*Response, error)
|
|
|
+}
|
|
|
+
|
|
|
+// UnimplementedDeduplicationServer can be embedded to have forward compatible implementations.
|
|
|
+type UnimplementedDeduplicationServer struct {
|
|
|
+}
|
|
|
+
|
|
|
+func (*UnimplementedDeduplicationServer) DataDeduplication(context.Context, *Request) (*Response, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method DataDeduplication not implemented")
|
|
|
+}
|
|
|
+
|
|
|
+func RegisterDeduplicationServer(s *grpc.Server, srv DeduplicationServer) {
|
|
|
+ s.RegisterService(&_Deduplication_serviceDesc, srv)
|
|
|
+}
|
|
|
+
|
|
|
+func _Deduplication_DataDeduplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(Request)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(DeduplicationServer).DataDeduplication(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/deduplication.Deduplication/DataDeduplication",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(DeduplicationServer).DataDeduplication(ctx, req.(*Request))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+var _Deduplication_serviceDesc = grpc.ServiceDesc{
|
|
|
+ ServiceName: "deduplication.Deduplication",
|
|
|
+ HandlerType: (*DeduplicationServer)(nil),
|
|
|
+ Methods: []grpc.MethodDesc{
|
|
|
+ {
|
|
|
+ MethodName: "dataDeduplication",
|
|
|
+ Handler: _Deduplication_DataDeduplication_Handler,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ Streams: []grpc.StreamDesc{},
|
|
|
+ Metadata: "deduplication.proto",
|
|
|
+}
|