@ -45,18 +45,18 @@ namespace Game {
return parser . ParseFrom ( context . PayloadAsNewBuffer ( ) ) ;
}
static readonly grpc : : Marshaller < global :: Game . Null > _ _ Marshaller_game_Null = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . Null . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Google . Protobuf . WellKnownTypes . Empty > _ _ Marshaller_google_protobuf_Empty = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Google . Protobuf . WellKnownTypes . Empty . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . Name > _ _ Marshaller_game_Name = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . Name . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . UserID > _ _ Marshaller_game_UserID = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . UserID . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . LobbyCode > _ _ Marshaller_game_LobbyCode = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . LobbyCode . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . LobbyConfig > _ _ Marshaller_game_LobbyConfig = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . LobbyConfig . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . Game > _ _ Marshaller_game_Game = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . Game . Parser ) ) ;
static readonly grpc : : Method < global :: Game . Null , global :: Game . Name > _ _ Method_name = new grpc : : Method < global :: Game . Null , global :: Game . Name > (
static readonly grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . Name > _ _ Method_name = new grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . Name > (
grpc : : MethodType . Unary ,
_ _ ServiceName ,
"name" ,
_ _ Marshaller_game_Null ,
_ _ Marshaller_google_protobuf_Empty ,
_ _ Marshaller_game_Name ) ;
static readonly grpc : : Method < global :: Game . Name , global :: Game . UserID > _ _ Method_connect = new grpc : : Method < global :: Game . Name , global :: Game . UserID > (
@ -66,12 +66,12 @@ namespace Game {
_ _ Marshaller_game_Name ,
_ _ Marshaller_game_UserID ) ;
static readonly grpc : : Method < global :: Game . LobbyCode , global :: Game . Null > _ _ Method_joinLobbyWithCode = new grpc : : Method < global :: Game . LobbyCode , global :: Game . Null > (
static readonly grpc : : Method < global :: Game . LobbyCode , global :: Google . Protobuf . WellKnownTypes . Empty > _ _ Method_joinLobbyWithCode = new grpc : : Method < global :: Game . LobbyCode , global :: Google . Protobuf . WellKnownTypes . Empty > (
grpc : : MethodType . Unary ,
_ _ ServiceName ,
"joinLobbyWithCode" ,
_ _ Marshaller_game_LobbyCode ,
_ _ Marshaller_game_Null ) ;
_ _ Marshaller_google_protobuf_Empty ) ;
static readonly grpc : : Method < global :: Game . LobbyConfig , global :: Game . LobbyCode > _ _ Method_createLobby = new grpc : : Method < global :: Game . LobbyConfig , global :: Game . LobbyCode > (
grpc : : MethodType . Unary ,
@ -80,26 +80,26 @@ namespace Game {
_ _ Marshaller_game_LobbyConfig ,
_ _ Marshaller_game_LobbyCode ) ;
static readonly grpc : : Method < global :: Game . Null , global :: Game . Game > _ _ Method_getGames = new grpc : : Method < global :: Game . Null , global :: Game . Game > (
static readonly grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . Game > _ _ Method_getGames = new grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . Game > (
grpc : : MethodType . ServerStreaming ,
_ _ ServiceName ,
"getGames" ,
_ _ Marshaller_game_Null ,
_ _ Marshaller_google_protobuf_Empty ,
_ _ Marshaller_game_Game ) ;
static readonly grpc : : Method < global :: Game . Null , global :: Game . LobbyCode > _ _ Method_getPublicLobbies = new grpc : : Method < global :: Game . Null , global :: Game . LobbyCode > (
static readonly grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . LobbyCode > _ _ Method_getPublicLobbies = new grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . LobbyCode > (
grpc : : MethodType . ServerStreaming ,
_ _ ServiceName ,
"getPublicLobbies" ,
_ _ Marshaller_game_Null ,
_ _ Marshaller_google_protobuf_Empty ,
_ _ Marshaller_game_LobbyCode ) ;
static readonly grpc : : Method < global :: Game . Null , global :: Game . Null > _ _ Method_disconnect = new grpc : : Method < global :: Game . Null , global :: Game . Null > (
static readonly grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Google . Protobuf . WellKnownTypes . Empty > _ _ Method_disconnect = new grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Google . Protobuf . WellKnownTypes . Empty > (
grpc : : MethodType . Unary ,
_ _ ServiceName ,
"disconnect" ,
_ _ Marshaller_game_Null ,
_ _ Marshaller_game_Null ) ;
_ _ Marshaller_google_protobuf_Empty ,
_ _ Marshaller_google_protobuf_Empty ) ;
/// <summary>Service descriptor</summary>
public static global :: Google . Protobuf . Reflection . ServiceDescriptor Descriptor
@ -111,7 +111,7 @@ namespace Game {
[grpc::BindServiceMethod(typeof(Connection), "BindService")]
public abstract partial class ConnectionBase
{
public virtual global :: System . Threading . Tasks . Task < global :: Game . Name > name ( global :: Game . Null request , grpc : : ServerCallContext context )
public virtual global :: System . Threading . Tasks . Task < global :: Game . Name > name ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
@ -121,7 +121,7 @@ namespace Game {
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
public virtual global :: System . Threading . Tasks . Task < global :: Game . Null > joinLobbyWithCode ( global :: Game . LobbyCode request , grpc : : ServerCallContext context )
public virtual global :: System . Threading . Tasks . Task < global :: Google . Protobuf . WellKnownTypes . Empty > joinLobbyWithCode ( global :: Game . LobbyCode request , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
@ -131,17 +131,17 @@ namespace Game {
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
public virtual global :: System . Threading . Tasks . Task getGames ( global :: Game . Null request , grpc : : IServerStreamWriter < global :: Game . Game > responseStream , grpc : : ServerCallContext context )
public virtual global :: System . Threading . Tasks . Task getGames ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : IServerStreamWriter < global :: Game . Game > responseStream , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
public virtual global :: System . Threading . Tasks . Task getPublicLobbies ( global :: Game . Null request , grpc : : IServerStreamWriter < global :: Game . LobbyCode > responseStream , grpc : : ServerCallContext context )
public virtual global :: System . Threading . Tasks . Task getPublicLobbies ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : IServerStreamWriter < global :: Game . LobbyCode > responseStream , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
public virtual global :: System . Threading . Tasks . Task < global :: Game . Null > disconnect ( global :: Game . Null request , grpc : : ServerCallContext context )
public virtual global :: System . Threading . Tasks . Task < global :: Google . Protobuf . WellKnownTypes . Empty > disconnect ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
@ -171,19 +171,19 @@ namespace Game {
{
}
public virtual global :: Game . Name name ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual global :: Game . Name name ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return name ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual global :: Game . Name name ( global :: Game . Null request , grpc : : CallOptions options )
public virtual global :: Game . Name name ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . BlockingUnaryCall ( _ _ Method_name , null , options , request ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Name > nameAsync ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual grpc : : AsyncUnaryCall < global :: Game . Name > nameAsync ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return nameAsync ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Name > nameAsync ( global :: Game . Null request , grpc : : CallOptions options )
public virtual grpc : : AsyncUnaryCall < global :: Game . Name > nameAsync ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_name , null , options , request ) ;
}
@ -203,19 +203,19 @@ namespace Game {
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_connect , null , options , request ) ;
}
public virtual global :: Game . Null joinLobbyWithCode ( global :: Game . LobbyCode request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual global :: Google . Protobuf . WellKnownTypes . Empty joinLobbyWithCode ( global :: Game . LobbyCode request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return joinLobbyWithCode ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual global :: Game . Null joinLobbyWithCode ( global :: Game . LobbyCode request , grpc : : CallOptions options )
public virtual global :: Google . Protobuf . WellKnownTypes . Empty joinLobbyWithCode ( global :: Game . LobbyCode request , grpc : : CallOptions options )
{
return CallInvoker . BlockingUnaryCall ( _ _ Method_joinLobbyWithCode , null , options , request ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Null > joinLobbyWithCodeAsync ( global :: Game . LobbyCode request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual grpc : : AsyncUnaryCall < global :: Google . Protobuf . WellKnownTypes . Empty > joinLobbyWithCodeAsync ( global :: Game . LobbyCode request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return joinLobbyWithCodeAsync ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Null > joinLobbyWithCodeAsync ( global :: Game . LobbyCode request , grpc : : CallOptions options )
public virtual grpc : : AsyncUnaryCall < global :: Google . Protobuf . WellKnownTypes . Empty > joinLobbyWithCodeAsync ( global :: Game . LobbyCode request , grpc : : CallOptions options )
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_joinLobbyWithCode , null , options , request ) ;
}
@ -235,35 +235,35 @@ namespace Game {
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_createLobby , null , options , request ) ;
}
public virtual grpc : : AsyncServerStreamingCall < global :: Game . Game > getGames ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual grpc : : AsyncServerStreamingCall < global :: Game . Game > getGames ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return getGames ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncServerStreamingCall < global :: Game . Game > getGames ( global :: Game . Null request , grpc : : CallOptions options )
public virtual grpc : : AsyncServerStreamingCall < global :: Game . Game > getGames ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . AsyncServerStreamingCall ( _ _ Method_getGames , null , options , request ) ;
}
public virtual grpc : : AsyncServerStreamingCall < global :: Game . LobbyCode > getPublicLobbies ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual grpc : : AsyncServerStreamingCall < global :: Game . LobbyCode > getPublicLobbies ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return getPublicLobbies ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncServerStreamingCall < global :: Game . LobbyCode > getPublicLobbies ( global :: Game . Null request , grpc : : CallOptions options )
public virtual grpc : : AsyncServerStreamingCall < global :: Game . LobbyCode > getPublicLobbies ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . AsyncServerStreamingCall ( _ _ Method_getPublicLobbies , null , options , request ) ;
}
public virtual global :: Game . Null disconnect ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual global :: Google . Protobuf . WellKnownTypes . Empty disconnect ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return disconnect ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual global :: Game . Null disconnect ( global :: Game . Null request , grpc : : CallOptions options )
public virtual global :: Google . Protobuf . WellKnownTypes . Empty disconnect ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . BlockingUnaryCall ( _ _ Method_disconnect , null , options , request ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Null > disconnectAsync ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual grpc : : AsyncUnaryCall < global :: Google . Protobuf . WellKnownTypes . Empty > disconnectAsync ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return disconnectAsync ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Null > disconnectAsync ( global :: Game . Null request , grpc : : CallOptions options )
public virtual grpc : : AsyncUnaryCall < global :: Google . Protobuf . WellKnownTypes . Empty > disconnectAsync ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_disconnect , null , options , request ) ;
}
@ -294,13 +294,13 @@ namespace Game {
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
public static void BindService ( grpc : : ServiceBinderBase serviceBinder , ConnectionBase serviceImpl )
{
serviceBinder . AddMethod ( _ _ Method_name , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . Null , global :: Game . Name > ( serviceImpl . name ) ) ;
serviceBinder . AddMethod ( _ _ Method_name , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . Name > ( serviceImpl . name ) ) ;
serviceBinder . AddMethod ( _ _ Method_connect , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . Name , global :: Game . UserID > ( serviceImpl . connect ) ) ;
serviceBinder . AddMethod ( _ _ Method_joinLobbyWithCode , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . LobbyCode , global :: Game . Null > ( serviceImpl . joinLobbyWithCode ) ) ;
serviceBinder . AddMethod ( _ _ Method_joinLobbyWithCode , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . LobbyCode , global :: Google . Protobuf . WellKnownTypes . Empty > ( serviceImpl . joinLobbyWithCode ) ) ;
serviceBinder . AddMethod ( _ _ Method_createLobby , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . LobbyConfig , global :: Game . LobbyCode > ( serviceImpl . createLobby ) ) ;
serviceBinder . AddMethod ( _ _ Method_getGames , serviceImpl = = null ? null : new grpc : : ServerStreamingServerMethod < global :: Game . Null , global :: Game . Game > ( serviceImpl . getGames ) ) ;
serviceBinder . AddMethod ( _ _ Method_getPublicLobbies , serviceImpl = = null ? null : new grpc : : ServerStreamingServerMethod < global :: Game . Null , global :: Game . LobbyCode > ( serviceImpl . getPublicLobbies ) ) ;
serviceBinder . AddMethod ( _ _ Method_disconnect , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . Null , global :: Game . Null > ( serviceImpl . disconnect ) ) ;
serviceBinder . AddMethod ( _ _ Method_getGames , serviceImpl = = null ? null : new grpc : : ServerStreamingServerMethod < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . Game > ( serviceImpl . getGames ) ) ;
serviceBinder . AddMethod ( _ _ Method_getPublicLobbies , serviceImpl = = null ? null : new grpc : : ServerStreamingServerMethod < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . LobbyCode > ( serviceImpl . getPublicLobbies ) ) ;
serviceBinder . AddMethod ( _ _ Method_disconnect , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Google . Protobuf . WellKnownTypes . Empty > ( serviceImpl . disconnect ) ) ;
}
}
@ -343,9 +343,11 @@ namespace Game {
static readonly grpc : : Marshaller < global :: Game . CardID > _ _ Marshaller_game_CardID = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . CardID . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . Image > _ _ Marshaller_game_Image = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . Image . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . Null > _ _ Marshaller_game_Null = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . Null . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Google . Protobuf . WellKnownTypes . Empty > _ _ Marshaller_google_protobuf_Empty = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Google . Protobuf . WellKnownTypes . Empty . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . Name > _ _ Marshaller_game_Name = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . Name . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . Vote > _ _ Marshaller_game_Vote = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . Vote . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . SingleVote > _ _ Marshaller_game_SingleVote = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . SingleVote . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . LastStatusTimestamp > _ _ Marshaller_game_LastStatusTimestamp = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . LastStatusTimestamp . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . HasNewStatus > _ _ Marshaller_game_HasNewStatus = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . HasNewStatus . Parser ) ) ;
static readonly grpc : : Marshaller < global :: Game . LobbyStatus > _ _ Marshaller_game_LobbyStatus = grpc : : Marshallers . Create ( _ _ Helper_SerializeMessage , context = > _ _ Helper_DeserializeMessage ( context , global :: Game . LobbyStatus . Parser ) ) ;
static readonly grpc : : Method < global :: Game . CardID , global :: Game . Image > _ _ Method_getCardImage = new grpc : : Method < global :: Game . CardID , global :: Game . Image > (
@ -355,40 +357,47 @@ namespace Game {
_ _ Marshaller_game_CardID ,
_ _ Marshaller_game_Image ) ;
static readonly grpc : : Method < global :: Game . Null , global :: Game . Name > _ _ Method_users = new grpc : : Method < global :: Game . Null , global :: Game . Name > (
static readonly grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . Name > _ _ Method_users = new grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . Name > (
grpc : : MethodType . ServerStreaming ,
_ _ ServiceName ,
"users" ,
_ _ Marshaller_game_Null ,
_ _ Marshaller_google_protobuf_Empty ,
_ _ Marshaller_game_Name ) ;
static readonly grpc : : Method < global :: Game . Vote , global :: Game . Null > _ _ Method_vote = new grpc : : Method < global :: Game . Vote , global :: Game . Null > (
static readonly grpc : : Method < global :: Game . Single Vote, global :: Google . Protobuf . WellKnownTypes . Empty > _ _ Method_vote = new grpc : : Method < global :: Game . Single Vote, global :: Google . Protobuf . WellKnownTypes . Empty > (
grpc : : MethodType . Unary ,
_ _ ServiceName ,
"vote" ,
_ _ Marshaller_game_Vote ,
_ _ Marshaller_game_Null ) ;
_ _ Marshaller_game_Single Vote ,
_ _ Marshaller_google_protobuf_Empty ) ;
static readonly grpc : : Method < global :: Game . Null , global :: Game . Null > _ _ Method_ready = new grpc : : Method < global :: Game . Null , global :: Game . Null > (
static readonly grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Google . Protobuf . WellKnownTypes . Empty > _ _ Method_ready = new grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Google . Protobuf . WellKnownTypes . Empty > (
grpc : : MethodType . Unary ,
_ _ ServiceName ,
"ready" ,
_ _ Marshaller_game_Null ,
_ _ Marshaller_game_Null ) ;
_ _ Marshaller_google_protobuf_Empty ,
_ _ Marshaller_google_protobuf_Empty ) ;
static readonly grpc : : Method < global :: Game . Null , global :: Game . Lobby Status> _ _ Method_status = new grpc : : Method < global :: Game . Null , global :: Game . Lobby Status> (
static readonly grpc : : Method < global :: Game . LastStatusTimestamp , global :: Game . HasNew Status> _ _ Method_ha sNewS tatus = new grpc : : Method < global :: Game . LastStatusTimestamp , global :: Game . HasNew Status> (
grpc : : MethodType . Unary ,
_ _ ServiceName ,
"status" ,
_ _ Marshaller_game_Null ,
"hasNewStatus" ,
_ _ Marshaller_game_LastStatusTimestamp ,
_ _ Marshaller_game_HasNewStatus ) ;
static readonly grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . LobbyStatus > _ _ Method_getStatus = new grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . LobbyStatus > (
grpc : : MethodType . Unary ,
_ _ ServiceName ,
"getStatus" ,
_ _ Marshaller_google_protobuf_Empty ,
_ _ Marshaller_game_LobbyStatus ) ;
static readonly grpc : : Method < global :: Game . Null , global :: Game . Null > _ _ Method_leave = new grpc : : Method < global :: Game . Null , global :: Game . Null > (
static readonly grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Google . Protobuf . WellKnownTypes . Empty > _ _ Method_leave = new grpc : : Method < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Google . Protobuf . WellKnownTypes . Empty > (
grpc : : MethodType . Unary ,
_ _ ServiceName ,
"leave" ,
_ _ Marshaller_game_Null ,
_ _ Marshaller_game_Null ) ;
_ _ Marshaller_google_protobuf_Empty ,
_ _ Marshaller_google_protobuf_Empty ) ;
/// <summary>Service descriptor</summary>
public static global :: Google . Protobuf . Reflection . ServiceDescriptor Descriptor
@ -405,27 +414,32 @@ namespace Game {
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
public virtual global :: System . Threading . Tasks . Task users ( global :: Game . Null request , grpc : : IServerStreamWriter < global :: Game . Name > responseStream , grpc : : ServerCallContext context )
public virtual global :: System . Threading . Tasks . Task users ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : IServerStreamWriter < global :: Game . Name > responseStream , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
public virtual global :: System . Threading . Tasks . Task < global :: Google . Protobuf . WellKnownTypes . Empty > vote ( global :: Game . SingleVote request , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
public virtual global :: System . Threading . Tasks . Task < global :: Game . Null > vote ( global :: Game . Vote request , grpc : : ServerCallContext context )
public virtual global :: System . Threading . Tasks . Task < global :: Google . Protobuf . WellKnownTypes . Empty > ready ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
public virtual global :: System . Threading . Tasks . Task < global :: Game . Null > ready ( global :: Game . Null request , grpc : : ServerCallContext context )
public virtual global :: System . Threading . Tasks . Task < global :: Game . HasNewStatus > hasNewStatus ( global :: Game . LastStatusTimestamp request , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
public virtual global :: System . Threading . Tasks . Task < global :: Game . LobbyStatus > s tatus( global :: Game . Null request , grpc : : ServerCallContext context )
public virtual global :: System . Threading . Tasks . Task < global :: Game . LobbyStatus > getS tatus( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
public virtual global :: System . Threading . Tasks . Task < global :: Game . Null > leave ( global :: Game . Null request , grpc : : ServerCallContext context )
public virtual global :: System . Threading . Tasks . Task < global :: Google . Protobuf . WellKnownTypes . Empty > leave ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : ServerCallContext context )
{
throw new grpc : : RpcException ( new grpc : : Status ( grpc : : StatusCode . Unimplemented , "" ) ) ;
}
@ -471,75 +485,91 @@ namespace Game {
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_getCardImage , null , options , request ) ;
}
public virtual grpc : : AsyncServerStreamingCall < global :: Game . Name > users ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual grpc : : AsyncServerStreamingCall < global :: Game . Name > users ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return users ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncServerStreamingCall < global :: Game . Name > users ( global :: Game . Null request , grpc : : CallOptions options )
public virtual grpc : : AsyncServerStreamingCall < global :: Game . Name > users ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . AsyncServerStreamingCall ( _ _ Method_users , null , options , request ) ;
}
public virtual global :: Game . Null vote ( global :: Game . Vote request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual global :: Google . Protobuf . WellKnownTypes . Empty vote ( global :: Game . Single Vote request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return vote ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual global :: Game . Null vote ( global :: Game . Vote request , grpc : : CallOptions options )
public virtual global :: Google . Protobuf . WellKnownTypes . Empty vote ( global :: Game . Single Vote request , grpc : : CallOptions options )
{
return CallInvoker . BlockingUnaryCall ( _ _ Method_vote , null , options , request ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Null > voteAsync ( global :: Game . Vote request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual grpc : : AsyncUnaryCall < global :: Google . Protobuf . WellKnownTypes . Empty > voteAsync ( global :: Game . Single Vote request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return voteAsync ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Null > voteAsync ( global :: Game . Vote request , grpc : : CallOptions options )
public virtual grpc : : AsyncUnaryCall < global :: Google . Protobuf . WellKnownTypes . Empty > voteAsync ( global :: Game . Single Vote request , grpc : : CallOptions options )
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_vote , null , options , request ) ;
}
public virtual global :: Game . Null ready ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual global :: Google . Protobuf . WellKnownTypes . Empty ready ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return ready ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual global :: Game . Null ready ( global :: Game . Null request , grpc : : CallOptions options )
public virtual global :: Google . Protobuf . WellKnownTypes . Empty ready ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . BlockingUnaryCall ( _ _ Method_ready , null , options , request ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Null > readyAsync ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual grpc : : AsyncUnaryCall < global :: Google . Protobuf . WellKnownTypes . Empty > readyAsync ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return readyAsync ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Null > readyAsync ( global :: Game . Null request , grpc : : CallOptions options )
public virtual grpc : : AsyncUnaryCall < global :: Google . Protobuf . WellKnownTypes . Empty > readyAsync ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_ready , null , options , request ) ;
}
public virtual global :: Game . LobbyStatus status ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual global :: Game . HasNewStatus hasNewStatus ( global :: Game . LastStatusTimestamp request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return hasNewStatus ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual global :: Game . HasNewStatus hasNewStatus ( global :: Game . LastStatusTimestamp request , grpc : : CallOptions options )
{
return CallInvoker . BlockingUnaryCall ( _ _ Method_hasNewStatus , null , options , request ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . HasNewStatus > hasNewStatusAsync ( global :: Game . LastStatusTimestamp request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return hasNewStatusAsync ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . HasNewStatus > hasNewStatusAsync ( global :: Game . LastStatusTimestamp request , grpc : : CallOptions options )
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_hasNewStatus , null , options , request ) ;
}
public virtual global :: Game . LobbyStatus getStatus ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return status ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
return getS tatus( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual global :: Game . LobbyStatus status ( global :: Game . Null request , grpc : : CallOptions options )
public virtual global :: Game . LobbyStatus getS tatus( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . BlockingUnaryCall ( _ _ Method_status , null , options , request ) ;
return CallInvoker . BlockingUnaryCall ( _ _ Method_getS tatus , null , options , request ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . LobbyStatus > statusAsync ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual grpc : : AsyncUnaryCall < global :: Game . LobbyStatus > getS tatusAsync( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return statusAsync ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
return getS tatusAsync( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . LobbyStatus > statusAsync ( global :: Game . Null request , grpc : : CallOptions options )
public virtual grpc : : AsyncUnaryCall < global :: Game . LobbyStatus > getS tatusAsync( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_status , null , options , request ) ;
return CallInvoker . AsyncUnaryCall ( _ _ Method_getS tatus , null , options , request ) ;
}
public virtual global :: Game . Null leave ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual global :: Google . Protobuf . WellKnownTypes . Empty leave ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return leave ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual global :: Game . Null leave ( global :: Game . Null request , grpc : : CallOptions options )
public virtual global :: Google . Protobuf . WellKnownTypes . Empty leave ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . BlockingUnaryCall ( _ _ Method_leave , null , options , request ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Null > leaveAsync ( global :: Game . Null request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
public virtual grpc : : AsyncUnaryCall < global :: Google . Protobuf . WellKnownTypes . Empty > leaveAsync ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : Metadata headers = null , global :: System . DateTime ? deadline = null , global :: System . Threading . CancellationToken cancellationToken = default ( global :: System . Threading . CancellationToken ) )
{
return leaveAsync ( request , new grpc : : CallOptions ( headers , deadline , cancellationToken ) ) ;
}
public virtual grpc : : AsyncUnaryCall < global :: Game . Null > leaveAsync ( global :: Game . Null request , grpc : : CallOptions options )
public virtual grpc : : AsyncUnaryCall < global :: Google . Protobuf . WellKnownTypes . Empty > leaveAsync ( global :: Google . Protobuf . WellKnownTypes . Empty request , grpc : : CallOptions options )
{
return CallInvoker . AsyncUnaryCall ( _ _ Method_leave , null , options , request ) ;
}
@ -559,7 +589,8 @@ namespace Game {
. AddMethod ( _ _ Method_users , serviceImpl . users )
. AddMethod ( _ _ Method_vote , serviceImpl . vote )
. AddMethod ( _ _ Method_ready , serviceImpl . ready )
. AddMethod ( _ _ Method_status , serviceImpl . status )
. AddMethod ( _ _ Method_hasNewStatus , serviceImpl . hasNewStatus )
. AddMethod ( _ _ Method_getStatus , serviceImpl . getStatus )
. AddMethod ( _ _ Method_leave , serviceImpl . leave ) . Build ( ) ;
}
@ -570,11 +601,12 @@ namespace Game {
public static void BindService ( grpc : : ServiceBinderBase serviceBinder , LobbyBase serviceImpl )
{
serviceBinder . AddMethod ( _ _ Method_getCardImage , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . CardID , global :: Game . Image > ( serviceImpl . getCardImage ) ) ;
serviceBinder . AddMethod ( _ _ Method_users , serviceImpl = = null ? null : new grpc : : ServerStreamingServerMethod < global :: Game . Null , global :: Game . Name > ( serviceImpl . users ) ) ;
serviceBinder . AddMethod ( _ _ Method_vote , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . Vote , global :: Game . Null > ( serviceImpl . vote ) ) ;
serviceBinder . AddMethod ( _ _ Method_ready , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . Null , global :: Game . Null > ( serviceImpl . ready ) ) ;
serviceBinder . AddMethod ( _ _ Method_status , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . Null , global :: Game . LobbyStatus > ( serviceImpl . status ) ) ;
serviceBinder . AddMethod ( _ _ Method_leave , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . Null , global :: Game . Null > ( serviceImpl . leave ) ) ;
serviceBinder . AddMethod ( _ _ Method_users , serviceImpl = = null ? null : new grpc : : ServerStreamingServerMethod < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . Name > ( serviceImpl . users ) ) ;
serviceBinder . AddMethod ( _ _ Method_vote , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . SingleVote , global :: Google . Protobuf . WellKnownTypes . Empty > ( serviceImpl . vote ) ) ;
serviceBinder . AddMethod ( _ _ Method_ready , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Google . Protobuf . WellKnownTypes . Empty > ( serviceImpl . ready ) ) ;
serviceBinder . AddMethod ( _ _ Method_hasNewStatus , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Game . LastStatusTimestamp , global :: Game . HasNewStatus > ( serviceImpl . hasNewStatus ) ) ;
serviceBinder . AddMethod ( _ _ Method_getStatus , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Game . LobbyStatus > ( serviceImpl . getStatus ) ) ;
serviceBinder . AddMethod ( _ _ Method_leave , serviceImpl = = null ? null : new grpc : : UnaryServerMethod < global :: Google . Protobuf . WellKnownTypes . Empty , global :: Google . Protobuf . WellKnownTypes . Empty > ( serviceImpl . leave ) ) ;
}
}