// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.11.4 // source: stdlib.proto package stdlib 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 DocQueryRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields KeyWords string `protobuf:"bytes,1,opt,name=keyWords,proto3" json:"keyWords,omitempty"` //检索词 PageNum int32 `protobuf:"varint,2,opt,name=pageNum,proto3" json:"pageNum,omitempty"` //页码 } func (x *DocQueryRequest) Reset() { *x = DocQueryRequest{} if protoimpl.UnsafeEnabled { mi := &file_stdlib_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DocQueryRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DocQueryRequest) ProtoMessage() {} func (x *DocQueryRequest) ProtoReflect() protoreflect.Message { mi := &file_stdlib_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 DocQueryRequest.ProtoReflect.Descriptor instead. func (*DocQueryRequest) Descriptor() ([]byte, []int) { return file_stdlib_proto_rawDescGZIP(), []int{0} } func (x *DocQueryRequest) GetKeyWords() string { if x != nil { return x.KeyWords } return "" } func (x *DocQueryRequest) GetPageNum() int32 { if x != nil { return x.PageNum } return 0 } type DocQueryResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息 Docs []*Doc `protobuf:"bytes,3,rep,name=docs,proto3" json:"docs,omitempty"` //文档列表集合,没有分页参数 Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` //总数 } func (x *DocQueryResponse) Reset() { *x = DocQueryResponse{} if protoimpl.UnsafeEnabled { mi := &file_stdlib_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DocQueryResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*DocQueryResponse) ProtoMessage() {} func (x *DocQueryResponse) ProtoReflect() protoreflect.Message { mi := &file_stdlib_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 DocQueryResponse.ProtoReflect.Descriptor instead. func (*DocQueryResponse) Descriptor() ([]byte, []int) { return file_stdlib_proto_rawDescGZIP(), []int{1} } func (x *DocQueryResponse) GetCode() int32 { if x != nil { return x.Code } return 0 } func (x *DocQueryResponse) GetMessage() string { if x != nil { return x.Message } return "" } func (x *DocQueryResponse) GetDocs() []*Doc { if x != nil { return x.Docs } return nil } func (x *DocQueryResponse) GetTotal() int32 { if x != nil { return x.Total } return 0 } type Doc struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //文档id Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //文档名称 Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` //文档类型 FileSize int32 `protobuf:"varint,4,opt,name=fileSize,proto3" json:"fileSize,omitempty"` //文档大小 PageSize int32 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //文档页码数 Tags string `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` //文档标签 UserId string `protobuf:"bytes,7,opt,name=userId,proto3" json:"userId,omitempty"` //上传人id } func (x *Doc) Reset() { *x = Doc{} if protoimpl.UnsafeEnabled { mi := &file_stdlib_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Doc) String() string { return protoimpl.X.MessageStringOf(x) } func (*Doc) ProtoMessage() {} func (x *Doc) ProtoReflect() protoreflect.Message { mi := &file_stdlib_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 Doc.ProtoReflect.Descriptor instead. func (*Doc) Descriptor() ([]byte, []int) { return file_stdlib_proto_rawDescGZIP(), []int{2} } func (x *Doc) GetId() string { if x != nil { return x.Id } return "" } func (x *Doc) GetName() string { if x != nil { return x.Name } return "" } func (x *Doc) GetType() int32 { if x != nil { return x.Type } return 0 } func (x *Doc) GetFileSize() int32 { if x != nil { return x.FileSize } return 0 } func (x *Doc) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } func (x *Doc) GetTags() string { if x != nil { return x.Tags } return "" } func (x *Doc) GetUserId() string { if x != nil { return x.UserId } return "" } type DocChangeReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //文档id } func (x *DocChangeReq) Reset() { *x = DocChangeReq{} if protoimpl.UnsafeEnabled { mi := &file_stdlib_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DocChangeReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*DocChangeReq) ProtoMessage() {} func (x *DocChangeReq) ProtoReflect() protoreflect.Message { mi := &file_stdlib_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 DocChangeReq.ProtoReflect.Descriptor instead. func (*DocChangeReq) Descriptor() ([]byte, []int) { return file_stdlib_proto_rawDescGZIP(), []int{3} } func (x *DocChangeReq) GetId() string { if x != nil { return x.Id } return "" } type DocChangeResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` //是否成功 } func (x *DocChangeResp) Reset() { *x = DocChangeResp{} if protoimpl.UnsafeEnabled { mi := &file_stdlib_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DocChangeResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*DocChangeResp) ProtoMessage() {} func (x *DocChangeResp) ProtoReflect() protoreflect.Message { mi := &file_stdlib_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 DocChangeResp.ProtoReflect.Descriptor instead. func (*DocChangeResp) Descriptor() ([]byte, []int) { return file_stdlib_proto_rawDescGZIP(), []int{4} } func (x *DocChangeResp) GetState() bool { if x != nil { return x.State } return false } var File_stdlib_proto protoreflect.FileDescriptor var file_stdlib_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x22, 0x47, 0x0a, 0x0f, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x22, 0x77, 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 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, 0x1f, 0x0a, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x52, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0xa1, 0x01, 0x0a, 0x03, 0x44, 0x6f, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x1e, 0x0a, 0x0c, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x25, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x32, 0xb4, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x12, 0x3d, 0x0a, 0x08, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x44, 0x6f, 0x63, 0x4f, 0x6e, 0x12, 0x14, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x35, 0x0a, 0x06, 0x44, 0x6f, 0x63, 0x4f, 0x66, 0x66, 0x12, 0x14, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_stdlib_proto_rawDescOnce sync.Once file_stdlib_proto_rawDescData = file_stdlib_proto_rawDesc ) func file_stdlib_proto_rawDescGZIP() []byte { file_stdlib_proto_rawDescOnce.Do(func() { file_stdlib_proto_rawDescData = protoimpl.X.CompressGZIP(file_stdlib_proto_rawDescData) }) return file_stdlib_proto_rawDescData } var file_stdlib_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_stdlib_proto_goTypes = []interface{}{ (*DocQueryRequest)(nil), // 0: stdlib.DocQueryRequest (*DocQueryResponse)(nil), // 1: stdlib.DocQueryResponse (*Doc)(nil), // 2: stdlib.Doc (*DocChangeReq)(nil), // 3: stdlib.DocChangeReq (*DocChangeResp)(nil), // 4: stdlib.DocChangeResp } var file_stdlib_proto_depIdxs = []int32{ 2, // 0: stdlib.DocQueryResponse.docs:type_name -> stdlib.Doc 0, // 1: stdlib.Stdlib.DocQuery:input_type -> stdlib.DocQueryRequest 3, // 2: stdlib.Stdlib.DocOn:input_type -> stdlib.DocChangeReq 3, // 3: stdlib.Stdlib.DocOff:input_type -> stdlib.DocChangeReq 1, // 4: stdlib.Stdlib.DocQuery:output_type -> stdlib.DocQueryResponse 4, // 5: stdlib.Stdlib.DocOn:output_type -> stdlib.DocChangeResp 4, // 6: stdlib.Stdlib.DocOff:output_type -> stdlib.DocChangeResp 4, // [4:7] is the sub-list for method output_type 1, // [1:4] 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_stdlib_proto_init() } func file_stdlib_proto_init() { if File_stdlib_proto != nil { return } if !protoimpl.UnsafeEnabled { file_stdlib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DocQueryRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_stdlib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DocQueryResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_stdlib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Doc); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_stdlib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DocChangeReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_stdlib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DocChangeResp); 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_stdlib_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, GoTypes: file_stdlib_proto_goTypes, DependencyIndexes: file_stdlib_proto_depIdxs, MessageInfos: file_stdlib_proto_msgTypes, }.Build() File_stdlib_proto = out.File file_stdlib_proto_rawDesc = nil file_stdlib_proto_goTypes = nil file_stdlib_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 // StdlibClient is the client API for Stdlib service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type StdlibClient interface { DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error) DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) } type stdlibClient struct { cc grpc.ClientConnInterface } func NewStdlibClient(cc grpc.ClientConnInterface) StdlibClient { return &stdlibClient{cc} } func (c *stdlibClient) DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error) { out := new(DocQueryResponse) err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocQuery", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *stdlibClient) DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) { out := new(DocChangeResp) err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOn", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *stdlibClient) DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) { out := new(DocChangeResp) err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOff", in, out, opts...) if err != nil { return nil, err } return out, nil } // StdlibServer is the server API for Stdlib service. type StdlibServer interface { DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error) DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error) DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error) } // UnimplementedStdlibServer can be embedded to have forward compatible implementations. type UnimplementedStdlibServer struct { } func (*UnimplementedStdlibServer) DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DocQuery not implemented") } func (*UnimplementedStdlibServer) DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error) { return nil, status.Errorf(codes.Unimplemented, "method DocOn not implemented") } func (*UnimplementedStdlibServer) DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error) { return nil, status.Errorf(codes.Unimplemented, "method DocOff not implemented") } func RegisterStdlibServer(s *grpc.Server, srv StdlibServer) { s.RegisterService(&_Stdlib_serviceDesc, srv) } func _Stdlib_DocQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DocQueryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StdlibServer).DocQuery(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/stdlib.Stdlib/DocQuery", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StdlibServer).DocQuery(ctx, req.(*DocQueryRequest)) } return interceptor(ctx, in, info, handler) } func _Stdlib_DocOn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DocChangeReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StdlibServer).DocOn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/stdlib.Stdlib/DocOn", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StdlibServer).DocOn(ctx, req.(*DocChangeReq)) } return interceptor(ctx, in, info, handler) } func _Stdlib_DocOff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DocChangeReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StdlibServer).DocOff(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/stdlib.Stdlib/DocOff", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StdlibServer).DocOff(ctx, req.(*DocChangeReq)) } return interceptor(ctx, in, info, handler) } var _Stdlib_serviceDesc = grpc.ServiceDesc{ ServiceName: "stdlib.Stdlib", HandlerType: (*StdlibServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DocQuery", Handler: _Stdlib_DocQuery_Handler, }, { MethodName: "DocOn", Handler: _Stdlib_DocOn_Handler, }, { MethodName: "DocOff", Handler: _Stdlib_DocOff_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "stdlib.proto", }