#if UNITY_EDITOR || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_STANDALONE_LINUX
//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mlagents/envs/communicator_objects/unity_to_external.proto
//
#pragma warning disable 0414, 1591
#region Designer generated code
using grpc = global::Grpc.Core;
namespace MLAgents.CommunicatorObjects {
public static partial class UnityToExternalProto
{
static readonly string __ServiceName = "communicator_objects.UnityToExternalProto";
static readonly grpc::Marshaller __Marshaller_communicator_objects_UnityMessageProto = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::MLAgents.CommunicatorObjects.UnityMessageProto.Parser.ParseFrom);
static readonly grpc::Method __Method_Exchange = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"Exchange",
__Marshaller_communicator_objects_UnityMessageProto,
__Marshaller_communicator_objects_UnityMessageProto);
/// 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 UnityToExternalProto
public abstract partial class UnityToExternalProtoBase
{
///
/// 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.UnityMessageProto request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// Client for UnityToExternalProto
public partial class UnityToExternalProtoClient : grpc::ClientBase
{
/// Creates a new client for UnityToExternalProto
/// The channel to use to make remote calls.
public UnityToExternalProtoClient(grpc::Channel channel) : base(channel)
{
}
/// Creates a new client for UnityToExternalProto that uses a custom CallInvoker.
/// The callInvoker to use to make remote calls.
public UnityToExternalProtoClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// Protected parameterless constructor to allow creation of test doubles.
protected UnityToExternalProtoClient() : base()
{
}
/// Protected constructor to allow creation of configured clients.
/// The client configuration.
protected UnityToExternalProtoClient(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.UnityMessageProto Exchange(global::MLAgents.CommunicatorObjects.UnityMessageProto 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.UnityMessageProto Exchange(global::MLAgents.CommunicatorObjects.UnityMessageProto 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.UnityMessageProto 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.UnityMessageProto request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_Exchange, null, options, request);
}
/// Creates a new instance of client from given ClientBaseConfiguration.
protected override UnityToExternalProtoClient NewInstance(ClientBaseConfiguration configuration)
{
return new UnityToExternalProtoClient(configuration);
}
}
/// Creates service definition that can be registered with a server
/// An object implementing the server-side handling logic.
public static grpc::ServerServiceDefinition BindService(UnityToExternalProtoBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_Exchange, serviceImpl.Exchange).Build();
}
}
}
#endregion
#endif