// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mlagents/envs/communicator_objects/unity_to_external.proto // # if UNITY_EDITOR || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_STANDALONE_LINUX #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace MLAgents.CommunicatorObjects { public static partial class UnityToExternal { static readonly string __ServiceName = "communicator_objects.UnityToExternal"; static readonly grpc::Marshaller __Marshaller_communicator_objects_UnityMessage = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::MLAgents.CommunicatorObjects.UnityMessage.Parser.ParseFrom); static readonly grpc::Method __Method_Exchange = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "Exchange", __Marshaller_communicator_objects_UnityMessage, __Marshaller_communicator_objects_UnityMessage); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::MLAgents.CommunicatorObjects.UnityToExternalReflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of UnityToExternal public abstract partial class UnityToExternalBase { /// /// Sends the academy parameters /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). public virtual global::System.Threading.Tasks.Task Exchange(global::MLAgents.CommunicatorObjects.UnityMessage request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for UnityToExternal public partial class UnityToExternalClient : grpc::ClientBase { /// Creates a new client for UnityToExternal /// The channel to use to make remote calls. public UnityToExternalClient(grpc::Channel channel) : base(channel) { } /// Creates a new client for UnityToExternal that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. public UnityToExternalClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. protected UnityToExternalClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. protected UnityToExternalClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Sends the academy parameters /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. public virtual global::MLAgents.CommunicatorObjects.UnityMessage Exchange(global::MLAgents.CommunicatorObjects.UnityMessage request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return Exchange(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Sends the academy parameters /// /// The request to send to the server. /// The options for the call. /// The response received from the server. public virtual global::MLAgents.CommunicatorObjects.UnityMessage Exchange(global::MLAgents.CommunicatorObjects.UnityMessage request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_Exchange, null, options, request); } /// /// Sends the academy parameters /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. public virtual grpc::AsyncUnaryCall ExchangeAsync(global::MLAgents.CommunicatorObjects.UnityMessage request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ExchangeAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Sends the academy parameters /// /// The request to send to the server. /// The options for the call. /// The call object. public virtual grpc::AsyncUnaryCall ExchangeAsync(global::MLAgents.CommunicatorObjects.UnityMessage request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_Exchange, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. protected override UnityToExternalClient NewInstance(ClientBaseConfiguration configuration) { return new UnityToExternalClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. public static grpc::ServerServiceDefinition BindService(UnityToExternalBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_Exchange, serviceImpl.Exchange).Build(); } } } #endregion #endif