protos

package
v0.0.0-...-ab8551a Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 19 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 CinemaServiceV1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cinema_service.cinemaServiceV1",
	HandlerType: (*CinemaServiceV1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCinemasCities",
			Handler:    _CinemaServiceV1_GetCinemasCities_Handler,
		},
		{
			MethodName: "GetCinemasInCity",
			Handler:    _CinemaServiceV1_GetCinemasInCity_Handler,
		},
		{
			MethodName: "GetCinema",
			Handler:    _CinemaServiceV1_GetCinema_Handler,
		},
		{
			MethodName: "GetScreening",
			Handler:    _CinemaServiceV1_GetScreening_Handler,
		},
		{
			MethodName: "GetMoviesScreenings",
			Handler:    _CinemaServiceV1_GetMoviesScreenings_Handler,
		},
		{
			MethodName: "GetMoviesScreeningsInCities",
			Handler:    _CinemaServiceV1_GetMoviesScreeningsInCities_Handler,
		},
		{
			MethodName: "GetScreeningsInCity",
			Handler:    _CinemaServiceV1_GetScreeningsInCity_Handler,
		},
		{
			MethodName: "GetHalls",
			Handler:    _CinemaServiceV1_GetHalls_Handler,
		},
		{
			MethodName: "GetScreenings",
			Handler:    _CinemaServiceV1_GetScreenings_Handler,
		},
		{
			MethodName: "GetHallConfiguration",
			Handler:    _CinemaServiceV1_GetHallConfiguration_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cinema_service_v1.proto",
}

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

View Source
var File_cinema_service_v1_messages_proto protoreflect.FileDescriptor
View Source
var File_cinema_service_v1_proto protoreflect.FileDescriptor

Functions

func RegisterCinemaServiceV1Handler

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

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

func RegisterCinemaServiceV1HandlerClient

func RegisterCinemaServiceV1HandlerClient(ctx context.Context, mux *runtime.ServeMux, client CinemaServiceV1Client) error

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

func RegisterCinemaServiceV1HandlerFromEndpoint

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

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

func RegisterCinemaServiceV1HandlerServer

func RegisterCinemaServiceV1HandlerServer(ctx context.Context, mux *runtime.ServeMux, server CinemaServiceV1Server) error

RegisterCinemaServiceV1HandlerServer registers the http handlers for service CinemaServiceV1 to "mux". UnaryRPC :call CinemaServiceV1Server 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 RegisterCinemaServiceV1HandlerFromEndpoint instead.

func RegisterCinemaServiceV1Server

func RegisterCinemaServiceV1Server(s grpc.ServiceRegistrar, srv CinemaServiceV1Server)

Types

type Cinema

type Cinema struct {
	CinemaID    int32        `protobuf:"varint,1,opt,name=cinemaID,json=cinema_id,proto3" json:"cinemaID,omitempty"`
	Name        string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Address     string       `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Coordinates *Coordinates `protobuf:"bytes,4,opt,name=coordinates,proto3" json:"coordinates,omitempty"`
	// contains filtered or unexported fields
}

func (*Cinema) Descriptor deprecated

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

Deprecated: Use Cinema.ProtoReflect.Descriptor instead.

func (*Cinema) GetAddress

func (x *Cinema) GetAddress() string

func (*Cinema) GetCinemaID

func (x *Cinema) GetCinemaID() int32

func (*Cinema) GetCoordinates

func (x *Cinema) GetCoordinates() *Coordinates

func (*Cinema) GetName

func (x *Cinema) GetName() string

func (*Cinema) ProtoMessage

func (*Cinema) ProtoMessage()

func (*Cinema) ProtoReflect

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

func (*Cinema) Reset

func (x *Cinema) Reset()

func (*Cinema) String

func (x *Cinema) String() string

type CinemaServiceV1Client

type CinemaServiceV1Client interface {
	// Returns all cities where there are cinemas.
	GetCinemasCities(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Cities, error)
	// Returns cinemas in the city.
	GetCinemasInCity(ctx context.Context, in *GetCinemasInCityRequest, opts ...grpc.CallOption) (*Cinemas, error)
	// Returns cinema with specified id.
	GetCinema(ctx context.Context, in *GetCinemaRequest, opts ...grpc.CallOption) (*Cinema, error)
	// Returns info about screening.
	GetScreening(ctx context.Context, in *GetScreeningRequest, opts ...grpc.CallOption) (*GetScreeningResponse, error)
	// Returns all movies that are in the cinema screenings in a particular cinema.
	GetMoviesScreenings(ctx context.Context, in *GetMoviesScreeningsRequest, opts ...grpc.CallOption) (*PreviewScreenings, error)
	// Returns all movies screenings in the cinema screenings in specified cities, or in all cities, if not specified.
	GetMoviesScreeningsInCities(ctx context.Context, in *GetMoviesScreeningsInCitiesRequest, opts ...grpc.CallOption) (*PreviewScreenings, error)
	// Returns screenings in the cinema screenings in specified city with specified movie_id.
	GetScreeningsInCity(ctx context.Context, in *GetScreeningsInCityRequest, opts ...grpc.CallOption) (*CityScreenings, error)
	// Returns info for the halls with specified ids (without configuration).
	GetHalls(ctx context.Context, in *GetHallsRequest, opts ...grpc.CallOption) (*Halls, error)
	// Returns all screenings for a movie in a specific cinema.
	GetScreenings(ctx context.Context, in *GetScreeningsRequest, opts ...grpc.CallOption) (*Screenings, error)
	// Returns the configuration of the hall.
	GetHallConfiguration(ctx context.Context, in *GetHallConfigurationRequest, opts ...grpc.CallOption) (*HallConfiguration, error)
}

CinemaServiceV1Client is the client API for CinemaServiceV1 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 CinemaServiceV1Server

type CinemaServiceV1Server interface {
	// Returns all cities where there are cinemas.
	GetCinemasCities(context.Context, *emptypb.Empty) (*Cities, error)
	// Returns cinemas in the city.
	GetCinemasInCity(context.Context, *GetCinemasInCityRequest) (*Cinemas, error)
	// Returns cinema with specified id.
	GetCinema(context.Context, *GetCinemaRequest) (*Cinema, error)
	// Returns info about screening.
	GetScreening(context.Context, *GetScreeningRequest) (*GetScreeningResponse, error)
	// Returns all movies that are in the cinema screenings in a particular cinema.
	GetMoviesScreenings(context.Context, *GetMoviesScreeningsRequest) (*PreviewScreenings, error)
	// Returns all movies screenings in the cinema screenings in specified cities, or in all cities, if not specified.
	GetMoviesScreeningsInCities(context.Context, *GetMoviesScreeningsInCitiesRequest) (*PreviewScreenings, error)
	// Returns screenings in the cinema screenings in specified city with specified movie_id.
	GetScreeningsInCity(context.Context, *GetScreeningsInCityRequest) (*CityScreenings, error)
	// Returns info for the halls with specified ids (without configuration).
	GetHalls(context.Context, *GetHallsRequest) (*Halls, error)
	// Returns all screenings for a movie in a specific cinema.
	GetScreenings(context.Context, *GetScreeningsRequest) (*Screenings, error)
	// Returns the configuration of the hall.
	GetHallConfiguration(context.Context, *GetHallConfigurationRequest) (*HallConfiguration, error)
	// contains filtered or unexported methods
}

CinemaServiceV1Server is the server API for CinemaServiceV1 service. All implementations must embed UnimplementedCinemaServiceV1Server for forward compatibility

type Cinemas

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

func (*Cinemas) Descriptor deprecated

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

Deprecated: Use Cinemas.ProtoReflect.Descriptor instead.

func (*Cinemas) GetCinemas

func (x *Cinemas) GetCinemas() []*Cinema

func (*Cinemas) ProtoMessage

func (*Cinemas) ProtoMessage()

func (*Cinemas) ProtoReflect

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

func (*Cinemas) Reset

func (x *Cinemas) Reset()

func (*Cinemas) String

func (x *Cinemas) String() string

type Cities

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

func (*Cities) Descriptor deprecated

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

Deprecated: Use Cities.ProtoReflect.Descriptor instead.

func (*Cities) GetCities

func (x *Cities) GetCities() []*City

func (*Cities) ProtoMessage

func (*Cities) ProtoMessage()

func (*Cities) ProtoReflect

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

func (*Cities) Reset

func (x *Cities) Reset()

func (*Cities) String

func (x *Cities) String() string

type City

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

func (*City) Descriptor deprecated

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

Deprecated: Use City.ProtoReflect.Descriptor instead.

func (*City) GetCityID

func (x *City) GetCityID() int32

func (*City) GetName

func (x *City) GetName() string

func (*City) ProtoMessage

func (*City) ProtoMessage()

func (*City) ProtoReflect

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

func (*City) Reset

func (x *City) Reset()

func (*City) String

func (x *City) String() string

type CityScreening

type CityScreening struct {
	ScreeningID   int64      `protobuf:"varint,1,opt,name=screeningID,json=screening_id,proto3" json:"screeningID,omitempty"`
	CinemaID      int32      `protobuf:"varint,2,opt,name=cinemaID,json=cinema_id,proto3" json:"cinemaID,omitempty"`
	ScreeningType string     `protobuf:"bytes,3,opt,name=screeningType,json=screening_type,proto3" json:"screeningType,omitempty"`
	StartTime     *Timestamp `protobuf:"bytes,4,opt,name=startTime,json=start_time,proto3" json:"startTime,omitempty"`
	HallID        int32      `protobuf:"varint,5,opt,name=hallID,json=hall_id,proto3" json:"hallID,omitempty"`
	TicketPrice   *Price     `protobuf:"bytes,6,opt,name=ticketPrice,json=ticket_price,proto3" json:"ticketPrice,omitempty"`
	// contains filtered or unexported fields
}

func (*CityScreening) Descriptor deprecated

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

Deprecated: Use CityScreening.ProtoReflect.Descriptor instead.

func (*CityScreening) GetCinemaID

func (x *CityScreening) GetCinemaID() int32

func (*CityScreening) GetHallID

func (x *CityScreening) GetHallID() int32

func (*CityScreening) GetScreeningID

func (x *CityScreening) GetScreeningID() int64

func (*CityScreening) GetScreeningType

func (x *CityScreening) GetScreeningType() string

func (*CityScreening) GetStartTime

func (x *CityScreening) GetStartTime() *Timestamp

func (*CityScreening) GetTicketPrice

func (x *CityScreening) GetTicketPrice() *Price

func (*CityScreening) ProtoMessage

func (*CityScreening) ProtoMessage()

func (*CityScreening) ProtoReflect

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

func (*CityScreening) Reset

func (x *CityScreening) Reset()

func (*CityScreening) String

func (x *CityScreening) String() string

type CityScreenings

type CityScreenings struct {
	Screenings []*CityScreening `protobuf:"bytes,1,rep,name=screenings,proto3" json:"screenings,omitempty"`
	// contains filtered or unexported fields
}

func (*CityScreenings) Descriptor deprecated

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

Deprecated: Use CityScreenings.ProtoReflect.Descriptor instead.

func (*CityScreenings) GetScreenings

func (x *CityScreenings) GetScreenings() []*CityScreening

func (*CityScreenings) ProtoMessage

func (*CityScreenings) ProtoMessage()

func (*CityScreenings) ProtoReflect

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

func (*CityScreenings) Reset

func (x *CityScreenings) Reset()

func (*CityScreenings) String

func (x *CityScreenings) String() string

type Coordinates

type Coordinates struct {
	Latityde  float64 `protobuf:"fixed64,1,opt,name=latityde,proto3" json:"latityde,omitempty"`
	Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
	// contains filtered or unexported fields
}

func (*Coordinates) Descriptor deprecated

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

Deprecated: Use Coordinates.ProtoReflect.Descriptor instead.

func (*Coordinates) GetLatityde

func (x *Coordinates) GetLatityde() float64

func (*Coordinates) GetLongitude

func (x *Coordinates) GetLongitude() float64

func (*Coordinates) ProtoMessage

func (*Coordinates) ProtoMessage()

func (*Coordinates) ProtoReflect

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

func (*Coordinates) Reset

func (x *Coordinates) Reset()

func (*Coordinates) String

func (x *Coordinates) String() string

type GetCinemaHalls

type GetCinemaHalls struct {
	CinemaID int32 `protobuf:"varint,1,opt,name=cinemaID,json=cinema_id,proto3" json:"cinemaID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCinemaHalls) Descriptor deprecated

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

Deprecated: Use GetCinemaHalls.ProtoReflect.Descriptor instead.

func (*GetCinemaHalls) GetCinemaID

func (x *GetCinemaHalls) GetCinemaID() int32

func (*GetCinemaHalls) ProtoMessage

func (*GetCinemaHalls) ProtoMessage()

func (*GetCinemaHalls) ProtoReflect

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

func (*GetCinemaHalls) Reset

func (x *GetCinemaHalls) Reset()

func (*GetCinemaHalls) String

func (x *GetCinemaHalls) String() string

type GetCinemaRequest

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

func (*GetCinemaRequest) Descriptor deprecated

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

Deprecated: Use GetCinemaRequest.ProtoReflect.Descriptor instead.

func (*GetCinemaRequest) GetCinemaID

func (x *GetCinemaRequest) GetCinemaID() int32

func (*GetCinemaRequest) ProtoMessage

func (*GetCinemaRequest) ProtoMessage()

func (*GetCinemaRequest) ProtoReflect

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

func (*GetCinemaRequest) Reset

func (x *GetCinemaRequest) Reset()

func (*GetCinemaRequest) String

func (x *GetCinemaRequest) String() string

type GetCinemasInCityRequest

type GetCinemasInCityRequest struct {
	CityID int32 `protobuf:"varint,1,opt,name=cityID,json=city_id,proto3" json:"cityID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCinemasInCityRequest) Descriptor deprecated

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

Deprecated: Use GetCinemasInCityRequest.ProtoReflect.Descriptor instead.

func (*GetCinemasInCityRequest) GetCityID

func (x *GetCinemasInCityRequest) GetCityID() int32

func (*GetCinemasInCityRequest) ProtoMessage

func (*GetCinemasInCityRequest) ProtoMessage()

func (*GetCinemasInCityRequest) ProtoReflect

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

func (*GetCinemasInCityRequest) Reset

func (x *GetCinemasInCityRequest) Reset()

func (*GetCinemasInCityRequest) String

func (x *GetCinemasInCityRequest) String() string

type GetHallConfigurationRequest

type GetHallConfigurationRequest struct {
	HallID int32 `protobuf:"varint,1,opt,name=hallID,json=hall_id,proto3" json:"hallID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHallConfigurationRequest) Descriptor deprecated

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

Deprecated: Use GetHallConfigurationRequest.ProtoReflect.Descriptor instead.

func (*GetHallConfigurationRequest) GetHallID

func (x *GetHallConfigurationRequest) GetHallID() int32

func (*GetHallConfigurationRequest) ProtoMessage

func (*GetHallConfigurationRequest) ProtoMessage()

func (*GetHallConfigurationRequest) ProtoReflect

func (*GetHallConfigurationRequest) Reset

func (x *GetHallConfigurationRequest) Reset()

func (*GetHallConfigurationRequest) String

func (x *GetHallConfigurationRequest) String() string

type GetHallsRequest

type GetHallsRequest struct {

	// for multiple values use ',' separator
	HallsIds string `protobuf:"bytes,1,opt,name=hallsIds,json=halls_ids,proto3" json:"hallsIds,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHallsRequest) Descriptor deprecated

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

Deprecated: Use GetHallsRequest.ProtoReflect.Descriptor instead.

func (*GetHallsRequest) GetHallsIds

func (x *GetHallsRequest) GetHallsIds() string

func (*GetHallsRequest) ProtoMessage

func (*GetHallsRequest) ProtoMessage()

func (*GetHallsRequest) ProtoReflect

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

func (*GetHallsRequest) Reset

func (x *GetHallsRequest) Reset()

func (*GetHallsRequest) String

func (x *GetHallsRequest) String() string

type GetMoviesScreeningsInCitiesRequest

type GetMoviesScreeningsInCitiesRequest struct {

	// cities ids empty, returns all screenings without city id matching, for multiple values use ',' as separator
	CitiesIds   *string    `protobuf:"bytes,1,opt,name=citiesIds,json=cities_ids,proto3,oneof" json:"citiesIds,omitempty"`
	StartPeriod *Timestamp `protobuf:"bytes,2,opt,name=startPeriod,json=start_period,proto3" json:"startPeriod,omitempty"`
	EndPeriod   *Timestamp `protobuf:"bytes,3,opt,name=endPeriod,json=end_period,proto3" json:"endPeriod,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMoviesScreeningsInCitiesRequest) Descriptor deprecated

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

Deprecated: Use GetMoviesScreeningsInCitiesRequest.ProtoReflect.Descriptor instead.

func (*GetMoviesScreeningsInCitiesRequest) GetCitiesIds

func (x *GetMoviesScreeningsInCitiesRequest) GetCitiesIds() string

func (*GetMoviesScreeningsInCitiesRequest) GetEndPeriod

func (x *GetMoviesScreeningsInCitiesRequest) GetEndPeriod() *Timestamp

func (*GetMoviesScreeningsInCitiesRequest) GetStartPeriod

func (x *GetMoviesScreeningsInCitiesRequest) GetStartPeriod() *Timestamp

func (*GetMoviesScreeningsInCitiesRequest) ProtoMessage

func (*GetMoviesScreeningsInCitiesRequest) ProtoMessage()

func (*GetMoviesScreeningsInCitiesRequest) ProtoReflect

func (*GetMoviesScreeningsInCitiesRequest) Reset

func (*GetMoviesScreeningsInCitiesRequest) String

type GetMoviesScreeningsRequest

type GetMoviesScreeningsRequest struct {
	CinemaID    int32      `protobuf:"varint,1,opt,name=cinemaID,json=cinema_id,proto3" json:"cinemaID,omitempty"`
	StartPeriod *Timestamp `protobuf:"bytes,2,opt,name=startPeriod,json=start_period,proto3" json:"startPeriod,omitempty"`
	EndPeriod   *Timestamp `protobuf:"bytes,3,opt,name=endPeriod,json=end_period,proto3" json:"endPeriod,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMoviesScreeningsRequest) Descriptor deprecated

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

Deprecated: Use GetMoviesScreeningsRequest.ProtoReflect.Descriptor instead.

func (*GetMoviesScreeningsRequest) GetCinemaID

func (x *GetMoviesScreeningsRequest) GetCinemaID() int32

func (*GetMoviesScreeningsRequest) GetEndPeriod

func (x *GetMoviesScreeningsRequest) GetEndPeriod() *Timestamp

func (*GetMoviesScreeningsRequest) GetStartPeriod

func (x *GetMoviesScreeningsRequest) GetStartPeriod() *Timestamp

func (*GetMoviesScreeningsRequest) ProtoMessage

func (*GetMoviesScreeningsRequest) ProtoMessage()

func (*GetMoviesScreeningsRequest) ProtoReflect

func (*GetMoviesScreeningsRequest) Reset

func (x *GetMoviesScreeningsRequest) Reset()

func (*GetMoviesScreeningsRequest) String

func (x *GetMoviesScreeningsRequest) String() string

type GetScreeningRequest

type GetScreeningRequest struct {
	ScreeningID int64 `protobuf:"varint,1,opt,name=screeningID,json=screening_id,proto3" json:"screeningID,omitempty"`
	// Fields to return, valid array values is GetScreeningResponse fields names, leave it empty if you want get all fields
	Mask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=mask,proto3" json:"mask,omitempty"`
	// contains filtered or unexported fields
}

func (*GetScreeningRequest) Descriptor deprecated

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

Deprecated: Use GetScreeningRequest.ProtoReflect.Descriptor instead.

func (*GetScreeningRequest) GetMask

func (*GetScreeningRequest) GetScreeningID

func (x *GetScreeningRequest) GetScreeningID() int64

func (*GetScreeningRequest) ProtoMessage

func (*GetScreeningRequest) ProtoMessage()

func (*GetScreeningRequest) ProtoReflect

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

func (*GetScreeningRequest) Reset

func (x *GetScreeningRequest) Reset()

func (*GetScreeningRequest) String

func (x *GetScreeningRequest) String() string

type GetScreeningResponse

type GetScreeningResponse struct {
	CinemaID          int32              `protobuf:"varint,1,opt,name=cinemaID,json=cinema_id,proto3" json:"cinemaID,omitempty"`
	MovieID           int32              `protobuf:"varint,2,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	ScreeningType     string             `protobuf:"bytes,3,opt,name=screening_type,proto3" json:"screening_type,omitempty"`
	StartTime         *Timestamp         `protobuf:"bytes,4,opt,name=start_time,proto3" json:"start_time,omitempty"`
	HallID            int32              `protobuf:"varint,5,opt,name=hallID,json=hall_id,proto3" json:"hallID,omitempty"`
	TicketPrice       *Price             `protobuf:"bytes,6,opt,name=ticket_price,proto3" json:"ticket_price,omitempty"`
	HallConfiguration *HallConfiguration `protobuf:"bytes,7,opt,name=hall_configuration,proto3" json:"hall_configuration,omitempty"`
	// contains filtered or unexported fields
}

func (*GetScreeningResponse) Descriptor deprecated

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

Deprecated: Use GetScreeningResponse.ProtoReflect.Descriptor instead.

func (*GetScreeningResponse) GetCinemaID

func (x *GetScreeningResponse) GetCinemaID() int32

func (*GetScreeningResponse) GetHallConfiguration

func (x *GetScreeningResponse) GetHallConfiguration() *HallConfiguration

func (*GetScreeningResponse) GetHallID

func (x *GetScreeningResponse) GetHallID() int32

func (*GetScreeningResponse) GetMovieID

func (x *GetScreeningResponse) GetMovieID() int32

func (*GetScreeningResponse) GetScreeningType

func (x *GetScreeningResponse) GetScreeningType() string

func (*GetScreeningResponse) GetStartTime

func (x *GetScreeningResponse) GetStartTime() *Timestamp

func (*GetScreeningResponse) GetTicketPrice

func (x *GetScreeningResponse) GetTicketPrice() *Price

func (*GetScreeningResponse) ProtoMessage

func (*GetScreeningResponse) ProtoMessage()

func (*GetScreeningResponse) ProtoReflect

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

func (*GetScreeningResponse) Reset

func (x *GetScreeningResponse) Reset()

func (*GetScreeningResponse) String

func (x *GetScreeningResponse) String() string

type GetScreeningsInCityRequest

type GetScreeningsInCityRequest struct {
	CityID      int32      `protobuf:"varint,1,opt,name=cityID,json=city_id,proto3" json:"cityID,omitempty"`
	MovieID     int32      `protobuf:"varint,2,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	StartPeriod *Timestamp `protobuf:"bytes,3,opt,name=startPeriod,json=start_period,proto3" json:"startPeriod,omitempty"`
	EndPeriod   *Timestamp `protobuf:"bytes,4,opt,name=endPeriod,json=end_period,proto3" json:"endPeriod,omitempty"`
	// contains filtered or unexported fields
}

func (*GetScreeningsInCityRequest) Descriptor deprecated

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

Deprecated: Use GetScreeningsInCityRequest.ProtoReflect.Descriptor instead.

func (*GetScreeningsInCityRequest) GetCityID

func (x *GetScreeningsInCityRequest) GetCityID() int32

func (*GetScreeningsInCityRequest) GetEndPeriod

func (x *GetScreeningsInCityRequest) GetEndPeriod() *Timestamp

func (*GetScreeningsInCityRequest) GetMovieID

func (x *GetScreeningsInCityRequest) GetMovieID() int32

func (*GetScreeningsInCityRequest) GetStartPeriod

func (x *GetScreeningsInCityRequest) GetStartPeriod() *Timestamp

func (*GetScreeningsInCityRequest) ProtoMessage

func (*GetScreeningsInCityRequest) ProtoMessage()

func (*GetScreeningsInCityRequest) ProtoReflect

func (*GetScreeningsInCityRequest) Reset

func (x *GetScreeningsInCityRequest) Reset()

func (*GetScreeningsInCityRequest) String

func (x *GetScreeningsInCityRequest) String() string

type GetScreeningsRequest

type GetScreeningsRequest struct {
	CinemaID    int32      `protobuf:"varint,1,opt,name=cinemaID,json=cinema_id,proto3" json:"cinemaID,omitempty"`
	MovieID     int32      `protobuf:"varint,2,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	StartPeriod *Timestamp `protobuf:"bytes,3,opt,name=startPeriod,json=start_period,proto3" json:"startPeriod,omitempty"`
	EndPeriod   *Timestamp `protobuf:"bytes,4,opt,name=endPeriod,json=end_period,proto3" json:"endPeriod,omitempty"`
	// contains filtered or unexported fields
}

func (*GetScreeningsRequest) Descriptor deprecated

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

Deprecated: Use GetScreeningsRequest.ProtoReflect.Descriptor instead.

func (*GetScreeningsRequest) GetCinemaID

func (x *GetScreeningsRequest) GetCinemaID() int32

func (*GetScreeningsRequest) GetEndPeriod

func (x *GetScreeningsRequest) GetEndPeriod() *Timestamp

func (*GetScreeningsRequest) GetMovieID

func (x *GetScreeningsRequest) GetMovieID() int32

func (*GetScreeningsRequest) GetStartPeriod

func (x *GetScreeningsRequest) GetStartPeriod() *Timestamp

func (*GetScreeningsRequest) ProtoMessage

func (*GetScreeningsRequest) ProtoMessage()

func (*GetScreeningsRequest) ProtoReflect

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

func (*GetScreeningsRequest) Reset

func (x *GetScreeningsRequest) Reset()

func (*GetScreeningsRequest) String

func (x *GetScreeningsRequest) String() string

type Hall

type Hall struct {
	HallID   int32  `protobuf:"varint,1,opt,name=hallID,json=hall_id,proto3" json:"hallID,omitempty"`
	HallSize uint32 `protobuf:"varint,2,opt,name=hallSize,json=hall_size,proto3" json:"hallSize,omitempty"`
	Name     string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Type     string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Hall) Descriptor deprecated

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

Deprecated: Use Hall.ProtoReflect.Descriptor instead.

func (*Hall) GetHallID

func (x *Hall) GetHallID() int32

func (*Hall) GetHallSize

func (x *Hall) GetHallSize() uint32

func (*Hall) GetName

func (x *Hall) GetName() string

func (*Hall) GetType

func (x *Hall) GetType() string

func (*Hall) ProtoMessage

func (*Hall) ProtoMessage()

func (*Hall) ProtoReflect

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

func (*Hall) Reset

func (x *Hall) Reset()

func (*Hall) String

func (x *Hall) String() string

type HallConfiguration

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

func (*HallConfiguration) Descriptor deprecated

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

Deprecated: Use HallConfiguration.ProtoReflect.Descriptor instead.

func (*HallConfiguration) GetPlace

func (x *HallConfiguration) GetPlace() []*Place

func (*HallConfiguration) ProtoMessage

func (*HallConfiguration) ProtoMessage()

func (*HallConfiguration) ProtoReflect

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

func (*HallConfiguration) Reset

func (x *HallConfiguration) Reset()

func (*HallConfiguration) String

func (x *HallConfiguration) String() string

type Halls

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

func (*Halls) Descriptor deprecated

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

Deprecated: Use Halls.ProtoReflect.Descriptor instead.

func (*Halls) GetHalls

func (x *Halls) GetHalls() []*Hall

func (*Halls) ProtoMessage

func (*Halls) ProtoMessage()

func (*Halls) ProtoReflect

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

func (*Halls) Reset

func (x *Halls) Reset()

func (*Halls) String

func (x *Halls) String() string

type Place

type Place struct {
	Row      int32   `protobuf:"varint,1,opt,name=row,proto3" json:"row,omitempty"`
	Seat     int32   `protobuf:"varint,2,opt,name=seat,proto3" json:"seat,omitempty"`
	GridPosX float32 `protobuf:"fixed32,3,opt,name=grid_pos_x,json=gridPosX,proto3" json:"grid_pos_x,omitempty"`
	GridPosY float32 `protobuf:"fixed32,4,opt,name=grid_pos_y,json=gridPosY,proto3" json:"grid_pos_y,omitempty"`
	// contains filtered or unexported fields
}

func (*Place) Descriptor deprecated

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

Deprecated: Use Place.ProtoReflect.Descriptor instead.

func (*Place) GetGridPosX

func (x *Place) GetGridPosX() float32

func (*Place) GetGridPosY

func (x *Place) GetGridPosY() float32

func (*Place) GetRow

func (x *Place) GetRow() int32

func (*Place) GetSeat

func (x *Place) GetSeat() int32

func (*Place) ProtoMessage

func (*Place) ProtoMessage()

func (*Place) ProtoReflect

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

func (*Place) Reset

func (x *Place) Reset()

func (*Place) String

func (x *Place) String() string

type PreviewScreening

type PreviewScreening struct {
	MovieID         int32    `protobuf:"varint,1,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	ScreeningsTypes []string `protobuf:"bytes,2,rep,name=screeningsTypes,json=screenings_types,proto3" json:"screeningsTypes,omitempty"`
	HallsTypes      []string `protobuf:"bytes,3,rep,name=hallsTypes,json=halls_types,proto3" json:"hallsTypes,omitempty"`
	// contains filtered or unexported fields
}

func (*PreviewScreening) Descriptor deprecated

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

Deprecated: Use PreviewScreening.ProtoReflect.Descriptor instead.

func (*PreviewScreening) GetHallsTypes

func (x *PreviewScreening) GetHallsTypes() []string

func (*PreviewScreening) GetMovieID

func (x *PreviewScreening) GetMovieID() int32

func (*PreviewScreening) GetScreeningsTypes

func (x *PreviewScreening) GetScreeningsTypes() []string

func (*PreviewScreening) ProtoMessage

func (*PreviewScreening) ProtoMessage()

func (*PreviewScreening) ProtoReflect

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

func (*PreviewScreening) Reset

func (x *PreviewScreening) Reset()

func (*PreviewScreening) String

func (x *PreviewScreening) String() string

type PreviewScreenings

type PreviewScreenings struct {
	Screenings []*PreviewScreening `protobuf:"bytes,1,rep,name=screenings,proto3" json:"screenings,omitempty"`
	// contains filtered or unexported fields
}

Unique set of cinema screenings (unique by movie_id)

func (*PreviewScreenings) Descriptor deprecated

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

Deprecated: Use PreviewScreenings.ProtoReflect.Descriptor instead.

func (*PreviewScreenings) GetScreenings

func (x *PreviewScreenings) GetScreenings() []*PreviewScreening

func (*PreviewScreenings) ProtoMessage

func (*PreviewScreenings) ProtoMessage()

func (*PreviewScreenings) ProtoReflect

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

func (*PreviewScreenings) Reset

func (x *PreviewScreenings) Reset()

func (*PreviewScreenings) String

func (x *PreviewScreenings) String() string

type Price

type Price struct {

	// The price value in minimum currency units, for example 10010, is 100$ and 10 penny
	Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Price) Descriptor deprecated

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

Deprecated: Use Price.ProtoReflect.Descriptor instead.

func (*Price) GetValue

func (x *Price) GetValue() int32

func (*Price) ProtoMessage

func (*Price) ProtoMessage()

func (*Price) ProtoReflect

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

func (*Price) Reset

func (x *Price) Reset()

func (*Price) String

func (x *Price) String() string

type Screening

type Screening struct {
	ScreeningID   int64      `protobuf:"varint,1,opt,name=screeningID,json=screening_id,proto3" json:"screeningID,omitempty"`
	MovieID       int32      `protobuf:"varint,2,opt,name=movieID,json=movie_id,proto3" json:"movieID,omitempty"`
	ScreeningType string     `protobuf:"bytes,3,opt,name=screeningType,json=screening_type,proto3" json:"screeningType,omitempty"`
	StartTime     *Timestamp `protobuf:"bytes,4,opt,name=startTime,json=start_time,proto3" json:"startTime,omitempty"`
	HallID        int32      `protobuf:"varint,5,opt,name=hallID,json=hall_id,proto3" json:"hallID,omitempty"`
	TicketPrice   *Price     `protobuf:"bytes,6,opt,name=ticketPrice,json=ticket_price,proto3" json:"ticketPrice,omitempty"`
	// contains filtered or unexported fields
}

func (*Screening) Descriptor deprecated

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

Deprecated: Use Screening.ProtoReflect.Descriptor instead.

func (*Screening) GetHallID

func (x *Screening) GetHallID() int32

func (*Screening) GetMovieID

func (x *Screening) GetMovieID() int32

func (*Screening) GetScreeningID

func (x *Screening) GetScreeningID() int64

func (*Screening) GetScreeningType

func (x *Screening) GetScreeningType() string

func (*Screening) GetStartTime

func (x *Screening) GetStartTime() *Timestamp

func (*Screening) GetTicketPrice

func (x *Screening) GetTicketPrice() *Price

func (*Screening) ProtoMessage

func (*Screening) ProtoMessage()

func (*Screening) ProtoReflect

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

func (*Screening) Reset

func (x *Screening) Reset()

func (*Screening) String

func (x *Screening) String() string

type Screenings

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

func (*Screenings) Descriptor deprecated

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

Deprecated: Use Screenings.ProtoReflect.Descriptor instead.

func (*Screenings) GetScreenings

func (x *Screenings) GetScreenings() []*Screening

func (*Screenings) ProtoMessage

func (*Screenings) ProtoMessage()

func (*Screenings) ProtoReflect

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

func (*Screenings) Reset

func (x *Screenings) Reset()

func (*Screenings) String

func (x *Screenings) String() string

type Timestamp

type Timestamp struct {

	// Time in format RFC3339, time must be in UTC
	// example: 2023-11-10T23:00:00Z
	FormattedTimestamp string `protobuf:"bytes,1,opt,name=formattedTimestamp,json=formatted_timestamp,proto3" json:"formattedTimestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Timestamp) Descriptor deprecated

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

Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.

func (*Timestamp) GetFormattedTimestamp

func (x *Timestamp) GetFormattedTimestamp() string

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) ProtoReflect

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

func (*Timestamp) Reset

func (x *Timestamp) Reset()

func (*Timestamp) String

func (x *Timestamp) String() string

type UnimplementedCinemaServiceV1Server

type UnimplementedCinemaServiceV1Server struct {
}

UnimplementedCinemaServiceV1Server must be embedded to have forward compatible implementations.

func (UnimplementedCinemaServiceV1Server) GetCinema

func (UnimplementedCinemaServiceV1Server) GetCinemasCities

func (UnimplementedCinemaServiceV1Server) GetCinemasInCity

func (UnimplementedCinemaServiceV1Server) GetHallConfiguration

func (UnimplementedCinemaServiceV1Server) GetHalls

func (UnimplementedCinemaServiceV1Server) GetMoviesScreenings

func (UnimplementedCinemaServiceV1Server) GetMoviesScreeningsInCities

func (UnimplementedCinemaServiceV1Server) GetScreening

func (UnimplementedCinemaServiceV1Server) GetScreenings

func (UnimplementedCinemaServiceV1Server) GetScreeningsInCity

type UnsafeCinemaServiceV1Server

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

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

Jump to

Keyboard shortcuts

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