Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterFileHTTPServer(s *http.Server, srv FileHTTPServer)
- func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer)
- type DeleteFileReply
- func (*DeleteFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileReply) GetTotal() uint32
- func (*DeleteFileReply) ProtoMessage()
- func (x *DeleteFileReply) ProtoReflect() protoreflect.Message
- func (x *DeleteFileReply) Reset()
- func (x *DeleteFileReply) String() string
- func (m *DeleteFileReply) Validate() error
- func (m *DeleteFileReply) ValidateAll() error
- type DeleteFileReplyMultiError
- type DeleteFileReplyValidationError
- func (e DeleteFileReplyValidationError) Cause() error
- func (e DeleteFileReplyValidationError) Error() string
- func (e DeleteFileReplyValidationError) ErrorName() string
- func (e DeleteFileReplyValidationError) Field() string
- func (e DeleteFileReplyValidationError) Key() bool
- func (e DeleteFileReplyValidationError) Reason() string
- type DeleteFileRequest
- func (*DeleteFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileRequest) GetIds() []uint32
- func (*DeleteFileRequest) ProtoMessage()
- func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteFileRequest) Reset()
- func (x *DeleteFileRequest) String() string
- func (m *DeleteFileRequest) Validate() error
- func (m *DeleteFileRequest) ValidateAll() error
- type DeleteFileRequestMultiError
- type DeleteFileRequestValidationError
- func (e DeleteFileRequestValidationError) Cause() error
- func (e DeleteFileRequestValidationError) Error() string
- func (e DeleteFileRequestValidationError) ErrorName() string
- func (e DeleteFileRequestValidationError) Field() string
- func (e DeleteFileRequestValidationError) Key() bool
- func (e DeleteFileRequestValidationError) Reason() string
- type DownloadFileReply
- func (*DownloadFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileReply) GetData() []byte
- func (x *DownloadFileReply) GetMime() string
- func (*DownloadFileReply) ProtoMessage()
- func (x *DownloadFileReply) ProtoReflect() protoreflect.Message
- func (x *DownloadFileReply) Reset()
- func (x *DownloadFileReply) String() string
- func (m *DownloadFileReply) Validate() error
- func (m *DownloadFileReply) ValidateAll() error
- type DownloadFileReplyMultiError
- type DownloadFileReplyValidationError
- func (e DownloadFileReplyValidationError) Cause() error
- func (e DownloadFileReplyValidationError) Error() string
- func (e DownloadFileReplyValidationError) ErrorName() string
- func (e DownloadFileReplyValidationError) Field() string
- func (e DownloadFileReplyValidationError) Key() bool
- func (e DownloadFileReplyValidationError) Reason() string
- type DownloadFileRequest
- func (*DownloadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileRequest) GetExpire() string
- func (x *DownloadFileRequest) GetKey() string
- func (x *DownloadFileRequest) GetSaveName() string
- func (x *DownloadFileRequest) GetSign() string
- func (*DownloadFileRequest) ProtoMessage()
- func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadFileRequest) Reset()
- func (x *DownloadFileRequest) String() string
- func (m *DownloadFileRequest) Validate() error
- func (m *DownloadFileRequest) ValidateAll() error
- type DownloadFileRequestMultiError
- type DownloadFileRequestValidationError
- func (e DownloadFileRequestValidationError) Cause() error
- func (e DownloadFileRequestValidationError) Error() string
- func (e DownloadFileRequestValidationError) ErrorName() string
- func (e DownloadFileRequestValidationError) Field() string
- func (e DownloadFileRequestValidationError) Key() bool
- func (e DownloadFileRequestValidationError) Reason() string
- type DownloadTargetFileRequest
- func (*DownloadTargetFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadTargetFileRequest) GetKey() string
- func (x *DownloadTargetFileRequest) GetSaveName() string
- func (*DownloadTargetFileRequest) ProtoMessage()
- func (x *DownloadTargetFileRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadTargetFileRequest) Reset()
- func (x *DownloadTargetFileRequest) String() string
- func (m *DownloadTargetFileRequest) Validate() error
- func (m *DownloadTargetFileRequest) ValidateAll() error
- type DownloadTargetFileRequestMultiError
- type DownloadTargetFileRequestValidationError
- func (e DownloadTargetFileRequestValidationError) Cause() error
- func (e DownloadTargetFileRequestValidationError) Error() string
- func (e DownloadTargetFileRequestValidationError) ErrorName() string
- func (e DownloadTargetFileRequestValidationError) Field() string
- func (e DownloadTargetFileRequestValidationError) Key() bool
- func (e DownloadTargetFileRequestValidationError) Reason() string
- type FileClient
- type FileHTTPClient
- type FileHTTPClientImpl
- func (c *FileHTTPClientImpl) DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...http.CallOption) (*DeleteFileReply, error)
- func (c *FileHTTPClientImpl) GetUserFile(ctx context.Context, in *GetUserFileRequest, opts ...http.CallOption) (*GetUserFileReply, error)
- func (c *FileHTTPClientImpl) ListFile(ctx context.Context, in *ListFileRequest, opts ...http.CallOption) (*ListFileReply, error)
- func (c *FileHTTPClientImpl) PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...http.CallOption) (*PrepareUploadFileReply, error)
- func (c *FileHTTPClientImpl) UpdateFile(ctx context.Context, in *UpdateFileRequest, opts ...http.CallOption) (*UpdateFileReply, error)
- type FileHTTPServer
- type FileServer
- type File_GetFileBytesClient
- type File_GetFileBytesServer
- type GetFileBytesReply
- func (*GetFileBytesReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileBytesReply) GetData() []byte
- func (*GetFileBytesReply) ProtoMessage()
- func (x *GetFileBytesReply) ProtoReflect() protoreflect.Message
- func (x *GetFileBytesReply) Reset()
- func (x *GetFileBytesReply) String() string
- func (m *GetFileBytesReply) Validate() error
- func (m *GetFileBytesReply) ValidateAll() error
- type GetFileBytesReplyMultiError
- type GetFileBytesReplyValidationError
- func (e GetFileBytesReplyValidationError) Cause() error
- func (e GetFileBytesReplyValidationError) Error() string
- func (e GetFileBytesReplyValidationError) ErrorName() string
- func (e GetFileBytesReplyValidationError) Field() string
- func (e GetFileBytesReplyValidationError) Key() bool
- func (e GetFileBytesReplyValidationError) Reason() string
- type GetFileBytesRequest
- func (*GetFileBytesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileBytesRequest) GetKey() string
- func (*GetFileBytesRequest) ProtoMessage()
- func (x *GetFileBytesRequest) ProtoReflect() protoreflect.Message
- func (x *GetFileBytesRequest) Reset()
- func (x *GetFileBytesRequest) String() string
- func (m *GetFileBytesRequest) Validate() error
- func (m *GetFileBytesRequest) ValidateAll() error
- type GetFileBytesRequestMultiError
- type GetFileBytesRequestValidationError
- func (e GetFileBytesRequestValidationError) Cause() error
- func (e GetFileBytesRequestValidationError) Error() string
- func (e GetFileBytesRequestValidationError) ErrorName() string
- func (e GetFileBytesRequestValidationError) Field() string
- func (e GetFileBytesRequestValidationError) Key() bool
- func (e GetFileBytesRequestValidationError) Reason() string
- type GetUserFileReply
- func (*GetUserFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFileReply) GetCreatedAt() uint32
- func (x *GetUserFileReply) GetDirectoryId() uint32
- func (x *GetUserFileReply) GetId() uint32
- func (x *GetUserFileReply) GetKey() string
- func (x *GetUserFileReply) GetName() string
- func (x *GetUserFileReply) GetSha() string
- func (x *GetUserFileReply) GetSize() uint32
- func (x *GetUserFileReply) GetType() string
- func (x *GetUserFileReply) GetUpdatedAt() uint32
- func (*GetUserFileReply) ProtoMessage()
- func (x *GetUserFileReply) ProtoReflect() protoreflect.Message
- func (x *GetUserFileReply) Reset()
- func (x *GetUserFileReply) String() string
- type GetUserFileRequest
- func (*GetUserFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFileRequest) GetDirectory() string
- func (x *GetUserFileRequest) GetId() uint32
- func (x *GetUserFileRequest) GetKey() string
- func (x *GetUserFileRequest) GetSha() string
- func (*GetUserFileRequest) ProtoMessage()
- func (x *GetUserFileRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserFileRequest) Reset()
- func (x *GetUserFileRequest) String() string
- type ListFileReply
- func (*ListFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileReply) GetList() []*ListFileReply_File
- func (x *ListFileReply) GetTotal() uint32
- func (*ListFileReply) ProtoMessage()
- func (x *ListFileReply) ProtoReflect() protoreflect.Message
- func (x *ListFileReply) Reset()
- func (x *ListFileReply) String() string
- func (m *ListFileReply) Validate() error
- func (m *ListFileReply) ValidateAll() error
- type ListFileReplyMultiError
- type ListFileReplyValidationError
- func (e ListFileReplyValidationError) Cause() error
- func (e ListFileReplyValidationError) Error() string
- func (e ListFileReplyValidationError) ErrorName() string
- func (e ListFileReplyValidationError) Field() string
- func (e ListFileReplyValidationError) Key() bool
- func (e ListFileReplyValidationError) Reason() string
- type ListFileReply_File
- func (*ListFileReply_File) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileReply_File) GetCreatedAt() uint32
- func (x *ListFileReply_File) GetDirectoryId() uint32
- func (x *ListFileReply_File) GetId() uint32
- func (x *ListFileReply_File) GetKey() string
- func (x *ListFileReply_File) GetName() string
- func (x *ListFileReply_File) GetSha() string
- func (x *ListFileReply_File) GetSize() uint32
- func (x *ListFileReply_File) GetType() string
- func (x *ListFileReply_File) GetUpdatedAt() uint32
- func (*ListFileReply_File) ProtoMessage()
- func (x *ListFileReply_File) ProtoReflect() protoreflect.Message
- func (x *ListFileReply_File) Reset()
- func (x *ListFileReply_File) String() string
- func (m *ListFileReply_File) Validate() error
- func (m *ListFileReply_File) ValidateAll() error
- type ListFileReply_FileMultiError
- type ListFileReply_FileValidationError
- func (e ListFileReply_FileValidationError) Cause() error
- func (e ListFileReply_FileValidationError) Error() string
- func (e ListFileReply_FileValidationError) ErrorName() string
- func (e ListFileReply_FileValidationError) Field() string
- func (e ListFileReply_FileValidationError) Key() bool
- func (e ListFileReply_FileValidationError) Reason() string
- type ListFileRequest
- func (*ListFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileRequest) GetDirectoryId() uint32
- func (x *ListFileRequest) GetKeyList() []string
- func (x *ListFileRequest) GetName() string
- func (x *ListFileRequest) GetOrder() string
- func (x *ListFileRequest) GetOrderBy() string
- func (x *ListFileRequest) GetPage() uint32
- func (x *ListFileRequest) GetPageSize() uint32
- func (x *ListFileRequest) GetStatus() string
- func (*ListFileRequest) ProtoMessage()
- func (x *ListFileRequest) ProtoReflect() protoreflect.Message
- func (x *ListFileRequest) Reset()
- func (x *ListFileRequest) String() string
- func (m *ListFileRequest) Validate() error
- func (m *ListFileRequest) ValidateAll() error
- type ListFileRequestMultiError
- type ListFileRequestValidationError
- func (e ListFileRequestValidationError) Cause() error
- func (e ListFileRequestValidationError) Error() string
- func (e ListFileRequestValidationError) ErrorName() string
- func (e ListFileRequestValidationError) Field() string
- func (e ListFileRequestValidationError) Key() bool
- func (e ListFileRequestValidationError) Reason() string
- type PrepareUploadFileReply
- func (*PrepareUploadFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *PrepareUploadFileReply) GetChunkCount() uint32
- func (x *PrepareUploadFileReply) GetChunkSize() uint32
- func (x *PrepareUploadFileReply) GetKey() string
- func (x *PrepareUploadFileReply) GetSha() string
- func (x *PrepareUploadFileReply) GetUploadChunks() []uint32
- func (x *PrepareUploadFileReply) GetUploadId() string
- func (x *PrepareUploadFileReply) GetUploaded() bool
- func (*PrepareUploadFileReply) ProtoMessage()
- func (x *PrepareUploadFileReply) ProtoReflect() protoreflect.Message
- func (x *PrepareUploadFileReply) Reset()
- func (x *PrepareUploadFileReply) String() string
- func (m *PrepareUploadFileReply) Validate() error
- func (m *PrepareUploadFileReply) ValidateAll() error
- type PrepareUploadFileReplyMultiError
- type PrepareUploadFileReplyValidationError
- func (e PrepareUploadFileReplyValidationError) Cause() error
- func (e PrepareUploadFileReplyValidationError) Error() string
- func (e PrepareUploadFileReplyValidationError) ErrorName() string
- func (e PrepareUploadFileReplyValidationError) Field() string
- func (e PrepareUploadFileReplyValidationError) Key() bool
- func (e PrepareUploadFileReplyValidationError) Reason() string
- type PrepareUploadFileRequest
- func (*PrepareUploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PrepareUploadFileRequest) GetDirectoryId() uint32
- func (x *PrepareUploadFileRequest) GetDirectoryPath() string
- func (x *PrepareUploadFileRequest) GetName() string
- func (x *PrepareUploadFileRequest) GetSha() string
- func (x *PrepareUploadFileRequest) GetSize() uint32
- func (x *PrepareUploadFileRequest) GetStore() string
- func (*PrepareUploadFileRequest) ProtoMessage()
- func (x *PrepareUploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *PrepareUploadFileRequest) Reset()
- func (x *PrepareUploadFileRequest) String() string
- func (m *PrepareUploadFileRequest) Validate() error
- func (m *PrepareUploadFileRequest) ValidateAll() error
- type PrepareUploadFileRequestMultiError
- type PrepareUploadFileRequestValidationError
- func (e PrepareUploadFileRequestValidationError) Cause() error
- func (e PrepareUploadFileRequestValidationError) Error() string
- func (e PrepareUploadFileRequestValidationError) ErrorName() string
- func (e PrepareUploadFileRequestValidationError) Field() string
- func (e PrepareUploadFileRequestValidationError) Key() bool
- func (e PrepareUploadFileRequestValidationError) Reason() string
- type StaticFileReply
- func (*StaticFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *StaticFileReply) GetData() []byte
- func (x *StaticFileReply) GetMime() string
- func (*StaticFileReply) ProtoMessage()
- func (x *StaticFileReply) ProtoReflect() protoreflect.Message
- func (x *StaticFileReply) Reset()
- func (x *StaticFileReply) String() string
- func (m *StaticFileReply) Validate() error
- func (m *StaticFileReply) ValidateAll() error
- type StaticFileReplyMultiError
- type StaticFileReplyValidationError
- func (e StaticFileReplyValidationError) Cause() error
- func (e StaticFileReplyValidationError) Error() string
- func (e StaticFileReplyValidationError) ErrorName() string
- func (e StaticFileReplyValidationError) Field() string
- func (e StaticFileReplyValidationError) Key() bool
- func (e StaticFileReplyValidationError) Reason() string
- type StaticFileRequest
- func (*StaticFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StaticFileRequest) GetDownload() bool
- func (x *StaticFileRequest) GetExpire() string
- func (x *StaticFileRequest) GetHeight() uint32
- func (x *StaticFileRequest) GetKey() string
- func (x *StaticFileRequest) GetMode() string
- func (x *StaticFileRequest) GetSaveName() string
- func (x *StaticFileRequest) GetSign() string
- func (x *StaticFileRequest) GetWidth() uint32
- func (*StaticFileRequest) ProtoMessage()
- func (x *StaticFileRequest) ProtoReflect() protoreflect.Message
- func (x *StaticFileRequest) Reset()
- func (x *StaticFileRequest) String() string
- func (m *StaticFileRequest) Validate() error
- func (m *StaticFileRequest) ValidateAll() error
- type StaticFileRequestMultiError
- type StaticFileRequestValidationError
- func (e StaticFileRequestValidationError) Cause() error
- func (e StaticFileRequestValidationError) Error() string
- func (e StaticFileRequestValidationError) ErrorName() string
- func (e StaticFileRequestValidationError) Field() string
- func (e StaticFileRequestValidationError) Key() bool
- func (e StaticFileRequestValidationError) Reason() string
- type UnimplementedFileServer
- func (UnimplementedFileServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileReply, error)
- func (UnimplementedFileServer) GetFileBytes(*GetFileBytesRequest, File_GetFileBytesServer) error
- func (UnimplementedFileServer) GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileReply, error)
- func (UnimplementedFileServer) ListFile(context.Context, *ListFileRequest) (*ListFileReply, error)
- func (UnimplementedFileServer) PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
- func (UnimplementedFileServer) UpdateFile(context.Context, *UpdateFileRequest) (*UpdateFileReply, error)
- func (UnimplementedFileServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
- type UnsafeFileServer
- type UpdateFileReply
- func (*UpdateFileReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateFileReply) ProtoMessage()
- func (x *UpdateFileReply) ProtoReflect() protoreflect.Message
- func (x *UpdateFileReply) Reset()
- func (x *UpdateFileReply) String() string
- func (m *UpdateFileReply) Validate() error
- func (m *UpdateFileReply) ValidateAll() error
- type UpdateFileReplyMultiError
- type UpdateFileReplyValidationError
- func (e UpdateFileReplyValidationError) Cause() error
- func (e UpdateFileReplyValidationError) Error() string
- func (e UpdateFileReplyValidationError) ErrorName() string
- func (e UpdateFileReplyValidationError) Field() string
- func (e UpdateFileReplyValidationError) Key() bool
- func (e UpdateFileReplyValidationError) Reason() string
- type UpdateFileRequest
- func (*UpdateFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFileRequest) GetDirectoryId() uint32
- func (x *UpdateFileRequest) GetId() uint32
- func (x *UpdateFileRequest) GetName() string
- func (*UpdateFileRequest) ProtoMessage()
- func (x *UpdateFileRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateFileRequest) Reset()
- func (x *UpdateFileRequest) String() string
- func (m *UpdateFileRequest) Validate() error
- func (m *UpdateFileRequest) ValidateAll() error
- type UpdateFileRequestMultiError
- type UpdateFileRequestValidationError
- func (e UpdateFileRequestValidationError) Cause() error
- func (e UpdateFileRequestValidationError) Error() string
- func (e UpdateFileRequestValidationError) ErrorName() string
- func (e UpdateFileRequestValidationError) Field() string
- func (e UpdateFileRequestValidationError) Key() bool
- func (e UpdateFileRequestValidationError) Reason() string
- type UploadFileReply
- func (*UploadFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileReply) GetKey() string
- func (x *UploadFileReply) GetSha() string
- func (*UploadFileReply) ProtoMessage()
- func (x *UploadFileReply) ProtoReflect() protoreflect.Message
- func (x *UploadFileReply) Reset()
- func (x *UploadFileReply) String() string
- func (m *UploadFileReply) Validate() error
- func (m *UploadFileReply) ValidateAll() error
- type UploadFileReplyMultiError
- type UploadFileReplyValidationError
- func (e UploadFileReplyValidationError) Cause() error
- func (e UploadFileReplyValidationError) Error() string
- func (e UploadFileReplyValidationError) ErrorName() string
- func (e UploadFileReplyValidationError) Field() string
- func (e UploadFileReplyValidationError) Key() bool
- func (e UploadFileReplyValidationError) Reason() string
- type UploadFileRequest
- func (*UploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRequest) GetData() []byte
- func (x *UploadFileRequest) GetIndex() uint32
- func (x *UploadFileRequest) GetUploadId() string
- func (*UploadFileRequest) ProtoMessage()
- func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileRequest) Reset()
- func (x *UploadFileRequest) String() string
- func (m *UploadFileRequest) Validate() error
- func (m *UploadFileRequest) ValidateAll() error
- type UploadFileRequestMultiError
- type UploadFileRequestValidationError
- func (e UploadFileRequestValidationError) Cause() error
- func (e UploadFileRequestValidationError) Error() string
- func (e UploadFileRequestValidationError) ErrorName() string
- func (e UploadFileRequestValidationError) Field() string
- func (e UploadFileRequestValidationError) Key() bool
- func (e UploadFileRequestValidationError) Reason() string
Constants ¶
const ( File_GetUserFile_FullMethodName = "/resource.api.file.File/GetUserFile" File_GetFileBytes_FullMethodName = "/resource.api.file.File/GetFileBytes" File_ListFile_FullMethodName = "/resource.api.file.File/ListFile" File_PrepareUploadFile_FullMethodName = "/resource.api.file.File/PrepareUploadFile" File_UploadFile_FullMethodName = "/resource.api.file.File/UploadFile" File_UpdateFile_FullMethodName = "/resource.api.file.File/UpdateFile" File_DeleteFile_FullMethodName = "/resource.api.file.File/DeleteFile" )
const OperationFileDeleteFile = "/resource.api.file.File/DeleteFile"
const OperationFileGetUserFile = "/resource.api.file.File/GetUserFile"
const OperationFileListFile = "/resource.api.file.File/ListFile"
const OperationFilePrepareUploadFile = "/resource.api.file.File/PrepareUploadFile"
const OperationFileUpdateFile = "/resource.api.file.File/UpdateFile"
Variables ¶
var File_ServiceDesc = grpc.ServiceDesc{ ServiceName: "resource.api.file.File", HandlerType: (*FileServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserFile", Handler: _File_GetUserFile_Handler, }, { MethodName: "ListFile", Handler: _File_ListFile_Handler, }, { MethodName: "PrepareUploadFile", Handler: _File_PrepareUploadFile_Handler, }, { MethodName: "UploadFile", Handler: _File_UploadFile_Handler, }, { MethodName: "UpdateFile", Handler: _File_UpdateFile_Handler, }, { MethodName: "DeleteFile", Handler: _File_DeleteFile_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetFileBytes", Handler: _File_GetFileBytes_Handler, ServerStreams: true, }, }, Metadata: "api/file/proto/file_service.proto", }
File_ServiceDesc is the grpc.ServiceDesc for File service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_file_proto_file_proto protoreflect.FileDescriptor
var File_api_file_proto_file_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFileHTTPServer ¶
func RegisterFileHTTPServer(s *http.Server, srv FileHTTPServer)
func RegisterFileServer ¶
func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer)
Types ¶
type DeleteFileReply ¶
type DeleteFileReply struct {
Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteFileReply) Descriptor
deprecated
func (*DeleteFileReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileReply.ProtoReflect.Descriptor instead.
func (*DeleteFileReply) GetTotal ¶
func (x *DeleteFileReply) GetTotal() uint32
func (*DeleteFileReply) ProtoMessage ¶
func (*DeleteFileReply) ProtoMessage()
func (*DeleteFileReply) ProtoReflect ¶
func (x *DeleteFileReply) ProtoReflect() protoreflect.Message
func (*DeleteFileReply) Reset ¶
func (x *DeleteFileReply) Reset()
func (*DeleteFileReply) String ¶
func (x *DeleteFileReply) String() string
func (*DeleteFileReply) Validate ¶
func (m *DeleteFileReply) Validate() error
Validate checks the field values on DeleteFileReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteFileReply) ValidateAll ¶
func (m *DeleteFileReply) ValidateAll() error
ValidateAll checks the field values on DeleteFileReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteFileReplyMultiError, or nil if none found.
type DeleteFileReplyMultiError ¶
type DeleteFileReplyMultiError []error
DeleteFileReplyMultiError is an error wrapping multiple validation errors returned by DeleteFileReply.ValidateAll() if the designated constraints aren't met.
func (DeleteFileReplyMultiError) AllErrors ¶
func (m DeleteFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteFileReplyMultiError) Error ¶
func (m DeleteFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteFileReplyValidationError ¶
type DeleteFileReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteFileReplyValidationError is the validation error returned by DeleteFileReply.Validate if the designated constraints aren't met.
func (DeleteFileReplyValidationError) Cause ¶
func (e DeleteFileReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteFileReplyValidationError) Error ¶
func (e DeleteFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteFileReplyValidationError) ErrorName ¶
func (e DeleteFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteFileReplyValidationError) Field ¶
func (e DeleteFileReplyValidationError) Field() string
Field function returns field value.
func (DeleteFileReplyValidationError) Key ¶
func (e DeleteFileReplyValidationError) Key() bool
Key function returns key value.
func (DeleteFileReplyValidationError) Reason ¶
func (e DeleteFileReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteFileRequest ¶
type DeleteFileRequest struct {
Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteFileRequest) Descriptor
deprecated
func (*DeleteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.
func (*DeleteFileRequest) GetIds ¶
func (x *DeleteFileRequest) GetIds() []uint32
func (*DeleteFileRequest) ProtoMessage ¶
func (*DeleteFileRequest) ProtoMessage()
func (*DeleteFileRequest) ProtoReflect ¶
func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
func (*DeleteFileRequest) Reset ¶
func (x *DeleteFileRequest) Reset()
func (*DeleteFileRequest) String ¶
func (x *DeleteFileRequest) String() string
func (*DeleteFileRequest) Validate ¶
func (m *DeleteFileRequest) Validate() error
Validate checks the field values on DeleteFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteFileRequest) ValidateAll ¶
func (m *DeleteFileRequest) ValidateAll() error
ValidateAll checks the field values on DeleteFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteFileRequestMultiError, or nil if none found.
type DeleteFileRequestMultiError ¶
type DeleteFileRequestMultiError []error
DeleteFileRequestMultiError is an error wrapping multiple validation errors returned by DeleteFileRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteFileRequestMultiError) AllErrors ¶
func (m DeleteFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteFileRequestMultiError) Error ¶
func (m DeleteFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteFileRequestValidationError ¶
type DeleteFileRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteFileRequestValidationError is the validation error returned by DeleteFileRequest.Validate if the designated constraints aren't met.
func (DeleteFileRequestValidationError) Cause ¶
func (e DeleteFileRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteFileRequestValidationError) Error ¶
func (e DeleteFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteFileRequestValidationError) ErrorName ¶
func (e DeleteFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteFileRequestValidationError) Field ¶
func (e DeleteFileRequestValidationError) Field() string
Field function returns field value.
func (DeleteFileRequestValidationError) Key ¶
func (e DeleteFileRequestValidationError) Key() bool
Key function returns key value.
func (DeleteFileRequestValidationError) Reason ¶
func (e DeleteFileRequestValidationError) Reason() string
Reason function returns reason value.
type DownloadFileReply ¶
type DownloadFileReply struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Mime string `protobuf:"bytes,2,opt,name=mime,proto3" json:"mime,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadFileReply) Descriptor
deprecated
func (*DownloadFileReply) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileReply.ProtoReflect.Descriptor instead.
func (*DownloadFileReply) GetData ¶
func (x *DownloadFileReply) GetData() []byte
func (*DownloadFileReply) GetMime ¶
func (x *DownloadFileReply) GetMime() string
func (*DownloadFileReply) ProtoMessage ¶
func (*DownloadFileReply) ProtoMessage()
func (*DownloadFileReply) ProtoReflect ¶
func (x *DownloadFileReply) ProtoReflect() protoreflect.Message
func (*DownloadFileReply) Reset ¶
func (x *DownloadFileReply) Reset()
func (*DownloadFileReply) String ¶
func (x *DownloadFileReply) String() string
func (*DownloadFileReply) Validate ¶
func (m *DownloadFileReply) Validate() error
Validate checks the field values on DownloadFileReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DownloadFileReply) ValidateAll ¶
func (m *DownloadFileReply) ValidateAll() error
ValidateAll checks the field values on DownloadFileReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DownloadFileReplyMultiError, or nil if none found.
type DownloadFileReplyMultiError ¶
type DownloadFileReplyMultiError []error
DownloadFileReplyMultiError is an error wrapping multiple validation errors returned by DownloadFileReply.ValidateAll() if the designated constraints aren't met.
func (DownloadFileReplyMultiError) AllErrors ¶
func (m DownloadFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadFileReplyMultiError) Error ¶
func (m DownloadFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadFileReplyValidationError ¶
type DownloadFileReplyValidationError struct {
// contains filtered or unexported fields
}
DownloadFileReplyValidationError is the validation error returned by DownloadFileReply.Validate if the designated constraints aren't met.
func (DownloadFileReplyValidationError) Cause ¶
func (e DownloadFileReplyValidationError) Cause() error
Cause function returns cause value.
func (DownloadFileReplyValidationError) Error ¶
func (e DownloadFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadFileReplyValidationError) ErrorName ¶
func (e DownloadFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadFileReplyValidationError) Field ¶
func (e DownloadFileReplyValidationError) Field() string
Field function returns field value.
func (DownloadFileReplyValidationError) Key ¶
func (e DownloadFileReplyValidationError) Key() bool
Key function returns key value.
func (DownloadFileReplyValidationError) Reason ¶
func (e DownloadFileReplyValidationError) Reason() string
Reason function returns reason value.
type DownloadFileRequest ¶
type DownloadFileRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Expire string `protobuf:"bytes,2,opt,name=expire,proto3" json:"expire,omitempty"`
Sign string `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
SaveName string `protobuf:"bytes,4,opt,name=saveName,proto3" json:"saveName,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadFileRequest) Descriptor
deprecated
func (*DownloadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead.
func (*DownloadFileRequest) GetExpire ¶
func (x *DownloadFileRequest) GetExpire() string
func (*DownloadFileRequest) GetKey ¶
func (x *DownloadFileRequest) GetKey() string
func (*DownloadFileRequest) GetSaveName ¶
func (x *DownloadFileRequest) GetSaveName() string
func (*DownloadFileRequest) GetSign ¶
func (x *DownloadFileRequest) GetSign() string
func (*DownloadFileRequest) ProtoMessage ¶
func (*DownloadFileRequest) ProtoMessage()
func (*DownloadFileRequest) ProtoReflect ¶
func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
func (*DownloadFileRequest) Reset ¶
func (x *DownloadFileRequest) Reset()
func (*DownloadFileRequest) String ¶
func (x *DownloadFileRequest) String() string
func (*DownloadFileRequest) Validate ¶
func (m *DownloadFileRequest) Validate() error
Validate checks the field values on DownloadFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DownloadFileRequest) ValidateAll ¶
func (m *DownloadFileRequest) ValidateAll() error
ValidateAll checks the field values on DownloadFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DownloadFileRequestMultiError, or nil if none found.
type DownloadFileRequestMultiError ¶
type DownloadFileRequestMultiError []error
DownloadFileRequestMultiError is an error wrapping multiple validation errors returned by DownloadFileRequest.ValidateAll() if the designated constraints aren't met.
func (DownloadFileRequestMultiError) AllErrors ¶
func (m DownloadFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadFileRequestMultiError) Error ¶
func (m DownloadFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadFileRequestValidationError ¶
type DownloadFileRequestValidationError struct {
// contains filtered or unexported fields
}
DownloadFileRequestValidationError is the validation error returned by DownloadFileRequest.Validate if the designated constraints aren't met.
func (DownloadFileRequestValidationError) Cause ¶
func (e DownloadFileRequestValidationError) Cause() error
Cause function returns cause value.
func (DownloadFileRequestValidationError) Error ¶
func (e DownloadFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadFileRequestValidationError) ErrorName ¶
func (e DownloadFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadFileRequestValidationError) Field ¶
func (e DownloadFileRequestValidationError) Field() string
Field function returns field value.
func (DownloadFileRequestValidationError) Key ¶
func (e DownloadFileRequestValidationError) Key() bool
Key function returns key value.
func (DownloadFileRequestValidationError) Reason ¶
func (e DownloadFileRequestValidationError) Reason() string
Reason function returns reason value.
type DownloadTargetFileRequest ¶
type DownloadTargetFileRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
SaveName string `protobuf:"bytes,4,opt,name=saveName,proto3" json:"saveName,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadTargetFileRequest) Descriptor
deprecated
func (*DownloadTargetFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadTargetFileRequest.ProtoReflect.Descriptor instead.
func (*DownloadTargetFileRequest) GetKey ¶
func (x *DownloadTargetFileRequest) GetKey() string
func (*DownloadTargetFileRequest) GetSaveName ¶
func (x *DownloadTargetFileRequest) GetSaveName() string
func (*DownloadTargetFileRequest) ProtoMessage ¶
func (*DownloadTargetFileRequest) ProtoMessage()
func (*DownloadTargetFileRequest) ProtoReflect ¶
func (x *DownloadTargetFileRequest) ProtoReflect() protoreflect.Message
func (*DownloadTargetFileRequest) Reset ¶
func (x *DownloadTargetFileRequest) Reset()
func (*DownloadTargetFileRequest) String ¶
func (x *DownloadTargetFileRequest) String() string
func (*DownloadTargetFileRequest) Validate ¶
func (m *DownloadTargetFileRequest) Validate() error
Validate checks the field values on DownloadTargetFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DownloadTargetFileRequest) ValidateAll ¶
func (m *DownloadTargetFileRequest) ValidateAll() error
ValidateAll checks the field values on DownloadTargetFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DownloadTargetFileRequestMultiError, or nil if none found.
type DownloadTargetFileRequestMultiError ¶
type DownloadTargetFileRequestMultiError []error
DownloadTargetFileRequestMultiError is an error wrapping multiple validation errors returned by DownloadTargetFileRequest.ValidateAll() if the designated constraints aren't met.
func (DownloadTargetFileRequestMultiError) AllErrors ¶
func (m DownloadTargetFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadTargetFileRequestMultiError) Error ¶
func (m DownloadTargetFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadTargetFileRequestValidationError ¶
type DownloadTargetFileRequestValidationError struct {
// contains filtered or unexported fields
}
DownloadTargetFileRequestValidationError is the validation error returned by DownloadTargetFileRequest.Validate if the designated constraints aren't met.
func (DownloadTargetFileRequestValidationError) Cause ¶
func (e DownloadTargetFileRequestValidationError) Cause() error
Cause function returns cause value.
func (DownloadTargetFileRequestValidationError) Error ¶
func (e DownloadTargetFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadTargetFileRequestValidationError) ErrorName ¶
func (e DownloadTargetFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadTargetFileRequestValidationError) Field ¶
func (e DownloadTargetFileRequestValidationError) Field() string
Field function returns field value.
func (DownloadTargetFileRequestValidationError) Key ¶
func (e DownloadTargetFileRequestValidationError) Key() bool
Key function returns key value.
func (DownloadTargetFileRequestValidationError) Reason ¶
func (e DownloadTargetFileRequestValidationError) Reason() string
Reason function returns reason value.
type FileClient ¶
type FileClient interface {
// GetFile 获取指定的文件信息
GetUserFile(ctx context.Context, in *GetUserFileRequest, opts ...grpc.CallOption) (*GetUserFileReply, error)
// GetFile 获取指定的文件信息
GetFileBytes(ctx context.Context, in *GetFileBytesRequest, opts ...grpc.CallOption) (File_GetFileBytesClient, error)
// ListFile 获取文件信息列表
ListFile(ctx context.Context, in *ListFileRequest, opts ...grpc.CallOption) (*ListFileReply, error)
// PrepareUploadFile 预上传文件信息
PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...grpc.CallOption) (*PrepareUploadFileReply, error)
// UploadFile 上传文件
UploadFile(ctx context.Context, in *UploadFileRequest, opts ...grpc.CallOption) (*UploadFileReply, error)
// UpdateFile 更新文件信息
UpdateFile(ctx context.Context, in *UpdateFileRequest, opts ...grpc.CallOption) (*UpdateFileReply, error)
// DeleteFile 删除文件信息
DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*DeleteFileReply, error)
}
FileClient is the client API for File service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFileClient ¶
func NewFileClient(cc grpc.ClientConnInterface) FileClient
type FileHTTPClient ¶
type FileHTTPClient interface {
DeleteFile(ctx context.Context, req *DeleteFileRequest, opts ...http.CallOption) (rsp *DeleteFileReply, err error)
GetUserFile(ctx context.Context, req *GetUserFileRequest, opts ...http.CallOption) (rsp *GetUserFileReply, err error)
ListFile(ctx context.Context, req *ListFileRequest, opts ...http.CallOption) (rsp *ListFileReply, err error)
PrepareUploadFile(ctx context.Context, req *PrepareUploadFileRequest, opts ...http.CallOption) (rsp *PrepareUploadFileReply, err error)
UpdateFile(ctx context.Context, req *UpdateFileRequest, opts ...http.CallOption) (rsp *UpdateFileReply, err error)
}
func NewFileHTTPClient ¶
func NewFileHTTPClient(client *http.Client) FileHTTPClient
type FileHTTPClientImpl ¶
type FileHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*FileHTTPClientImpl) DeleteFile ¶
func (c *FileHTTPClientImpl) DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...http.CallOption) (*DeleteFileReply, error)
func (*FileHTTPClientImpl) GetUserFile ¶
func (c *FileHTTPClientImpl) GetUserFile(ctx context.Context, in *GetUserFileRequest, opts ...http.CallOption) (*GetUserFileReply, error)
func (*FileHTTPClientImpl) ListFile ¶
func (c *FileHTTPClientImpl) ListFile(ctx context.Context, in *ListFileRequest, opts ...http.CallOption) (*ListFileReply, error)
func (*FileHTTPClientImpl) PrepareUploadFile ¶
func (c *FileHTTPClientImpl) PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...http.CallOption) (*PrepareUploadFileReply, error)
func (*FileHTTPClientImpl) UpdateFile ¶
func (c *FileHTTPClientImpl) UpdateFile(ctx context.Context, in *UpdateFileRequest, opts ...http.CallOption) (*UpdateFileReply, error)
type FileHTTPServer ¶
type FileHTTPServer interface {
// DeleteFile DeleteFile 删除文件信息
DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileReply, error)
// GetUserFile GetFile 获取指定的文件信息
GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileReply, error)
// ListFile ListFile 获取文件信息列表
ListFile(context.Context, *ListFileRequest) (*ListFileReply, error)
// PrepareUploadFile PrepareUploadFile 预上传文件信息
PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
// UpdateFile UpdateFile 更新文件信息
UpdateFile(context.Context, *UpdateFileRequest) (*UpdateFileReply, error)
}
type FileServer ¶
type FileServer interface {
// GetFile 获取指定的文件信息
GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileReply, error)
// GetFile 获取指定的文件信息
GetFileBytes(*GetFileBytesRequest, File_GetFileBytesServer) error
// ListFile 获取文件信息列表
ListFile(context.Context, *ListFileRequest) (*ListFileReply, error)
// PrepareUploadFile 预上传文件信息
PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
// UploadFile 上传文件
UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
// UpdateFile 更新文件信息
UpdateFile(context.Context, *UpdateFileRequest) (*UpdateFileReply, error)
// DeleteFile 删除文件信息
DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileReply, error)
// contains filtered or unexported methods
}
FileServer is the server API for File service. All implementations must embed UnimplementedFileServer for forward compatibility
type File_GetFileBytesClient ¶
type File_GetFileBytesClient interface {
Recv() (*GetFileBytesReply, error)
grpc.ClientStream
}
type File_GetFileBytesServer ¶
type File_GetFileBytesServer interface {
Send(*GetFileBytesReply) error
grpc.ServerStream
}
type GetFileBytesReply ¶
type GetFileBytesReply struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*GetFileBytesReply) Descriptor
deprecated
func (*GetFileBytesReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFileBytesReply.ProtoReflect.Descriptor instead.
func (*GetFileBytesReply) GetData ¶
func (x *GetFileBytesReply) GetData() []byte
func (*GetFileBytesReply) ProtoMessage ¶
func (*GetFileBytesReply) ProtoMessage()
func (*GetFileBytesReply) ProtoReflect ¶
func (x *GetFileBytesReply) ProtoReflect() protoreflect.Message
func (*GetFileBytesReply) Reset ¶
func (x *GetFileBytesReply) Reset()
func (*GetFileBytesReply) String ¶
func (x *GetFileBytesReply) String() string
func (*GetFileBytesReply) Validate ¶
func (m *GetFileBytesReply) Validate() error
Validate checks the field values on GetFileBytesReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetFileBytesReply) ValidateAll ¶
func (m *GetFileBytesReply) ValidateAll() error
ValidateAll checks the field values on GetFileBytesReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFileBytesReplyMultiError, or nil if none found.
type GetFileBytesReplyMultiError ¶
type GetFileBytesReplyMultiError []error
GetFileBytesReplyMultiError is an error wrapping multiple validation errors returned by GetFileBytesReply.ValidateAll() if the designated constraints aren't met.
func (GetFileBytesReplyMultiError) AllErrors ¶
func (m GetFileBytesReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFileBytesReplyMultiError) Error ¶
func (m GetFileBytesReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFileBytesReplyValidationError ¶
type GetFileBytesReplyValidationError struct {
// contains filtered or unexported fields
}
GetFileBytesReplyValidationError is the validation error returned by GetFileBytesReply.Validate if the designated constraints aren't met.
func (GetFileBytesReplyValidationError) Cause ¶
func (e GetFileBytesReplyValidationError) Cause() error
Cause function returns cause value.
func (GetFileBytesReplyValidationError) Error ¶
func (e GetFileBytesReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetFileBytesReplyValidationError) ErrorName ¶
func (e GetFileBytesReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetFileBytesReplyValidationError) Field ¶
func (e GetFileBytesReplyValidationError) Field() string
Field function returns field value.
func (GetFileBytesReplyValidationError) Key ¶
func (e GetFileBytesReplyValidationError) Key() bool
Key function returns key value.
func (GetFileBytesReplyValidationError) Reason ¶
func (e GetFileBytesReplyValidationError) Reason() string
Reason function returns reason value.
type GetFileBytesRequest ¶
type GetFileBytesRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*GetFileBytesRequest) Descriptor
deprecated
func (*GetFileBytesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFileBytesRequest.ProtoReflect.Descriptor instead.
func (*GetFileBytesRequest) GetKey ¶
func (x *GetFileBytesRequest) GetKey() string
func (*GetFileBytesRequest) ProtoMessage ¶
func (*GetFileBytesRequest) ProtoMessage()
func (*GetFileBytesRequest) ProtoReflect ¶
func (x *GetFileBytesRequest) ProtoReflect() protoreflect.Message
func (*GetFileBytesRequest) Reset ¶
func (x *GetFileBytesRequest) Reset()
func (*GetFileBytesRequest) String ¶
func (x *GetFileBytesRequest) String() string
func (*GetFileBytesRequest) Validate ¶
func (m *GetFileBytesRequest) Validate() error
Validate checks the field values on GetFileBytesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetFileBytesRequest) ValidateAll ¶
func (m *GetFileBytesRequest) ValidateAll() error
ValidateAll checks the field values on GetFileBytesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFileBytesRequestMultiError, or nil if none found.
type GetFileBytesRequestMultiError ¶
type GetFileBytesRequestMultiError []error
GetFileBytesRequestMultiError is an error wrapping multiple validation errors returned by GetFileBytesRequest.ValidateAll() if the designated constraints aren't met.
func (GetFileBytesRequestMultiError) AllErrors ¶
func (m GetFileBytesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFileBytesRequestMultiError) Error ¶
func (m GetFileBytesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFileBytesRequestValidationError ¶
type GetFileBytesRequestValidationError struct {
// contains filtered or unexported fields
}
GetFileBytesRequestValidationError is the validation error returned by GetFileBytesRequest.Validate if the designated constraints aren't met.
func (GetFileBytesRequestValidationError) Cause ¶
func (e GetFileBytesRequestValidationError) Cause() error
Cause function returns cause value.
func (GetFileBytesRequestValidationError) Error ¶
func (e GetFileBytesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetFileBytesRequestValidationError) ErrorName ¶
func (e GetFileBytesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetFileBytesRequestValidationError) Field ¶
func (e GetFileBytesRequestValidationError) Field() string
Field function returns field value.
func (GetFileBytesRequestValidationError) Key ¶
func (e GetFileBytesRequestValidationError) Key() bool
Key function returns key value.
func (GetFileBytesRequestValidationError) Reason ¶
func (e GetFileBytesRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserFileReply ¶
type GetUserFileReply struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
DirectoryId uint32 `protobuf:"varint,2,opt,name=directoryId,proto3" json:"directoryId,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
Size uint32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
Sha string `protobuf:"bytes,6,opt,name=sha,proto3" json:"sha,omitempty"`
Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"`
CreatedAt uint32 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
UpdatedAt uint32 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserFileReply) Descriptor
deprecated
func (*GetUserFileReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFileReply.ProtoReflect.Descriptor instead.
func (*GetUserFileReply) GetCreatedAt ¶
func (x *GetUserFileReply) GetCreatedAt() uint32
func (*GetUserFileReply) GetDirectoryId ¶
func (x *GetUserFileReply) GetDirectoryId() uint32
func (*GetUserFileReply) GetId ¶
func (x *GetUserFileReply) GetId() uint32
func (*GetUserFileReply) GetKey ¶
func (x *GetUserFileReply) GetKey() string
func (*GetUserFileReply) GetName ¶
func (x *GetUserFileReply) GetName() string
func (*GetUserFileReply) GetSha ¶
func (x *GetUserFileReply) GetSha() string
func (*GetUserFileReply) GetSize ¶
func (x *GetUserFileReply) GetSize() uint32
func (*GetUserFileReply) GetType ¶
func (x *GetUserFileReply) GetType() string
func (*GetUserFileReply) GetUpdatedAt ¶
func (x *GetUserFileReply) GetUpdatedAt() uint32
func (*GetUserFileReply) ProtoMessage ¶
func (*GetUserFileReply) ProtoMessage()
func (*GetUserFileReply) ProtoReflect ¶
func (x *GetUserFileReply) ProtoReflect() protoreflect.Message
func (*GetUserFileReply) Reset ¶
func (x *GetUserFileReply) Reset()
func (*GetUserFileReply) String ¶
func (x *GetUserFileReply) String() string
type GetUserFileRequest ¶
type GetUserFileRequest struct {
Directory *string `protobuf:"bytes,1,opt,name=directory,proto3,oneof" json:"directory,omitempty"`
Id *uint32 `protobuf:"varint,3,opt,name=id,proto3,oneof" json:"id,omitempty"`
Key *string `protobuf:"bytes,4,opt,name=key,proto3,oneof" json:"key,omitempty"`
Sha *string `protobuf:"bytes,5,opt,name=sha,proto3,oneof" json:"sha,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserFileRequest) Descriptor
deprecated
func (*GetUserFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFileRequest.ProtoReflect.Descriptor instead.
func (*GetUserFileRequest) GetDirectory ¶
func (x *GetUserFileRequest) GetDirectory() string
func (*GetUserFileRequest) GetId ¶
func (x *GetUserFileRequest) GetId() uint32
func (*GetUserFileRequest) GetKey ¶
func (x *GetUserFileRequest) GetKey() string
func (*GetUserFileRequest) GetSha ¶
func (x *GetUserFileRequest) GetSha() string
func (*GetUserFileRequest) ProtoMessage ¶
func (*GetUserFileRequest) ProtoMessage()
func (*GetUserFileRequest) ProtoReflect ¶
func (x *GetUserFileRequest) ProtoReflect() protoreflect.Message
func (*GetUserFileRequest) Reset ¶
func (x *GetUserFileRequest) Reset()
func (*GetUserFileRequest) String ¶
func (x *GetUserFileRequest) String() string
type ListFileReply ¶
type ListFileReply struct {
Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
List []*ListFileReply_File `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*ListFileReply) Descriptor
deprecated
func (*ListFileReply) Descriptor() ([]byte, []int)
Deprecated: Use ListFileReply.ProtoReflect.Descriptor instead.
func (*ListFileReply) GetList ¶
func (x *ListFileReply) GetList() []*ListFileReply_File
func (*ListFileReply) GetTotal ¶
func (x *ListFileReply) GetTotal() uint32
func (*ListFileReply) ProtoMessage ¶
func (*ListFileReply) ProtoMessage()
func (*ListFileReply) ProtoReflect ¶
func (x *ListFileReply) ProtoReflect() protoreflect.Message
func (*ListFileReply) Reset ¶
func (x *ListFileReply) Reset()
func (*ListFileReply) String ¶
func (x *ListFileReply) String() string
func (*ListFileReply) Validate ¶
func (m *ListFileReply) Validate() error
Validate checks the field values on ListFileReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListFileReply) ValidateAll ¶
func (m *ListFileReply) ValidateAll() error
ValidateAll checks the field values on ListFileReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListFileReplyMultiError, or nil if none found.
type ListFileReplyMultiError ¶
type ListFileReplyMultiError []error
ListFileReplyMultiError is an error wrapping multiple validation errors returned by ListFileReply.ValidateAll() if the designated constraints aren't met.
func (ListFileReplyMultiError) AllErrors ¶
func (m ListFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFileReplyMultiError) Error ¶
func (m ListFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFileReplyValidationError ¶
type ListFileReplyValidationError struct {
// contains filtered or unexported fields
}
ListFileReplyValidationError is the validation error returned by ListFileReply.Validate if the designated constraints aren't met.
func (ListFileReplyValidationError) Cause ¶
func (e ListFileReplyValidationError) Cause() error
Cause function returns cause value.
func (ListFileReplyValidationError) Error ¶
func (e ListFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListFileReplyValidationError) ErrorName ¶
func (e ListFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListFileReplyValidationError) Field ¶
func (e ListFileReplyValidationError) Field() string
Field function returns field value.
func (ListFileReplyValidationError) Key ¶
func (e ListFileReplyValidationError) Key() bool
Key function returns key value.
func (ListFileReplyValidationError) Reason ¶
func (e ListFileReplyValidationError) Reason() string
Reason function returns reason value.
type ListFileReply_File ¶
type ListFileReply_File struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
DirectoryId uint32 `protobuf:"varint,2,opt,name=directoryId,proto3" json:"directoryId,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
Size uint32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
Sha string `protobuf:"bytes,6,opt,name=sha,proto3" json:"sha,omitempty"`
Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"`
CreatedAt uint32 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
UpdatedAt uint32 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
// contains filtered or unexported fields
}
func (*ListFileReply_File) Descriptor
deprecated
func (*ListFileReply_File) Descriptor() ([]byte, []int)
Deprecated: Use ListFileReply_File.ProtoReflect.Descriptor instead.
func (*ListFileReply_File) GetCreatedAt ¶
func (x *ListFileReply_File) GetCreatedAt() uint32
func (*ListFileReply_File) GetDirectoryId ¶
func (x *ListFileReply_File) GetDirectoryId() uint32
func (*ListFileReply_File) GetId ¶
func (x *ListFileReply_File) GetId() uint32
func (*ListFileReply_File) GetKey ¶
func (x *ListFileReply_File) GetKey() string
func (*ListFileReply_File) GetName ¶
func (x *ListFileReply_File) GetName() string
func (*ListFileReply_File) GetSha ¶
func (x *ListFileReply_File) GetSha() string
func (*ListFileReply_File) GetSize ¶
func (x *ListFileReply_File) GetSize() uint32
func (*ListFileReply_File) GetType ¶
func (x *ListFileReply_File) GetType() string
func (*ListFileReply_File) GetUpdatedAt ¶
func (x *ListFileReply_File) GetUpdatedAt() uint32
func (*ListFileReply_File) ProtoMessage ¶
func (*ListFileReply_File) ProtoMessage()
func (*ListFileReply_File) ProtoReflect ¶
func (x *ListFileReply_File) ProtoReflect() protoreflect.Message
func (*ListFileReply_File) Reset ¶
func (x *ListFileReply_File) Reset()
func (*ListFileReply_File) String ¶
func (x *ListFileReply_File) String() string
func (*ListFileReply_File) Validate ¶
func (m *ListFileReply_File) Validate() error
Validate checks the field values on ListFileReply_File with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListFileReply_File) ValidateAll ¶
func (m *ListFileReply_File) ValidateAll() error
ValidateAll checks the field values on ListFileReply_File with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListFileReply_FileMultiError, or nil if none found.
type ListFileReply_FileMultiError ¶
type ListFileReply_FileMultiError []error
ListFileReply_FileMultiError is an error wrapping multiple validation errors returned by ListFileReply_File.ValidateAll() if the designated constraints aren't met.
func (ListFileReply_FileMultiError) AllErrors ¶
func (m ListFileReply_FileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFileReply_FileMultiError) Error ¶
func (m ListFileReply_FileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFileReply_FileValidationError ¶
type ListFileReply_FileValidationError struct {
// contains filtered or unexported fields
}
ListFileReply_FileValidationError is the validation error returned by ListFileReply_File.Validate if the designated constraints aren't met.
func (ListFileReply_FileValidationError) Cause ¶
func (e ListFileReply_FileValidationError) Cause() error
Cause function returns cause value.
func (ListFileReply_FileValidationError) Error ¶
func (e ListFileReply_FileValidationError) Error() string
Error satisfies the builtin error interface
func (ListFileReply_FileValidationError) ErrorName ¶
func (e ListFileReply_FileValidationError) ErrorName() string
ErrorName returns error name.
func (ListFileReply_FileValidationError) Field ¶
func (e ListFileReply_FileValidationError) Field() string
Field function returns field value.
func (ListFileReply_FileValidationError) Key ¶
func (e ListFileReply_FileValidationError) Key() bool
Key function returns key value.
func (ListFileReply_FileValidationError) Reason ¶
func (e ListFileReply_FileValidationError) Reason() string
Reason function returns reason value.
type ListFileRequest ¶
type ListFileRequest struct {
Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
Order *string `protobuf:"bytes,3,opt,name=order,proto3,oneof" json:"order,omitempty"`
OrderBy *string `protobuf:"bytes,4,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"`
DirectoryId *uint32 `protobuf:"varint,5,opt,name=directoryId,proto3,oneof" json:"directoryId,omitempty"`
Status *string `protobuf:"bytes,6,opt,name=status,proto3,oneof" json:"status,omitempty"`
Name *string `protobuf:"bytes,7,opt,name=name,proto3,oneof" json:"name,omitempty"`
KeyList []string `protobuf:"bytes,8,rep,name=keyList,proto3" json:"keyList,omitempty"`
// contains filtered or unexported fields
}
func (*ListFileRequest) Descriptor
deprecated
func (*ListFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFileRequest.ProtoReflect.Descriptor instead.
func (*ListFileRequest) GetDirectoryId ¶
func (x *ListFileRequest) GetDirectoryId() uint32
func (*ListFileRequest) GetKeyList ¶
func (x *ListFileRequest) GetKeyList() []string
func (*ListFileRequest) GetName ¶
func (x *ListFileRequest) GetName() string
func (*ListFileRequest) GetOrder ¶
func (x *ListFileRequest) GetOrder() string
func (*ListFileRequest) GetOrderBy ¶
func (x *ListFileRequest) GetOrderBy() string
func (*ListFileRequest) GetPage ¶
func (x *ListFileRequest) GetPage() uint32
func (*ListFileRequest) GetPageSize ¶
func (x *ListFileRequest) GetPageSize() uint32
func (*ListFileRequest) GetStatus ¶
func (x *ListFileRequest) GetStatus() string
func (*ListFileRequest) ProtoMessage ¶
func (*ListFileRequest) ProtoMessage()
func (*ListFileRequest) ProtoReflect ¶
func (x *ListFileRequest) ProtoReflect() protoreflect.Message
func (*ListFileRequest) Reset ¶
func (x *ListFileRequest) Reset()
func (*ListFileRequest) String ¶
func (x *ListFileRequest) String() string
func (*ListFileRequest) Validate ¶
func (m *ListFileRequest) Validate() error
Validate checks the field values on ListFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListFileRequest) ValidateAll ¶
func (m *ListFileRequest) ValidateAll() error
ValidateAll checks the field values on ListFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListFileRequestMultiError, or nil if none found.
type ListFileRequestMultiError ¶
type ListFileRequestMultiError []error
ListFileRequestMultiError is an error wrapping multiple validation errors returned by ListFileRequest.ValidateAll() if the designated constraints aren't met.
func (ListFileRequestMultiError) AllErrors ¶
func (m ListFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFileRequestMultiError) Error ¶
func (m ListFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFileRequestValidationError ¶
type ListFileRequestValidationError struct {
// contains filtered or unexported fields
}
ListFileRequestValidationError is the validation error returned by ListFileRequest.Validate if the designated constraints aren't met.
func (ListFileRequestValidationError) Cause ¶
func (e ListFileRequestValidationError) Cause() error
Cause function returns cause value.
func (ListFileRequestValidationError) Error ¶
func (e ListFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListFileRequestValidationError) ErrorName ¶
func (e ListFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListFileRequestValidationError) Field ¶
func (e ListFileRequestValidationError) Field() string
Field function returns field value.
func (ListFileRequestValidationError) Key ¶
func (e ListFileRequestValidationError) Key() bool
Key function returns key value.
func (ListFileRequestValidationError) Reason ¶
func (e ListFileRequestValidationError) Reason() string
Reason function returns reason value.
type PrepareUploadFileReply ¶
type PrepareUploadFileReply struct {
Uploaded bool `protobuf:"varint,1,opt,name=uploaded,proto3" json:"uploaded,omitempty"`
Key *string `protobuf:"bytes,2,opt,name=key,proto3,oneof" json:"key,omitempty"`
ChunkSize *uint32 `protobuf:"varint,3,opt,name=chunkSize,proto3,oneof" json:"chunkSize,omitempty"`
ChunkCount *uint32 `protobuf:"varint,4,opt,name=chunkCount,proto3,oneof" json:"chunkCount,omitempty"`
UploadId *string `protobuf:"bytes,5,opt,name=uploadId,proto3,oneof" json:"uploadId,omitempty"`
UploadChunks []uint32 `protobuf:"varint,6,rep,packed,name=uploadChunks,proto3" json:"uploadChunks,omitempty"`
Sha *string `protobuf:"bytes,7,opt,name=sha,proto3,oneof" json:"sha,omitempty"`
// contains filtered or unexported fields
}
func (*PrepareUploadFileReply) Descriptor
deprecated
func (*PrepareUploadFileReply) Descriptor() ([]byte, []int)
Deprecated: Use PrepareUploadFileReply.ProtoReflect.Descriptor instead.
func (*PrepareUploadFileReply) GetChunkCount ¶
func (x *PrepareUploadFileReply) GetChunkCount() uint32
func (*PrepareUploadFileReply) GetChunkSize ¶
func (x *PrepareUploadFileReply) GetChunkSize() uint32
func (*PrepareUploadFileReply) GetKey ¶
func (x *PrepareUploadFileReply) GetKey() string
func (*PrepareUploadFileReply) GetSha ¶
func (x *PrepareUploadFileReply) GetSha() string
func (*PrepareUploadFileReply) GetUploadChunks ¶
func (x *PrepareUploadFileReply) GetUploadChunks() []uint32
func (*PrepareUploadFileReply) GetUploadId ¶
func (x *PrepareUploadFileReply) GetUploadId() string
func (*PrepareUploadFileReply) GetUploaded ¶
func (x *PrepareUploadFileReply) GetUploaded() bool
func (*PrepareUploadFileReply) ProtoMessage ¶
func (*PrepareUploadFileReply) ProtoMessage()
func (*PrepareUploadFileReply) ProtoReflect ¶
func (x *PrepareUploadFileReply) ProtoReflect() protoreflect.Message
func (*PrepareUploadFileReply) Reset ¶
func (x *PrepareUploadFileReply) Reset()
func (*PrepareUploadFileReply) String ¶
func (x *PrepareUploadFileReply) String() string
func (*PrepareUploadFileReply) Validate ¶
func (m *PrepareUploadFileReply) Validate() error
Validate checks the field values on PrepareUploadFileReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PrepareUploadFileReply) ValidateAll ¶
func (m *PrepareUploadFileReply) ValidateAll() error
ValidateAll checks the field values on PrepareUploadFileReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrepareUploadFileReplyMultiError, or nil if none found.
type PrepareUploadFileReplyMultiError ¶
type PrepareUploadFileReplyMultiError []error
PrepareUploadFileReplyMultiError is an error wrapping multiple validation errors returned by PrepareUploadFileReply.ValidateAll() if the designated constraints aren't met.
func (PrepareUploadFileReplyMultiError) AllErrors ¶
func (m PrepareUploadFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrepareUploadFileReplyMultiError) Error ¶
func (m PrepareUploadFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrepareUploadFileReplyValidationError ¶
type PrepareUploadFileReplyValidationError struct {
// contains filtered or unexported fields
}
PrepareUploadFileReplyValidationError is the validation error returned by PrepareUploadFileReply.Validate if the designated constraints aren't met.
func (PrepareUploadFileReplyValidationError) Cause ¶
func (e PrepareUploadFileReplyValidationError) Cause() error
Cause function returns cause value.
func (PrepareUploadFileReplyValidationError) Error ¶
func (e PrepareUploadFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PrepareUploadFileReplyValidationError) ErrorName ¶
func (e PrepareUploadFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PrepareUploadFileReplyValidationError) Field ¶
func (e PrepareUploadFileReplyValidationError) Field() string
Field function returns field value.
func (PrepareUploadFileReplyValidationError) Key ¶
func (e PrepareUploadFileReplyValidationError) Key() bool
Key function returns key value.
func (PrepareUploadFileReplyValidationError) Reason ¶
func (e PrepareUploadFileReplyValidationError) Reason() string
Reason function returns reason value.
type PrepareUploadFileRequest ¶
type PrepareUploadFileRequest struct {
DirectoryId *uint32 `protobuf:"varint,1,opt,name=directoryId,proto3,oneof" json:"directoryId,omitempty"`
DirectoryPath *string `protobuf:"bytes,2,opt,name=directoryPath,proto3,oneof" json:"directoryPath,omitempty"`
Store *string `protobuf:"bytes,6,opt,name=store,proto3,oneof" json:"store,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Size uint32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
Sha string `protobuf:"bytes,5,opt,name=sha,proto3" json:"sha,omitempty"`
// contains filtered or unexported fields
}
func (*PrepareUploadFileRequest) Descriptor
deprecated
func (*PrepareUploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use PrepareUploadFileRequest.ProtoReflect.Descriptor instead.
func (*PrepareUploadFileRequest) GetDirectoryId ¶
func (x *PrepareUploadFileRequest) GetDirectoryId() uint32
func (*PrepareUploadFileRequest) GetDirectoryPath ¶
func (x *PrepareUploadFileRequest) GetDirectoryPath() string
func (*PrepareUploadFileRequest) GetName ¶
func (x *PrepareUploadFileRequest) GetName() string
func (*PrepareUploadFileRequest) GetSha ¶
func (x *PrepareUploadFileRequest) GetSha() string
func (*PrepareUploadFileRequest) GetSize ¶
func (x *PrepareUploadFileRequest) GetSize() uint32
func (*PrepareUploadFileRequest) GetStore ¶
func (x *PrepareUploadFileRequest) GetStore() string
func (*PrepareUploadFileRequest) ProtoMessage ¶
func (*PrepareUploadFileRequest) ProtoMessage()
func (*PrepareUploadFileRequest) ProtoReflect ¶
func (x *PrepareUploadFileRequest) ProtoReflect() protoreflect.Message
func (*PrepareUploadFileRequest) Reset ¶
func (x *PrepareUploadFileRequest) Reset()
func (*PrepareUploadFileRequest) String ¶
func (x *PrepareUploadFileRequest) String() string
func (*PrepareUploadFileRequest) Validate ¶
func (m *PrepareUploadFileRequest) Validate() error
Validate checks the field values on PrepareUploadFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PrepareUploadFileRequest) ValidateAll ¶
func (m *PrepareUploadFileRequest) ValidateAll() error
ValidateAll checks the field values on PrepareUploadFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrepareUploadFileRequestMultiError, or nil if none found.
type PrepareUploadFileRequestMultiError ¶
type PrepareUploadFileRequestMultiError []error
PrepareUploadFileRequestMultiError is an error wrapping multiple validation errors returned by PrepareUploadFileRequest.ValidateAll() if the designated constraints aren't met.
func (PrepareUploadFileRequestMultiError) AllErrors ¶
func (m PrepareUploadFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrepareUploadFileRequestMultiError) Error ¶
func (m PrepareUploadFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrepareUploadFileRequestValidationError ¶
type PrepareUploadFileRequestValidationError struct {
// contains filtered or unexported fields
}
PrepareUploadFileRequestValidationError is the validation error returned by PrepareUploadFileRequest.Validate if the designated constraints aren't met.
func (PrepareUploadFileRequestValidationError) Cause ¶
func (e PrepareUploadFileRequestValidationError) Cause() error
Cause function returns cause value.
func (PrepareUploadFileRequestValidationError) Error ¶
func (e PrepareUploadFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PrepareUploadFileRequestValidationError) ErrorName ¶
func (e PrepareUploadFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PrepareUploadFileRequestValidationError) Field ¶
func (e PrepareUploadFileRequestValidationError) Field() string
Field function returns field value.
func (PrepareUploadFileRequestValidationError) Key ¶
func (e PrepareUploadFileRequestValidationError) Key() bool
Key function returns key value.
func (PrepareUploadFileRequestValidationError) Reason ¶
func (e PrepareUploadFileRequestValidationError) Reason() string
Reason function returns reason value.
type StaticFileReply ¶
type StaticFileReply struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Mime string `protobuf:"bytes,2,opt,name=mime,proto3" json:"mime,omitempty"`
// contains filtered or unexported fields
}
func (*StaticFileReply) Descriptor
deprecated
func (*StaticFileReply) Descriptor() ([]byte, []int)
Deprecated: Use StaticFileReply.ProtoReflect.Descriptor instead.
func (*StaticFileReply) GetData ¶
func (x *StaticFileReply) GetData() []byte
func (*StaticFileReply) GetMime ¶
func (x *StaticFileReply) GetMime() string
func (*StaticFileReply) ProtoMessage ¶
func (*StaticFileReply) ProtoMessage()
func (*StaticFileReply) ProtoReflect ¶
func (x *StaticFileReply) ProtoReflect() protoreflect.Message
func (*StaticFileReply) Reset ¶
func (x *StaticFileReply) Reset()
func (*StaticFileReply) String ¶
func (x *StaticFileReply) String() string
func (*StaticFileReply) Validate ¶
func (m *StaticFileReply) Validate() error
Validate checks the field values on StaticFileReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StaticFileReply) ValidateAll ¶
func (m *StaticFileReply) ValidateAll() error
ValidateAll checks the field values on StaticFileReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StaticFileReplyMultiError, or nil if none found.
type StaticFileReplyMultiError ¶
type StaticFileReplyMultiError []error
StaticFileReplyMultiError is an error wrapping multiple validation errors returned by StaticFileReply.ValidateAll() if the designated constraints aren't met.
func (StaticFileReplyMultiError) AllErrors ¶
func (m StaticFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StaticFileReplyMultiError) Error ¶
func (m StaticFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StaticFileReplyValidationError ¶
type StaticFileReplyValidationError struct {
// contains filtered or unexported fields
}
StaticFileReplyValidationError is the validation error returned by StaticFileReply.Validate if the designated constraints aren't met.
func (StaticFileReplyValidationError) Cause ¶
func (e StaticFileReplyValidationError) Cause() error
Cause function returns cause value.
func (StaticFileReplyValidationError) Error ¶
func (e StaticFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (StaticFileReplyValidationError) ErrorName ¶
func (e StaticFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (StaticFileReplyValidationError) Field ¶
func (e StaticFileReplyValidationError) Field() string
Field function returns field value.
func (StaticFileReplyValidationError) Key ¶
func (e StaticFileReplyValidationError) Key() bool
Key function returns key value.
func (StaticFileReplyValidationError) Reason ¶
func (e StaticFileReplyValidationError) Reason() string
Reason function returns reason value.
type StaticFileRequest ¶
type StaticFileRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Expire string `protobuf:"bytes,2,opt,name=expire,proto3" json:"expire,omitempty"`
Sign string `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
Width uint32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
Height uint32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
Mode string `protobuf:"bytes,6,opt,name=mode,proto3" json:"mode,omitempty"`
Download bool `protobuf:"varint,7,opt,name=download,proto3" json:"download,omitempty"`
SaveName string `protobuf:"bytes,8,opt,name=saveName,proto3" json:"saveName,omitempty"`
// contains filtered or unexported fields
}
func (*StaticFileRequest) Descriptor
deprecated
func (*StaticFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use StaticFileRequest.ProtoReflect.Descriptor instead.
func (*StaticFileRequest) GetDownload ¶
func (x *StaticFileRequest) GetDownload() bool
func (*StaticFileRequest) GetExpire ¶
func (x *StaticFileRequest) GetExpire() string
func (*StaticFileRequest) GetHeight ¶
func (x *StaticFileRequest) GetHeight() uint32
func (*StaticFileRequest) GetKey ¶
func (x *StaticFileRequest) GetKey() string
func (*StaticFileRequest) GetMode ¶
func (x *StaticFileRequest) GetMode() string
func (*StaticFileRequest) GetSaveName ¶
func (x *StaticFileRequest) GetSaveName() string
func (*StaticFileRequest) GetSign ¶
func (x *StaticFileRequest) GetSign() string
func (*StaticFileRequest) GetWidth ¶
func (x *StaticFileRequest) GetWidth() uint32
func (*StaticFileRequest) ProtoMessage ¶
func (*StaticFileRequest) ProtoMessage()
func (*StaticFileRequest) ProtoReflect ¶
func (x *StaticFileRequest) ProtoReflect() protoreflect.Message
func (*StaticFileRequest) Reset ¶
func (x *StaticFileRequest) Reset()
func (*StaticFileRequest) String ¶
func (x *StaticFileRequest) String() string
func (*StaticFileRequest) Validate ¶
func (m *StaticFileRequest) Validate() error
Validate checks the field values on StaticFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StaticFileRequest) ValidateAll ¶
func (m *StaticFileRequest) ValidateAll() error
ValidateAll checks the field values on StaticFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StaticFileRequestMultiError, or nil if none found.
type StaticFileRequestMultiError ¶
type StaticFileRequestMultiError []error
StaticFileRequestMultiError is an error wrapping multiple validation errors returned by StaticFileRequest.ValidateAll() if the designated constraints aren't met.
func (StaticFileRequestMultiError) AllErrors ¶
func (m StaticFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StaticFileRequestMultiError) Error ¶
func (m StaticFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StaticFileRequestValidationError ¶
type StaticFileRequestValidationError struct {
// contains filtered or unexported fields
}
StaticFileRequestValidationError is the validation error returned by StaticFileRequest.Validate if the designated constraints aren't met.
func (StaticFileRequestValidationError) Cause ¶
func (e StaticFileRequestValidationError) Cause() error
Cause function returns cause value.
func (StaticFileRequestValidationError) Error ¶
func (e StaticFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StaticFileRequestValidationError) ErrorName ¶
func (e StaticFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StaticFileRequestValidationError) Field ¶
func (e StaticFileRequestValidationError) Field() string
Field function returns field value.
func (StaticFileRequestValidationError) Key ¶
func (e StaticFileRequestValidationError) Key() bool
Key function returns key value.
func (StaticFileRequestValidationError) Reason ¶
func (e StaticFileRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedFileServer ¶
type UnimplementedFileServer struct {
}
UnimplementedFileServer must be embedded to have forward compatible implementations.
func (UnimplementedFileServer) DeleteFile ¶
func (UnimplementedFileServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileReply, error)
func (UnimplementedFileServer) GetFileBytes ¶
func (UnimplementedFileServer) GetFileBytes(*GetFileBytesRequest, File_GetFileBytesServer) error
func (UnimplementedFileServer) GetUserFile ¶
func (UnimplementedFileServer) GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileReply, error)
func (UnimplementedFileServer) ListFile ¶
func (UnimplementedFileServer) ListFile(context.Context, *ListFileRequest) (*ListFileReply, error)
func (UnimplementedFileServer) PrepareUploadFile ¶
func (UnimplementedFileServer) PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
func (UnimplementedFileServer) UpdateFile ¶
func (UnimplementedFileServer) UpdateFile(context.Context, *UpdateFileRequest) (*UpdateFileReply, error)
func (UnimplementedFileServer) UploadFile ¶
func (UnimplementedFileServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
type UnsafeFileServer ¶
type UnsafeFileServer interface {
// contains filtered or unexported methods
}
UnsafeFileServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileServer will result in compilation errors.
type UpdateFileReply ¶
type UpdateFileReply struct {
// contains filtered or unexported fields
}
func (*UpdateFileReply) Descriptor
deprecated
func (*UpdateFileReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFileReply.ProtoReflect.Descriptor instead.
func (*UpdateFileReply) ProtoMessage ¶
func (*UpdateFileReply) ProtoMessage()
func (*UpdateFileReply) ProtoReflect ¶
func (x *UpdateFileReply) ProtoReflect() protoreflect.Message
func (*UpdateFileReply) Reset ¶
func (x *UpdateFileReply) Reset()
func (*UpdateFileReply) String ¶
func (x *UpdateFileReply) String() string
func (*UpdateFileReply) Validate ¶
func (m *UpdateFileReply) Validate() error
Validate checks the field values on UpdateFileReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateFileReply) ValidateAll ¶
func (m *UpdateFileReply) ValidateAll() error
ValidateAll checks the field values on UpdateFileReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateFileReplyMultiError, or nil if none found.
type UpdateFileReplyMultiError ¶
type UpdateFileReplyMultiError []error
UpdateFileReplyMultiError is an error wrapping multiple validation errors returned by UpdateFileReply.ValidateAll() if the designated constraints aren't met.
func (UpdateFileReplyMultiError) AllErrors ¶
func (m UpdateFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateFileReplyMultiError) Error ¶
func (m UpdateFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateFileReplyValidationError ¶
type UpdateFileReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateFileReplyValidationError is the validation error returned by UpdateFileReply.Validate if the designated constraints aren't met.
func (UpdateFileReplyValidationError) Cause ¶
func (e UpdateFileReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateFileReplyValidationError) Error ¶
func (e UpdateFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateFileReplyValidationError) ErrorName ¶
func (e UpdateFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateFileReplyValidationError) Field ¶
func (e UpdateFileReplyValidationError) Field() string
Field function returns field value.
func (UpdateFileReplyValidationError) Key ¶
func (e UpdateFileReplyValidationError) Key() bool
Key function returns key value.
func (UpdateFileReplyValidationError) Reason ¶
func (e UpdateFileReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateFileRequest ¶
type UpdateFileRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
DirectoryId uint32 `protobuf:"varint,2,opt,name=directoryId,proto3" json:"directoryId,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateFileRequest) Descriptor
deprecated
func (*UpdateFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFileRequest.ProtoReflect.Descriptor instead.
func (*UpdateFileRequest) GetDirectoryId ¶
func (x *UpdateFileRequest) GetDirectoryId() uint32
func (*UpdateFileRequest) GetId ¶
func (x *UpdateFileRequest) GetId() uint32
func (*UpdateFileRequest) GetName ¶
func (x *UpdateFileRequest) GetName() string
func (*UpdateFileRequest) ProtoMessage ¶
func (*UpdateFileRequest) ProtoMessage()
func (*UpdateFileRequest) ProtoReflect ¶
func (x *UpdateFileRequest) ProtoReflect() protoreflect.Message
func (*UpdateFileRequest) Reset ¶
func (x *UpdateFileRequest) Reset()
func (*UpdateFileRequest) String ¶
func (x *UpdateFileRequest) String() string
func (*UpdateFileRequest) Validate ¶
func (m *UpdateFileRequest) Validate() error
Validate checks the field values on UpdateFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateFileRequest) ValidateAll ¶
func (m *UpdateFileRequest) ValidateAll() error
ValidateAll checks the field values on UpdateFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateFileRequestMultiError, or nil if none found.
type UpdateFileRequestMultiError ¶
type UpdateFileRequestMultiError []error
UpdateFileRequestMultiError is an error wrapping multiple validation errors returned by UpdateFileRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateFileRequestMultiError) AllErrors ¶
func (m UpdateFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateFileRequestMultiError) Error ¶
func (m UpdateFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateFileRequestValidationError ¶
type UpdateFileRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateFileRequestValidationError is the validation error returned by UpdateFileRequest.Validate if the designated constraints aren't met.
func (UpdateFileRequestValidationError) Cause ¶
func (e UpdateFileRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateFileRequestValidationError) Error ¶
func (e UpdateFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateFileRequestValidationError) ErrorName ¶
func (e UpdateFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateFileRequestValidationError) Field ¶
func (e UpdateFileRequestValidationError) Field() string
Field function returns field value.
func (UpdateFileRequestValidationError) Key ¶
func (e UpdateFileRequestValidationError) Key() bool
Key function returns key value.
func (UpdateFileRequestValidationError) Reason ¶
func (e UpdateFileRequestValidationError) Reason() string
Reason function returns reason value.
type UploadFileReply ¶
type UploadFileReply struct {
Sha string `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*UploadFileReply) Descriptor
deprecated
func (*UploadFileReply) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileReply.ProtoReflect.Descriptor instead.
func (*UploadFileReply) GetKey ¶
func (x *UploadFileReply) GetKey() string
func (*UploadFileReply) GetSha ¶
func (x *UploadFileReply) GetSha() string
func (*UploadFileReply) ProtoMessage ¶
func (*UploadFileReply) ProtoMessage()
func (*UploadFileReply) ProtoReflect ¶
func (x *UploadFileReply) ProtoReflect() protoreflect.Message
func (*UploadFileReply) Reset ¶
func (x *UploadFileReply) Reset()
func (*UploadFileReply) String ¶
func (x *UploadFileReply) String() string
func (*UploadFileReply) Validate ¶
func (m *UploadFileReply) Validate() error
Validate checks the field values on UploadFileReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UploadFileReply) ValidateAll ¶
func (m *UploadFileReply) ValidateAll() error
ValidateAll checks the field values on UploadFileReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UploadFileReplyMultiError, or nil if none found.
type UploadFileReplyMultiError ¶
type UploadFileReplyMultiError []error
UploadFileReplyMultiError is an error wrapping multiple validation errors returned by UploadFileReply.ValidateAll() if the designated constraints aren't met.
func (UploadFileReplyMultiError) AllErrors ¶
func (m UploadFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadFileReplyMultiError) Error ¶
func (m UploadFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadFileReplyValidationError ¶
type UploadFileReplyValidationError struct {
// contains filtered or unexported fields
}
UploadFileReplyValidationError is the validation error returned by UploadFileReply.Validate if the designated constraints aren't met.
func (UploadFileReplyValidationError) Cause ¶
func (e UploadFileReplyValidationError) Cause() error
Cause function returns cause value.
func (UploadFileReplyValidationError) Error ¶
func (e UploadFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UploadFileReplyValidationError) ErrorName ¶
func (e UploadFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UploadFileReplyValidationError) Field ¶
func (e UploadFileReplyValidationError) Field() string
Field function returns field value.
func (UploadFileReplyValidationError) Key ¶
func (e UploadFileReplyValidationError) Key() bool
Key function returns key value.
func (UploadFileReplyValidationError) Reason ¶
func (e UploadFileReplyValidationError) Reason() string
Reason function returns reason value.
type UploadFileRequest ¶
type UploadFileRequest struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
UploadId string `protobuf:"bytes,2,opt,name=uploadId,proto3" json:"uploadId,omitempty"`
Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
// contains filtered or unexported fields
}
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetData ¶
func (x *UploadFileRequest) GetData() []byte
func (*UploadFileRequest) GetIndex ¶
func (x *UploadFileRequest) GetIndex() uint32
func (*UploadFileRequest) GetUploadId ¶
func (x *UploadFileRequest) GetUploadId() string
func (*UploadFileRequest) ProtoMessage ¶
func (*UploadFileRequest) ProtoMessage()
func (*UploadFileRequest) ProtoReflect ¶
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
func (*UploadFileRequest) Reset ¶
func (x *UploadFileRequest) Reset()
func (*UploadFileRequest) String ¶
func (x *UploadFileRequest) String() string
func (*UploadFileRequest) Validate ¶
func (m *UploadFileRequest) Validate() error
Validate checks the field values on UploadFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UploadFileRequest) ValidateAll ¶
func (m *UploadFileRequest) ValidateAll() error
ValidateAll checks the field values on UploadFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UploadFileRequestMultiError, or nil if none found.
type UploadFileRequestMultiError ¶
type UploadFileRequestMultiError []error
UploadFileRequestMultiError is an error wrapping multiple validation errors returned by UploadFileRequest.ValidateAll() if the designated constraints aren't met.
func (UploadFileRequestMultiError) AllErrors ¶
func (m UploadFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadFileRequestMultiError) Error ¶
func (m UploadFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadFileRequestValidationError ¶
type UploadFileRequestValidationError struct {
// contains filtered or unexported fields
}
UploadFileRequestValidationError is the validation error returned by UploadFileRequest.Validate if the designated constraints aren't met.
func (UploadFileRequestValidationError) Cause ¶
func (e UploadFileRequestValidationError) Cause() error
Cause function returns cause value.
func (UploadFileRequestValidationError) Error ¶
func (e UploadFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UploadFileRequestValidationError) ErrorName ¶
func (e UploadFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UploadFileRequestValidationError) Field ¶
func (e UploadFileRequestValidationError) Field() string
Field function returns field value.
func (UploadFileRequestValidationError) Key ¶
func (e UploadFileRequestValidationError) Key() bool
Key function returns key value.
func (UploadFileRequestValidationError) Reason ¶
func (e UploadFileRequestValidationError) Reason() string
Reason function returns reason value.