// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.6 // source: service_file_chunk.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) 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) ) // 创建文件片段 type CreateFileChunkRequest struct { state protoimpl.MessageState `protogen:"open.v1"` FileId int64 `protobuf:"varint,1,opt,name=fileId,proto3" json:"fileId,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateFileChunkRequest) Reset() { *x = CreateFileChunkRequest{} mi := &file_service_file_chunk_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateFileChunkRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateFileChunkRequest) ProtoMessage() {} func (x *CreateFileChunkRequest) ProtoReflect() protoreflect.Message { mi := &file_service_file_chunk_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreateFileChunkRequest.ProtoReflect.Descriptor instead. func (*CreateFileChunkRequest) Descriptor() ([]byte, []int) { return file_service_file_chunk_proto_rawDescGZIP(), []int{0} } func (x *CreateFileChunkRequest) GetFileId() int64 { if x != nil { return x.FileId } return 0 } func (x *CreateFileChunkRequest) GetData() []byte { if x != nil { return x.Data } return nil } type CreateFileChunkResponse struct { state protoimpl.MessageState `protogen:"open.v1"` FileChunkId int64 `protobuf:"varint,1,opt,name=fileChunkId,proto3" json:"fileChunkId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateFileChunkResponse) Reset() { *x = CreateFileChunkResponse{} mi := &file_service_file_chunk_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateFileChunkResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateFileChunkResponse) ProtoMessage() {} func (x *CreateFileChunkResponse) ProtoReflect() protoreflect.Message { mi := &file_service_file_chunk_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreateFileChunkResponse.ProtoReflect.Descriptor instead. func (*CreateFileChunkResponse) Descriptor() ([]byte, []int) { return file_service_file_chunk_proto_rawDescGZIP(), []int{1} } func (x *CreateFileChunkResponse) GetFileChunkId() int64 { if x != nil { return x.FileChunkId } return 0 } // 获取的一个文件的所有片段IDs type FindAllFileChunkIdsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` FileId int64 `protobuf:"varint,1,opt,name=fileId,proto3" json:"fileId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindAllFileChunkIdsRequest) Reset() { *x = FindAllFileChunkIdsRequest{} mi := &file_service_file_chunk_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindAllFileChunkIdsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindAllFileChunkIdsRequest) ProtoMessage() {} func (x *FindAllFileChunkIdsRequest) ProtoReflect() protoreflect.Message { mi := &file_service_file_chunk_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use FindAllFileChunkIdsRequest.ProtoReflect.Descriptor instead. func (*FindAllFileChunkIdsRequest) Descriptor() ([]byte, []int) { return file_service_file_chunk_proto_rawDescGZIP(), []int{2} } func (x *FindAllFileChunkIdsRequest) GetFileId() int64 { if x != nil { return x.FileId } return 0 } type FindAllFileChunkIdsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` FileChunkIds []int64 `protobuf:"varint,1,rep,packed,name=fileChunkIds,proto3" json:"fileChunkIds,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindAllFileChunkIdsResponse) Reset() { *x = FindAllFileChunkIdsResponse{} mi := &file_service_file_chunk_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindAllFileChunkIdsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindAllFileChunkIdsResponse) ProtoMessage() {} func (x *FindAllFileChunkIdsResponse) ProtoReflect() protoreflect.Message { mi := &file_service_file_chunk_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use FindAllFileChunkIdsResponse.ProtoReflect.Descriptor instead. func (*FindAllFileChunkIdsResponse) Descriptor() ([]byte, []int) { return file_service_file_chunk_proto_rawDescGZIP(), []int{3} } func (x *FindAllFileChunkIdsResponse) GetFileChunkIds() []int64 { if x != nil { return x.FileChunkIds } return nil } // 下载文件片段 type DownloadFileChunkRequest struct { state protoimpl.MessageState `protogen:"open.v1"` FileChunkId int64 `protobuf:"varint,1,opt,name=fileChunkId,proto3" json:"fileChunkId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DownloadFileChunkRequest) Reset() { *x = DownloadFileChunkRequest{} mi := &file_service_file_chunk_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DownloadFileChunkRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DownloadFileChunkRequest) ProtoMessage() {} func (x *DownloadFileChunkRequest) ProtoReflect() protoreflect.Message { mi := &file_service_file_chunk_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DownloadFileChunkRequest.ProtoReflect.Descriptor instead. func (*DownloadFileChunkRequest) Descriptor() ([]byte, []int) { return file_service_file_chunk_proto_rawDescGZIP(), []int{4} } func (x *DownloadFileChunkRequest) GetFileChunkId() int64 { if x != nil { return x.FileChunkId } return 0 } type DownloadFileChunkResponse struct { state protoimpl.MessageState `protogen:"open.v1"` FileChunk *FileChunk `protobuf:"bytes,1,opt,name=fileChunk,proto3" json:"fileChunk,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DownloadFileChunkResponse) Reset() { *x = DownloadFileChunkResponse{} mi := &file_service_file_chunk_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DownloadFileChunkResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*DownloadFileChunkResponse) ProtoMessage() {} func (x *DownloadFileChunkResponse) ProtoReflect() protoreflect.Message { mi := &file_service_file_chunk_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DownloadFileChunkResponse.ProtoReflect.Descriptor instead. func (*DownloadFileChunkResponse) Descriptor() ([]byte, []int) { return file_service_file_chunk_proto_rawDescGZIP(), []int{5} } func (x *DownloadFileChunkResponse) GetFileChunk() *FileChunk { if x != nil { return x.FileChunk } return nil } var File_service_file_chunk_proto protoreflect.FileDescriptor const file_service_file_chunk_proto_rawDesc = "" + "\n" + "\x18service_file_chunk.proto\x12\x02pb\x1a\x1dmodels/model_file_chunk.proto\"D\n" + "\x16CreateFileChunkRequest\x12\x16\n" + "\x06fileId\x18\x01 \x01(\x03R\x06fileId\x12\x12\n" + "\x04data\x18\x02 \x01(\fR\x04data\";\n" + "\x17CreateFileChunkResponse\x12 \n" + "\vfileChunkId\x18\x01 \x01(\x03R\vfileChunkId\"4\n" + "\x1aFindAllFileChunkIdsRequest\x12\x16\n" + "\x06fileId\x18\x01 \x01(\x03R\x06fileId\"A\n" + "\x1bFindAllFileChunkIdsResponse\x12\"\n" + "\ffileChunkIds\x18\x01 \x03(\x03R\ffileChunkIds\"<\n" + "\x18DownloadFileChunkRequest\x12 \n" + "\vfileChunkId\x18\x01 \x01(\x03R\vfileChunkId\"H\n" + "\x19DownloadFileChunkResponse\x12+\n" + "\tfileChunk\x18\x01 \x01(\v2\r.pb.FileChunkR\tfileChunk2\x88\x02\n" + "\x10FileChunkService\x12J\n" + "\x0fcreateFileChunk\x12\x1a.pb.CreateFileChunkRequest\x1a\x1b.pb.CreateFileChunkResponse\x12V\n" + "\x13findAllFileChunkIds\x12\x1e.pb.FindAllFileChunkIdsRequest\x1a\x1f.pb.FindAllFileChunkIdsResponse\x12P\n" + "\x11downloadFileChunk\x12\x1c.pb.DownloadFileChunkRequest\x1a\x1d.pb.DownloadFileChunkResponseB\x06Z\x04./pbb\x06proto3" var ( file_service_file_chunk_proto_rawDescOnce sync.Once file_service_file_chunk_proto_rawDescData []byte ) func file_service_file_chunk_proto_rawDescGZIP() []byte { file_service_file_chunk_proto_rawDescOnce.Do(func() { file_service_file_chunk_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_file_chunk_proto_rawDesc), len(file_service_file_chunk_proto_rawDesc))) }) return file_service_file_chunk_proto_rawDescData } var file_service_file_chunk_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_service_file_chunk_proto_goTypes = []any{ (*CreateFileChunkRequest)(nil), // 0: pb.CreateFileChunkRequest (*CreateFileChunkResponse)(nil), // 1: pb.CreateFileChunkResponse (*FindAllFileChunkIdsRequest)(nil), // 2: pb.FindAllFileChunkIdsRequest (*FindAllFileChunkIdsResponse)(nil), // 3: pb.FindAllFileChunkIdsResponse (*DownloadFileChunkRequest)(nil), // 4: pb.DownloadFileChunkRequest (*DownloadFileChunkResponse)(nil), // 5: pb.DownloadFileChunkResponse (*FileChunk)(nil), // 6: pb.FileChunk } var file_service_file_chunk_proto_depIdxs = []int32{ 6, // 0: pb.DownloadFileChunkResponse.fileChunk:type_name -> pb.FileChunk 0, // 1: pb.FileChunkService.createFileChunk:input_type -> pb.CreateFileChunkRequest 2, // 2: pb.FileChunkService.findAllFileChunkIds:input_type -> pb.FindAllFileChunkIdsRequest 4, // 3: pb.FileChunkService.downloadFileChunk:input_type -> pb.DownloadFileChunkRequest 1, // 4: pb.FileChunkService.createFileChunk:output_type -> pb.CreateFileChunkResponse 3, // 5: pb.FileChunkService.findAllFileChunkIds:output_type -> pb.FindAllFileChunkIdsResponse 5, // 6: pb.FileChunkService.downloadFileChunk:output_type -> pb.DownloadFileChunkResponse 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_service_file_chunk_proto_init() } func file_service_file_chunk_proto_init() { if File_service_file_chunk_proto != nil { return } file_models_model_file_chunk_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_file_chunk_proto_rawDesc), len(file_service_file_chunk_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 1, }, GoTypes: file_service_file_chunk_proto_goTypes, DependencyIndexes: file_service_file_chunk_proto_depIdxs, MessageInfos: file_service_file_chunk_proto_msgTypes, }.Build() File_service_file_chunk_proto = out.File file_service_file_chunk_proto_goTypes = nil file_service_file_chunk_proto_depIdxs = nil }