1 Star 0 Fork 0

WisdomClassroom / core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
collectingDataService.pb.go 10.28 KB
一键复制 编辑 原始数据 按行查看 历史
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0-devel
// protoc v3.12.4
// source: collectingDataService.proto
package pb
import (
context "context"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
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"
)
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
var File_collectingDataService_proto protoreflect.FileDescriptor
var file_collectingDataService_proto_rawDesc = []byte{
0x0a, 0x1b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70,
0x62, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 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, 0x63, 0x6f, 0x6c, 0x6c,
0x65, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xa6, 0x02, 0x0a, 0x15, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
0x74, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
0x95, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
0x74, 0x52, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55,
0x70, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x61, 0x64,
0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62,
0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65,
0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37,
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x22, 0x2c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f,
0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x2f, 0x55,
0x70, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x61, 0x64,
0x69, 0x6e, 0x67, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x75, 0x0a, 0x0d, 0x55, 0x70, 0x6c, 0x6f, 0x61,
0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70,
0x6c, 0x6f, 0x61, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x6e,
0x73, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82,
0xd3, 0xe4, 0x93, 0x02, 0x29, 0x22, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63,
0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x2f, 0x55, 0x70,
0x6c, 0x6f, 0x61, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x3a, 0x01, 0x2a, 0x42, 0x06,
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_collectingDataService_proto_goTypes = []interface{}{
(*UploadContentReadingsRequest)(nil), // 0: pb.UploadContentReadingsRequest
(*UploadAnswersRequest)(nil), // 1: pb.UploadAnswersRequest
(*UploadContentReadingsResponse)(nil), // 2: pb.UploadContentReadingsResponse
(*UploadAnswersResponse)(nil), // 3: pb.UploadAnswersResponse
}
var file_collectingDataService_proto_depIdxs = []int32{
0, // 0: pb.CollectingDataService.UploadContentReadings:input_type -> pb.UploadContentReadingsRequest
1, // 1: pb.CollectingDataService.UploadAnswers:input_type -> pb.UploadAnswersRequest
2, // 2: pb.CollectingDataService.UploadContentReadings:output_type -> pb.UploadContentReadingsResponse
3, // 3: pb.CollectingDataService.UploadAnswers:output_type -> pb.UploadAnswersResponse
2, // [2:4] is the sub-list for method output_type
0, // [0:2] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_collectingDataService_proto_init() }
func file_collectingDataService_proto_init() {
if File_collectingDataService_proto != nil {
return
}
file_collectingDataRequest_proto_init()
file_collectingDataResponse_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_collectingDataService_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_collectingDataService_proto_goTypes,
DependencyIndexes: file_collectingDataService_proto_depIdxs,
}.Build()
File_collectingDataService_proto = out.File
file_collectingDataService_proto_rawDesc = nil
file_collectingDataService_proto_goTypes = nil
file_collectingDataService_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
// CollectingDataServiceClient is the client API for CollectingDataService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CollectingDataServiceClient interface {
UploadContentReadings(ctx context.Context, in *UploadContentReadingsRequest, opts ...grpc.CallOption) (*UploadContentReadingsResponse, error)
UploadAnswers(ctx context.Context, in *UploadAnswersRequest, opts ...grpc.CallOption) (*UploadAnswersResponse, error)
}
type collectingDataServiceClient struct {
cc grpc.ClientConnInterface
}
func NewCollectingDataServiceClient(cc grpc.ClientConnInterface) CollectingDataServiceClient {
return &collectingDataServiceClient{cc}
}
func (c *collectingDataServiceClient) UploadContentReadings(ctx context.Context, in *UploadContentReadingsRequest, opts ...grpc.CallOption) (*UploadContentReadingsResponse, error) {
out := new(UploadContentReadingsResponse)
err := c.cc.Invoke(ctx, "/pb.CollectingDataService/UploadContentReadings", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectingDataServiceClient) UploadAnswers(ctx context.Context, in *UploadAnswersRequest, opts ...grpc.CallOption) (*UploadAnswersResponse, error) {
out := new(UploadAnswersResponse)
err := c.cc.Invoke(ctx, "/pb.CollectingDataService/UploadAnswers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CollectingDataServiceServer is the server API for CollectingDataService service.
type CollectingDataServiceServer interface {
UploadContentReadings(context.Context, *UploadContentReadingsRequest) (*UploadContentReadingsResponse, error)
UploadAnswers(context.Context, *UploadAnswersRequest) (*UploadAnswersResponse, error)
}
// UnimplementedCollectingDataServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCollectingDataServiceServer struct {
}
func (*UnimplementedCollectingDataServiceServer) UploadContentReadings(context.Context, *UploadContentReadingsRequest) (*UploadContentReadingsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UploadContentReadings not implemented")
}
func (*UnimplementedCollectingDataServiceServer) UploadAnswers(context.Context, *UploadAnswersRequest) (*UploadAnswersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UploadAnswers not implemented")
}
func RegisterCollectingDataServiceServer(s *grpc.Server, srv CollectingDataServiceServer) {
s.RegisterService(&_CollectingDataService_serviceDesc, srv)
}
func _CollectingDataService_UploadContentReadings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UploadContentReadingsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectingDataServiceServer).UploadContentReadings(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.CollectingDataService/UploadContentReadings",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectingDataServiceServer).UploadContentReadings(ctx, req.(*UploadContentReadingsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectingDataService_UploadAnswers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UploadAnswersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectingDataServiceServer).UploadAnswers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.CollectingDataService/UploadAnswers",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectingDataServiceServer).UploadAnswers(ctx, req.(*UploadAnswersRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CollectingDataService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.CollectingDataService",
HandlerType: (*CollectingDataServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UploadContentReadings",
Handler: _CollectingDataService_UploadContentReadings_Handler,
},
{
MethodName: "UploadAnswers",
Handler: _CollectingDataService_UploadAnswers_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "collectingDataService.proto",
}
1
https://gitee.com/WisdomClassroom/core.git
git@gitee.com:WisdomClassroom/core.git
WisdomClassroom
core
core
v0.7.6

搜索帮助