Skip to content

Commit 7973b77

Browse files
authored
Billing asgt (#232)
* gen * Update jester.proto
1 parent 2d34aaa commit 7973b77

File tree

13 files changed

+363
-24
lines changed

13 files changed

+363
-24
lines changed

gen/csharp/Asgt/Jester/V1/Jester.cs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,18 @@ static JesterReflection() {
3838
"eXBlGAIgASgJUgR0eXBlEicKBmlucHV0cxgDIAMoCzIPLmFzZ3QudHlwZS5E",
3939
"YXRhUgZpbnB1dHMSOwoHb3B0aW9ucxgEIAEoCzIhLmFzZ3QuamVzdGVyLnYx",
4040
"LlN1Z2dlc3Rpb25PcHRpb25zUgdvcHRpb25zEhIKBHRhZ3MYBSADKAlSBHRh",
41-
"Z3MygAEKBkplc3RlchJ2CgdTdWdnZXN0EiEuYXNndC5qZXN0ZXIudjEuU3Vn",
41+
"Z3MygAIKBkplc3RlchJ2CgdTdWdnZXN0EiEuYXNndC5qZXN0ZXIudjEuU3Vn",
4242
"Z2VzdGlvblJlcXVlc3QaIi5hc2d0Lmplc3Rlci52MS5TdWdnZXN0aW9uUmVz",
43-
"cG9uc2UiJILT5JMCHjoBKiIZL3YxL3t0eXBlfS97bmFtZX06c3VnZ2VzdEL4",
44-
"AQoXYWkudmlzbWEuYXNndC5qZXN0ZXIudjFCC0plc3RlclByb3RvUAFaOWdp",
45-
"dGh1Yi5jb20vZS1jb25vbWljL3ZtbGFwaXMvZ2VuL2dvL2FzZ3QvamVzdGVy",
46-
"L3YxO2plc3RlcqICA0FKWKoCDkFzZ3QuSmVzdGVyLlYxygIOQXNndFxKZXN0",
47-
"ZXJcVjHiAhpBc2d0XEplc3RlclxWMVxHUEJNZXRhZGF0YeoCEEFzZ3Q6Okpl",
48-
"c3Rlcjo6VjGSQToSEQoLQXV0b1N1Z2dlc3QyAnYxKgECMhBhcHBsaWNhdGlv",
49-
"bi9qc29uOhBhcHBsaWNhdGlvbi9qc29uYgZwcm90bzM="));
43+
"cG9uc2UiJILT5JMCHjoBKiIZL3YxL3t0eXBlfS97bmFtZX06c3VnZ2VzdBJ+",
44+
"Cg9JbnRlcm5hbFN1Z2dlc3QSIS5hc2d0Lmplc3Rlci52MS5TdWdnZXN0aW9u",
45+
"UmVxdWVzdBoiLmFzZ3QuamVzdGVyLnYxLlN1Z2dlc3Rpb25SZXNwb25zZSIk",
46+
"gtPkkwIeOgEqIhkvdjEve3R5cGV9L3tuYW1lfTpzdWdnZXN0QvgBChdhaS52",
47+
"aXNtYS5hc2d0Lmplc3Rlci52MUILSmVzdGVyUHJvdG9QAVo5Z2l0aHViLmNv",
48+
"bS9lLWNvbm9taWMvdm1sYXBpcy9nZW4vZ28vYXNndC9qZXN0ZXIvdjE7amVz",
49+
"dGVyogIDQUpYqgIOQXNndC5KZXN0ZXIuVjHKAg5Bc2d0XEplc3RlclxWMeIC",
50+
"GkFzZ3RcSmVzdGVyXFYxXEdQQk1ldGFkYXRh6gIQQXNndDo6SmVzdGVyOjpW",
51+
"MZJBOhIRCgtBdXRvU3VnZ2VzdDICdjEqAQIyEGFwcGxpY2F0aW9uL2pzb246",
52+
"EGFwcGxpY2F0aW9uL2pzb25iBnByb3RvMw=="));
5053
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
5154
new pbr::FileDescriptor[] { global::Asgt.Type.DataReflection.Descriptor, global::Asgt.Type.ModelReflection.Descriptor, global::Asgt.Type.PredictionReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Grpc.Gateway.ProtocGenOpenapiv2.Options.AnnotationsReflection.Descriptor, },
5255
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {

gen/csharp/JesterGrpc.cs

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, gl
5858
__Marshaller_asgt_jester_v1_SuggestionRequest,
5959
__Marshaller_asgt_jester_v1_SuggestionResponse);
6060

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+
6169
/// <summary>Service descriptor</summary>
6270
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
6371
{
@@ -74,6 +82,12 @@ public abstract partial class JesterBase
7482
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
7583
}
7684

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+
7791
}
7892

7993
/// <summary>Client for Jester</summary>
@@ -123,6 +137,26 @@ protected JesterClient(ClientBaseConfiguration configuration) : base(configurati
123137
{
124138
return CallInvoker.AsyncUnaryCall(__Method_Suggest, null, options, request);
125139
}
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+
}
126160
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
127161
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
128162
protected override JesterClient NewInstance(ClientBaseConfiguration configuration)
@@ -137,7 +171,8 @@ protected override JesterClient NewInstance(ClientBaseConfiguration configuratio
137171
public static grpc::ServerServiceDefinition BindService(JesterBase serviceImpl)
138172
{
139173
return grpc::ServerServiceDefinition.CreateBuilder()
140-
.AddMethod(__Method_Suggest, serviceImpl.Suggest).Build();
174+
.AddMethod(__Method_Suggest, serviceImpl.Suggest)
175+
.AddMethod(__Method_InternalSuggest, serviceImpl.InternalSuggest).Build();
141176
}
142177

143178
/// <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
148183
public static void BindService(grpc::ServiceBinderBase serviceBinder, JesterBase serviceImpl)
149184
{
150185
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));
151187
}
152188

153189
}

gen/descriptor.bin

218 Bytes
Binary file not shown.

gen/go/asgt/jester/v1/jester.pb.go

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/go/asgt/jester/v1/jester_grpc.pb.go

Lines changed: 38 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)