@@ -58,6 +58,14 @@ static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, gl
58
58
__Marshaller_asgt_jester_v1_SuggestionRequest ,
59
59
__Marshaller_asgt_jester_v1_SuggestionResponse ) ;
60
60
61
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
62
+ static readonly grpc ::Method < global ::Asgt . Jester . V1 . SuggestionRequest , global ::Asgt . Jester . V1 . SuggestionResponse > __Method_InternalSuggest = new grpc ::Method < global ::Asgt . Jester . V1 . SuggestionRequest , global ::Asgt . Jester . V1 . SuggestionResponse > (
63
+ grpc ::MethodType . Unary ,
64
+ __ServiceName ,
65
+ "InternalSuggest" ,
66
+ __Marshaller_asgt_jester_v1_SuggestionRequest ,
67
+ __Marshaller_asgt_jester_v1_SuggestionResponse ) ;
68
+
61
69
/// <summary>Service descriptor</summary>
62
70
public static global ::Google . Protobuf . Reflection . ServiceDescriptor Descriptor
63
71
{
@@ -74,6 +82,12 @@ public abstract partial class JesterBase
74
82
throw new grpc ::RpcException ( new grpc ::Status ( grpc ::StatusCode . Unimplemented , "" ) ) ;
75
83
}
76
84
85
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
86
+ public virtual global ::System . Threading . Tasks . Task < global ::Asgt . Jester . V1 . SuggestionResponse > InternalSuggest ( global ::Asgt . Jester . V1 . SuggestionRequest request , grpc ::ServerCallContext context )
87
+ {
88
+ throw new grpc ::RpcException ( new grpc ::Status ( grpc ::StatusCode . Unimplemented , "" ) ) ;
89
+ }
90
+
77
91
}
78
92
79
93
/// <summary>Client for Jester</summary>
@@ -123,6 +137,26 @@ protected JesterClient(ClientBaseConfiguration configuration) : base(configurati
123
137
{
124
138
return CallInvoker . AsyncUnaryCall ( __Method_Suggest , null , options , request ) ;
125
139
}
140
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
141
+ public virtual global ::Asgt . Jester . V1 . SuggestionResponse InternalSuggest ( global ::Asgt . Jester . V1 . SuggestionRequest request , grpc ::Metadata headers = null , global ::System . DateTime ? deadline = null , global ::System . Threading . CancellationToken cancellationToken = default ( global ::System . Threading . CancellationToken ) )
142
+ {
143
+ return InternalSuggest ( request , new grpc ::CallOptions ( headers , deadline , cancellationToken ) ) ;
144
+ }
145
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
146
+ public virtual global ::Asgt . Jester . V1 . SuggestionResponse InternalSuggest ( global ::Asgt . Jester . V1 . SuggestionRequest request , grpc ::CallOptions options )
147
+ {
148
+ return CallInvoker . BlockingUnaryCall ( __Method_InternalSuggest , null , options , request ) ;
149
+ }
150
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
151
+ public virtual grpc ::AsyncUnaryCall < global ::Asgt . Jester . V1 . SuggestionResponse > InternalSuggestAsync ( global ::Asgt . Jester . V1 . SuggestionRequest request , grpc ::Metadata headers = null , global ::System . DateTime ? deadline = null , global ::System . Threading . CancellationToken cancellationToken = default ( global ::System . Threading . CancellationToken ) )
152
+ {
153
+ return InternalSuggestAsync ( request , new grpc ::CallOptions ( headers , deadline , cancellationToken ) ) ;
154
+ }
155
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
156
+ public virtual grpc ::AsyncUnaryCall < global ::Asgt . Jester . V1 . SuggestionResponse > InternalSuggestAsync ( global ::Asgt . Jester . V1 . SuggestionRequest request , grpc ::CallOptions options )
157
+ {
158
+ return CallInvoker . AsyncUnaryCall ( __Method_InternalSuggest , null , options , request ) ;
159
+ }
126
160
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
127
161
[ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
128
162
protected override JesterClient NewInstance ( ClientBaseConfiguration configuration )
@@ -137,7 +171,8 @@ protected override JesterClient NewInstance(ClientBaseConfiguration configuratio
137
171
public static grpc ::ServerServiceDefinition BindService ( JesterBase serviceImpl )
138
172
{
139
173
return grpc ::ServerServiceDefinition . CreateBuilder ( )
140
- . AddMethod ( __Method_Suggest , serviceImpl . Suggest ) . Build ( ) ;
174
+ . AddMethod ( __Method_Suggest , serviceImpl . Suggest )
175
+ . AddMethod ( __Method_InternalSuggest , serviceImpl . InternalSuggest ) . Build ( ) ;
141
176
}
142
177
143
178
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
@@ -148,6 +183,7 @@ protected override JesterClient NewInstance(ClientBaseConfiguration configuratio
148
183
public static void BindService ( grpc ::ServiceBinderBase serviceBinder , JesterBase serviceImpl )
149
184
{
150
185
serviceBinder . AddMethod ( __Method_Suggest , serviceImpl == null ? null : new grpc ::UnaryServerMethod < global ::Asgt . Jester . V1 . SuggestionRequest , global ::Asgt . Jester . V1 . SuggestionResponse > ( serviceImpl . Suggest ) ) ;
186
+ serviceBinder . AddMethod ( __Method_InternalSuggest , serviceImpl == null ? null : new grpc ::UnaryServerMethod < global ::Asgt . Jester . V1 . SuggestionRequest , global ::Asgt . Jester . V1 . SuggestionResponse > ( serviceImpl . InternalSuggest ) ) ;
151
187
}
152
188
153
189
}
0 commit comments