All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.piapi.contract.v1.SandboxServiceGrpc Maven / Gradle / Ivy

There is a newer version: 1.25
Show newest version
package ru.tinkoff.piapi.contract.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 *Сервис для работы с песочницей TINKOFF INVEST API
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.56.1)", comments = "Source: sandbox.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SandboxServiceGrpc { private SandboxServiceGrpc() {} public static final String SERVICE_NAME = "tinkoff.public.invest.api.contract.v1.SandboxService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getOpenSandboxAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "OpenSandboxAccount", requestType = ru.tinkoff.piapi.contract.v1.OpenSandboxAccountRequest.class, responseType = ru.tinkoff.piapi.contract.v1.OpenSandboxAccountResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getOpenSandboxAccountMethod() { io.grpc.MethodDescriptor getOpenSandboxAccountMethod; if ((getOpenSandboxAccountMethod = SandboxServiceGrpc.getOpenSandboxAccountMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getOpenSandboxAccountMethod = SandboxServiceGrpc.getOpenSandboxAccountMethod) == null) { SandboxServiceGrpc.getOpenSandboxAccountMethod = getOpenSandboxAccountMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OpenSandboxAccount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.OpenSandboxAccountRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.OpenSandboxAccountResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("OpenSandboxAccount")) .build(); } } } return getOpenSandboxAccountMethod; } private static volatile io.grpc.MethodDescriptor getGetSandboxAccountsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSandboxAccounts", requestType = ru.tinkoff.piapi.contract.v1.GetAccountsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetAccountsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetSandboxAccountsMethod() { io.grpc.MethodDescriptor getGetSandboxAccountsMethod; if ((getGetSandboxAccountsMethod = SandboxServiceGrpc.getGetSandboxAccountsMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getGetSandboxAccountsMethod = SandboxServiceGrpc.getGetSandboxAccountsMethod) == null) { SandboxServiceGrpc.getGetSandboxAccountsMethod = getGetSandboxAccountsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSandboxAccounts")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetAccountsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetAccountsResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("GetSandboxAccounts")) .build(); } } } return getGetSandboxAccountsMethod; } private static volatile io.grpc.MethodDescriptor getCloseSandboxAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CloseSandboxAccount", requestType = ru.tinkoff.piapi.contract.v1.CloseSandboxAccountRequest.class, responseType = ru.tinkoff.piapi.contract.v1.CloseSandboxAccountResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCloseSandboxAccountMethod() { io.grpc.MethodDescriptor getCloseSandboxAccountMethod; if ((getCloseSandboxAccountMethod = SandboxServiceGrpc.getCloseSandboxAccountMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getCloseSandboxAccountMethod = SandboxServiceGrpc.getCloseSandboxAccountMethod) == null) { SandboxServiceGrpc.getCloseSandboxAccountMethod = getCloseSandboxAccountMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CloseSandboxAccount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.CloseSandboxAccountRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.CloseSandboxAccountResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("CloseSandboxAccount")) .build(); } } } return getCloseSandboxAccountMethod; } private static volatile io.grpc.MethodDescriptor getPostSandboxOrderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "PostSandboxOrder", requestType = ru.tinkoff.piapi.contract.v1.PostOrderRequest.class, responseType = ru.tinkoff.piapi.contract.v1.PostOrderResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getPostSandboxOrderMethod() { io.grpc.MethodDescriptor getPostSandboxOrderMethod; if ((getPostSandboxOrderMethod = SandboxServiceGrpc.getPostSandboxOrderMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getPostSandboxOrderMethod = SandboxServiceGrpc.getPostSandboxOrderMethod) == null) { SandboxServiceGrpc.getPostSandboxOrderMethod = getPostSandboxOrderMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PostSandboxOrder")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.PostOrderRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.PostOrderResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("PostSandboxOrder")) .build(); } } } return getPostSandboxOrderMethod; } private static volatile io.grpc.MethodDescriptor getReplaceSandboxOrderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ReplaceSandboxOrder", requestType = ru.tinkoff.piapi.contract.v1.ReplaceOrderRequest.class, responseType = ru.tinkoff.piapi.contract.v1.PostOrderResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getReplaceSandboxOrderMethod() { io.grpc.MethodDescriptor getReplaceSandboxOrderMethod; if ((getReplaceSandboxOrderMethod = SandboxServiceGrpc.getReplaceSandboxOrderMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getReplaceSandboxOrderMethod = SandboxServiceGrpc.getReplaceSandboxOrderMethod) == null) { SandboxServiceGrpc.getReplaceSandboxOrderMethod = getReplaceSandboxOrderMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReplaceSandboxOrder")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.ReplaceOrderRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.PostOrderResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("ReplaceSandboxOrder")) .build(); } } } return getReplaceSandboxOrderMethod; } private static volatile io.grpc.MethodDescriptor getGetSandboxOrdersMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSandboxOrders", requestType = ru.tinkoff.piapi.contract.v1.GetOrdersRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetOrdersResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetSandboxOrdersMethod() { io.grpc.MethodDescriptor getGetSandboxOrdersMethod; if ((getGetSandboxOrdersMethod = SandboxServiceGrpc.getGetSandboxOrdersMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getGetSandboxOrdersMethod = SandboxServiceGrpc.getGetSandboxOrdersMethod) == null) { SandboxServiceGrpc.getGetSandboxOrdersMethod = getGetSandboxOrdersMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSandboxOrders")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetOrdersRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetOrdersResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("GetSandboxOrders")) .build(); } } } return getGetSandboxOrdersMethod; } private static volatile io.grpc.MethodDescriptor getCancelSandboxOrderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CancelSandboxOrder", requestType = ru.tinkoff.piapi.contract.v1.CancelOrderRequest.class, responseType = ru.tinkoff.piapi.contract.v1.CancelOrderResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCancelSandboxOrderMethod() { io.grpc.MethodDescriptor getCancelSandboxOrderMethod; if ((getCancelSandboxOrderMethod = SandboxServiceGrpc.getCancelSandboxOrderMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getCancelSandboxOrderMethod = SandboxServiceGrpc.getCancelSandboxOrderMethod) == null) { SandboxServiceGrpc.getCancelSandboxOrderMethod = getCancelSandboxOrderMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelSandboxOrder")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.CancelOrderRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.CancelOrderResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("CancelSandboxOrder")) .build(); } } } return getCancelSandboxOrderMethod; } private static volatile io.grpc.MethodDescriptor getGetSandboxOrderStateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSandboxOrderState", requestType = ru.tinkoff.piapi.contract.v1.GetOrderStateRequest.class, responseType = ru.tinkoff.piapi.contract.v1.OrderState.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetSandboxOrderStateMethod() { io.grpc.MethodDescriptor getGetSandboxOrderStateMethod; if ((getGetSandboxOrderStateMethod = SandboxServiceGrpc.getGetSandboxOrderStateMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getGetSandboxOrderStateMethod = SandboxServiceGrpc.getGetSandboxOrderStateMethod) == null) { SandboxServiceGrpc.getGetSandboxOrderStateMethod = getGetSandboxOrderStateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSandboxOrderState")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetOrderStateRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.OrderState.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("GetSandboxOrderState")) .build(); } } } return getGetSandboxOrderStateMethod; } private static volatile io.grpc.MethodDescriptor getGetSandboxPositionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSandboxPositions", requestType = ru.tinkoff.piapi.contract.v1.PositionsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.PositionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetSandboxPositionsMethod() { io.grpc.MethodDescriptor getGetSandboxPositionsMethod; if ((getGetSandboxPositionsMethod = SandboxServiceGrpc.getGetSandboxPositionsMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getGetSandboxPositionsMethod = SandboxServiceGrpc.getGetSandboxPositionsMethod) == null) { SandboxServiceGrpc.getGetSandboxPositionsMethod = getGetSandboxPositionsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSandboxPositions")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.PositionsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.PositionsResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("GetSandboxPositions")) .build(); } } } return getGetSandboxPositionsMethod; } private static volatile io.grpc.MethodDescriptor getGetSandboxOperationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSandboxOperations", requestType = ru.tinkoff.piapi.contract.v1.OperationsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.OperationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetSandboxOperationsMethod() { io.grpc.MethodDescriptor getGetSandboxOperationsMethod; if ((getGetSandboxOperationsMethod = SandboxServiceGrpc.getGetSandboxOperationsMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getGetSandboxOperationsMethod = SandboxServiceGrpc.getGetSandboxOperationsMethod) == null) { SandboxServiceGrpc.getGetSandboxOperationsMethod = getGetSandboxOperationsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSandboxOperations")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.OperationsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.OperationsResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("GetSandboxOperations")) .build(); } } } return getGetSandboxOperationsMethod; } private static volatile io.grpc.MethodDescriptor getGetSandboxOperationsByCursorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSandboxOperationsByCursor", requestType = ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetSandboxOperationsByCursorMethod() { io.grpc.MethodDescriptor getGetSandboxOperationsByCursorMethod; if ((getGetSandboxOperationsByCursorMethod = SandboxServiceGrpc.getGetSandboxOperationsByCursorMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getGetSandboxOperationsByCursorMethod = SandboxServiceGrpc.getGetSandboxOperationsByCursorMethod) == null) { SandboxServiceGrpc.getGetSandboxOperationsByCursorMethod = getGetSandboxOperationsByCursorMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSandboxOperationsByCursor")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("GetSandboxOperationsByCursor")) .build(); } } } return getGetSandboxOperationsByCursorMethod; } private static volatile io.grpc.MethodDescriptor getGetSandboxPortfolioMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSandboxPortfolio", requestType = ru.tinkoff.piapi.contract.v1.PortfolioRequest.class, responseType = ru.tinkoff.piapi.contract.v1.PortfolioResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetSandboxPortfolioMethod() { io.grpc.MethodDescriptor getGetSandboxPortfolioMethod; if ((getGetSandboxPortfolioMethod = SandboxServiceGrpc.getGetSandboxPortfolioMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getGetSandboxPortfolioMethod = SandboxServiceGrpc.getGetSandboxPortfolioMethod) == null) { SandboxServiceGrpc.getGetSandboxPortfolioMethod = getGetSandboxPortfolioMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSandboxPortfolio")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.PortfolioRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.PortfolioResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("GetSandboxPortfolio")) .build(); } } } return getGetSandboxPortfolioMethod; } private static volatile io.grpc.MethodDescriptor getSandboxPayInMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SandboxPayIn", requestType = ru.tinkoff.piapi.contract.v1.SandboxPayInRequest.class, responseType = ru.tinkoff.piapi.contract.v1.SandboxPayInResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSandboxPayInMethod() { io.grpc.MethodDescriptor getSandboxPayInMethod; if ((getSandboxPayInMethod = SandboxServiceGrpc.getSandboxPayInMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getSandboxPayInMethod = SandboxServiceGrpc.getSandboxPayInMethod) == null) { SandboxServiceGrpc.getSandboxPayInMethod = getSandboxPayInMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SandboxPayIn")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.SandboxPayInRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.SandboxPayInResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("SandboxPayIn")) .build(); } } } return getSandboxPayInMethod; } private static volatile io.grpc.MethodDescriptor getGetSandboxWithdrawLimitsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSandboxWithdrawLimits", requestType = ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetSandboxWithdrawLimitsMethod() { io.grpc.MethodDescriptor getGetSandboxWithdrawLimitsMethod; if ((getGetSandboxWithdrawLimitsMethod = SandboxServiceGrpc.getGetSandboxWithdrawLimitsMethod) == null) { synchronized (SandboxServiceGrpc.class) { if ((getGetSandboxWithdrawLimitsMethod = SandboxServiceGrpc.getGetSandboxWithdrawLimitsMethod) == null) { SandboxServiceGrpc.getGetSandboxWithdrawLimitsMethod = getGetSandboxWithdrawLimitsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSandboxWithdrawLimits")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse.getDefaultInstance())) .setSchemaDescriptor(new SandboxServiceMethodDescriptorSupplier("GetSandboxWithdrawLimits")) .build(); } } } return getGetSandboxWithdrawLimitsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static SandboxServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public SandboxServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SandboxServiceStub(channel, callOptions); } }; return SandboxServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static SandboxServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public SandboxServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SandboxServiceBlockingStub(channel, callOptions); } }; return SandboxServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static SandboxServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public SandboxServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SandboxServiceFutureStub(channel, callOptions); } }; return SandboxServiceFutureStub.newStub(factory, channel); } /** *
   *Сервис для работы с песочницей TINKOFF INVEST API
   * 
*/ public interface AsyncService { /** *
     *Метод регистрации счёта в песочнице.
     * 
*/ default void openSandboxAccount(ru.tinkoff.piapi.contract.v1.OpenSandboxAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOpenSandboxAccountMethod(), responseObserver); } /** *
     *Метод получения счетов в песочнице.
     * 
*/ default void getSandboxAccounts(ru.tinkoff.piapi.contract.v1.GetAccountsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSandboxAccountsMethod(), responseObserver); } /** *
     *Метод закрытия счёта в песочнице.
     * 
*/ default void closeSandboxAccount(ru.tinkoff.piapi.contract.v1.CloseSandboxAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCloseSandboxAccountMethod(), responseObserver); } /** *
     *Метод выставления торгового поручения в песочнице.
     * 
*/ default void postSandboxOrder(ru.tinkoff.piapi.contract.v1.PostOrderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPostSandboxOrderMethod(), responseObserver); } /** *
     *Метод изменения выставленной заявки.
     * 
*/ default void replaceSandboxOrder(ru.tinkoff.piapi.contract.v1.ReplaceOrderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReplaceSandboxOrderMethod(), responseObserver); } /** *
     *Метод получения списка активных заявок по счёту в песочнице.
     * 
*/ default void getSandboxOrders(ru.tinkoff.piapi.contract.v1.GetOrdersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSandboxOrdersMethod(), responseObserver); } /** *
     *Метод отмены торгового поручения в песочнице.
     * 
*/ default void cancelSandboxOrder(ru.tinkoff.piapi.contract.v1.CancelOrderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelSandboxOrderMethod(), responseObserver); } /** *
     *Метод получения статуса заявки в песочнице. Заявки хранятся в таблице 7 дней.
     * 
*/ default void getSandboxOrderState(ru.tinkoff.piapi.contract.v1.GetOrderStateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSandboxOrderStateMethod(), responseObserver); } /** *
     *Метод получения позиций по виртуальному счёту песочницы.
     * 
*/ default void getSandboxPositions(ru.tinkoff.piapi.contract.v1.PositionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSandboxPositionsMethod(), responseObserver); } /** *
     *Метод получения операций в песочнице по номеру счёта.
     * 
*/ default void getSandboxOperations(ru.tinkoff.piapi.contract.v1.OperationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSandboxOperationsMethod(), responseObserver); } /** *
     *Метод получения операций в песочнице по номеру счета с пагинацией.
     * 
*/ default void getSandboxOperationsByCursor(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSandboxOperationsByCursorMethod(), responseObserver); } /** *
     *Метод получения портфолио в песочнице.
     * 
*/ default void getSandboxPortfolio(ru.tinkoff.piapi.contract.v1.PortfolioRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSandboxPortfolioMethod(), responseObserver); } /** *
     *Метод пополнения счёта в песочнице.
     * 
*/ default void sandboxPayIn(ru.tinkoff.piapi.contract.v1.SandboxPayInRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSandboxPayInMethod(), responseObserver); } /** *
     *Метод получения доступного остатка для вывода средств в песочнице.
     * 
*/ default void getSandboxWithdrawLimits(ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSandboxWithdrawLimitsMethod(), responseObserver); } } /** * Base class for the server implementation of the service SandboxService. *
   *Сервис для работы с песочницей TINKOFF INVEST API
   * 
*/ public static abstract class SandboxServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return SandboxServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service SandboxService. *
   *Сервис для работы с песочницей TINKOFF INVEST API
   * 
*/ public static final class SandboxServiceStub extends io.grpc.stub.AbstractAsyncStub { private SandboxServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SandboxServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SandboxServiceStub(channel, callOptions); } /** *
     *Метод регистрации счёта в песочнице.
     * 
*/ public void openSandboxAccount(ru.tinkoff.piapi.contract.v1.OpenSandboxAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getOpenSandboxAccountMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения счетов в песочнице.
     * 
*/ public void getSandboxAccounts(ru.tinkoff.piapi.contract.v1.GetAccountsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSandboxAccountsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод закрытия счёта в песочнице.
     * 
*/ public void closeSandboxAccount(ru.tinkoff.piapi.contract.v1.CloseSandboxAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCloseSandboxAccountMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод выставления торгового поручения в песочнице.
     * 
*/ public void postSandboxOrder(ru.tinkoff.piapi.contract.v1.PostOrderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPostSandboxOrderMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод изменения выставленной заявки.
     * 
*/ public void replaceSandboxOrder(ru.tinkoff.piapi.contract.v1.ReplaceOrderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getReplaceSandboxOrderMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка активных заявок по счёту в песочнице.
     * 
*/ public void getSandboxOrders(ru.tinkoff.piapi.contract.v1.GetOrdersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSandboxOrdersMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод отмены торгового поручения в песочнице.
     * 
*/ public void cancelSandboxOrder(ru.tinkoff.piapi.contract.v1.CancelOrderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelSandboxOrderMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения статуса заявки в песочнице. Заявки хранятся в таблице 7 дней.
     * 
*/ public void getSandboxOrderState(ru.tinkoff.piapi.contract.v1.GetOrderStateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSandboxOrderStateMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения позиций по виртуальному счёту песочницы.
     * 
*/ public void getSandboxPositions(ru.tinkoff.piapi.contract.v1.PositionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSandboxPositionsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения операций в песочнице по номеру счёта.
     * 
*/ public void getSandboxOperations(ru.tinkoff.piapi.contract.v1.OperationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSandboxOperationsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения операций в песочнице по номеру счета с пагинацией.
     * 
*/ public void getSandboxOperationsByCursor(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSandboxOperationsByCursorMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения портфолио в песочнице.
     * 
*/ public void getSandboxPortfolio(ru.tinkoff.piapi.contract.v1.PortfolioRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSandboxPortfolioMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод пополнения счёта в песочнице.
     * 
*/ public void sandboxPayIn(ru.tinkoff.piapi.contract.v1.SandboxPayInRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSandboxPayInMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения доступного остатка для вывода средств в песочнице.
     * 
*/ public void getSandboxWithdrawLimits(ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSandboxWithdrawLimitsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service SandboxService. *
   *Сервис для работы с песочницей TINKOFF INVEST API
   * 
*/ public static final class SandboxServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private SandboxServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SandboxServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SandboxServiceBlockingStub(channel, callOptions); } /** *
     *Метод регистрации счёта в песочнице.
     * 
*/ public ru.tinkoff.piapi.contract.v1.OpenSandboxAccountResponse openSandboxAccount(ru.tinkoff.piapi.contract.v1.OpenSandboxAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getOpenSandboxAccountMethod(), getCallOptions(), request); } /** *
     *Метод получения счетов в песочнице.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetAccountsResponse getSandboxAccounts(ru.tinkoff.piapi.contract.v1.GetAccountsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSandboxAccountsMethod(), getCallOptions(), request); } /** *
     *Метод закрытия счёта в песочнице.
     * 
*/ public ru.tinkoff.piapi.contract.v1.CloseSandboxAccountResponse closeSandboxAccount(ru.tinkoff.piapi.contract.v1.CloseSandboxAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCloseSandboxAccountMethod(), getCallOptions(), request); } /** *
     *Метод выставления торгового поручения в песочнице.
     * 
*/ public ru.tinkoff.piapi.contract.v1.PostOrderResponse postSandboxOrder(ru.tinkoff.piapi.contract.v1.PostOrderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPostSandboxOrderMethod(), getCallOptions(), request); } /** *
     *Метод изменения выставленной заявки.
     * 
*/ public ru.tinkoff.piapi.contract.v1.PostOrderResponse replaceSandboxOrder(ru.tinkoff.piapi.contract.v1.ReplaceOrderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getReplaceSandboxOrderMethod(), getCallOptions(), request); } /** *
     *Метод получения списка активных заявок по счёту в песочнице.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetOrdersResponse getSandboxOrders(ru.tinkoff.piapi.contract.v1.GetOrdersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSandboxOrdersMethod(), getCallOptions(), request); } /** *
     *Метод отмены торгового поручения в песочнице.
     * 
*/ public ru.tinkoff.piapi.contract.v1.CancelOrderResponse cancelSandboxOrder(ru.tinkoff.piapi.contract.v1.CancelOrderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelSandboxOrderMethod(), getCallOptions(), request); } /** *
     *Метод получения статуса заявки в песочнице. Заявки хранятся в таблице 7 дней.
     * 
*/ public ru.tinkoff.piapi.contract.v1.OrderState getSandboxOrderState(ru.tinkoff.piapi.contract.v1.GetOrderStateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSandboxOrderStateMethod(), getCallOptions(), request); } /** *
     *Метод получения позиций по виртуальному счёту песочницы.
     * 
*/ public ru.tinkoff.piapi.contract.v1.PositionsResponse getSandboxPositions(ru.tinkoff.piapi.contract.v1.PositionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSandboxPositionsMethod(), getCallOptions(), request); } /** *
     *Метод получения операций в песочнице по номеру счёта.
     * 
*/ public ru.tinkoff.piapi.contract.v1.OperationsResponse getSandboxOperations(ru.tinkoff.piapi.contract.v1.OperationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSandboxOperationsMethod(), getCallOptions(), request); } /** *
     *Метод получения операций в песочнице по номеру счета с пагинацией.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse getSandboxOperationsByCursor(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSandboxOperationsByCursorMethod(), getCallOptions(), request); } /** *
     *Метод получения портфолио в песочнице.
     * 
*/ public ru.tinkoff.piapi.contract.v1.PortfolioResponse getSandboxPortfolio(ru.tinkoff.piapi.contract.v1.PortfolioRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSandboxPortfolioMethod(), getCallOptions(), request); } /** *
     *Метод пополнения счёта в песочнице.
     * 
*/ public ru.tinkoff.piapi.contract.v1.SandboxPayInResponse sandboxPayIn(ru.tinkoff.piapi.contract.v1.SandboxPayInRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSandboxPayInMethod(), getCallOptions(), request); } /** *
     *Метод получения доступного остатка для вывода средств в песочнице.
     * 
*/ public ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse getSandboxWithdrawLimits(ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSandboxWithdrawLimitsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service SandboxService. *
   *Сервис для работы с песочницей TINKOFF INVEST API
   * 
*/ public static final class SandboxServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private SandboxServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SandboxServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SandboxServiceFutureStub(channel, callOptions); } /** *
     *Метод регистрации счёта в песочнице.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture openSandboxAccount( ru.tinkoff.piapi.contract.v1.OpenSandboxAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getOpenSandboxAccountMethod(), getCallOptions()), request); } /** *
     *Метод получения счетов в песочнице.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getSandboxAccounts( ru.tinkoff.piapi.contract.v1.GetAccountsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSandboxAccountsMethod(), getCallOptions()), request); } /** *
     *Метод закрытия счёта в песочнице.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture closeSandboxAccount( ru.tinkoff.piapi.contract.v1.CloseSandboxAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCloseSandboxAccountMethod(), getCallOptions()), request); } /** *
     *Метод выставления торгового поручения в песочнице.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture postSandboxOrder( ru.tinkoff.piapi.contract.v1.PostOrderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPostSandboxOrderMethod(), getCallOptions()), request); } /** *
     *Метод изменения выставленной заявки.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture replaceSandboxOrder( ru.tinkoff.piapi.contract.v1.ReplaceOrderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReplaceSandboxOrderMethod(), getCallOptions()), request); } /** *
     *Метод получения списка активных заявок по счёту в песочнице.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getSandboxOrders( ru.tinkoff.piapi.contract.v1.GetOrdersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSandboxOrdersMethod(), getCallOptions()), request); } /** *
     *Метод отмены торгового поручения в песочнице.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture cancelSandboxOrder( ru.tinkoff.piapi.contract.v1.CancelOrderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelSandboxOrderMethod(), getCallOptions()), request); } /** *
     *Метод получения статуса заявки в песочнице. Заявки хранятся в таблице 7 дней.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getSandboxOrderState( ru.tinkoff.piapi.contract.v1.GetOrderStateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSandboxOrderStateMethod(), getCallOptions()), request); } /** *
     *Метод получения позиций по виртуальному счёту песочницы.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getSandboxPositions( ru.tinkoff.piapi.contract.v1.PositionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSandboxPositionsMethod(), getCallOptions()), request); } /** *
     *Метод получения операций в песочнице по номеру счёта.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getSandboxOperations( ru.tinkoff.piapi.contract.v1.OperationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSandboxOperationsMethod(), getCallOptions()), request); } /** *
     *Метод получения операций в песочнице по номеру счета с пагинацией.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getSandboxOperationsByCursor( ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSandboxOperationsByCursorMethod(), getCallOptions()), request); } /** *
     *Метод получения портфолио в песочнице.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getSandboxPortfolio( ru.tinkoff.piapi.contract.v1.PortfolioRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSandboxPortfolioMethod(), getCallOptions()), request); } /** *
     *Метод пополнения счёта в песочнице.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture sandboxPayIn( ru.tinkoff.piapi.contract.v1.SandboxPayInRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSandboxPayInMethod(), getCallOptions()), request); } /** *
     *Метод получения доступного остатка для вывода средств в песочнице.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getSandboxWithdrawLimits( ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSandboxWithdrawLimitsMethod(), getCallOptions()), request); } } private static final int METHODID_OPEN_SANDBOX_ACCOUNT = 0; private static final int METHODID_GET_SANDBOX_ACCOUNTS = 1; private static final int METHODID_CLOSE_SANDBOX_ACCOUNT = 2; private static final int METHODID_POST_SANDBOX_ORDER = 3; private static final int METHODID_REPLACE_SANDBOX_ORDER = 4; private static final int METHODID_GET_SANDBOX_ORDERS = 5; private static final int METHODID_CANCEL_SANDBOX_ORDER = 6; private static final int METHODID_GET_SANDBOX_ORDER_STATE = 7; private static final int METHODID_GET_SANDBOX_POSITIONS = 8; private static final int METHODID_GET_SANDBOX_OPERATIONS = 9; private static final int METHODID_GET_SANDBOX_OPERATIONS_BY_CURSOR = 10; private static final int METHODID_GET_SANDBOX_PORTFOLIO = 11; private static final int METHODID_SANDBOX_PAY_IN = 12; private static final int METHODID_GET_SANDBOX_WITHDRAW_LIMITS = 13; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_OPEN_SANDBOX_ACCOUNT: serviceImpl.openSandboxAccount((ru.tinkoff.piapi.contract.v1.OpenSandboxAccountRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SANDBOX_ACCOUNTS: serviceImpl.getSandboxAccounts((ru.tinkoff.piapi.contract.v1.GetAccountsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CLOSE_SANDBOX_ACCOUNT: serviceImpl.closeSandboxAccount((ru.tinkoff.piapi.contract.v1.CloseSandboxAccountRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_POST_SANDBOX_ORDER: serviceImpl.postSandboxOrder((ru.tinkoff.piapi.contract.v1.PostOrderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REPLACE_SANDBOX_ORDER: serviceImpl.replaceSandboxOrder((ru.tinkoff.piapi.contract.v1.ReplaceOrderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SANDBOX_ORDERS: serviceImpl.getSandboxOrders((ru.tinkoff.piapi.contract.v1.GetOrdersRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CANCEL_SANDBOX_ORDER: serviceImpl.cancelSandboxOrder((ru.tinkoff.piapi.contract.v1.CancelOrderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SANDBOX_ORDER_STATE: serviceImpl.getSandboxOrderState((ru.tinkoff.piapi.contract.v1.GetOrderStateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SANDBOX_POSITIONS: serviceImpl.getSandboxPositions((ru.tinkoff.piapi.contract.v1.PositionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SANDBOX_OPERATIONS: serviceImpl.getSandboxOperations((ru.tinkoff.piapi.contract.v1.OperationsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SANDBOX_OPERATIONS_BY_CURSOR: serviceImpl.getSandboxOperationsByCursor((ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SANDBOX_PORTFOLIO: serviceImpl.getSandboxPortfolio((ru.tinkoff.piapi.contract.v1.PortfolioRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SANDBOX_PAY_IN: serviceImpl.sandboxPayIn((ru.tinkoff.piapi.contract.v1.SandboxPayInRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SANDBOX_WITHDRAW_LIMITS: serviceImpl.getSandboxWithdrawLimits((ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getOpenSandboxAccountMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.OpenSandboxAccountRequest, ru.tinkoff.piapi.contract.v1.OpenSandboxAccountResponse>( service, METHODID_OPEN_SANDBOX_ACCOUNT))) .addMethod( getGetSandboxAccountsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetAccountsRequest, ru.tinkoff.piapi.contract.v1.GetAccountsResponse>( service, METHODID_GET_SANDBOX_ACCOUNTS))) .addMethod( getCloseSandboxAccountMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.CloseSandboxAccountRequest, ru.tinkoff.piapi.contract.v1.CloseSandboxAccountResponse>( service, METHODID_CLOSE_SANDBOX_ACCOUNT))) .addMethod( getPostSandboxOrderMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.PostOrderRequest, ru.tinkoff.piapi.contract.v1.PostOrderResponse>( service, METHODID_POST_SANDBOX_ORDER))) .addMethod( getReplaceSandboxOrderMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.ReplaceOrderRequest, ru.tinkoff.piapi.contract.v1.PostOrderResponse>( service, METHODID_REPLACE_SANDBOX_ORDER))) .addMethod( getGetSandboxOrdersMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetOrdersRequest, ru.tinkoff.piapi.contract.v1.GetOrdersResponse>( service, METHODID_GET_SANDBOX_ORDERS))) .addMethod( getCancelSandboxOrderMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.CancelOrderRequest, ru.tinkoff.piapi.contract.v1.CancelOrderResponse>( service, METHODID_CANCEL_SANDBOX_ORDER))) .addMethod( getGetSandboxOrderStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetOrderStateRequest, ru.tinkoff.piapi.contract.v1.OrderState>( service, METHODID_GET_SANDBOX_ORDER_STATE))) .addMethod( getGetSandboxPositionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.PositionsRequest, ru.tinkoff.piapi.contract.v1.PositionsResponse>( service, METHODID_GET_SANDBOX_POSITIONS))) .addMethod( getGetSandboxOperationsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.OperationsRequest, ru.tinkoff.piapi.contract.v1.OperationsResponse>( service, METHODID_GET_SANDBOX_OPERATIONS))) .addMethod( getGetSandboxOperationsByCursorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest, ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse>( service, METHODID_GET_SANDBOX_OPERATIONS_BY_CURSOR))) .addMethod( getGetSandboxPortfolioMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.PortfolioRequest, ru.tinkoff.piapi.contract.v1.PortfolioResponse>( service, METHODID_GET_SANDBOX_PORTFOLIO))) .addMethod( getSandboxPayInMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.SandboxPayInRequest, ru.tinkoff.piapi.contract.v1.SandboxPayInResponse>( service, METHODID_SANDBOX_PAY_IN))) .addMethod( getGetSandboxWithdrawLimitsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest, ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse>( service, METHODID_GET_SANDBOX_WITHDRAW_LIMITS))) .build(); } private static abstract class SandboxServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SandboxServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return ru.tinkoff.piapi.contract.v1.Sandbox.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("SandboxService"); } } private static final class SandboxServiceFileDescriptorSupplier extends SandboxServiceBaseDescriptorSupplier { SandboxServiceFileDescriptorSupplier() {} } private static final class SandboxServiceMethodDescriptorSupplier extends SandboxServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; SandboxServiceMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (SandboxServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SandboxServiceFileDescriptorSupplier()) .addMethod(getOpenSandboxAccountMethod()) .addMethod(getGetSandboxAccountsMethod()) .addMethod(getCloseSandboxAccountMethod()) .addMethod(getPostSandboxOrderMethod()) .addMethod(getReplaceSandboxOrderMethod()) .addMethod(getGetSandboxOrdersMethod()) .addMethod(getCancelSandboxOrderMethod()) .addMethod(getGetSandboxOrderStateMethod()) .addMethod(getGetSandboxPositionsMethod()) .addMethod(getGetSandboxOperationsMethod()) .addMethod(getGetSandboxOperationsByCursorMethod()) .addMethod(getGetSandboxPortfolioMethod()) .addMethod(getSandboxPayInMethod()) .addMethod(getGetSandboxWithdrawLimitsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy