|
|
@ -34,13 +34,43 @@ namespace Grpc.Testing { |
|
|
|
{ |
|
|
|
{ |
|
|
|
static readonly string __ServiceName = "grpc.testing.TestService"; |
|
|
|
static readonly string __ServiceName = "grpc.testing.TestService"; |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_grpc_testing_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Empty.Parser.ParseFrom); |
|
|
|
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) |
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.SimpleRequest> __Marshaller_grpc_testing_SimpleRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.SimpleRequest.Parser.ParseFrom); |
|
|
|
{ |
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.SimpleResponse> __Marshaller_grpc_testing_SimpleResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.SimpleResponse.Parser.ParseFrom); |
|
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION |
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.StreamingOutputCallRequest> __Marshaller_grpc_testing_StreamingOutputCallRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingOutputCallRequest.Parser.ParseFrom); |
|
|
|
if (message is global::Google.Protobuf.IBufferMessage) |
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.StreamingOutputCallResponse> __Marshaller_grpc_testing_StreamingOutputCallResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingOutputCallResponse.Parser.ParseFrom); |
|
|
|
{ |
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.StreamingInputCallRequest> __Marshaller_grpc_testing_StreamingInputCallRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingInputCallRequest.Parser.ParseFrom); |
|
|
|
context.SetPayloadLength(message.CalculateSize()); |
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.StreamingInputCallResponse> __Marshaller_grpc_testing_StreamingInputCallResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingInputCallResponse.Parser.ParseFrom); |
|
|
|
global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); |
|
|
|
|
|
|
|
context.Complete(); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static class __Helper_MessageCache<T> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION |
|
|
|
|
|
|
|
if (__Helper_MessageCache<T>.IsBufferMessage) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return parser.ParseFrom(context.PayloadAsReadOnlySequence()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
return parser.ParseFrom(context.PayloadAsNewBuffer()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_grpc_testing_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.Empty.Parser)); |
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.SimpleRequest> __Marshaller_grpc_testing_SimpleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.SimpleRequest.Parser)); |
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.SimpleResponse> __Marshaller_grpc_testing_SimpleResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.SimpleResponse.Parser)); |
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.StreamingOutputCallRequest> __Marshaller_grpc_testing_StreamingOutputCallRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.StreamingOutputCallRequest.Parser)); |
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.StreamingOutputCallResponse> __Marshaller_grpc_testing_StreamingOutputCallResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.StreamingOutputCallResponse.Parser)); |
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.StreamingInputCallRequest> __Marshaller_grpc_testing_StreamingInputCallRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.StreamingInputCallRequest.Parser)); |
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.StreamingInputCallResponse> __Marshaller_grpc_testing_StreamingInputCallResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.StreamingInputCallResponse.Parser)); |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty> __Method_EmptyCall = new grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>( |
|
|
|
static readonly grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty> __Method_EmptyCall = new grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>( |
|
|
|
grpc::MethodType.Unary, |
|
|
|
grpc::MethodType.Unary, |
|
|
@ -565,7 +595,37 @@ namespace Grpc.Testing { |
|
|
|
{ |
|
|
|
{ |
|
|
|
static readonly string __ServiceName = "grpc.testing.UnimplementedService"; |
|
|
|
static readonly string __ServiceName = "grpc.testing.UnimplementedService"; |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_grpc_testing_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Empty.Parser.ParseFrom); |
|
|
|
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION |
|
|
|
|
|
|
|
if (message is global::Google.Protobuf.IBufferMessage) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
context.SetPayloadLength(message.CalculateSize()); |
|
|
|
|
|
|
|
global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); |
|
|
|
|
|
|
|
context.Complete(); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static class __Helper_MessageCache<T> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION |
|
|
|
|
|
|
|
if (__Helper_MessageCache<T>.IsBufferMessage) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return parser.ParseFrom(context.PayloadAsReadOnlySequence()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
return parser.ParseFrom(context.PayloadAsNewBuffer()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_grpc_testing_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.Empty.Parser)); |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty> __Method_UnimplementedCall = new grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>( |
|
|
|
static readonly grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty> __Method_UnimplementedCall = new grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>( |
|
|
|
grpc::MethodType.Unary, |
|
|
|
grpc::MethodType.Unary, |
|
|
@ -696,9 +756,39 @@ namespace Grpc.Testing { |
|
|
|
{ |
|
|
|
{ |
|
|
|
static readonly string __ServiceName = "grpc.testing.ReconnectService"; |
|
|
|
static readonly string __ServiceName = "grpc.testing.ReconnectService"; |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.ReconnectParams> __Marshaller_grpc_testing_ReconnectParams = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ReconnectParams.Parser.ParseFrom); |
|
|
|
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) |
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_grpc_testing_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Empty.Parser.ParseFrom); |
|
|
|
{ |
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.ReconnectInfo> __Marshaller_grpc_testing_ReconnectInfo = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ReconnectInfo.Parser.ParseFrom); |
|
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION |
|
|
|
|
|
|
|
if (message is global::Google.Protobuf.IBufferMessage) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
context.SetPayloadLength(message.CalculateSize()); |
|
|
|
|
|
|
|
global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); |
|
|
|
|
|
|
|
context.Complete(); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static class __Helper_MessageCache<T> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION |
|
|
|
|
|
|
|
if (__Helper_MessageCache<T>.IsBufferMessage) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return parser.ParseFrom(context.PayloadAsReadOnlySequence()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
return parser.ParseFrom(context.PayloadAsNewBuffer()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.ReconnectParams> __Marshaller_grpc_testing_ReconnectParams = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.ReconnectParams.Parser)); |
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_grpc_testing_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.Empty.Parser)); |
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.ReconnectInfo> __Marshaller_grpc_testing_ReconnectInfo = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.ReconnectInfo.Parser)); |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Method<global::Grpc.Testing.ReconnectParams, global::Grpc.Testing.Empty> __Method_Start = new grpc::Method<global::Grpc.Testing.ReconnectParams, global::Grpc.Testing.Empty>( |
|
|
|
static readonly grpc::Method<global::Grpc.Testing.ReconnectParams, global::Grpc.Testing.Empty> __Method_Start = new grpc::Method<global::Grpc.Testing.ReconnectParams, global::Grpc.Testing.Empty>( |
|
|
|
grpc::MethodType.Unary, |
|
|
|
grpc::MethodType.Unary, |
|
|
@ -825,8 +915,38 @@ namespace Grpc.Testing { |
|
|
|
{ |
|
|
|
{ |
|
|
|
static readonly string __ServiceName = "grpc.testing.LoadBalancerStatsService"; |
|
|
|
static readonly string __ServiceName = "grpc.testing.LoadBalancerStatsService"; |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.LoadBalancerStatsRequest> __Marshaller_grpc_testing_LoadBalancerStatsRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.LoadBalancerStatsRequest.Parser.ParseFrom); |
|
|
|
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) |
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.LoadBalancerStatsResponse> __Marshaller_grpc_testing_LoadBalancerStatsResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.LoadBalancerStatsResponse.Parser.ParseFrom); |
|
|
|
{ |
|
|
|
|
|
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION |
|
|
|
|
|
|
|
if (message is global::Google.Protobuf.IBufferMessage) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
context.SetPayloadLength(message.CalculateSize()); |
|
|
|
|
|
|
|
global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); |
|
|
|
|
|
|
|
context.Complete(); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static class __Helper_MessageCache<T> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION |
|
|
|
|
|
|
|
if (__Helper_MessageCache<T>.IsBufferMessage) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return parser.ParseFrom(context.PayloadAsReadOnlySequence()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
return parser.ParseFrom(context.PayloadAsNewBuffer()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.LoadBalancerStatsRequest> __Marshaller_grpc_testing_LoadBalancerStatsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.LoadBalancerStatsRequest.Parser)); |
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.LoadBalancerStatsResponse> __Marshaller_grpc_testing_LoadBalancerStatsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.LoadBalancerStatsResponse.Parser)); |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Method<global::Grpc.Testing.LoadBalancerStatsRequest, global::Grpc.Testing.LoadBalancerStatsResponse> __Method_GetClientStats = new grpc::Method<global::Grpc.Testing.LoadBalancerStatsRequest, global::Grpc.Testing.LoadBalancerStatsResponse>( |
|
|
|
static readonly grpc::Method<global::Grpc.Testing.LoadBalancerStatsRequest, global::Grpc.Testing.LoadBalancerStatsResponse> __Method_GetClientStats = new grpc::Method<global::Grpc.Testing.LoadBalancerStatsRequest, global::Grpc.Testing.LoadBalancerStatsResponse>( |
|
|
|
grpc::MethodType.Unary, |
|
|
|
grpc::MethodType.Unary, |
|
|
@ -957,7 +1077,37 @@ namespace Grpc.Testing { |
|
|
|
{ |
|
|
|
{ |
|
|
|
static readonly string __ServiceName = "grpc.testing.XdsUpdateHealthService"; |
|
|
|
static readonly string __ServiceName = "grpc.testing.XdsUpdateHealthService"; |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_grpc_testing_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Empty.Parser.ParseFrom); |
|
|
|
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION |
|
|
|
|
|
|
|
if (message is global::Google.Protobuf.IBufferMessage) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
context.SetPayloadLength(message.CalculateSize()); |
|
|
|
|
|
|
|
global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); |
|
|
|
|
|
|
|
context.Complete(); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static class __Helper_MessageCache<T> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION |
|
|
|
|
|
|
|
if (__Helper_MessageCache<T>.IsBufferMessage) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return parser.ParseFrom(context.PayloadAsReadOnlySequence()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
return parser.ParseFrom(context.PayloadAsNewBuffer()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_grpc_testing_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.Empty.Parser)); |
|
|
|
|
|
|
|
|
|
|
|
static readonly grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty> __Method_SetServing = new grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>( |
|
|
|
static readonly grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty> __Method_SetServing = new grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>( |
|
|
|
grpc::MethodType.Unary, |
|
|
|
grpc::MethodType.Unary, |
|
|
|