|
| 1 | +// <auto-generated> |
| 2 | +// Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | +// source: FunctionRpc.proto |
| 4 | +// </auto-generated> |
| 5 | +#pragma warning disable 0414, 1591 |
| 6 | +#region Designer generated code |
| 7 | + |
| 8 | +using grpc = global::Grpc.Core; |
| 9 | + |
| 10 | +namespace Microsoft.Azure.WebJobs.Script.Grpc.Messages { |
| 11 | + /// <summary> |
| 12 | + /// Interface exported by the server. |
| 13 | + /// </summary> |
| 14 | + public static partial class FunctionRpc |
| 15 | + { |
| 16 | + static readonly string __ServiceName = "AzureFunctionsRpcMessages.FunctionRpc"; |
| 17 | + |
| 18 | + static readonly grpc::Marshaller<global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage> __Marshaller_StreamingMessage = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage.Parser.ParseFrom); |
| 19 | + |
| 20 | + static readonly grpc::Method<global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage, global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage> __Method_EventStream = new grpc::Method<global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage, global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage>( |
| 21 | + grpc::MethodType.DuplexStreaming, |
| 22 | + __ServiceName, |
| 23 | + "EventStream", |
| 24 | + __Marshaller_StreamingMessage, |
| 25 | + __Marshaller_StreamingMessage); |
| 26 | + |
| 27 | + /// <summary>Service descriptor</summary> |
| 28 | + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor |
| 29 | + { |
| 30 | + get { return global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.FunctionRpcReflection.Descriptor.Services[0]; } |
| 31 | + } |
| 32 | + |
| 33 | + /// <summary>Base class for server-side implementations of FunctionRpc</summary> |
| 34 | + public abstract partial class FunctionRpcBase |
| 35 | + { |
| 36 | + public virtual global::System.Threading.Tasks.Task EventStream(grpc::IAsyncStreamReader<global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage> requestStream, grpc::IServerStreamWriter<global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage> responseStream, grpc::ServerCallContext context) |
| 37 | + { |
| 38 | + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); |
| 39 | + } |
| 40 | + |
| 41 | + } |
| 42 | + |
| 43 | + /// <summary>Client for FunctionRpc</summary> |
| 44 | + public partial class FunctionRpcClient : grpc::ClientBase<FunctionRpcClient> |
| 45 | + { |
| 46 | + /// <summary>Creates a new client for FunctionRpc</summary> |
| 47 | + /// <param name="channel">The channel to use to make remote calls.</param> |
| 48 | + public FunctionRpcClient(grpc::Channel channel) : base(channel) |
| 49 | + { |
| 50 | + } |
| 51 | + /// <summary>Creates a new client for FunctionRpc that uses a custom <c>CallInvoker</c>.</summary> |
| 52 | + /// <param name="callInvoker">The callInvoker to use to make remote calls.</param> |
| 53 | + public FunctionRpcClient(grpc::CallInvoker callInvoker) : base(callInvoker) |
| 54 | + { |
| 55 | + } |
| 56 | + /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary> |
| 57 | + protected FunctionRpcClient() : base() |
| 58 | + { |
| 59 | + } |
| 60 | + /// <summary>Protected constructor to allow creation of configured clients.</summary> |
| 61 | + /// <param name="configuration">The client configuration.</param> |
| 62 | + protected FunctionRpcClient(ClientBaseConfiguration configuration) : base(configuration) |
| 63 | + { |
| 64 | + } |
| 65 | + |
| 66 | + public virtual grpc::AsyncDuplexStreamingCall<global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage, global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage> EventStream(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) |
| 67 | + { |
| 68 | + return EventStream(new grpc::CallOptions(headers, deadline, cancellationToken)); |
| 69 | + } |
| 70 | + public virtual grpc::AsyncDuplexStreamingCall<global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage, global::Microsoft.Azure.WebJobs.Script.Grpc.Messages.StreamingMessage> EventStream(grpc::CallOptions options) |
| 71 | + { |
| 72 | + return CallInvoker.AsyncDuplexStreamingCall(__Method_EventStream, null, options); |
| 73 | + } |
| 74 | + /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary> |
| 75 | + protected override FunctionRpcClient NewInstance(ClientBaseConfiguration configuration) |
| 76 | + { |
| 77 | + return new FunctionRpcClient(configuration); |
| 78 | + } |
| 79 | + } |
| 80 | + |
| 81 | + /// <summary>Creates service definition that can be registered with a server</summary> |
| 82 | + /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> |
| 83 | + public static grpc::ServerServiceDefinition BindService(FunctionRpcBase serviceImpl) |
| 84 | + { |
| 85 | + return grpc::ServerServiceDefinition.CreateBuilder() |
| 86 | + .AddMethod(__Method_EventStream, serviceImpl.EventStream).Build(); |
| 87 | + } |
| 88 | + |
| 89 | + } |
| 90 | +} |
| 91 | +#endregion |
0 commit comments