Documentation ¶
Index ¶
- Variables
- type GetListReq
- func (*GetListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetListReq) GetLimit() int32
- func (x *GetListReq) GetStart() int32
- func (*GetListReq) ProtoMessage()
- func (x *GetListReq) ProtoReflect() protoreflect.Message
- func (x *GetListReq) Reset()
- func (x *GetListReq) String() string
- func (m *GetListReq) Validate() error
- func (m *GetListReq) ValidateAll() error
- type GetListReqMultiError
- type GetListReqValidationError
- type GetListRsp
- func (*GetListRsp) Descriptor() ([]byte, []int)deprecated
- func (x *GetListRsp) GetIsEnd() bool
- func (x *GetListRsp) GetTotal() int64
- func (*GetListRsp) ProtoMessage()
- func (x *GetListRsp) ProtoReflect() protoreflect.Message
- func (x *GetListRsp) Reset()
- func (x *GetListRsp) String() string
- func (m *GetListRsp) Validate() error
- func (m *GetListRsp) ValidateAll() error
- type GetListRspMultiError
- type GetListRspValidationError
- type OperType
- type SetReq
- func (*SetReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetReq) GetISBN() string
- func (x *SetReq) GetType() OperType
- func (*SetReq) ProtoMessage()
- func (x *SetReq) ProtoReflect() protoreflect.Message
- func (x *SetReq) Reset()
- func (x *SetReq) String() string
- func (m *SetReq) Validate() error
- func (m *SetReq) ValidateAll() error
- type SetReqMultiError
- type SetReqValidationError
- type SetRsp
- func (*SetRsp) Descriptor() ([]byte, []int)deprecated
- func (x *SetRsp) GetDownloadUrl() string
- func (*SetRsp) ProtoMessage()
- func (x *SetRsp) ProtoReflect() protoreflect.Message
- func (x *SetRsp) Reset()
- func (x *SetRsp) String() string
- func (m *SetRsp) Validate() error
- func (m *SetRsp) ValidateAll() error
- type SetRspMultiError
- type SetRspValidationError
Constants ¶
This section is empty.
Variables ¶
var ( OperType_name = map[int32]string{ 0: "OPERTYPE_UNKNOWN", 1: "OPERTYPE_UPLOAD", 2: "OPERTYPE_DOWNLOAD", } OperType_value = map[string]int32{ "OPERTYPE_UNKNOWN": 0, "OPERTYPE_UPLOAD": 1, "OPERTYPE_DOWNLOAD": 2, } )
Enum value maps for OperType.
var File_cos_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GetListReq ¶
type GetListReq struct { Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*GetListReq) Descriptor
deprecated
func (*GetListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetListReq.ProtoReflect.Descriptor instead.
func (*GetListReq) GetLimit ¶
func (x *GetListReq) GetLimit() int32
func (*GetListReq) GetStart ¶
func (x *GetListReq) GetStart() int32
func (*GetListReq) ProtoMessage ¶
func (*GetListReq) ProtoMessage()
func (*GetListReq) ProtoReflect ¶
func (x *GetListReq) ProtoReflect() protoreflect.Message
func (*GetListReq) Reset ¶
func (x *GetListReq) Reset()
func (*GetListReq) String ¶
func (x *GetListReq) String() string
func (*GetListReq) Validate ¶
func (m *GetListReq) Validate() error
Validate checks the field values on GetListReq 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 (*GetListReq) ValidateAll ¶
func (m *GetListReq) ValidateAll() error
ValidateAll checks the field values on GetListReq 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 GetListReqMultiError, or nil if none found.
type GetListReqMultiError ¶
type GetListReqMultiError []error
GetListReqMultiError is an error wrapping multiple validation errors returned by GetListReq.ValidateAll() if the designated constraints aren't met.
func (GetListReqMultiError) AllErrors ¶
func (m GetListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetListReqMultiError) Error ¶
func (m GetListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetListReqValidationError ¶
type GetListReqValidationError struct {
// contains filtered or unexported fields
}
GetListReqValidationError is the validation error returned by GetListReq.Validate if the designated constraints aren't met.
func (GetListReqValidationError) Cause ¶
func (e GetListReqValidationError) Cause() error
Cause function returns cause value.
func (GetListReqValidationError) Error ¶
func (e GetListReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetListReqValidationError) ErrorName ¶
func (e GetListReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetListReqValidationError) Field ¶
func (e GetListReqValidationError) Field() string
Field function returns field value.
func (GetListReqValidationError) Key ¶
func (e GetListReqValidationError) Key() bool
Key function returns key value.
func (GetListReqValidationError) Reason ¶
func (e GetListReqValidationError) Reason() string
Reason function returns reason value.
type GetListRsp ¶
type GetListRsp struct { IsEnd bool `protobuf:"varint,1,opt,name=is_end,json=isEnd,proto3" json:"is_end,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*GetListRsp) Descriptor
deprecated
func (*GetListRsp) Descriptor() ([]byte, []int)
Deprecated: Use GetListRsp.ProtoReflect.Descriptor instead.
func (*GetListRsp) GetIsEnd ¶
func (x *GetListRsp) GetIsEnd() bool
func (*GetListRsp) GetTotal ¶
func (x *GetListRsp) GetTotal() int64
func (*GetListRsp) ProtoMessage ¶
func (*GetListRsp) ProtoMessage()
func (*GetListRsp) ProtoReflect ¶
func (x *GetListRsp) ProtoReflect() protoreflect.Message
func (*GetListRsp) Reset ¶
func (x *GetListRsp) Reset()
func (*GetListRsp) String ¶
func (x *GetListRsp) String() string
func (*GetListRsp) Validate ¶
func (m *GetListRsp) Validate() error
Validate checks the field values on GetListRsp 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 (*GetListRsp) ValidateAll ¶
func (m *GetListRsp) ValidateAll() error
ValidateAll checks the field values on GetListRsp 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 GetListRspMultiError, or nil if none found.
type GetListRspMultiError ¶
type GetListRspMultiError []error
GetListRspMultiError is an error wrapping multiple validation errors returned by GetListRsp.ValidateAll() if the designated constraints aren't met.
func (GetListRspMultiError) AllErrors ¶
func (m GetListRspMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetListRspMultiError) Error ¶
func (m GetListRspMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetListRspValidationError ¶
type GetListRspValidationError struct {
// contains filtered or unexported fields
}
GetListRspValidationError is the validation error returned by GetListRsp.Validate if the designated constraints aren't met.
func (GetListRspValidationError) Cause ¶
func (e GetListRspValidationError) Cause() error
Cause function returns cause value.
func (GetListRspValidationError) Error ¶
func (e GetListRspValidationError) Error() string
Error satisfies the builtin error interface
func (GetListRspValidationError) ErrorName ¶
func (e GetListRspValidationError) ErrorName() string
ErrorName returns error name.
func (GetListRspValidationError) Field ¶
func (e GetListRspValidationError) Field() string
Field function returns field value.
func (GetListRspValidationError) Key ¶
func (e GetListRspValidationError) Key() bool
Key function returns key value.
func (GetListRspValidationError) Reason ¶
func (e GetListRspValidationError) Reason() string
Reason function returns reason value.
type OperType ¶
type OperType int32
func (OperType) Descriptor ¶
func (OperType) Descriptor() protoreflect.EnumDescriptor
func (OperType) EnumDescriptor
deprecated
func (OperType) Number ¶
func (x OperType) Number() protoreflect.EnumNumber
func (OperType) Type ¶
func (OperType) Type() protoreflect.EnumType
type SetReq ¶
type SetReq struct { ISBN string `protobuf:"bytes,1,opt,name=ISBN,proto3" json:"ISBN,omitempty"` Type OperType `protobuf:"varint,2,opt,name=type,proto3,enum=cos.OperType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*SetReq) Descriptor
deprecated
func (*SetReq) ProtoMessage ¶
func (*SetReq) ProtoMessage()
func (*SetReq) ProtoReflect ¶
func (x *SetReq) ProtoReflect() protoreflect.Message
func (*SetReq) Validate ¶
Validate checks the field values on SetReq 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 (*SetReq) ValidateAll ¶
ValidateAll checks the field values on SetReq 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 SetReqMultiError, or nil if none found.
type SetReqMultiError ¶
type SetReqMultiError []error
SetReqMultiError is an error wrapping multiple validation errors returned by SetReq.ValidateAll() if the designated constraints aren't met.
func (SetReqMultiError) AllErrors ¶
func (m SetReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetReqMultiError) Error ¶
func (m SetReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetReqValidationError ¶
type SetReqValidationError struct {
// contains filtered or unexported fields
}
SetReqValidationError is the validation error returned by SetReq.Validate if the designated constraints aren't met.
func (SetReqValidationError) Cause ¶
func (e SetReqValidationError) Cause() error
Cause function returns cause value.
func (SetReqValidationError) Error ¶
func (e SetReqValidationError) Error() string
Error satisfies the builtin error interface
func (SetReqValidationError) ErrorName ¶
func (e SetReqValidationError) ErrorName() string
ErrorName returns error name.
func (SetReqValidationError) Field ¶
func (e SetReqValidationError) Field() string
Field function returns field value.
func (SetReqValidationError) Key ¶
func (e SetReqValidationError) Key() bool
Key function returns key value.
func (SetReqValidationError) Reason ¶
func (e SetReqValidationError) Reason() string
Reason function returns reason value.
type SetRsp ¶
type SetRsp struct { DownloadUrl string `protobuf:"bytes,1,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"` // contains filtered or unexported fields }
func (*SetRsp) Descriptor
deprecated
func (*SetRsp) GetDownloadUrl ¶
func (*SetRsp) ProtoMessage ¶
func (*SetRsp) ProtoMessage()
func (*SetRsp) ProtoReflect ¶
func (x *SetRsp) ProtoReflect() protoreflect.Message
func (*SetRsp) Validate ¶
Validate checks the field values on SetRsp 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 (*SetRsp) ValidateAll ¶
ValidateAll checks the field values on SetRsp 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 SetRspMultiError, or nil if none found.
type SetRspMultiError ¶
type SetRspMultiError []error
SetRspMultiError is an error wrapping multiple validation errors returned by SetRsp.ValidateAll() if the designated constraints aren't met.
func (SetRspMultiError) AllErrors ¶
func (m SetRspMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetRspMultiError) Error ¶
func (m SetRspMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetRspValidationError ¶
type SetRspValidationError struct {
// contains filtered or unexported fields
}
SetRspValidationError is the validation error returned by SetRsp.Validate if the designated constraints aren't met.
func (SetRspValidationError) Cause ¶
func (e SetRspValidationError) Cause() error
Cause function returns cause value.
func (SetRspValidationError) Error ¶
func (e SetRspValidationError) Error() string
Error satisfies the builtin error interface
func (SetRspValidationError) ErrorName ¶
func (e SetRspValidationError) ErrorName() string
ErrorName returns error name.
func (SetRspValidationError) Field ¶
func (e SetRspValidationError) Field() string
Field function returns field value.
func (SetRspValidationError) Key ¶
func (e SetRspValidationError) Key() bool
Key function returns key value.
func (SetRspValidationError) Reason ¶
func (e SetRspValidationError) Reason() string
Reason function returns reason value.