/// <summary> /// CreateProposal is called by MMFs that wish to write their results to /// a proposed MatchObject, that can be sent out the Backend API once it has /// been approved (by default, by the evaluator process). /// - adds all players in all Rosters to the proposed player ignore list /// - writes the proposed match to the provided key /// - adds that key to the list of proposals to be considered /// INPUT: /// * TO RETURN A MATCHOBJECT AFTER A SUCCESSFUL MMF RUN /// To create a match MatchObject message with these fields populated: /// - id, set to the value of the MMF_PROPOSAL_ID env var /// - properties /// - error. You must explicitly set this to an empty string if your MMF /// - roster, with the playerIDs filled in the 'players' repeated field. /// - [optional] pools, set to the output from the 'GetPlayerPools' call, /// will populate the pools with stats about how many players the filters /// matched and how long the filters took to run, which will be sent out /// the backend api along with your match results. /// was successful. /// * TO RETURN AN ERROR /// To report a failure or error, send a MatchObject message with these /// these fields populated: /// - id, set to the value of the MMF_ERROR_ID env var. /// - error, set to a string value describing the error your MMF encountered. /// - [optional] properties, anything you put here is returned to the /// backend along with your error. /// - [optional] rosters, anything you put here is returned to the /// backend along with your error. /// - [optional] pools, set to the output from the 'GetPlayerPools' call, /// will populate the pools with stats about how many players the filters /// matched and how long the filters took to run, which will be sent out /// the backend api along with your match results. /// OUTPUT: a Result message with a boolean success value and an error string /// if an error was encountered /// </summary> /// <param name="request">The request to send to the server.</param> /// <param name="options">The options for the call.</param> /// <returns>The call object.</returns> public virtual grpc::AsyncUnaryCall <global::Api.CreateProposalResponse> CreateProposalAsync(global::Api.CreateProposalRequest request, grpc::CallOptions options) { return(CallInvoker.AsyncUnaryCall(__Method_CreateProposal, null, options, request)); }
/// <summary> /// CreateProposal is called by MMFs that wish to write their results to /// a proposed MatchObject, that can be sent out the Backend API once it has /// been approved (by default, by the evaluator process). /// - adds all players in all Rosters to the proposed player ignore list /// - writes the proposed match to the provided key /// - adds that key to the list of proposals to be considered /// INPUT: /// * TO RETURN A MATCHOBJECT AFTER A SUCCESSFUL MMF RUN /// To create a match MatchObject message with these fields populated: /// - id, set to the value of the MMF_PROPOSAL_ID env var /// - properties /// - error. You must explicitly set this to an empty string if your MMF /// - roster, with the playerIDs filled in the 'players' repeated field. /// - [optional] pools, set to the output from the 'GetPlayerPools' call, /// will populate the pools with stats about how many players the filters /// matched and how long the filters took to run, which will be sent out /// the backend api along with your match results. /// was successful. /// * TO RETURN AN ERROR /// To report a failure or error, send a MatchObject message with these /// these fields populated: /// - id, set to the value of the MMF_ERROR_ID env var. /// - error, set to a string value describing the error your MMF encountered. /// - [optional] properties, anything you put here is returned to the /// backend along with your error. /// - [optional] rosters, anything you put here is returned to the /// backend along with your error. /// - [optional] pools, set to the output from the 'GetPlayerPools' call, /// will populate the pools with stats about how many players the filters /// matched and how long the filters took to run, which will be sent out /// the backend api along with your match results. /// OUTPUT: a Result message with a boolean success value and an error string /// if an error was encountered /// </summary> /// <param name="request">The request to send to the server.</param> /// <param name="options">The options for the call.</param> /// <returns>The response received from the server.</returns> public virtual global::Api.CreateProposalResponse CreateProposal(global::Api.CreateProposalRequest request, grpc::CallOptions options) { return(CallInvoker.BlockingUnaryCall(__Method_CreateProposal, null, options, request)); }
/// <summary> /// CreateProposal is called by MMFs that wish to write their results to /// a proposed MatchObject, that can be sent out the Backend API once it has /// been approved (by default, by the evaluator process). /// - adds all players in all Rosters to the proposed player ignore list /// - writes the proposed match to the provided key /// - adds that key to the list of proposals to be considered /// INPUT: /// * TO RETURN A MATCHOBJECT AFTER A SUCCESSFUL MMF RUN /// To create a match MatchObject message with these fields populated: /// - id, set to the value of the MMF_PROPOSAL_ID env var /// - properties /// - error. You must explicitly set this to an empty string if your MMF /// - roster, with the playerIDs filled in the 'players' repeated field. /// - [optional] pools, set to the output from the 'GetPlayerPools' call, /// will populate the pools with stats about how many players the filters /// matched and how long the filters took to run, which will be sent out /// the backend api along with your match results. /// was successful. /// * TO RETURN AN ERROR /// To report a failure or error, send a MatchObject message with these /// these fields populated: /// - id, set to the value of the MMF_ERROR_ID env var. /// - error, set to a string value describing the error your MMF encountered. /// - [optional] properties, anything you put here is returned to the /// backend along with your error. /// - [optional] rosters, anything you put here is returned to the /// backend along with your error. /// - [optional] pools, set to the output from the 'GetPlayerPools' call, /// will populate the pools with stats about how many players the filters /// matched and how long the filters took to run, which will be sent out /// the backend api along with your match results. /// OUTPUT: a Result message with a boolean success value and an error string /// if an error was encountered /// </summary> /// <param name="request">The request to send to the server.</param> /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param> /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param> /// <param name="cancellationToken">An optional token for canceling the call.</param> /// <returns>The call object.</returns> public virtual grpc::AsyncUnaryCall <global::Api.CreateProposalResponse> CreateProposalAsync(global::Api.CreateProposalRequest request, grpc::Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return(CreateProposalAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken))); }
/// <summary> /// CreateProposal is called by MMFs that wish to write their results to /// a proposed MatchObject, that can be sent out the Backend API once it has /// been approved (by default, by the evaluator process). /// - adds all players in all Rosters to the proposed player ignore list /// - writes the proposed match to the provided key /// - adds that key to the list of proposals to be considered /// INPUT: /// * TO RETURN A MATCHOBJECT AFTER A SUCCESSFUL MMF RUN /// To create a match MatchObject message with these fields populated: /// - id, set to the value of the MMF_PROPOSAL_ID env var /// - properties /// - error. You must explicitly set this to an empty string if your MMF /// - roster, with the playerIDs filled in the 'players' repeated field. /// - [optional] pools, set to the output from the 'GetPlayerPools' call, /// will populate the pools with stats about how many players the filters /// matched and how long the filters took to run, which will be sent out /// the backend api along with your match results. /// was successful. /// * TO RETURN AN ERROR /// To report a failure or error, send a MatchObject message with these /// these fields populated: /// - id, set to the value of the MMF_ERROR_ID env var. /// - error, set to a string value describing the error your MMF encountered. /// - [optional] properties, anything you put here is returned to the /// backend along with your error. /// - [optional] rosters, anything you put here is returned to the /// backend along with your error. /// - [optional] pools, set to the output from the 'GetPlayerPools' call, /// will populate the pools with stats about how many players the filters /// matched and how long the filters took to run, which will be sent out /// the backend api along with your match results. /// OUTPUT: a Result message with a boolean success value and an error string /// if an error was encountered /// </summary> /// <param name="request">The request received from the client.</param> /// <param name="context">The context of the server-side call handler being invoked.</param> /// <returns>The response to send back to the client (wrapped by a task).</returns> public virtual global::System.Threading.Tasks.Task <global::Api.CreateProposalResponse> CreateProposal(global::Api.CreateProposalRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); }