Documentation ¶
Index ¶
- Variables
- type Anime
- func (*Anime) Descriptor() ([]byte, []int)deprecated
- func (x *Anime) GetEpisodes() string
- func (x *Anime) GetGenres() []string
- func (x *Anime) GetImage() string
- func (x *Anime) GetRating() float32
- func (x *Anime) GetStatus() string
- func (x *Anime) GetSynonyms() []string
- func (x *Anime) GetTitle() string
- func (x *Anime) GetVoiceActing() []string
- func (*Anime) ProtoMessage()
- func (x *Anime) ProtoReflect() protoreflect.Message
- func (x *Anime) Reset()
- func (x *Anime) String() string
- func (m *Anime) Validate() error
- func (m *Anime) ValidateAll() error
- type AnimeMultiError
- type AnimeValidationError
Constants ¶
This section is empty.
Variables ¶
var File_scraper_model_v1_anime_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Anime ¶
type Anime struct { Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` Episodes string `protobuf:"bytes,4,opt,name=episodes,proto3" json:"episodes,omitempty"` Genres []string `protobuf:"bytes,5,rep,name=genres,proto3" json:"genres,omitempty"` VoiceActing []string `protobuf:"bytes,6,rep,name=voice_acting,json=voiceActing,proto3" json:"voice_acting,omitempty"` Synonyms []string `protobuf:"bytes,7,rep,name=synonyms,proto3" json:"synonyms,omitempty"` Rating float32 `protobuf:"fixed32,8,opt,name=rating,proto3" json:"rating,omitempty"` // contains filtered or unexported fields }
func (*Anime) Descriptor
deprecated
func (*Anime) GetEpisodes ¶
func (*Anime) GetSynonyms ¶
func (*Anime) GetVoiceActing ¶
func (*Anime) ProtoMessage ¶
func (*Anime) ProtoMessage()
func (*Anime) ProtoReflect ¶
func (x *Anime) ProtoReflect() protoreflect.Message
func (*Anime) Validate ¶
Validate checks the field values on Anime 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 (*Anime) ValidateAll ¶
ValidateAll checks the field values on Anime 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 AnimeMultiError, or nil if none found.
type AnimeMultiError ¶
type AnimeMultiError []error
AnimeMultiError is an error wrapping multiple validation errors returned by Anime.ValidateAll() if the designated constraints aren't met.
func (AnimeMultiError) AllErrors ¶
func (m AnimeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AnimeMultiError) Error ¶
func (m AnimeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AnimeValidationError ¶
type AnimeValidationError struct {
// contains filtered or unexported fields
}
AnimeValidationError is the validation error returned by Anime.Validate if the designated constraints aren't met.
func (AnimeValidationError) Cause ¶
func (e AnimeValidationError) Cause() error
Cause function returns cause value.
func (AnimeValidationError) Error ¶
func (e AnimeValidationError) Error() string
Error satisfies the builtin error interface
func (AnimeValidationError) ErrorName ¶
func (e AnimeValidationError) ErrorName() string
ErrorName returns error name.
func (AnimeValidationError) Field ¶
func (e AnimeValidationError) Field() string
Field function returns field value.
func (AnimeValidationError) Key ¶
func (e AnimeValidationError) Key() bool
Key function returns key value.
func (AnimeValidationError) Reason ¶
func (e AnimeValidationError) Reason() string
Reason function returns reason value.