Snai.GrpcService.Protocol/MsgGrpc.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: msg.proto
// </auto-generated>
#pragma warning disable 1591
#region Designer generated code
using grpc = global::Grpc.Core;
namespace Snai.GrpcService.Protocol {
public static partial class MsgService
{
static readonly string __ServiceName = "Snai.GrpcService.Protocol.MsgService";
static readonly grpc::Marshaller<global::Snai.GrpcService.Protocol.GetMsgNumRequest> __Marshaller_GetMsgNumRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Snai.GrpcService.Protocol.GetMsgNumRequest.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Snai.GrpcService.Protocol.GetMsgSumReply> __Marshaller_GetMsgSumReply = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Snai.GrpcService.Protocol.GetMsgSumReply.Parser.ParseFrom);
static readonly grpc::Method<global::Snai.GrpcService.Protocol.GetMsgNumRequest, global::Snai.GrpcService.Protocol.GetMsgSumReply> __Method_GetSum = new grpc::Method<global::Snai.GrpcService.Protocol.GetMsgNumRequest, global::Snai.GrpcService.Protocol.GetMsgSumReply>(
grpc::MethodType.Unary,
__ServiceName,
"GetSum",
__Marshaller_GetMsgNumRequest,
__Marshaller_GetMsgSumReply);
/// <summary>Service descriptor</summary>
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Snai.GrpcService.Protocol.MsgReflection.Descriptor.Services[0]; }
}
/// <summary>Base class for server-side implementations of MsgService</summary>
public abstract partial class MsgServiceBase
{
public virtual global::System.Threading.Tasks.Task<global::Snai.GrpcService.Protocol.GetMsgSumReply> GetSum(global::Snai.GrpcService.Protocol.GetMsgNumRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// <summary>Client for MsgService</summary>
public partial class MsgServiceClient : grpc::ClientBase<MsgServiceClient>
{
/// <summary>Creates a new client for MsgService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public MsgServiceClient(grpc::Channel channel) : base(channel)
{
}
/// <summary>Creates a new client for MsgService that uses a custom <c>CallInvoker</c>.</summary>
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
public MsgServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
protected MsgServiceClient() : base()
{
}
/// <summary>Protected constructor to allow creation of configured clients.</summary>
/// <param name="configuration">The client configuration.</param>
protected MsgServiceClient(ClientBaseConfiguration configuration) : base(configuration)
后面还有 37 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。