Documentation ¶
Index ¶
- Variables
- type BinaryFile
- func (*BinaryFile) Descriptor() ([]byte, []int)deprecated
- func (x *BinaryFile) GetContent() []byte
- func (x *BinaryFile) GetContentType() string
- func (x *BinaryFile) GetFileName() string
- func (*BinaryFile) ProtoMessage()
- func (x *BinaryFile) ProtoReflect() protoreflect.Message
- func (x *BinaryFile) Reset()
- func (x *BinaryFile) String() string
- func (m *BinaryFile) Validate() error
- func (m *BinaryFile) ValidateAll() error
- type BinaryFileMultiError
- type BinaryFileValidationError
Constants ¶
This section is empty.
Variables ¶
var File_clouway_rpc_fileserve_fileserve_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BinaryFile ¶
type BinaryFile struct { // The content-type to be provided. ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // The name of the file. FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // The binary content. Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
Binary is representing a Binary message that to the send to the backend once the data is available.
func (*BinaryFile) Descriptor
deprecated
func (*BinaryFile) Descriptor() ([]byte, []int)
Deprecated: Use BinaryFile.ProtoReflect.Descriptor instead.
func (*BinaryFile) GetContent ¶
func (x *BinaryFile) GetContent() []byte
func (*BinaryFile) GetContentType ¶
func (x *BinaryFile) GetContentType() string
func (*BinaryFile) GetFileName ¶
func (x *BinaryFile) GetFileName() string
func (*BinaryFile) ProtoMessage ¶
func (*BinaryFile) ProtoMessage()
func (*BinaryFile) ProtoReflect ¶
func (x *BinaryFile) ProtoReflect() protoreflect.Message
func (*BinaryFile) Reset ¶
func (x *BinaryFile) Reset()
func (*BinaryFile) String ¶
func (x *BinaryFile) String() string
func (*BinaryFile) Validate ¶
func (m *BinaryFile) Validate() error
Validate checks the field values on BinaryFile 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 (*BinaryFile) ValidateAll ¶
func (m *BinaryFile) ValidateAll() error
ValidateAll checks the field values on BinaryFile 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 BinaryFileMultiError, or nil if none found.
type BinaryFileMultiError ¶
type BinaryFileMultiError []error
BinaryFileMultiError is an error wrapping multiple validation errors returned by BinaryFile.ValidateAll() if the designated constraints aren't met.
func (BinaryFileMultiError) AllErrors ¶
func (m BinaryFileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BinaryFileMultiError) Error ¶
func (m BinaryFileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BinaryFileValidationError ¶
type BinaryFileValidationError struct {
// contains filtered or unexported fields
}
BinaryFileValidationError is the validation error returned by BinaryFile.Validate if the designated constraints aren't met.
func (BinaryFileValidationError) Cause ¶
func (e BinaryFileValidationError) Cause() error
Cause function returns cause value.
func (BinaryFileValidationError) Error ¶
func (e BinaryFileValidationError) Error() string
Error satisfies the builtin error interface
func (BinaryFileValidationError) ErrorName ¶
func (e BinaryFileValidationError) ErrorName() string
ErrorName returns error name.
func (BinaryFileValidationError) Field ¶
func (e BinaryFileValidationError) Field() string
Field function returns field value.
func (BinaryFileValidationError) Key ¶
func (e BinaryFileValidationError) Key() bool
Key function returns key value.
func (BinaryFileValidationError) Reason ¶
func (e BinaryFileValidationError) Reason() string
Reason function returns reason value.