movie

package
v1.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationMovieRemoteServiceCreateMovie = "/gnboot.MovieRemoteService/CreateMovie"
View Source
const OperationMovieRemoteServiceDeleteMovie = "/gnboot.MovieRemoteService/DeleteMovie"
View Source
const OperationMovieRemoteServiceFilterMovie = "/gnboot.MovieRemoteService/FilterMovie"
View Source
const OperationMovieRemoteServiceFindMovie = "/gnboot.MovieRemoteService/FindMovie"
View Source
const OperationMovieRemoteServiceGetMovie = "/gnboot.MovieRemoteService/GetMovie"
View Source
const OperationMovieRemoteServiceNextToPlayMovies = "/gnboot.MovieRemoteService/NextToPlayMovies"
View Source
const OperationMovieRemoteServiceUpdateMovie = "/gnboot.MovieRemoteService/UpdateMovie"

Variables

View Source
var File_proto_movie_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (CreateMovieRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateMovieRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateMovieRequestValidationError) Field

Field function returns field value.

func (CreateMovieRequestValidationError) Key

Key function returns key value.

func (CreateMovieRequestValidationError) Reason

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

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

Cause function returns cause value.

func (FilterMovieRequestValidationError) Error

Error satisfies the builtin error interface

func (FilterMovieRequestValidationError) ErrorName

ErrorName returns error name.

func (FilterMovieRequestValidationError) Field

Field function returns field value.

func (FilterMovieRequestValidationError) Key

Key function returns key value.

func (FilterMovieRequestValidationError) Reason

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

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

Cause function returns cause value.

func (FindMovieRequestValidationError) Error

Error satisfies the builtin error interface

func (FindMovieRequestValidationError) ErrorName

ErrorName returns error name.

func (FindMovieRequestValidationError) Field

Field function returns field value.

func (FindMovieRequestValidationError) Key

Key function returns key value.

func (FindMovieRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetMovieRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMovieRequestValidationError) ErrorName

func (e GetMovieRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetMovieRequestValidationError) Field

Field function returns field value.

func (GetMovieRequestValidationError) Key

Key function returns key value.

func (GetMovieRequestValidationError) Reason

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.

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 (*MovieRemoteServiceHTTPClientImpl) DeleteMovie

func (*MovieRemoteServiceHTTPClientImpl) FilterMovie

func (*MovieRemoteServiceHTTPClientImpl) FindMovie

func (*MovieRemoteServiceHTTPClientImpl) GetMovie

func (*MovieRemoteServiceHTTPClientImpl) NextToPlayMovies added in v1.0.10

func (*MovieRemoteServiceHTTPClientImpl) UpdateMovie

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) Descriptor() ([]byte, []int)

Deprecated: Use MovieResp.ProtoReflect.Descriptor instead.

func (*MovieResp) GetActors

func (x *MovieResp) GetActors() []*actor.ActorResp

func (*MovieResp) GetCountry

func (x *MovieResp) GetCountry() string

func (*MovieResp) GetDownloaded

func (x *MovieResp) GetDownloaded() bool

func (*MovieResp) GetExt

func (x *MovieResp) GetExt() string

func (*MovieResp) GetFileSize

func (x *MovieResp) GetFileSize() int32

func (*MovieResp) GetFilename

func (x *MovieResp) GetFilename() string

func (*MovieResp) GetGenres

func (x *MovieResp) GetGenres() []*genre.GenreResp

func (*MovieResp) GetId

func (x *MovieResp) GetId() int64

func (*MovieResp) GetKeywords

func (x *MovieResp) GetKeywords() []*keyword.KeywordResp

func (*MovieResp) GetLastPlayedPosition

func (x *MovieResp) GetLastPlayedPosition() int32

func (*MovieResp) GetLastPlayedTime

func (x *MovieResp) GetLastPlayedTime() string

func (*MovieResp) GetOriginalTitle

func (x *MovieResp) GetOriginalTitle() string

func (*MovieResp) GetStatus

func (x *MovieResp) GetStatus() string

func (*MovieResp) GetStudios

func (x *MovieResp) GetStudios() []*studio.StudioResp

func (*MovieResp) GetSubtitles

func (x *MovieResp) GetSubtitles() []*subtitle.SubtitleResp

func (*MovieResp) GetTrailer

func (x *MovieResp) GetTrailer() string

func (*MovieResp) GetUrl

func (x *MovieResp) GetUrl() string

func (*MovieResp) GetVoteAverage

func (x *MovieResp) GetVoteAverage() float32

func (*MovieResp) GetVoteCount

func (x *MovieResp) GetVoteCount() int32

func (*MovieResp) ProtoMessage

func (*MovieResp) ProtoMessage()

func (*MovieResp) ProtoReflect

func (x *MovieResp) ProtoReflect() protoreflect.Message

func (*MovieResp) Reset

func (x *MovieResp) Reset()

func (*MovieResp) String

func (x *MovieResp) String() string

func (*MovieResp) Validate

func (m *MovieResp) Validate() error

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

func (m *MovieResp) ValidateAll() error

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

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

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

Cause function returns cause value.

func (NextToPlayMoviesRequestValidationError) Error added in v1.0.10

Error satisfies the builtin error interface

func (NextToPlayMoviesRequestValidationError) ErrorName added in v1.0.10

ErrorName returns error name.

func (NextToPlayMoviesRequestValidationError) Field added in v1.0.10

Field function returns field value.

func (NextToPlayMoviesRequestValidationError) Key added in v1.0.10

Key function returns key value.

func (NextToPlayMoviesRequestValidationError) Reason added in v1.0.10

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

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

Cause function returns cause value.

func (SearchMovieRespValidationError) Error

Error satisfies the builtin error interface

func (SearchMovieRespValidationError) ErrorName

func (e SearchMovieRespValidationError) ErrorName() string

ErrorName returns error name.

func (SearchMovieRespValidationError) Field

Field function returns field value.

func (SearchMovieRespValidationError) Key

Key function returns key value.

func (SearchMovieRespValidationError) Reason

Reason function returns reason value.

type UnimplementedMovieRemoteServiceServer

type UnimplementedMovieRemoteServiceServer struct {
}

UnimplementedMovieRemoteServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMovieRemoteServiceServer) CreateMovie

func (UnimplementedMovieRemoteServiceServer) DeleteMovie

func (UnimplementedMovieRemoteServiceServer) FilterMovie

func (UnimplementedMovieRemoteServiceServer) FindMovie

func (UnimplementedMovieRemoteServiceServer) GetMovie

func (UnimplementedMovieRemoteServiceServer) NextToPlayMovies added in v1.0.10

func (UnimplementedMovieRemoteServiceServer) UpdateMovie

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

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

Cause function returns cause value.

func (UpdateMovieRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateMovieRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateMovieRequestValidationError) Field

Field function returns field value.

func (UpdateMovieRequestValidationError) Key

Key function returns key value.

func (UpdateMovieRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL