Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMovieRemoteServiceHTTPServer(s *http.Server, srv MovieRemoteServiceHTTPServer)
- func RegisterMovieRemoteServiceServer(s grpc.ServiceRegistrar, srv MovieRemoteServiceServer)
- type CreateMovieRequest
- func (*CreateMovieRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMovieRequest) GetName() string
- func (*CreateMovieRequest) ProtoMessage()
- func (x *CreateMovieRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMovieRequest) Reset()
- func (x *CreateMovieRequest) String() string
- func (m *CreateMovieRequest) Validate() error
- func (m *CreateMovieRequest) ValidateAll() error
- type CreateMovieRequestMultiError
- type CreateMovieRequestValidationError
- func (e CreateMovieRequestValidationError) Cause() error
- func (e CreateMovieRequestValidationError) Error() string
- func (e CreateMovieRequestValidationError) ErrorName() string
- func (e CreateMovieRequestValidationError) Field() string
- func (e CreateMovieRequestValidationError) Key() bool
- func (e CreateMovieRequestValidationError) Reason() string
- type FilterMovieRequest
- func (*FilterMovieRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FilterMovieRequest) GetId() int64
- func (x *FilterMovieRequest) GetPage() *api.Page
- func (x *FilterMovieRequest) GetType() string
- func (*FilterMovieRequest) ProtoMessage()
- func (x *FilterMovieRequest) ProtoReflect() protoreflect.Message
- func (x *FilterMovieRequest) Reset()
- func (x *FilterMovieRequest) String() string
- func (m *FilterMovieRequest) Validate() error
- func (m *FilterMovieRequest) ValidateAll() error
- type FilterMovieRequestMultiError
- type FilterMovieRequestValidationError
- func (e FilterMovieRequestValidationError) Cause() error
- func (e FilterMovieRequestValidationError) Error() string
- func (e FilterMovieRequestValidationError) ErrorName() string
- func (e FilterMovieRequestValidationError) Field() string
- func (e FilterMovieRequestValidationError) Key() bool
- func (e FilterMovieRequestValidationError) Reason() string
- type FindMovieRequest
- func (*FindMovieRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindMovieRequest) GetPage() *api.Page
- func (x *FindMovieRequest) GetSearch() string
- func (x *FindMovieRequest) GetSort() *api.Sort
- func (*FindMovieRequest) ProtoMessage()
- func (x *FindMovieRequest) ProtoReflect() protoreflect.Message
- func (x *FindMovieRequest) Reset()
- func (x *FindMovieRequest) String() string
- func (m *FindMovieRequest) Validate() error
- func (m *FindMovieRequest) ValidateAll() error
- type FindMovieRequestMultiError
- type FindMovieRequestValidationError
- func (e FindMovieRequestValidationError) Cause() error
- func (e FindMovieRequestValidationError) Error() string
- func (e FindMovieRequestValidationError) ErrorName() string
- func (e FindMovieRequestValidationError) Field() string
- func (e FindMovieRequestValidationError) Key() bool
- func (e FindMovieRequestValidationError) Reason() string
- type GetMovieRequest
- func (*GetMovieRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMovieRequest) GetId() int64
- func (*GetMovieRequest) ProtoMessage()
- func (x *GetMovieRequest) ProtoReflect() protoreflect.Message
- func (x *GetMovieRequest) Reset()
- func (x *GetMovieRequest) String() string
- func (m *GetMovieRequest) Validate() error
- func (m *GetMovieRequest) ValidateAll() error
- type GetMovieRequestMultiError
- type GetMovieRequestValidationError
- func (e GetMovieRequestValidationError) Cause() error
- func (e GetMovieRequestValidationError) Error() string
- func (e GetMovieRequestValidationError) ErrorName() string
- func (e GetMovieRequestValidationError) Field() string
- func (e GetMovieRequestValidationError) Key() bool
- func (e GetMovieRequestValidationError) Reason() string
- type MovieRemoteServiceClient
- type MovieRemoteServiceHTTPClient
- type MovieRemoteServiceHTTPClientImpl
- func (c *MovieRemoteServiceHTTPClientImpl) CreateMovie(ctx context.Context, in *CreateMovieRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *MovieRemoteServiceHTTPClientImpl) DeleteMovie(ctx context.Context, in *api.IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *MovieRemoteServiceHTTPClientImpl) FilterMovie(ctx context.Context, in *FilterMovieRequest, opts ...http.CallOption) (*SearchMovieResp, error)
- func (c *MovieRemoteServiceHTTPClientImpl) FindMovie(ctx context.Context, in *FindMovieRequest, opts ...http.CallOption) (*SearchMovieResp, error)
- func (c *MovieRemoteServiceHTTPClientImpl) GetMovie(ctx context.Context, in *GetMovieRequest, opts ...http.CallOption) (*MovieResp, error)
- func (c *MovieRemoteServiceHTTPClientImpl) NextToPlayMovies(ctx context.Context, in *NextToPlayMoviesRequest, opts ...http.CallOption) (*SearchMovieResp, error)
- func (c *MovieRemoteServiceHTTPClientImpl) UpdateMovie(ctx context.Context, in *UpdateMovieRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type MovieRemoteServiceHTTPServer
- type MovieRemoteServiceServer
- type MovieResp
- func (*MovieResp) Descriptor() ([]byte, []int)deprecated
- func (x *MovieResp) GetActors() []*actor.ActorResp
- func (x *MovieResp) GetCountry() string
- func (x *MovieResp) GetDownloaded() bool
- func (x *MovieResp) GetExt() string
- func (x *MovieResp) GetFileSize() int32
- func (x *MovieResp) GetFilename() string
- func (x *MovieResp) GetGenres() []*genre.GenreResp
- func (x *MovieResp) GetId() int64
- func (x *MovieResp) GetKeywords() []*keyword.KeywordResp
- func (x *MovieResp) GetLastPlayedPosition() int32
- func (x *MovieResp) GetLastPlayedTime() string
- func (x *MovieResp) GetOriginalTitle() string
- func (x *MovieResp) GetStatus() string
- func (x *MovieResp) GetStudios() []*studio.StudioResp
- func (x *MovieResp) GetSubtitles() []*subtitle.SubtitleResp
- func (x *MovieResp) GetTrailer() string
- func (x *MovieResp) GetUrl() string
- func (x *MovieResp) GetVoteAverage() float32
- func (x *MovieResp) GetVoteCount() int32
- func (*MovieResp) ProtoMessage()
- func (x *MovieResp) ProtoReflect() protoreflect.Message
- func (x *MovieResp) Reset()
- func (x *MovieResp) String() string
- func (m *MovieResp) Validate() error
- func (m *MovieResp) ValidateAll() error
- type MovieRespMultiError
- type MovieRespValidationError
- type NextToPlayMoviesRequest
- func (*NextToPlayMoviesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NextToPlayMoviesRequest) GetPage() *api.Page
- func (*NextToPlayMoviesRequest) ProtoMessage()
- func (x *NextToPlayMoviesRequest) ProtoReflect() protoreflect.Message
- func (x *NextToPlayMoviesRequest) Reset()
- func (x *NextToPlayMoviesRequest) String() string
- func (m *NextToPlayMoviesRequest) Validate() error
- func (m *NextToPlayMoviesRequest) ValidateAll() error
- type NextToPlayMoviesRequestMultiError
- type NextToPlayMoviesRequestValidationError
- func (e NextToPlayMoviesRequestValidationError) Cause() error
- func (e NextToPlayMoviesRequestValidationError) Error() string
- func (e NextToPlayMoviesRequestValidationError) ErrorName() string
- func (e NextToPlayMoviesRequestValidationError) Field() string
- func (e NextToPlayMoviesRequestValidationError) Key() bool
- func (e NextToPlayMoviesRequestValidationError) Reason() string
- type SearchMovieResp
- func (*SearchMovieResp) Descriptor() ([]byte, []int)deprecated
- func (x *SearchMovieResp) GetList() []*MovieResp
- func (x *SearchMovieResp) GetPage() *api.Page
- func (*SearchMovieResp) ProtoMessage()
- func (x *SearchMovieResp) ProtoReflect() protoreflect.Message
- func (x *SearchMovieResp) Reset()
- func (x *SearchMovieResp) String() string
- func (m *SearchMovieResp) Validate() error
- func (m *SearchMovieResp) ValidateAll() error
- type SearchMovieRespMultiError
- type SearchMovieRespValidationError
- func (e SearchMovieRespValidationError) Cause() error
- func (e SearchMovieRespValidationError) Error() string
- func (e SearchMovieRespValidationError) ErrorName() string
- func (e SearchMovieRespValidationError) Field() string
- func (e SearchMovieRespValidationError) Key() bool
- func (e SearchMovieRespValidationError) Reason() string
- type UnimplementedMovieRemoteServiceServer
- func (UnimplementedMovieRemoteServiceServer) CreateMovie(context.Context, *CreateMovieRequest) (*emptypb.Empty, error)
- func (UnimplementedMovieRemoteServiceServer) DeleteMovie(context.Context, *api.IdsRequest) (*emptypb.Empty, error)
- func (UnimplementedMovieRemoteServiceServer) FilterMovie(context.Context, *FilterMovieRequest) (*SearchMovieResp, error)
- func (UnimplementedMovieRemoteServiceServer) FindMovie(context.Context, *FindMovieRequest) (*SearchMovieResp, error)
- func (UnimplementedMovieRemoteServiceServer) GetMovie(context.Context, *GetMovieRequest) (*MovieResp, error)
- func (UnimplementedMovieRemoteServiceServer) NextToPlayMovies(context.Context, *NextToPlayMoviesRequest) (*SearchMovieResp, error)
- func (UnimplementedMovieRemoteServiceServer) UpdateMovie(context.Context, *UpdateMovieRequest) (*emptypb.Empty, error)
- type UnsafeMovieRemoteServiceServer
- type UpdateMovieRequest
- func (*UpdateMovieRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMovieRequest) GetId() int64
- func (x *UpdateMovieRequest) GetName() string
- func (*UpdateMovieRequest) ProtoMessage()
- func (x *UpdateMovieRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMovieRequest) Reset()
- func (x *UpdateMovieRequest) String() string
- func (m *UpdateMovieRequest) Validate() error
- func (m *UpdateMovieRequest) ValidateAll() error
- type UpdateMovieRequestMultiError
- type UpdateMovieRequestValidationError
- func (e UpdateMovieRequestValidationError) Cause() error
- func (e UpdateMovieRequestValidationError) Error() string
- func (e UpdateMovieRequestValidationError) ErrorName() string
- func (e UpdateMovieRequestValidationError) Field() string
- func (e UpdateMovieRequestValidationError) Key() bool
- func (e UpdateMovieRequestValidationError) Reason() string
Constants ¶
const ( MovieRemoteService_CreateMovie_FullMethodName = "/gnboot.MovieRemoteService/CreateMovie" MovieRemoteService_GetMovie_FullMethodName = "/gnboot.MovieRemoteService/GetMovie" MovieRemoteService_FindMovie_FullMethodName = "/gnboot.MovieRemoteService/FindMovie" MovieRemoteService_FilterMovie_FullMethodName = "/gnboot.MovieRemoteService/FilterMovie" MovieRemoteService_NextToPlayMovies_FullMethodName = "/gnboot.MovieRemoteService/NextToPlayMovies" MovieRemoteService_UpdateMovie_FullMethodName = "/gnboot.MovieRemoteService/UpdateMovie" MovieRemoteService_DeleteMovie_FullMethodName = "/gnboot.MovieRemoteService/DeleteMovie" )
const OperationMovieRemoteServiceCreateMovie = "/gnboot.MovieRemoteService/CreateMovie"
const OperationMovieRemoteServiceDeleteMovie = "/gnboot.MovieRemoteService/DeleteMovie"
const OperationMovieRemoteServiceFilterMovie = "/gnboot.MovieRemoteService/FilterMovie"
const OperationMovieRemoteServiceFindMovie = "/gnboot.MovieRemoteService/FindMovie"
const OperationMovieRemoteServiceGetMovie = "/gnboot.MovieRemoteService/GetMovie"
const OperationMovieRemoteServiceNextToPlayMovies = "/gnboot.MovieRemoteService/NextToPlayMovies"
const OperationMovieRemoteServiceUpdateMovie = "/gnboot.MovieRemoteService/UpdateMovie"
Variables ¶
var File_proto_movie_proto protoreflect.FileDescriptor
var MovieRemoteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gnboot.MovieRemoteService", HandlerType: (*MovieRemoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateMovie", Handler: _MovieRemoteService_CreateMovie_Handler, }, { MethodName: "GetMovie", Handler: _MovieRemoteService_GetMovie_Handler, }, { MethodName: "FindMovie", Handler: _MovieRemoteService_FindMovie_Handler, }, { MethodName: "FilterMovie", Handler: _MovieRemoteService_FilterMovie_Handler, }, { MethodName: "NextToPlayMovies", Handler: _MovieRemoteService_NextToPlayMovies_Handler, }, { MethodName: "UpdateMovie", Handler: _MovieRemoteService_UpdateMovie_Handler, }, { MethodName: "DeleteMovie", Handler: _MovieRemoteService_DeleteMovie_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/movie.proto", }
MovieRemoteService_ServiceDesc is the grpc.ServiceDesc for MovieRemoteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMovieRemoteServiceHTTPServer ¶
func RegisterMovieRemoteServiceHTTPServer(s *http.Server, srv MovieRemoteServiceHTTPServer)
func RegisterMovieRemoteServiceServer ¶
func RegisterMovieRemoteServiceServer(s grpc.ServiceRegistrar, srv MovieRemoteServiceServer)
Types ¶
type CreateMovieRequest ¶
type CreateMovieRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CreateMovieRequest) Descriptor
deprecated
func (*CreateMovieRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMovieRequest.ProtoReflect.Descriptor instead.
func (*CreateMovieRequest) GetName ¶
func (x *CreateMovieRequest) GetName() string
func (*CreateMovieRequest) ProtoMessage ¶
func (*CreateMovieRequest) ProtoMessage()
func (*CreateMovieRequest) ProtoReflect ¶
func (x *CreateMovieRequest) ProtoReflect() protoreflect.Message
func (*CreateMovieRequest) Reset ¶
func (x *CreateMovieRequest) Reset()
func (*CreateMovieRequest) String ¶
func (x *CreateMovieRequest) String() string
func (*CreateMovieRequest) Validate ¶
func (m *CreateMovieRequest) Validate() error
Validate checks the field values on CreateMovieRequest 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 (*CreateMovieRequest) ValidateAll ¶
func (m *CreateMovieRequest) ValidateAll() error
ValidateAll checks the field values on CreateMovieRequest 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 CreateMovieRequestMultiError, or nil if none found.
type CreateMovieRequestMultiError ¶
type CreateMovieRequestMultiError []error
CreateMovieRequestMultiError is an error wrapping multiple validation errors returned by CreateMovieRequest.ValidateAll() if the designated constraints aren't met.
func (CreateMovieRequestMultiError) AllErrors ¶
func (m CreateMovieRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateMovieRequestMultiError) Error ¶
func (m CreateMovieRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateMovieRequestValidationError ¶
type CreateMovieRequestValidationError struct {
// contains filtered or unexported fields
}
CreateMovieRequestValidationError is the validation error returned by CreateMovieRequest.Validate if the designated constraints aren't met.
func (CreateMovieRequestValidationError) Cause ¶
func (e CreateMovieRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateMovieRequestValidationError) Error ¶
func (e CreateMovieRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateMovieRequestValidationError) ErrorName ¶
func (e CreateMovieRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateMovieRequestValidationError) Field ¶
func (e CreateMovieRequestValidationError) Field() string
Field function returns field value.
func (CreateMovieRequestValidationError) Key ¶
func (e CreateMovieRequestValidationError) Key() bool
Key function returns key value.
func (CreateMovieRequestValidationError) Reason ¶
func (e CreateMovieRequestValidationError) Reason() string
Reason function returns reason value.
type FilterMovieRequest ¶
type FilterMovieRequest struct { Page *api.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*FilterMovieRequest) Descriptor
deprecated
func (*FilterMovieRequest) Descriptor() ([]byte, []int)
Deprecated: Use FilterMovieRequest.ProtoReflect.Descriptor instead.
func (*FilterMovieRequest) GetId ¶
func (x *FilterMovieRequest) GetId() int64
func (*FilterMovieRequest) GetPage ¶
func (x *FilterMovieRequest) GetPage() *api.Page
func (*FilterMovieRequest) GetType ¶
func (x *FilterMovieRequest) GetType() string
func (*FilterMovieRequest) ProtoMessage ¶
func (*FilterMovieRequest) ProtoMessage()
func (*FilterMovieRequest) ProtoReflect ¶
func (x *FilterMovieRequest) ProtoReflect() protoreflect.Message
func (*FilterMovieRequest) Reset ¶
func (x *FilterMovieRequest) Reset()
func (*FilterMovieRequest) String ¶
func (x *FilterMovieRequest) String() string
func (*FilterMovieRequest) Validate ¶
func (m *FilterMovieRequest) Validate() error
Validate checks the field values on FilterMovieRequest 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 (*FilterMovieRequest) ValidateAll ¶
func (m *FilterMovieRequest) ValidateAll() error
ValidateAll checks the field values on FilterMovieRequest 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 FilterMovieRequestMultiError, or nil if none found.
type FilterMovieRequestMultiError ¶
type FilterMovieRequestMultiError []error
FilterMovieRequestMultiError is an error wrapping multiple validation errors returned by FilterMovieRequest.ValidateAll() if the designated constraints aren't met.
func (FilterMovieRequestMultiError) AllErrors ¶
func (m FilterMovieRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FilterMovieRequestMultiError) Error ¶
func (m FilterMovieRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FilterMovieRequestValidationError ¶
type FilterMovieRequestValidationError struct {
// contains filtered or unexported fields
}
FilterMovieRequestValidationError is the validation error returned by FilterMovieRequest.Validate if the designated constraints aren't met.
func (FilterMovieRequestValidationError) Cause ¶
func (e FilterMovieRequestValidationError) Cause() error
Cause function returns cause value.
func (FilterMovieRequestValidationError) Error ¶
func (e FilterMovieRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FilterMovieRequestValidationError) ErrorName ¶
func (e FilterMovieRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FilterMovieRequestValidationError) Field ¶
func (e FilterMovieRequestValidationError) Field() string
Field function returns field value.
func (FilterMovieRequestValidationError) Key ¶
func (e FilterMovieRequestValidationError) Key() bool
Key function returns key value.
func (FilterMovieRequestValidationError) Reason ¶
func (e FilterMovieRequestValidationError) Reason() string
Reason function returns reason value.
type FindMovieRequest ¶
type FindMovieRequest struct { Page *api.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` Search *string `protobuf:"bytes,2,opt,name=search,proto3,oneof" json:"search,omitempty"` Sort *api.Sort `protobuf:"bytes,3,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // contains filtered or unexported fields }
func (*FindMovieRequest) Descriptor
deprecated
func (*FindMovieRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindMovieRequest.ProtoReflect.Descriptor instead.
func (*FindMovieRequest) GetPage ¶
func (x *FindMovieRequest) GetPage() *api.Page
func (*FindMovieRequest) GetSearch ¶
func (x *FindMovieRequest) GetSearch() string
func (*FindMovieRequest) GetSort ¶
func (x *FindMovieRequest) GetSort() *api.Sort
func (*FindMovieRequest) ProtoMessage ¶
func (*FindMovieRequest) ProtoMessage()
func (*FindMovieRequest) ProtoReflect ¶
func (x *FindMovieRequest) ProtoReflect() protoreflect.Message
func (*FindMovieRequest) Reset ¶
func (x *FindMovieRequest) Reset()
func (*FindMovieRequest) String ¶
func (x *FindMovieRequest) String() string
func (*FindMovieRequest) Validate ¶
func (m *FindMovieRequest) Validate() error
Validate checks the field values on FindMovieRequest 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 (*FindMovieRequest) ValidateAll ¶
func (m *FindMovieRequest) ValidateAll() error
ValidateAll checks the field values on FindMovieRequest 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 FindMovieRequestMultiError, or nil if none found.
type FindMovieRequestMultiError ¶
type FindMovieRequestMultiError []error
FindMovieRequestMultiError is an error wrapping multiple validation errors returned by FindMovieRequest.ValidateAll() if the designated constraints aren't met.
func (FindMovieRequestMultiError) AllErrors ¶
func (m FindMovieRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindMovieRequestMultiError) Error ¶
func (m FindMovieRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindMovieRequestValidationError ¶
type FindMovieRequestValidationError struct {
// contains filtered or unexported fields
}
FindMovieRequestValidationError is the validation error returned by FindMovieRequest.Validate if the designated constraints aren't met.
func (FindMovieRequestValidationError) Cause ¶
func (e FindMovieRequestValidationError) Cause() error
Cause function returns cause value.
func (FindMovieRequestValidationError) Error ¶
func (e FindMovieRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindMovieRequestValidationError) ErrorName ¶
func (e FindMovieRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindMovieRequestValidationError) Field ¶
func (e FindMovieRequestValidationError) Field() string
Field function returns field value.
func (FindMovieRequestValidationError) Key ¶
func (e FindMovieRequestValidationError) Key() bool
Key function returns key value.
func (FindMovieRequestValidationError) Reason ¶
func (e FindMovieRequestValidationError) Reason() string
Reason function returns reason value.
type GetMovieRequest ¶
type GetMovieRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetMovieRequest) Descriptor
deprecated
func (*GetMovieRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMovieRequest.ProtoReflect.Descriptor instead.
func (*GetMovieRequest) GetId ¶
func (x *GetMovieRequest) GetId() int64
func (*GetMovieRequest) ProtoMessage ¶
func (*GetMovieRequest) ProtoMessage()
func (*GetMovieRequest) ProtoReflect ¶
func (x *GetMovieRequest) ProtoReflect() protoreflect.Message
func (*GetMovieRequest) Reset ¶
func (x *GetMovieRequest) Reset()
func (*GetMovieRequest) String ¶
func (x *GetMovieRequest) String() string
func (*GetMovieRequest) Validate ¶
func (m *GetMovieRequest) Validate() error
Validate checks the field values on GetMovieRequest 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 (*GetMovieRequest) ValidateAll ¶
func (m *GetMovieRequest) ValidateAll() error
ValidateAll checks the field values on GetMovieRequest 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 GetMovieRequestMultiError, or nil if none found.
type GetMovieRequestMultiError ¶
type GetMovieRequestMultiError []error
GetMovieRequestMultiError is an error wrapping multiple validation errors returned by GetMovieRequest.ValidateAll() if the designated constraints aren't met.
func (GetMovieRequestMultiError) AllErrors ¶
func (m GetMovieRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMovieRequestMultiError) Error ¶
func (m GetMovieRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMovieRequestValidationError ¶
type GetMovieRequestValidationError struct {
// contains filtered or unexported fields
}
GetMovieRequestValidationError is the validation error returned by GetMovieRequest.Validate if the designated constraints aren't met.
func (GetMovieRequestValidationError) Cause ¶
func (e GetMovieRequestValidationError) Cause() error
Cause function returns cause value.
func (GetMovieRequestValidationError) Error ¶
func (e GetMovieRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetMovieRequestValidationError) ErrorName ¶
func (e GetMovieRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetMovieRequestValidationError) Field ¶
func (e GetMovieRequestValidationError) Field() string
Field function returns field value.
func (GetMovieRequestValidationError) Key ¶
func (e GetMovieRequestValidationError) Key() bool
Key function returns key value.
func (GetMovieRequestValidationError) Reason ¶
func (e GetMovieRequestValidationError) Reason() string
Reason function returns reason value.
type MovieRemoteServiceClient ¶
type MovieRemoteServiceClient interface { // create one Movie record CreateMovie(ctx context.Context, in *CreateMovieRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetMovie(ctx context.Context, in *GetMovieRequest, opts ...grpc.CallOption) (*MovieResp, error) FindMovie(ctx context.Context, in *FindMovieRequest, opts ...grpc.CallOption) (*SearchMovieResp, error) FilterMovie(ctx context.Context, in *FilterMovieRequest, opts ...grpc.CallOption) (*SearchMovieResp, error) NextToPlayMovies(ctx context.Context, in *NextToPlayMoviesRequest, opts ...grpc.CallOption) (*SearchMovieResp, error) UpdateMovie(ctx context.Context, in *UpdateMovieRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteMovie(ctx context.Context, in *api.IdsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
MovieRemoteServiceClient is the client API for MovieRemoteService 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 NewMovieRemoteServiceClient ¶
func NewMovieRemoteServiceClient(cc grpc.ClientConnInterface) MovieRemoteServiceClient
type MovieRemoteServiceHTTPClient ¶
type MovieRemoteServiceHTTPClient interface { CreateMovie(ctx context.Context, req *CreateMovieRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteMovie(ctx context.Context, req *api.IdsRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) FilterMovie(ctx context.Context, req *FilterMovieRequest, opts ...http.CallOption) (rsp *SearchMovieResp, err error) FindMovie(ctx context.Context, req *FindMovieRequest, opts ...http.CallOption) (rsp *SearchMovieResp, err error) GetMovie(ctx context.Context, req *GetMovieRequest, opts ...http.CallOption) (rsp *MovieResp, err error) NextToPlayMovies(ctx context.Context, req *NextToPlayMoviesRequest, opts ...http.CallOption) (rsp *SearchMovieResp, err error) UpdateMovie(ctx context.Context, req *UpdateMovieRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewMovieRemoteServiceHTTPClient ¶
func NewMovieRemoteServiceHTTPClient(client *http.Client) MovieRemoteServiceHTTPClient
type MovieRemoteServiceHTTPClientImpl ¶
type MovieRemoteServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*MovieRemoteServiceHTTPClientImpl) CreateMovie ¶
func (c *MovieRemoteServiceHTTPClientImpl) CreateMovie(ctx context.Context, in *CreateMovieRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*MovieRemoteServiceHTTPClientImpl) DeleteMovie ¶
func (c *MovieRemoteServiceHTTPClientImpl) DeleteMovie(ctx context.Context, in *api.IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*MovieRemoteServiceHTTPClientImpl) FilterMovie ¶
func (c *MovieRemoteServiceHTTPClientImpl) FilterMovie(ctx context.Context, in *FilterMovieRequest, opts ...http.CallOption) (*SearchMovieResp, error)
func (*MovieRemoteServiceHTTPClientImpl) FindMovie ¶
func (c *MovieRemoteServiceHTTPClientImpl) FindMovie(ctx context.Context, in *FindMovieRequest, opts ...http.CallOption) (*SearchMovieResp, error)
func (*MovieRemoteServiceHTTPClientImpl) GetMovie ¶
func (c *MovieRemoteServiceHTTPClientImpl) GetMovie(ctx context.Context, in *GetMovieRequest, opts ...http.CallOption) (*MovieResp, error)
func (*MovieRemoteServiceHTTPClientImpl) NextToPlayMovies ¶ added in v1.0.10
func (c *MovieRemoteServiceHTTPClientImpl) NextToPlayMovies(ctx context.Context, in *NextToPlayMoviesRequest, opts ...http.CallOption) (*SearchMovieResp, error)
func (*MovieRemoteServiceHTTPClientImpl) UpdateMovie ¶
func (c *MovieRemoteServiceHTTPClientImpl) UpdateMovie(ctx context.Context, in *UpdateMovieRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type MovieRemoteServiceHTTPServer ¶
type MovieRemoteServiceHTTPServer interface { // CreateMovie create one Movie record CreateMovie(context.Context, *CreateMovieRequest) (*emptypb.Empty, error) DeleteMovie(context.Context, *api.IdsRequest) (*emptypb.Empty, error) FilterMovie(context.Context, *FilterMovieRequest) (*SearchMovieResp, error) FindMovie(context.Context, *FindMovieRequest) (*SearchMovieResp, error) GetMovie(context.Context, *GetMovieRequest) (*MovieResp, error) NextToPlayMovies(context.Context, *NextToPlayMoviesRequest) (*SearchMovieResp, error) UpdateMovie(context.Context, *UpdateMovieRequest) (*emptypb.Empty, error) }
type MovieRemoteServiceServer ¶
type MovieRemoteServiceServer interface { // create one Movie record CreateMovie(context.Context, *CreateMovieRequest) (*emptypb.Empty, error) GetMovie(context.Context, *GetMovieRequest) (*MovieResp, error) FindMovie(context.Context, *FindMovieRequest) (*SearchMovieResp, error) FilterMovie(context.Context, *FilterMovieRequest) (*SearchMovieResp, error) NextToPlayMovies(context.Context, *NextToPlayMoviesRequest) (*SearchMovieResp, error) UpdateMovie(context.Context, *UpdateMovieRequest) (*emptypb.Empty, error) DeleteMovie(context.Context, *api.IdsRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
MovieRemoteServiceServer is the server API for MovieRemoteService service. All implementations must embed UnimplementedMovieRemoteServiceServer for forward compatibility
type MovieResp ¶
type MovieResp struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OriginalTitle string `protobuf:"bytes,2,opt,name=originalTitle,proto3" json:"originalTitle,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` VoteAverage float32 `protobuf:"fixed32,4,opt,name=voteAverage,proto3" json:"voteAverage,omitempty"` VoteCount int32 `protobuf:"varint,5,opt,name=voteCount,proto3" json:"voteCount,omitempty"` Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"` Trailer string `protobuf:"bytes,7,opt,name=trailer,proto3" json:"trailer,omitempty"` Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"` Downloaded bool `protobuf:"varint,9,opt,name=downloaded,proto3" json:"downloaded,omitempty"` FileSize int32 `protobuf:"varint,10,opt,name=fileSize,proto3" json:"fileSize,omitempty"` Filename string `protobuf:"bytes,11,opt,name=filename,proto3" json:"filename,omitempty"` Ext string `protobuf:"bytes,12,opt,name=ext,proto3" json:"ext,omitempty"` Genres []*genre.GenreResp `protobuf:"bytes,13,rep,name=genres,proto3" json:"genres,omitempty"` Studios []*studio.StudioResp `protobuf:"bytes,14,rep,name=studios,proto3" json:"studios,omitempty"` Keywords []*keyword.KeywordResp `protobuf:"bytes,15,rep,name=keywords,proto3" json:"keywords,omitempty"` LastPlayedPosition int32 `protobuf:"varint,16,opt,name=lastPlayedPosition,proto3" json:"lastPlayedPosition,omitempty"` LastPlayedTime string `protobuf:"bytes,17,opt,name=lastPlayedTime,proto3" json:"lastPlayedTime,omitempty"` Subtitles []*subtitle.SubtitleResp `protobuf:"bytes,18,rep,name=subtitles,proto3" json:"subtitles,omitempty"` Actors []*actor.ActorResp `protobuf:"bytes,19,rep,name=actors,proto3" json:"actors,omitempty"` // contains filtered or unexported fields }
func (*MovieResp) Descriptor
deprecated
func (*MovieResp) GetCountry ¶
func (*MovieResp) GetDownloaded ¶
func (*MovieResp) GetFileSize ¶
func (*MovieResp) GetFilename ¶
func (*MovieResp) GetKeywords ¶
func (x *MovieResp) GetKeywords() []*keyword.KeywordResp
func (*MovieResp) GetLastPlayedPosition ¶
func (*MovieResp) GetLastPlayedTime ¶
func (*MovieResp) GetOriginalTitle ¶
func (*MovieResp) GetStudios ¶
func (x *MovieResp) GetStudios() []*studio.StudioResp
func (*MovieResp) GetSubtitles ¶
func (x *MovieResp) GetSubtitles() []*subtitle.SubtitleResp
func (*MovieResp) GetTrailer ¶
func (*MovieResp) GetVoteAverage ¶
func (*MovieResp) GetVoteCount ¶
func (*MovieResp) ProtoMessage ¶
func (*MovieResp) ProtoMessage()
func (*MovieResp) ProtoReflect ¶
func (x *MovieResp) ProtoReflect() protoreflect.Message
func (*MovieResp) Validate ¶
Validate checks the field values on MovieResp 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 (*MovieResp) ValidateAll ¶
ValidateAll checks the field values on MovieResp 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 MovieRespMultiError, or nil if none found.
type MovieRespMultiError ¶
type MovieRespMultiError []error
MovieRespMultiError is an error wrapping multiple validation errors returned by MovieResp.ValidateAll() if the designated constraints aren't met.
func (MovieRespMultiError) AllErrors ¶
func (m MovieRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MovieRespMultiError) Error ¶
func (m MovieRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MovieRespValidationError ¶
type MovieRespValidationError struct {
// contains filtered or unexported fields
}
MovieRespValidationError is the validation error returned by MovieResp.Validate if the designated constraints aren't met.
func (MovieRespValidationError) Cause ¶
func (e MovieRespValidationError) Cause() error
Cause function returns cause value.
func (MovieRespValidationError) Error ¶
func (e MovieRespValidationError) Error() string
Error satisfies the builtin error interface
func (MovieRespValidationError) ErrorName ¶
func (e MovieRespValidationError) ErrorName() string
ErrorName returns error name.
func (MovieRespValidationError) Field ¶
func (e MovieRespValidationError) Field() string
Field function returns field value.
func (MovieRespValidationError) Key ¶
func (e MovieRespValidationError) Key() bool
Key function returns key value.
func (MovieRespValidationError) Reason ¶
func (e MovieRespValidationError) Reason() string
Reason function returns reason value.
type NextToPlayMoviesRequest ¶ added in v1.0.10
type NextToPlayMoviesRequest struct { Page *api.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*NextToPlayMoviesRequest) Descriptor
deprecated
added in
v1.0.10
func (*NextToPlayMoviesRequest) Descriptor() ([]byte, []int)
Deprecated: Use NextToPlayMoviesRequest.ProtoReflect.Descriptor instead.
func (*NextToPlayMoviesRequest) GetPage ¶ added in v1.0.10
func (x *NextToPlayMoviesRequest) GetPage() *api.Page
func (*NextToPlayMoviesRequest) ProtoMessage ¶ added in v1.0.10
func (*NextToPlayMoviesRequest) ProtoMessage()
func (*NextToPlayMoviesRequest) ProtoReflect ¶ added in v1.0.10
func (x *NextToPlayMoviesRequest) ProtoReflect() protoreflect.Message
func (*NextToPlayMoviesRequest) Reset ¶ added in v1.0.10
func (x *NextToPlayMoviesRequest) Reset()
func (*NextToPlayMoviesRequest) String ¶ added in v1.0.10
func (x *NextToPlayMoviesRequest) String() string
func (*NextToPlayMoviesRequest) Validate ¶ added in v1.0.10
func (m *NextToPlayMoviesRequest) Validate() error
Validate checks the field values on NextToPlayMoviesRequest 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 (*NextToPlayMoviesRequest) ValidateAll ¶ added in v1.0.10
func (m *NextToPlayMoviesRequest) ValidateAll() error
ValidateAll checks the field values on NextToPlayMoviesRequest 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 NextToPlayMoviesRequestMultiError, or nil if none found.
type NextToPlayMoviesRequestMultiError ¶ added in v1.0.10
type NextToPlayMoviesRequestMultiError []error
NextToPlayMoviesRequestMultiError is an error wrapping multiple validation errors returned by NextToPlayMoviesRequest.ValidateAll() if the designated constraints aren't met.
func (NextToPlayMoviesRequestMultiError) AllErrors ¶ added in v1.0.10
func (m NextToPlayMoviesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NextToPlayMoviesRequestMultiError) Error ¶ added in v1.0.10
func (m NextToPlayMoviesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NextToPlayMoviesRequestValidationError ¶ added in v1.0.10
type NextToPlayMoviesRequestValidationError struct {
// contains filtered or unexported fields
}
NextToPlayMoviesRequestValidationError is the validation error returned by NextToPlayMoviesRequest.Validate if the designated constraints aren't met.
func (NextToPlayMoviesRequestValidationError) Cause ¶ added in v1.0.10
func (e NextToPlayMoviesRequestValidationError) Cause() error
Cause function returns cause value.
func (NextToPlayMoviesRequestValidationError) Error ¶ added in v1.0.10
func (e NextToPlayMoviesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (NextToPlayMoviesRequestValidationError) ErrorName ¶ added in v1.0.10
func (e NextToPlayMoviesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (NextToPlayMoviesRequestValidationError) Field ¶ added in v1.0.10
func (e NextToPlayMoviesRequestValidationError) Field() string
Field function returns field value.
func (NextToPlayMoviesRequestValidationError) Key ¶ added in v1.0.10
func (e NextToPlayMoviesRequestValidationError) Key() bool
Key function returns key value.
func (NextToPlayMoviesRequestValidationError) Reason ¶ added in v1.0.10
func (e NextToPlayMoviesRequestValidationError) Reason() string
Reason function returns reason value.
type SearchMovieResp ¶
type SearchMovieResp struct { Page *api.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` List []*MovieResp `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*SearchMovieResp) Descriptor
deprecated
func (*SearchMovieResp) Descriptor() ([]byte, []int)
Deprecated: Use SearchMovieResp.ProtoReflect.Descriptor instead.
func (*SearchMovieResp) GetList ¶
func (x *SearchMovieResp) GetList() []*MovieResp
func (*SearchMovieResp) GetPage ¶
func (x *SearchMovieResp) GetPage() *api.Page
func (*SearchMovieResp) ProtoMessage ¶
func (*SearchMovieResp) ProtoMessage()
func (*SearchMovieResp) ProtoReflect ¶
func (x *SearchMovieResp) ProtoReflect() protoreflect.Message
func (*SearchMovieResp) Reset ¶
func (x *SearchMovieResp) Reset()
func (*SearchMovieResp) String ¶
func (x *SearchMovieResp) String() string
func (*SearchMovieResp) Validate ¶
func (m *SearchMovieResp) Validate() error
Validate checks the field values on SearchMovieResp 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 (*SearchMovieResp) ValidateAll ¶
func (m *SearchMovieResp) ValidateAll() error
ValidateAll checks the field values on SearchMovieResp 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 SearchMovieRespMultiError, or nil if none found.
type SearchMovieRespMultiError ¶
type SearchMovieRespMultiError []error
SearchMovieRespMultiError is an error wrapping multiple validation errors returned by SearchMovieResp.ValidateAll() if the designated constraints aren't met.
func (SearchMovieRespMultiError) AllErrors ¶
func (m SearchMovieRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SearchMovieRespMultiError) Error ¶
func (m SearchMovieRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SearchMovieRespValidationError ¶
type SearchMovieRespValidationError struct {
// contains filtered or unexported fields
}
SearchMovieRespValidationError is the validation error returned by SearchMovieResp.Validate if the designated constraints aren't met.
func (SearchMovieRespValidationError) Cause ¶
func (e SearchMovieRespValidationError) Cause() error
Cause function returns cause value.
func (SearchMovieRespValidationError) Error ¶
func (e SearchMovieRespValidationError) Error() string
Error satisfies the builtin error interface
func (SearchMovieRespValidationError) ErrorName ¶
func (e SearchMovieRespValidationError) ErrorName() string
ErrorName returns error name.
func (SearchMovieRespValidationError) Field ¶
func (e SearchMovieRespValidationError) Field() string
Field function returns field value.
func (SearchMovieRespValidationError) Key ¶
func (e SearchMovieRespValidationError) Key() bool
Key function returns key value.
func (SearchMovieRespValidationError) Reason ¶
func (e SearchMovieRespValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMovieRemoteServiceServer ¶
type UnimplementedMovieRemoteServiceServer struct { }
UnimplementedMovieRemoteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMovieRemoteServiceServer) CreateMovie ¶
func (UnimplementedMovieRemoteServiceServer) CreateMovie(context.Context, *CreateMovieRequest) (*emptypb.Empty, error)
func (UnimplementedMovieRemoteServiceServer) DeleteMovie ¶
func (UnimplementedMovieRemoteServiceServer) DeleteMovie(context.Context, *api.IdsRequest) (*emptypb.Empty, error)
func (UnimplementedMovieRemoteServiceServer) FilterMovie ¶
func (UnimplementedMovieRemoteServiceServer) FilterMovie(context.Context, *FilterMovieRequest) (*SearchMovieResp, error)
func (UnimplementedMovieRemoteServiceServer) FindMovie ¶
func (UnimplementedMovieRemoteServiceServer) FindMovie(context.Context, *FindMovieRequest) (*SearchMovieResp, error)
func (UnimplementedMovieRemoteServiceServer) GetMovie ¶
func (UnimplementedMovieRemoteServiceServer) GetMovie(context.Context, *GetMovieRequest) (*MovieResp, error)
func (UnimplementedMovieRemoteServiceServer) NextToPlayMovies ¶ added in v1.0.10
func (UnimplementedMovieRemoteServiceServer) NextToPlayMovies(context.Context, *NextToPlayMoviesRequest) (*SearchMovieResp, error)
func (UnimplementedMovieRemoteServiceServer) UpdateMovie ¶
func (UnimplementedMovieRemoteServiceServer) UpdateMovie(context.Context, *UpdateMovieRequest) (*emptypb.Empty, error)
type UnsafeMovieRemoteServiceServer ¶
type UnsafeMovieRemoteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMovieRemoteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MovieRemoteServiceServer will result in compilation errors.
type UpdateMovieRequest ¶
type UpdateMovieRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UpdateMovieRequest) Descriptor
deprecated
func (*UpdateMovieRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMovieRequest.ProtoReflect.Descriptor instead.
func (*UpdateMovieRequest) GetId ¶
func (x *UpdateMovieRequest) GetId() int64
func (*UpdateMovieRequest) GetName ¶
func (x *UpdateMovieRequest) GetName() string
func (*UpdateMovieRequest) ProtoMessage ¶
func (*UpdateMovieRequest) ProtoMessage()
func (*UpdateMovieRequest) ProtoReflect ¶
func (x *UpdateMovieRequest) ProtoReflect() protoreflect.Message
func (*UpdateMovieRequest) Reset ¶
func (x *UpdateMovieRequest) Reset()
func (*UpdateMovieRequest) String ¶
func (x *UpdateMovieRequest) String() string
func (*UpdateMovieRequest) Validate ¶
func (m *UpdateMovieRequest) Validate() error
Validate checks the field values on UpdateMovieRequest 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 (*UpdateMovieRequest) ValidateAll ¶
func (m *UpdateMovieRequest) ValidateAll() error
ValidateAll checks the field values on UpdateMovieRequest 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 UpdateMovieRequestMultiError, or nil if none found.
type UpdateMovieRequestMultiError ¶
type UpdateMovieRequestMultiError []error
UpdateMovieRequestMultiError is an error wrapping multiple validation errors returned by UpdateMovieRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateMovieRequestMultiError) AllErrors ¶
func (m UpdateMovieRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateMovieRequestMultiError) Error ¶
func (m UpdateMovieRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateMovieRequestValidationError ¶
type UpdateMovieRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateMovieRequestValidationError is the validation error returned by UpdateMovieRequest.Validate if the designated constraints aren't met.
func (UpdateMovieRequestValidationError) Cause ¶
func (e UpdateMovieRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateMovieRequestValidationError) Error ¶
func (e UpdateMovieRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateMovieRequestValidationError) ErrorName ¶
func (e UpdateMovieRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateMovieRequestValidationError) Field ¶
func (e UpdateMovieRequestValidationError) Field() string
Field function returns field value.
func (UpdateMovieRequestValidationError) Key ¶
func (e UpdateMovieRequestValidationError) Key() bool
Key function returns key value.
func (UpdateMovieRequestValidationError) Reason ¶
func (e UpdateMovieRequestValidationError) Reason() string
Reason function returns reason value.