// Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.11.0 // protoc v6.33.4 // source: movie.proto /* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { Observable } from "rxjs"; import { Timestamp } from "./google/protobuf/timestamp"; export const protobufPackage = "movie.v1"; export interface ListMovieRequest { category: string; random: boolean; limit: number; } export interface ListMovieResponse { movies: Movie[]; } export interface GetMovieRequest { id?: string | undefined; slug?: string | undefined; } export interface GetMovieResponse { movie: MovieDetails | undefined; } export interface Movie { id: string; title: string; slug: string; poster: string; ratingAge: number; releaseDate: Timestamp | undefined; } export interface MovieDetails { id: string; title: string; slug: string; description: string; poster: string; banner: string; duration: number; ratingAge: number; country: string; releaseDate: Timestamp | undefined; } export const MOVIE_V1_PACKAGE_NAME = "movie.v1"; export interface MovieServiceClient { listMovies(request: ListMovieRequest): Observable; getMovie(request: GetMovieRequest): Observable; } export interface MovieServiceController { listMovies(request: ListMovieRequest): Promise | Observable | ListMovieResponse; getMovie(request: GetMovieRequest): Promise | Observable | GetMovieResponse; } export function MovieServiceControllerMethods() { return function (constructor: Function) { const grpcMethods: string[] = ["listMovies", "getMovie"]; for (const method of grpcMethods) { const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); GrpcMethod("MovieService", method)(constructor.prototype[method], method, descriptor); } const grpcStreamMethods: string[] = []; for (const method of grpcStreamMethods) { const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); GrpcStreamMethod("MovieService", method)(constructor.prototype[method], method, descriptor); } }; } export const MOVIE_SERVICE_NAME = "MovieService";