protos

package
v0.0.0-...-e075ff3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package protos is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_admin_movies_service_v1_messages_proto protoreflect.FileDescriptor
View Source
var File_admin_movies_service_v1_proto protoreflect.FileDescriptor
View Source
var MoviesServiceV1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "admin_movies_service.moviesServiceV1",
	HandlerType: (*MoviesServiceV1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMovie",
			Handler:    _MoviesServiceV1_GetMovie_Handler,
		},
		{
			MethodName: "GetMovieDuration",
			Handler:    _MoviesServiceV1_GetMovieDuration_Handler,
		},
		{
			MethodName: "GetMovies",
			Handler:    _MoviesServiceV1_GetMovies_Handler,
		},
		{
			MethodName: "GetMoviesDuration",
			Handler:    _MoviesServiceV1_GetMoviesDuration_Handler,
		},
		{
			MethodName: "CreateMovie",
			Handler:    _MoviesServiceV1_CreateMovie_Handler,
		},
		{
			MethodName: "DeleteMovie",
			Handler:    _MoviesServiceV1_DeleteMovie_Handler,
		},
		{
			MethodName: "IsMovieExists",
			Handler:    _MoviesServiceV1_IsMovieExists_Handler,
		},
		{
			MethodName: "UpdateMovie",
			Handler:    _MoviesServiceV1_UpdateMovie_Handler,
		},
		{
			MethodName: "UpdateMoviePictures",
			Handler:    _MoviesServiceV1_UpdateMoviePictures_Handler,
		},
		{
			MethodName: "GetAgeRatings",
			Handler:    _MoviesServiceV1_GetAgeRatings_Handler,
		},
		{
			MethodName: "CreateAgeRating",
			Handler:    _MoviesServiceV1_CreateAgeRating_Handler,
		},
		{
			MethodName: "DeleteAgeRating",
			Handler:    _MoviesServiceV1_DeleteAgeRating_Handler,
		},
		{
			MethodName: "GetGenre",
			Handler:    _MoviesServiceV1_GetGenre_Handler,
		},
		{
			MethodName: "GetGenreByName",
			Handler:    _MoviesServiceV1_GetGenreByName_Handler,
		},
		{
			MethodName: "CreateGenre",
			Handler:    _MoviesServiceV1_CreateGenre_Handler,
		},
		{
			MethodName: "GetGenres",
			Handler:    _MoviesServiceV1_GetGenres_Handler,
		},
		{
			MethodName: "UpdateGenre",
			Handler:    _MoviesServiceV1_UpdateGenre_Handler,
		},
		{
			MethodName: "DeleteGenre",
			Handler:    _MoviesServiceV1_DeleteGenre_Handler,
		},
		{
			MethodName: "IsGenresExists",
			Handler:    _MoviesServiceV1_IsGenresExists_Handler,
		},
		{
			MethodName: "GetCountry",
			Handler:    _MoviesServiceV1_GetCountry_Handler,
		},
		{
			MethodName: "GetCountryByName",
			Handler:    _MoviesServiceV1_GetCountryByName_Handler,
		},
		{
			MethodName: "CreateCountry",
			Handler:    _MoviesServiceV1_CreateCountry_Handler,
		},
		{
			MethodName: "GetCountries",
			Handler:    _MoviesServiceV1_GetCountries_Handler,
		},
		{
			MethodName: "UpdateCountry",
			Handler:    _MoviesServiceV1_UpdateCountry_Handler,
		},
		{
			MethodName: "DeleteCountry",
			Handler:    _MoviesServiceV1_DeleteCountry_Handler,
		},
		{
			MethodName: "IsCountriesExists",
			Handler:    _MoviesServiceV1_IsCountriesExists_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admin_movies_service_v1.proto",
}

MoviesServiceV1_ServiceDesc is the grpc.ServiceDesc for MoviesServiceV1 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMoviesServiceV1Handler

func RegisterMoviesServiceV1Handler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMoviesServiceV1Handler registers the http handlers for service MoviesServiceV1 to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMoviesServiceV1HandlerClient

func RegisterMoviesServiceV1HandlerClient(ctx context.Context, mux *runtime.ServeMux, client MoviesServiceV1Client) error

RegisterMoviesServiceV1HandlerClient registers the http handlers for service MoviesServiceV1 to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MoviesServiceV1Client". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MoviesServiceV1Client" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MoviesServiceV1Client" to call the correct interceptors.

func RegisterMoviesServiceV1HandlerFromEndpoint

func RegisterMoviesServiceV1HandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMoviesServiceV1HandlerFromEndpoint is same as RegisterMoviesServiceV1Handler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMoviesServiceV1HandlerServer

func RegisterMoviesServiceV1HandlerServer(ctx context.Context, mux *runtime.ServeMux, server MoviesServiceV1Server) error

RegisterMoviesServiceV1HandlerServer registers the http handlers for service MoviesServiceV1 to "mux". UnaryRPC :call MoviesServiceV1Server directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMoviesServiceV1HandlerFromEndpoint instead.

func RegisterMoviesServiceV1Server

func RegisterMoviesServiceV1Server(s grpc.ServiceRegistrar, srv MoviesServiceV1Server)

Types

type AgeRatings

type AgeRatings struct {
	Ratings []string `protobuf:"bytes,1,rep,name=ratings,proto3" json:"ratings,omitempty"`
	// contains filtered or unexported fields
}

func (*AgeRatings) Descriptor deprecated

func (*AgeRatings) Descriptor() ([]byte, []int)

Deprecated: Use AgeRatings.ProtoReflect.Descriptor instead.

func (*AgeRatings) GetRatings

func (x *AgeRatings) GetRatings() []string

func (*AgeRatings) ProtoMessage

func (*AgeRatings) ProtoMessage()

func (*AgeRatings) ProtoReflect

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

func (*AgeRatings) Reset

func (x *AgeRatings) Reset()

func (*AgeRatings) String

func (x *AgeRatings) String() string

type Countries

type Countries struct {
	Countries []*Country `protobuf:"bytes,1,rep,name=countries,proto3" json:"countries,omitempty"`
	// contains filtered or unexported fields
}

func (*Countries) Descriptor deprecated

func (*Countries) Descriptor() ([]byte, []int)

Deprecated: Use Countries.ProtoReflect.Descriptor instead.

func (*Countries) GetCountries

func (x *Countries) GetCountries() []*Country

func (*Countries) ProtoMessage

func (*Countries) ProtoMessage()

func (*Countries) ProtoReflect

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

func (*Countries) Reset

func (x *Countries) Reset()

func (*Countries) String

func (x *Countries) String() string

type Country

type Country struct {
	CountryID int32  `protobuf:"varint,1,opt,name=CountryID,json=country_id,proto3" json:"CountryID,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	// contains filtered or unexported fields
}

func (*Country) Descriptor deprecated

func (*Country) Descriptor() ([]byte, []int)

Deprecated: Use Country.ProtoReflect.Descriptor instead.

func (*Country) GetCountryID

func (x *Country) GetCountryID() int32

func (*Country) GetName

func (x *Country) GetName() string

func (*Country) ProtoMessage

func (*Country) ProtoMessage()

func (*Country) ProtoReflect

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

func (*Country) Reset

func (x *Country) Reset()

func (*Country) String

func (x *Country) String() string

type CreateAgeRatingRequest

type CreateAgeRatingRequest struct {
	AgeRatingName string `protobuf:"bytes,1,opt,name=AgeRatingName,json=age_rating_name,proto3" json:"AgeRatingName,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAgeRatingRequest) Descriptor deprecated

func (*CreateAgeRatingRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAgeRatingRequest.ProtoReflect.Descriptor instead.

func (*CreateAgeRatingRequest) GetAgeRatingName

func (x *CreateAgeRatingRequest) GetAgeRatingName() string

func (*CreateAgeRatingRequest) ProtoMessage

func (*CreateAgeRatingRequest) ProtoMessage()

func (*CreateAgeRatingRequest) ProtoReflect

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

func (*CreateAgeRatingRequest) Reset

func (x *CreateAgeRatingRequest) Reset()

func (*CreateAgeRatingRequest) String

func (x *CreateAgeRatingRequest) String() string

type CreateCountryRequest

type CreateCountryRequest struct {
	Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCountryRequest) Descriptor deprecated

func (*CreateCountryRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateCountryRequest.ProtoReflect.Descriptor instead.

func (*CreateCountryRequest) GetName

func (x *CreateCountryRequest) GetName() string

func (*CreateCountryRequest) ProtoMessage

func (*CreateCountryRequest) ProtoMessage()

func (*CreateCountryRequest) ProtoReflect

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

func (*CreateCountryRequest) Reset

func (x *CreateCountryRequest) Reset()

func (*CreateCountryRequest) String

func (x *CreateCountryRequest) String() string

type CreateCountryResponce

type CreateCountryResponce struct {
	CountryID int32 `protobuf:"varint,1,opt,name=CountryID,json=country_id,proto3" json:"CountryID,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCountryResponce) Descriptor deprecated

func (*CreateCountryResponce) Descriptor() ([]byte, []int)

Deprecated: Use CreateCountryResponce.ProtoReflect.Descriptor instead.

func (*CreateCountryResponce) GetCountryID

func (x *CreateCountryResponce) GetCountryID() int32

func (*CreateCountryResponce) ProtoMessage

func (*CreateCountryResponce) ProtoMessage()

func (*CreateCountryResponce) ProtoReflect

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

func (*CreateCountryResponce) Reset

func (x *CreateCountryResponce) Reset()

func (*CreateCountryResponce) String

func (x *CreateCountryResponce) String() string

type CreateGenreRequest

type CreateGenreRequest struct {
	Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateGenreRequest) Descriptor deprecated

func (*CreateGenreRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateGenreRequest.ProtoReflect.Descriptor instead.

func (*CreateGenreRequest) GetName

func (x *CreateGenreRequest) GetName() string

func (*CreateGenreRequest) ProtoMessage

func (*CreateGenreRequest) ProtoMessage()

func (*CreateGenreRequest) ProtoReflect

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

func (*CreateGenreRequest) Reset

func (x *CreateGenreRequest) Reset()

func (*CreateGenreRequest) String

func (x *CreateGenreRequest) String() string

type CreateGenreResponce

type CreateGenreResponce struct {
	GenreID int32 `protobuf:"varint,1,opt,name=GenreID,json=genre_id,proto3" json:"GenreID,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateGenreResponce) Descriptor deprecated

func (*CreateGenreResponce) Descriptor() ([]byte, []int)

Deprecated: Use CreateGenreResponce.ProtoReflect.Descriptor instead.

func (*CreateGenreResponce) GetGenreID

func (x *CreateGenreResponce) GetGenreID() int32

func (*CreateGenreResponce) ProtoMessage

func (*CreateGenreResponce) ProtoMessage()

func (*CreateGenreResponce) ProtoReflect

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

func (*CreateGenreResponce) Reset

func (x *CreateGenreResponce) Reset()

func (*CreateGenreResponce) String

func (x *CreateGenreResponce) String() string

type CreateMovieRequest

type CreateMovieRequest struct {
	Description      string  `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	ShortDescription string  `protobuf:"bytes,2,opt,name=shortDescription,json=short_description,proto3" json:"shortDescription,omitempty"`
	TitleRU          string  `protobuf:"bytes,3,opt,name=titleRU,json=title_ru,proto3" json:"titleRU,omitempty"`
	TitleEN          *string `protobuf:"bytes,4,opt,name=titleEN,json=title_en,proto3,oneof" json:"titleEN,omitempty"`
	GenresIDs        []int32 `protobuf:"varint,5,rep,packed,name=genresIDs,json=genres_ids,proto3" json:"genresIDs,omitempty"`
	// movie duration in minutes
	Duration      int32   `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"`
	CountriesIDs  []int32 `protobuf:"varint,7,rep,packed,name=countriesIDs,json=country_ids,proto3" json:"countriesIDs,omitempty"`
	Poster        []byte  `protobuf:"bytes,8,opt,name=poster,proto3" json:"poster,omitempty"`
	PreviewPoster []byte  `protobuf:"bytes,9,opt,name=previewPoster,json=preview_poster,proto3" json:"previewPoster,omitempty"`
	Background    []byte  `protobuf:"bytes,10,opt,name=background,proto3" json:"background,omitempty"`
	ReleaseYear   int32   `protobuf:"varint,11,opt,name=releaseYear,json=release_year,proto3" json:"releaseYear,omitempty"`
	AgeRating     string  `protobuf:"bytes,12,opt,name=ageRating,json=age_rating,proto3" json:"ageRating,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMovieRequest) Descriptor deprecated

func (*CreateMovieRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateMovieRequest.ProtoReflect.Descriptor instead.

func (*CreateMovieRequest) GetAgeRating

func (x *CreateMovieRequest) GetAgeRating() string

func (*CreateMovieRequest) GetBackground

func (x *CreateMovieRequest) GetBackground() []byte

func (*CreateMovieRequest) GetCountriesIDs

func (x *CreateMovieRequest) GetCountriesIDs() []int32

func (*CreateMovieRequest) GetDescription

func (x *CreateMovieRequest) GetDescription() string

func (*CreateMovieRequest) GetDuration

func (x *CreateMovieRequest) GetDuration() int32

func (*CreateMovieRequest) GetGenresIDs

func (x *CreateMovieRequest) GetGenresIDs() []int32

func (*CreateMovieRequest) GetPoster

func (x *CreateMovieRequest) GetPoster() []byte

func (*CreateMovieRequest) GetPreviewPoster

func (x *CreateMovieRequest) GetPreviewPoster() []byte

func (*CreateMovieRequest) GetReleaseYear

func (x *CreateMovieRequest) GetReleaseYear() int32

func (*CreateMovieRequest) GetShortDescription

func (x *CreateMovieRequest) GetShortDescription() string

func (*CreateMovieRequest) GetTitleEN

func (x *CreateMovieRequest) GetTitleEN() string

func (*CreateMovieRequest) GetTitleRU

func (x *CreateMovieRequest) GetTitleRU() 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

type CreateMovieResponce

type CreateMovieResponce struct {
	MovieID int32 `protobuf:"varint,1,opt,name=MovieID,json=movie_id,proto3" json:"MovieID,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMovieResponce) Descriptor deprecated

func (*CreateMovieResponce) Descriptor() ([]byte, []int)

Deprecated: Use CreateMovieResponce.ProtoReflect.Descriptor instead.

func (*CreateMovieResponce) GetMovieID

func (x *CreateMovieResponce) GetMovieID() int32

func (*CreateMovieResponce) ProtoMessage

func (*CreateMovieResponce) ProtoMessage()

func (*CreateMovieResponce) ProtoReflect

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

func (*CreateMovieResponce) Reset

func (x *CreateMovieResponce) Reset()

func (*CreateMovieResponce) String

func (x *CreateMovieResponce) String() string

type DeleteAgeRatingRequest

type DeleteAgeRatingRequest struct {
	AgeRatingName string `protobuf:"bytes,1,opt,name=AgeRatingName,json=age_rating_name,proto3" json:"AgeRatingName,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAgeRatingRequest) Descriptor deprecated

func (*DeleteAgeRatingRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAgeRatingRequest.ProtoReflect.Descriptor instead.

func (*DeleteAgeRatingRequest) GetAgeRatingName

func (x *DeleteAgeRatingRequest) GetAgeRatingName() string

func (*DeleteAgeRatingRequest) ProtoMessage

func (*DeleteAgeRatingRequest) ProtoMessage()

func (*DeleteAgeRatingRequest) ProtoReflect

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

func (*DeleteAgeRatingRequest) Reset

func (x *DeleteAgeRatingRequest) Reset()

func (*DeleteAgeRatingRequest) String

func (x *DeleteAgeRatingRequest) String() string

type DeleteCountryRequest

type DeleteCountryRequest struct {
	CountryId int32 `protobuf:"varint,1,opt,name=country_id,json=countryId,proto3" json:"country_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCountryRequest) Descriptor deprecated

func (*DeleteCountryRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteCountryRequest.ProtoReflect.Descriptor instead.

func (*DeleteCountryRequest) GetCountryId

func (x *DeleteCountryRequest) GetCountryId() int32

func (*DeleteCountryRequest) ProtoMessage

func (*DeleteCountryRequest) ProtoMessage()

func (*DeleteCountryRequest) ProtoReflect

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

func (*DeleteCountryRequest) Reset

func (x *DeleteCountryRequest) Reset()

func (*DeleteCountryRequest) String

func (x *DeleteCountryRequest) String() string

type DeleteGenreRequest

type DeleteGenreRequest struct {
	GenreId int32 `protobuf:"varint,1,opt,name=genre_id,json=genreId,proto3" json:"genre_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteGenreRequest) Descriptor deprecated

func (*DeleteGenreRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteGenreRequest.ProtoReflect.Descriptor instead.

func (*DeleteGenreRequest) GetGenreId

func (x *DeleteGenreRequest) GetGenreId() int32

func (*DeleteGenreRequest) ProtoMessage

func (*DeleteGenreRequest) ProtoMessage()

func (*DeleteGenreRequest) ProtoReflect

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

func (*DeleteGenreRequest) Reset

func (x *DeleteGenreRequest) Reset()

func (*DeleteGenreRequest) String

func (x *DeleteGenreRequest) String() string

type DeleteMovieRequest

type DeleteMovieRequest struct {
	MovieID int32 `protobuf:"varint,1,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteMovieRequest) Descriptor deprecated

func (*DeleteMovieRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteMovieRequest.ProtoReflect.Descriptor instead.

func (*DeleteMovieRequest) GetMovieID

func (x *DeleteMovieRequest) GetMovieID() int32

func (*DeleteMovieRequest) ProtoMessage

func (*DeleteMovieRequest) ProtoMessage()

func (*DeleteMovieRequest) ProtoReflect

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

func (*DeleteMovieRequest) Reset

func (x *DeleteMovieRequest) Reset()

func (*DeleteMovieRequest) String

func (x *DeleteMovieRequest) String() string

type ExistsResponce

type ExistsResponce struct {
	Exists      bool    `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
	NotExistIDs []int32 `protobuf:"varint,2,rep,packed,name=NotExistIDs,json=not_exists_ids,proto3" json:"NotExistIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*ExistsResponce) Descriptor deprecated

func (*ExistsResponce) Descriptor() ([]byte, []int)

Deprecated: Use ExistsResponce.ProtoReflect.Descriptor instead.

func (*ExistsResponce) GetExists

func (x *ExistsResponce) GetExists() bool

func (*ExistsResponce) GetNotExistIDs

func (x *ExistsResponce) GetNotExistIDs() []int32

func (*ExistsResponce) ProtoMessage

func (*ExistsResponce) ProtoMessage()

func (*ExistsResponce) ProtoReflect

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

func (*ExistsResponce) Reset

func (x *ExistsResponce) Reset()

func (*ExistsResponce) String

func (x *ExistsResponce) String() string

type Genre

type Genre struct {
	GenreID int32  `protobuf:"varint,1,opt,name=GenreID,json=genre_id,proto3" json:"GenreID,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	// contains filtered or unexported fields
}

func (*Genre) Descriptor deprecated

func (*Genre) Descriptor() ([]byte, []int)

Deprecated: Use Genre.ProtoReflect.Descriptor instead.

func (*Genre) GetGenreID

func (x *Genre) GetGenreID() int32

func (*Genre) GetName

func (x *Genre) GetName() string

func (*Genre) ProtoMessage

func (*Genre) ProtoMessage()

func (*Genre) ProtoReflect

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

func (*Genre) Reset

func (x *Genre) Reset()

func (*Genre) String

func (x *Genre) String() string

type Genres

type Genres struct {
	Genres []*Genre `protobuf:"bytes,1,rep,name=genres,proto3" json:"genres,omitempty"`
	// contains filtered or unexported fields
}

func (*Genres) Descriptor deprecated

func (*Genres) Descriptor() ([]byte, []int)

Deprecated: Use Genres.ProtoReflect.Descriptor instead.

func (*Genres) GetGenres

func (x *Genres) GetGenres() []*Genre

func (*Genres) ProtoMessage

func (*Genres) ProtoMessage()

func (*Genres) ProtoReflect

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

func (*Genres) Reset

func (x *Genres) Reset()

func (*Genres) String

func (x *Genres) String() string

type GetCountryByNameRequest

type GetCountryByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCountryByNameRequest) Descriptor deprecated

func (*GetCountryByNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCountryByNameRequest.ProtoReflect.Descriptor instead.

func (*GetCountryByNameRequest) GetName

func (x *GetCountryByNameRequest) GetName() string

func (*GetCountryByNameRequest) ProtoMessage

func (*GetCountryByNameRequest) ProtoMessage()

func (*GetCountryByNameRequest) ProtoReflect

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

func (*GetCountryByNameRequest) Reset

func (x *GetCountryByNameRequest) Reset()

func (*GetCountryByNameRequest) String

func (x *GetCountryByNameRequest) String() string

type GetCountryRequest

type GetCountryRequest struct {
	CountryId int32 `protobuf:"varint,1,opt,name=country_id,json=countryId,proto3" json:"country_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCountryRequest) Descriptor deprecated

func (*GetCountryRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCountryRequest.ProtoReflect.Descriptor instead.

func (*GetCountryRequest) GetCountryId

func (x *GetCountryRequest) GetCountryId() int32

func (*GetCountryRequest) ProtoMessage

func (*GetCountryRequest) ProtoMessage()

func (*GetCountryRequest) ProtoReflect

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

func (*GetCountryRequest) Reset

func (x *GetCountryRequest) Reset()

func (*GetCountryRequest) String

func (x *GetCountryRequest) String() string

type GetGenreByNameRequest

type GetGenreByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGenreByNameRequest) Descriptor deprecated

func (*GetGenreByNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetGenreByNameRequest.ProtoReflect.Descriptor instead.

func (*GetGenreByNameRequest) GetName

func (x *GetGenreByNameRequest) GetName() string

func (*GetGenreByNameRequest) ProtoMessage

func (*GetGenreByNameRequest) ProtoMessage()

func (*GetGenreByNameRequest) ProtoReflect

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

func (*GetGenreByNameRequest) Reset

func (x *GetGenreByNameRequest) Reset()

func (*GetGenreByNameRequest) String

func (x *GetGenreByNameRequest) String() string

type GetGenreRequest

type GetGenreRequest struct {
	GenreId int32 `protobuf:"varint,1,opt,name=genre_id,json=genreId,proto3" json:"genre_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGenreRequest) Descriptor deprecated

func (*GetGenreRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetGenreRequest.ProtoReflect.Descriptor instead.

func (*GetGenreRequest) GetGenreId

func (x *GetGenreRequest) GetGenreId() int32

func (*GetGenreRequest) ProtoMessage

func (*GetGenreRequest) ProtoMessage()

func (*GetGenreRequest) ProtoReflect

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

func (*GetGenreRequest) Reset

func (x *GetGenreRequest) Reset()

func (*GetGenreRequest) String

func (x *GetGenreRequest) String() string

type GetMovieDurationRequest

type GetMovieDurationRequest struct {
	MovieID int32 `protobuf:"varint,1,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMovieDurationRequest) Descriptor deprecated

func (*GetMovieDurationRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMovieDurationRequest.ProtoReflect.Descriptor instead.

func (*GetMovieDurationRequest) GetMovieID

func (x *GetMovieDurationRequest) GetMovieID() int32

func (*GetMovieDurationRequest) ProtoMessage

func (*GetMovieDurationRequest) ProtoMessage()

func (*GetMovieDurationRequest) ProtoReflect

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

func (*GetMovieDurationRequest) Reset

func (x *GetMovieDurationRequest) Reset()

func (*GetMovieDurationRequest) String

func (x *GetMovieDurationRequest) String() string

type GetMovieRequest

type GetMovieRequest struct {
	MovieID int32 `protobuf:"varint,1,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMovieRequest) Descriptor deprecated

func (*GetMovieRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMovieRequest.ProtoReflect.Descriptor instead.

func (*GetMovieRequest) GetMovieID

func (x *GetMovieRequest) GetMovieID() int32

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

type GetMoviesDurationRequest

type GetMoviesDurationRequest struct {

	// for multiple values use ',' as separator
	MoviesIDs string `protobuf:"bytes,1,opt,name=moviesIDs,json=movies_ids,proto3" json:"moviesIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMoviesDurationRequest) Descriptor deprecated

func (*GetMoviesDurationRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMoviesDurationRequest.ProtoReflect.Descriptor instead.

func (*GetMoviesDurationRequest) GetMoviesIDs

func (x *GetMoviesDurationRequest) GetMoviesIDs() string

func (*GetMoviesDurationRequest) ProtoMessage

func (*GetMoviesDurationRequest) ProtoMessage()

func (*GetMoviesDurationRequest) ProtoReflect

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

func (*GetMoviesDurationRequest) Reset

func (x *GetMoviesDurationRequest) Reset()

func (*GetMoviesDurationRequest) String

func (x *GetMoviesDurationRequest) String() string

type GetMoviesRequest

type GetMoviesRequest struct {
	MoviesIDs    *string `protobuf:"bytes,1,opt,name=moviesIDs,json=movies_ids,proto3,oneof" json:"moviesIDs,omitempty"`
	GenresIDs    *string `protobuf:"bytes,2,opt,name=genresIDs,json=genres_ids,proto3,oneof" json:"genresIDs,omitempty"`
	CountriesIDs *string `protobuf:"bytes,3,opt,name=countriesIDs,json=country_ids,proto3,oneof" json:"countriesIDs,omitempty"`
	Title        *string `protobuf:"bytes,4,opt,name=title,proto3,oneof" json:"title,omitempty"`
	AgeRatings   *string `protobuf:"bytes,5,opt,name=ageRatings,json=age_ratings,proto3,oneof" json:"ageRatings,omitempty"`
	// if limit = 0, will be used default limit = 10, if bigger than 100, will be used max limit = 100
	Limit  uint32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset uint32 `protobuf:"varint,7,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

for multiple values use ',' separator

func (*GetMoviesRequest) Descriptor deprecated

func (*GetMoviesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMoviesRequest.ProtoReflect.Descriptor instead.

func (*GetMoviesRequest) GetAgeRatings

func (x *GetMoviesRequest) GetAgeRatings() string

func (*GetMoviesRequest) GetCountriesIDs

func (x *GetMoviesRequest) GetCountriesIDs() string

func (*GetMoviesRequest) GetGenresIDs

func (x *GetMoviesRequest) GetGenresIDs() string

func (*GetMoviesRequest) GetLimit

func (x *GetMoviesRequest) GetLimit() uint32

func (*GetMoviesRequest) GetMoviesIDs

func (x *GetMoviesRequest) GetMoviesIDs() string

func (*GetMoviesRequest) GetOffset

func (x *GetMoviesRequest) GetOffset() uint32

func (*GetMoviesRequest) GetTitle

func (x *GetMoviesRequest) GetTitle() string

func (*GetMoviesRequest) ProtoMessage

func (*GetMoviesRequest) ProtoMessage()

func (*GetMoviesRequest) ProtoReflect

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

func (*GetMoviesRequest) Reset

func (x *GetMoviesRequest) Reset()

func (*GetMoviesRequest) String

func (x *GetMoviesRequest) String() string

type IsCountriesExistsRequest

type IsCountriesExistsRequest struct {

	// use ',' as separator for multiple ids
	CountriesIDs string `protobuf:"bytes,1,opt,name=CountriesIDs,json=countries_ids,proto3" json:"CountriesIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*IsCountriesExistsRequest) Descriptor deprecated

func (*IsCountriesExistsRequest) Descriptor() ([]byte, []int)

Deprecated: Use IsCountriesExistsRequest.ProtoReflect.Descriptor instead.

func (*IsCountriesExistsRequest) GetCountriesIDs

func (x *IsCountriesExistsRequest) GetCountriesIDs() string

func (*IsCountriesExistsRequest) ProtoMessage

func (*IsCountriesExistsRequest) ProtoMessage()

func (*IsCountriesExistsRequest) ProtoReflect

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

func (*IsCountriesExistsRequest) Reset

func (x *IsCountriesExistsRequest) Reset()

func (*IsCountriesExistsRequest) String

func (x *IsCountriesExistsRequest) String() string

type IsExistsResponce

type IsExistsResponce struct {
	MovieExists bool `protobuf:"varint,1,opt,name=MovieExists,json=movie_exists,proto3" json:"MovieExists,omitempty"`
	// contains filtered or unexported fields
}

func (*IsExistsResponce) Descriptor deprecated

func (*IsExistsResponce) Descriptor() ([]byte, []int)

Deprecated: Use IsExistsResponce.ProtoReflect.Descriptor instead.

func (*IsExistsResponce) GetMovieExists

func (x *IsExistsResponce) GetMovieExists() bool

func (*IsExistsResponce) ProtoMessage

func (*IsExistsResponce) ProtoMessage()

func (*IsExistsResponce) ProtoReflect

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

func (*IsExistsResponce) Reset

func (x *IsExistsResponce) Reset()

func (*IsExistsResponce) String

func (x *IsExistsResponce) String() string

type IsGenresExistsRequest

type IsGenresExistsRequest struct {

	// use ',' as separator for multiple ids
	GenresIDs string `protobuf:"bytes,1,opt,name=GenresIDs,json=genres_ids,proto3" json:"GenresIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*IsGenresExistsRequest) Descriptor deprecated

func (*IsGenresExistsRequest) Descriptor() ([]byte, []int)

Deprecated: Use IsGenresExistsRequest.ProtoReflect.Descriptor instead.

func (*IsGenresExistsRequest) GetGenresIDs

func (x *IsGenresExistsRequest) GetGenresIDs() string

func (*IsGenresExistsRequest) ProtoMessage

func (*IsGenresExistsRequest) ProtoMessage()

func (*IsGenresExistsRequest) ProtoReflect

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

func (*IsGenresExistsRequest) Reset

func (x *IsGenresExistsRequest) Reset()

func (*IsGenresExistsRequest) String

func (x *IsGenresExistsRequest) String() string

type IsMovieExistsRequest

type IsMovieExistsRequest struct {
	MovieID int32 `protobuf:"varint,1,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	// contains filtered or unexported fields
}

func (*IsMovieExistsRequest) Descriptor deprecated

func (*IsMovieExistsRequest) Descriptor() ([]byte, []int)

Deprecated: Use IsMovieExistsRequest.ProtoReflect.Descriptor instead.

func (*IsMovieExistsRequest) GetMovieID

func (x *IsMovieExistsRequest) GetMovieID() int32

func (*IsMovieExistsRequest) ProtoMessage

func (*IsMovieExistsRequest) ProtoMessage()

func (*IsMovieExistsRequest) ProtoReflect

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

func (*IsMovieExistsRequest) Reset

func (x *IsMovieExistsRequest) Reset()

func (*IsMovieExistsRequest) String

func (x *IsMovieExistsRequest) String() string

type IsMovieExistsResponce

type IsMovieExistsResponce struct {
	Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
	// contains filtered or unexported fields
}

func (*IsMovieExistsResponce) Descriptor deprecated

func (*IsMovieExistsResponce) Descriptor() ([]byte, []int)

Deprecated: Use IsMovieExistsResponce.ProtoReflect.Descriptor instead.

func (*IsMovieExistsResponce) GetExists

func (x *IsMovieExistsResponce) GetExists() bool

func (*IsMovieExistsResponce) ProtoMessage

func (*IsMovieExistsResponce) ProtoMessage()

func (*IsMovieExistsResponce) ProtoReflect

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

func (*IsMovieExistsResponce) Reset

func (x *IsMovieExistsResponce) Reset()

func (*IsMovieExistsResponce) String

func (x *IsMovieExistsResponce) String() string

type Movie

type Movie struct {
	Description      string   `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	ShortDescription string   `protobuf:"bytes,2,opt,name=shortDescription,json=short_description,proto3" json:"shortDescription,omitempty"`
	TitleRU          string   `protobuf:"bytes,3,opt,name=titleRU,json=title_ru,proto3" json:"titleRU,omitempty"`
	TitleEN          string   `protobuf:"bytes,4,opt,name=titleEN,json=title_en,proto3" json:"titleEN,omitempty"`
	Genres           []string `protobuf:"bytes,5,rep,name=genres,proto3" json:"genres,omitempty"`
	// movie duration in minutes
	Duration         int32    `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"`
	Countries        []string `protobuf:"bytes,7,rep,name=countries,proto3" json:"countries,omitempty"`
	PosterURL        string   `protobuf:"bytes,8,opt,name=posterURL,json=poster_url,proto3" json:"posterURL,omitempty"`
	PreviewPosterURL string   `protobuf:"bytes,9,opt,name=previewPosterURL,json=preview_poster_url,proto3" json:"previewPosterURL,omitempty"`
	BackgroundURL    string   `protobuf:"bytes,10,opt,name=backgroundURL,json=background_url,proto3" json:"backgroundURL,omitempty"`
	ReleaseYear      int32    `protobuf:"varint,11,opt,name=releaseYear,json=release_year,proto3" json:"releaseYear,omitempty"`
	AgeRating        string   `protobuf:"bytes,12,opt,name=ageRating,json=age_rating,proto3" json:"ageRating,omitempty"`
	// contains filtered or unexported fields
}

func (*Movie) Descriptor deprecated

func (*Movie) Descriptor() ([]byte, []int)

Deprecated: Use Movie.ProtoReflect.Descriptor instead.

func (*Movie) GetAgeRating

func (x *Movie) GetAgeRating() string

func (*Movie) GetBackgroundURL

func (x *Movie) GetBackgroundURL() string

func (*Movie) GetCountries

func (x *Movie) GetCountries() []string

func (*Movie) GetDescription

func (x *Movie) GetDescription() string

func (*Movie) GetDuration

func (x *Movie) GetDuration() int32

func (*Movie) GetGenres

func (x *Movie) GetGenres() []string

func (*Movie) GetPosterURL

func (x *Movie) GetPosterURL() string

func (*Movie) GetPreviewPosterURL

func (x *Movie) GetPreviewPosterURL() string

func (*Movie) GetReleaseYear

func (x *Movie) GetReleaseYear() int32

func (*Movie) GetShortDescription

func (x *Movie) GetShortDescription() string

func (*Movie) GetTitleEN

func (x *Movie) GetTitleEN() string

func (*Movie) GetTitleRU

func (x *Movie) GetTitleRU() string

func (*Movie) ProtoMessage

func (*Movie) ProtoMessage()

func (*Movie) ProtoReflect

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

func (*Movie) Reset

func (x *Movie) Reset()

func (*Movie) String

func (x *Movie) String() string

type MovieDuration

type MovieDuration struct {
	Duration uint32 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*MovieDuration) Descriptor deprecated

func (*MovieDuration) Descriptor() ([]byte, []int)

Deprecated: Use MovieDuration.ProtoReflect.Descriptor instead.

func (*MovieDuration) GetDuration

func (x *MovieDuration) GetDuration() uint32

func (*MovieDuration) ProtoMessage

func (*MovieDuration) ProtoMessage()

func (*MovieDuration) ProtoReflect

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

func (*MovieDuration) Reset

func (x *MovieDuration) Reset()

func (*MovieDuration) String

func (x *MovieDuration) String() string

type Movies

type Movies struct {
	Movies map[int32]*Movie `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Movies) Descriptor deprecated

func (*Movies) Descriptor() ([]byte, []int)

Deprecated: Use Movies.ProtoReflect.Descriptor instead.

func (*Movies) GetMovies

func (x *Movies) GetMovies() map[int32]*Movie

func (*Movies) ProtoMessage

func (*Movies) ProtoMessage()

func (*Movies) ProtoReflect

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

func (*Movies) Reset

func (x *Movies) Reset()

func (*Movies) String

func (x *Movies) String() string

type MoviesDuration

type MoviesDuration struct {

	// key - movie id, value - duration
	Durations map[int32]uint32 `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MoviesDuration) Descriptor deprecated

func (*MoviesDuration) Descriptor() ([]byte, []int)

Deprecated: Use MoviesDuration.ProtoReflect.Descriptor instead.

func (*MoviesDuration) GetDurations

func (x *MoviesDuration) GetDurations() map[int32]uint32

func (*MoviesDuration) ProtoMessage

func (*MoviesDuration) ProtoMessage()

func (*MoviesDuration) ProtoReflect

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

func (*MoviesDuration) Reset

func (x *MoviesDuration) Reset()

func (*MoviesDuration) String

func (x *MoviesDuration) String() string

type MoviesServiceV1Client

type MoviesServiceV1Client interface {
	// Returns movie with the specified id.
	GetMovie(ctx context.Context, in *GetMovieRequest, opts ...grpc.CallOption) (*Movie, error)
	// Returns movie duration for the movie with specified id.
	GetMovieDuration(ctx context.Context, in *GetMovieDurationRequest, opts ...grpc.CallOption) (*MovieDuration, error)
	// Returns movies with the specified ids.
	GetMovies(ctx context.Context, in *GetMoviesRequest, opts ...grpc.CallOption) (*Movies, error)
	// Returns movies durations with the specified ids.
	GetMoviesDuration(ctx context.Context, in *GetMoviesDurationRequest, opts ...grpc.CallOption) (*MoviesDuration, error)
	// Create movie, returns created movie id.
	CreateMovie(ctx context.Context, in *CreateMovieRequest, opts ...grpc.CallOption) (*CreateMovieResponce, error)
	// Delete movie with the specified ids.
	DeleteMovie(ctx context.Context, in *DeleteMovieRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Check movie existance, returns false, if movie doesn't exist.
	IsMovieExists(ctx context.Context, in *IsMovieExistsRequest, opts ...grpc.CallOption) (*IsMovieExistsResponce, error)
	// Update movie fields.
	UpdateMovie(ctx context.Context, in *UpdateMovieRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Update movie pictures.
	UpdateMoviePictures(ctx context.Context, in *UpdateMoviePicturesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Returns all age ratings.
	GetAgeRatings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AgeRatings, error)
	// Create age rating.
	CreateAgeRating(ctx context.Context, in *CreateAgeRatingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete age rating.
	DeleteAgeRating(ctx context.Context, in *DeleteAgeRatingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Returns genre with specified id.
	GetGenre(ctx context.Context, in *GetGenreRequest, opts ...grpc.CallOption) (*Genre, error)
	// Returns genre with specified name.
	GetGenreByName(ctx context.Context, in *GetGenreByNameRequest, opts ...grpc.CallOption) (*Genre, error)
	// Create genre.
	CreateGenre(ctx context.Context, in *CreateGenreRequest, opts ...grpc.CallOption) (*CreateGenreResponce, error)
	// Returns all genres.
	GetGenres(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Genres, error)
	// Update genre with specified id.
	UpdateGenre(ctx context.Context, in *UpdateGenreRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete genre with specified id.
	DeleteGenre(ctx context.Context, in *DeleteGenreRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Check genres existance, returns false and not exists ids, if any genre in request doesn't exist.
	IsGenresExists(ctx context.Context, in *IsGenresExistsRequest, opts ...grpc.CallOption) (*ExistsResponce, error)
	// Returns county with specified id.
	GetCountry(ctx context.Context, in *GetCountryRequest, opts ...grpc.CallOption) (*Country, error)
	// Returns country with specified name.
	GetCountryByName(ctx context.Context, in *GetCountryByNameRequest, opts ...grpc.CallOption) (*Country, error)
	// Create country.
	CreateCountry(ctx context.Context, in *CreateCountryRequest, opts ...grpc.CallOption) (*CreateCountryResponce, error)
	// Returns all countries.
	GetCountries(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Countries, error)
	// Update country with specified id.
	UpdateCountry(ctx context.Context, in *UpdateCountryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete country with specified id.
	DeleteCountry(ctx context.Context, in *DeleteCountryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Check countries existance, returns false and not exists ids, if any country in request doesn't exist.
	IsCountriesExists(ctx context.Context, in *IsCountriesExistsRequest, opts ...grpc.CallOption) (*ExistsResponce, error)
}

MoviesServiceV1Client is the client API for MoviesServiceV1 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 MoviesServiceV1Server

type MoviesServiceV1Server interface {
	// Returns movie with the specified id.
	GetMovie(context.Context, *GetMovieRequest) (*Movie, error)
	// Returns movie duration for the movie with specified id.
	GetMovieDuration(context.Context, *GetMovieDurationRequest) (*MovieDuration, error)
	// Returns movies with the specified ids.
	GetMovies(context.Context, *GetMoviesRequest) (*Movies, error)
	// Returns movies durations with the specified ids.
	GetMoviesDuration(context.Context, *GetMoviesDurationRequest) (*MoviesDuration, error)
	// Create movie, returns created movie id.
	CreateMovie(context.Context, *CreateMovieRequest) (*CreateMovieResponce, error)
	// Delete movie with the specified ids.
	DeleteMovie(context.Context, *DeleteMovieRequest) (*emptypb.Empty, error)
	// Check movie existance, returns false, if movie doesn't exist.
	IsMovieExists(context.Context, *IsMovieExistsRequest) (*IsMovieExistsResponce, error)
	// Update movie fields.
	UpdateMovie(context.Context, *UpdateMovieRequest) (*emptypb.Empty, error)
	// Update movie pictures.
	UpdateMoviePictures(context.Context, *UpdateMoviePicturesRequest) (*emptypb.Empty, error)
	// Returns all age ratings.
	GetAgeRatings(context.Context, *emptypb.Empty) (*AgeRatings, error)
	// Create age rating.
	CreateAgeRating(context.Context, *CreateAgeRatingRequest) (*emptypb.Empty, error)
	// Delete age rating.
	DeleteAgeRating(context.Context, *DeleteAgeRatingRequest) (*emptypb.Empty, error)
	// Returns genre with specified id.
	GetGenre(context.Context, *GetGenreRequest) (*Genre, error)
	// Returns genre with specified name.
	GetGenreByName(context.Context, *GetGenreByNameRequest) (*Genre, error)
	// Create genre.
	CreateGenre(context.Context, *CreateGenreRequest) (*CreateGenreResponce, error)
	// Returns all genres.
	GetGenres(context.Context, *emptypb.Empty) (*Genres, error)
	// Update genre with specified id.
	UpdateGenre(context.Context, *UpdateGenreRequest) (*emptypb.Empty, error)
	// Delete genre with specified id.
	DeleteGenre(context.Context, *DeleteGenreRequest) (*emptypb.Empty, error)
	// Check genres existance, returns false and not exists ids, if any genre in request doesn't exist.
	IsGenresExists(context.Context, *IsGenresExistsRequest) (*ExistsResponce, error)
	// Returns county with specified id.
	GetCountry(context.Context, *GetCountryRequest) (*Country, error)
	// Returns country with specified name.
	GetCountryByName(context.Context, *GetCountryByNameRequest) (*Country, error)
	// Create country.
	CreateCountry(context.Context, *CreateCountryRequest) (*CreateCountryResponce, error)
	// Returns all countries.
	GetCountries(context.Context, *emptypb.Empty) (*Countries, error)
	// Update country with specified id.
	UpdateCountry(context.Context, *UpdateCountryRequest) (*emptypb.Empty, error)
	// Delete country with specified id.
	DeleteCountry(context.Context, *DeleteCountryRequest) (*emptypb.Empty, error)
	// Check countries existance, returns false and not exists ids, if any country in request doesn't exist.
	IsCountriesExists(context.Context, *IsCountriesExistsRequest) (*ExistsResponce, error)
	// contains filtered or unexported methods
}

MoviesServiceV1Server is the server API for MoviesServiceV1 service. All implementations must embed UnimplementedMoviesServiceV1Server for forward compatibility

type UnimplementedMoviesServiceV1Server

type UnimplementedMoviesServiceV1Server struct {
}

UnimplementedMoviesServiceV1Server must be embedded to have forward compatible implementations.

func (UnimplementedMoviesServiceV1Server) CreateAgeRating

func (UnimplementedMoviesServiceV1Server) CreateCountry

func (UnimplementedMoviesServiceV1Server) CreateGenre

func (UnimplementedMoviesServiceV1Server) CreateMovie

func (UnimplementedMoviesServiceV1Server) DeleteAgeRating

func (UnimplementedMoviesServiceV1Server) DeleteCountry

func (UnimplementedMoviesServiceV1Server) DeleteGenre

func (UnimplementedMoviesServiceV1Server) DeleteMovie

func (UnimplementedMoviesServiceV1Server) GetAgeRatings

func (UnimplementedMoviesServiceV1Server) GetCountries

func (UnimplementedMoviesServiceV1Server) GetCountry

func (UnimplementedMoviesServiceV1Server) GetCountryByName

func (UnimplementedMoviesServiceV1Server) GetGenre

func (UnimplementedMoviesServiceV1Server) GetGenreByName

func (UnimplementedMoviesServiceV1Server) GetGenres

func (UnimplementedMoviesServiceV1Server) GetMovie

func (UnimplementedMoviesServiceV1Server) GetMovieDuration

func (UnimplementedMoviesServiceV1Server) GetMovies

func (UnimplementedMoviesServiceV1Server) GetMoviesDuration

func (UnimplementedMoviesServiceV1Server) IsCountriesExists

func (UnimplementedMoviesServiceV1Server) IsGenresExists

func (UnimplementedMoviesServiceV1Server) IsMovieExists

func (UnimplementedMoviesServiceV1Server) UpdateCountry

func (UnimplementedMoviesServiceV1Server) UpdateGenre

func (UnimplementedMoviesServiceV1Server) UpdateMovie

func (UnimplementedMoviesServiceV1Server) UpdateMoviePictures

type UnsafeMoviesServiceV1Server

type UnsafeMoviesServiceV1Server interface {
	// contains filtered or unexported methods
}

UnsafeMoviesServiceV1Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MoviesServiceV1Server will result in compilation errors.

type UpdateCountryRequest

type UpdateCountryRequest struct {
	CountryID int32  `protobuf:"varint,1,opt,name=countryID,json=country_id,proto3" json:"countryID,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCountryRequest) Descriptor deprecated

func (*UpdateCountryRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCountryRequest.ProtoReflect.Descriptor instead.

func (*UpdateCountryRequest) GetCountryID

func (x *UpdateCountryRequest) GetCountryID() int32

func (*UpdateCountryRequest) GetName

func (x *UpdateCountryRequest) GetName() string

func (*UpdateCountryRequest) ProtoMessage

func (*UpdateCountryRequest) ProtoMessage()

func (*UpdateCountryRequest) ProtoReflect

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

func (*UpdateCountryRequest) Reset

func (x *UpdateCountryRequest) Reset()

func (*UpdateCountryRequest) String

func (x *UpdateCountryRequest) String() string

type UpdateGenreRequest

type UpdateGenreRequest struct {
	GenreID int32  `protobuf:"varint,1,opt,name=GenreID,json=genre_id,proto3" json:"GenreID,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGenreRequest) Descriptor deprecated

func (*UpdateGenreRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateGenreRequest.ProtoReflect.Descriptor instead.

func (*UpdateGenreRequest) GetGenreID

func (x *UpdateGenreRequest) GetGenreID() int32

func (*UpdateGenreRequest) GetName

func (x *UpdateGenreRequest) GetName() string

func (*UpdateGenreRequest) ProtoMessage

func (*UpdateGenreRequest) ProtoMessage()

func (*UpdateGenreRequest) ProtoReflect

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

func (*UpdateGenreRequest) Reset

func (x *UpdateGenreRequest) Reset()

func (*UpdateGenreRequest) String

func (x *UpdateGenreRequest) String() string

type UpdateMoviePicturesRequest

type UpdateMoviePicturesRequest struct {
	MovieID       int32  `protobuf:"varint,1,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	PreviewPoster []byte `protobuf:"bytes,2,opt,name=previewPoster,json=preview_poster,proto3" json:"previewPoster,omitempty"`
	Poster        []byte `protobuf:"bytes,3,opt,name=poster,proto3" json:"poster,omitempty"`
	Background    []byte `protobuf:"bytes,4,opt,name=background,proto3" json:"background,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMoviePicturesRequest) Descriptor deprecated

func (*UpdateMoviePicturesRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMoviePicturesRequest.ProtoReflect.Descriptor instead.

func (*UpdateMoviePicturesRequest) GetBackground

func (x *UpdateMoviePicturesRequest) GetBackground() []byte

func (*UpdateMoviePicturesRequest) GetMovieID

func (x *UpdateMoviePicturesRequest) GetMovieID() int32

func (*UpdateMoviePicturesRequest) GetPoster

func (x *UpdateMoviePicturesRequest) GetPoster() []byte

func (*UpdateMoviePicturesRequest) GetPreviewPoster

func (x *UpdateMoviePicturesRequest) GetPreviewPoster() []byte

func (*UpdateMoviePicturesRequest) ProtoMessage

func (*UpdateMoviePicturesRequest) ProtoMessage()

func (*UpdateMoviePicturesRequest) ProtoReflect

func (*UpdateMoviePicturesRequest) Reset

func (x *UpdateMoviePicturesRequest) Reset()

func (*UpdateMoviePicturesRequest) String

func (x *UpdateMoviePicturesRequest) String() string

type UpdateMovieRequest

type UpdateMovieRequest struct {
	MovieID          int32   `protobuf:"varint,1,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	Description      *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"`
	ShortDescription *string `protobuf:"bytes,3,opt,name=shortDescription,json=short_description,proto3,oneof" json:"shortDescription,omitempty"`
	TitleRU          *string `protobuf:"bytes,4,opt,name=titleRU,json=title_ru,proto3,oneof" json:"titleRU,omitempty"`
	TitleEN          *string `protobuf:"bytes,5,opt,name=titleEN,json=title_en,proto3,oneof" json:"titleEN,omitempty"`
	GenresIDs        []int32 `protobuf:"varint,6,rep,packed,name=genresIDs,json=genres_ids,proto3" json:"genresIDs,omitempty"`
	UpdateGenres     bool    `protobuf:"varint,7,opt,name=updateGenres,json=update_genres,proto3" json:"updateGenres,omitempty"`
	// movie duration in minutes
	Duration        *int32  `protobuf:"varint,8,opt,name=duration,proto3,oneof" json:"duration,omitempty"`
	CountriesIDs    []int32 `protobuf:"varint,9,rep,packed,name=countriesIDs,json=countries_ids,proto3" json:"countriesIDs,omitempty"`
	UpdateCountries bool    `protobuf:"varint,10,opt,name=UpdateCountries,json=update_countries,proto3" json:"UpdateCountries,omitempty"`
	ReleaseYear     *int32  `protobuf:"varint,11,opt,name=releaseYear,json=release_year,proto3,oneof" json:"releaseYear,omitempty"`
	AgeRating       *string `protobuf:"bytes,12,opt,name=ageRating,json=age_rating,proto3,oneof" json:"ageRating,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMovieRequest) Descriptor deprecated

func (*UpdateMovieRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMovieRequest.ProtoReflect.Descriptor instead.

func (*UpdateMovieRequest) GetAgeRating

func (x *UpdateMovieRequest) GetAgeRating() string

func (*UpdateMovieRequest) GetCountriesIDs

func (x *UpdateMovieRequest) GetCountriesIDs() []int32

func (*UpdateMovieRequest) GetDescription

func (x *UpdateMovieRequest) GetDescription() string

func (*UpdateMovieRequest) GetDuration

func (x *UpdateMovieRequest) GetDuration() int32

func (*UpdateMovieRequest) GetGenresIDs

func (x *UpdateMovieRequest) GetGenresIDs() []int32

func (*UpdateMovieRequest) GetMovieID

func (x *UpdateMovieRequest) GetMovieID() int32

func (*UpdateMovieRequest) GetReleaseYear

func (x *UpdateMovieRequest) GetReleaseYear() int32

func (*UpdateMovieRequest) GetShortDescription

func (x *UpdateMovieRequest) GetShortDescription() string

func (*UpdateMovieRequest) GetTitleEN

func (x *UpdateMovieRequest) GetTitleEN() string

func (*UpdateMovieRequest) GetTitleRU

func (x *UpdateMovieRequest) GetTitleRU() string

func (*UpdateMovieRequest) GetUpdateCountries

func (x *UpdateMovieRequest) GetUpdateCountries() bool

func (*UpdateMovieRequest) GetUpdateGenres

func (x *UpdateMovieRequest) GetUpdateGenres() bool

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

type UserErrorMessage

type UserErrorMessage struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UserErrorMessage) Descriptor deprecated

func (*UserErrorMessage) Descriptor() ([]byte, []int)

Deprecated: Use UserErrorMessage.ProtoReflect.Descriptor instead.

func (*UserErrorMessage) GetMessage

func (x *UserErrorMessage) GetMessage() string

func (*UserErrorMessage) ProtoMessage

func (*UserErrorMessage) ProtoMessage()

func (*UserErrorMessage) ProtoReflect

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

func (*UserErrorMessage) Reset

func (x *UserErrorMessage) Reset()

func (*UserErrorMessage) String

func (x *UserErrorMessage) String() string

Jump to

Keyboard shortcuts

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