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

ru.tinkoff.piapi.contract.v1.OperationsServiceGrpc 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;

/**
 * 
 *Сервис предназначен для получения:</br> **1**.  списка операций по счёту;</br> **2**.
 *портфеля по счёту;</br> **3**. позиций ценных бумаг на счёте;</br> **4**.
 *доступного остатка для вывода средств;</br> **5**. получения различных отчётов.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.56.1)", comments = "Source: operations.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OperationsServiceGrpc { private OperationsServiceGrpc() {} public static final String SERVICE_NAME = "tinkoff.public.invest.api.contract.v1.OperationsService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetOperationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetOperations", 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 getGetOperationsMethod() { io.grpc.MethodDescriptor getGetOperationsMethod; if ((getGetOperationsMethod = OperationsServiceGrpc.getGetOperationsMethod) == null) { synchronized (OperationsServiceGrpc.class) { if ((getGetOperationsMethod = OperationsServiceGrpc.getGetOperationsMethod) == null) { OperationsServiceGrpc.getGetOperationsMethod = getGetOperationsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperations")) .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 OperationsServiceMethodDescriptorSupplier("GetOperations")) .build(); } } } return getGetOperationsMethod; } private static volatile io.grpc.MethodDescriptor getGetPortfolioMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetPortfolio", 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 getGetPortfolioMethod() { io.grpc.MethodDescriptor getGetPortfolioMethod; if ((getGetPortfolioMethod = OperationsServiceGrpc.getGetPortfolioMethod) == null) { synchronized (OperationsServiceGrpc.class) { if ((getGetPortfolioMethod = OperationsServiceGrpc.getGetPortfolioMethod) == null) { OperationsServiceGrpc.getGetPortfolioMethod = getGetPortfolioMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPortfolio")) .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 OperationsServiceMethodDescriptorSupplier("GetPortfolio")) .build(); } } } return getGetPortfolioMethod; } private static volatile io.grpc.MethodDescriptor getGetPositionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetPositions", 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 getGetPositionsMethod() { io.grpc.MethodDescriptor getGetPositionsMethod; if ((getGetPositionsMethod = OperationsServiceGrpc.getGetPositionsMethod) == null) { synchronized (OperationsServiceGrpc.class) { if ((getGetPositionsMethod = OperationsServiceGrpc.getGetPositionsMethod) == null) { OperationsServiceGrpc.getGetPositionsMethod = getGetPositionsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPositions")) .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 OperationsServiceMethodDescriptorSupplier("GetPositions")) .build(); } } } return getGetPositionsMethod; } private static volatile io.grpc.MethodDescriptor getGetWithdrawLimitsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetWithdrawLimits", 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 getGetWithdrawLimitsMethod() { io.grpc.MethodDescriptor getGetWithdrawLimitsMethod; if ((getGetWithdrawLimitsMethod = OperationsServiceGrpc.getGetWithdrawLimitsMethod) == null) { synchronized (OperationsServiceGrpc.class) { if ((getGetWithdrawLimitsMethod = OperationsServiceGrpc.getGetWithdrawLimitsMethod) == null) { OperationsServiceGrpc.getGetWithdrawLimitsMethod = getGetWithdrawLimitsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWithdrawLimits")) .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 OperationsServiceMethodDescriptorSupplier("GetWithdrawLimits")) .build(); } } } return getGetWithdrawLimitsMethod; } private static volatile io.grpc.MethodDescriptor getGetBrokerReportMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBrokerReport", requestType = ru.tinkoff.piapi.contract.v1.BrokerReportRequest.class, responseType = ru.tinkoff.piapi.contract.v1.BrokerReportResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetBrokerReportMethod() { io.grpc.MethodDescriptor getGetBrokerReportMethod; if ((getGetBrokerReportMethod = OperationsServiceGrpc.getGetBrokerReportMethod) == null) { synchronized (OperationsServiceGrpc.class) { if ((getGetBrokerReportMethod = OperationsServiceGrpc.getGetBrokerReportMethod) == null) { OperationsServiceGrpc.getGetBrokerReportMethod = getGetBrokerReportMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBrokerReport")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.BrokerReportRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.BrokerReportResponse.getDefaultInstance())) .setSchemaDescriptor(new OperationsServiceMethodDescriptorSupplier("GetBrokerReport")) .build(); } } } return getGetBrokerReportMethod; } private static volatile io.grpc.MethodDescriptor getGetDividendsForeignIssuerMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetDividendsForeignIssuer", requestType = ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetDividendsForeignIssuerMethod() { io.grpc.MethodDescriptor getGetDividendsForeignIssuerMethod; if ((getGetDividendsForeignIssuerMethod = OperationsServiceGrpc.getGetDividendsForeignIssuerMethod) == null) { synchronized (OperationsServiceGrpc.class) { if ((getGetDividendsForeignIssuerMethod = OperationsServiceGrpc.getGetDividendsForeignIssuerMethod) == null) { OperationsServiceGrpc.getGetDividendsForeignIssuerMethod = getGetDividendsForeignIssuerMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDividendsForeignIssuer")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerResponse.getDefaultInstance())) .setSchemaDescriptor(new OperationsServiceMethodDescriptorSupplier("GetDividendsForeignIssuer")) .build(); } } } return getGetDividendsForeignIssuerMethod; } private static volatile io.grpc.MethodDescriptor getGetOperationsByCursorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetOperationsByCursor", 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 getGetOperationsByCursorMethod() { io.grpc.MethodDescriptor getGetOperationsByCursorMethod; if ((getGetOperationsByCursorMethod = OperationsServiceGrpc.getGetOperationsByCursorMethod) == null) { synchronized (OperationsServiceGrpc.class) { if ((getGetOperationsByCursorMethod = OperationsServiceGrpc.getGetOperationsByCursorMethod) == null) { OperationsServiceGrpc.getGetOperationsByCursorMethod = getGetOperationsByCursorMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperationsByCursor")) .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 OperationsServiceMethodDescriptorSupplier("GetOperationsByCursor")) .build(); } } } return getGetOperationsByCursorMethod; } /** * Creates a new async stub that supports all call types for the service */ public static OperationsServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public OperationsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperationsServiceStub(channel, callOptions); } }; return OperationsServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static OperationsServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public OperationsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperationsServiceBlockingStub(channel, callOptions); } }; return OperationsServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static OperationsServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public OperationsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperationsServiceFutureStub(channel, callOptions); } }; return OperationsServiceFutureStub.newStub(factory, channel); } /** *
   *Сервис предназначен для получения:</br> **1**.  списка операций по счёту;</br> **2**.
   *портфеля по счёту;</br> **3**. позиций ценных бумаг на счёте;</br> **4**.
   *доступного остатка для вывода средств;</br> **5**. получения различных отчётов.
   * 
*/ public interface AsyncService { /** *
     *Метод получения списка операций по счёту.При работе с данным методом необходимо учитывать
     * [особенности взаимодействия](/investAPI/operations_problems) с данным методом.
     * 
*/ default void getOperations(ru.tinkoff.piapi.contract.v1.OperationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOperationsMethod(), responseObserver); } /** *
     *Метод получения портфеля по счёту.
     * 
*/ default void getPortfolio(ru.tinkoff.piapi.contract.v1.PortfolioRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPortfolioMethod(), responseObserver); } /** *
     *Метод получения списка позиций по счёту.
     * 
*/ default void getPositions(ru.tinkoff.piapi.contract.v1.PositionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPositionsMethod(), responseObserver); } /** *
     *Метод получения доступного остатка для вывода средств.
     * 
*/ default void getWithdrawLimits(ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWithdrawLimitsMethod(), responseObserver); } /** *
     *Метод получения брокерского отчёта.
     * 
*/ default void getBrokerReport(ru.tinkoff.piapi.contract.v1.BrokerReportRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBrokerReportMethod(), responseObserver); } /** *
     *Метод получения отчёта "Справка о доходах за пределами РФ".
     * 
*/ default void getDividendsForeignIssuer(ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDividendsForeignIssuerMethod(), responseObserver); } /** *
     *Метод получения списка операций по счёту с пагинацией. При работе с данным методом необходимо учитывать
     * [особенности взаимодействия](/investAPI/operations_problems) с данным методом.
     * 
*/ default void getOperationsByCursor(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOperationsByCursorMethod(), responseObserver); } } /** * Base class for the server implementation of the service OperationsService. *
   *Сервис предназначен для получения:</br> **1**.  списка операций по счёту;</br> **2**.
   *портфеля по счёту;</br> **3**. позиций ценных бумаг на счёте;</br> **4**.
   *доступного остатка для вывода средств;</br> **5**. получения различных отчётов.
   * 
*/ public static abstract class OperationsServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return OperationsServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service OperationsService. *
   *Сервис предназначен для получения:</br> **1**.  списка операций по счёту;</br> **2**.
   *портфеля по счёту;</br> **3**. позиций ценных бумаг на счёте;</br> **4**.
   *доступного остатка для вывода средств;</br> **5**. получения различных отчётов.
   * 
*/ public static final class OperationsServiceStub extends io.grpc.stub.AbstractAsyncStub { private OperationsServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected OperationsServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperationsServiceStub(channel, callOptions); } /** *
     *Метод получения списка операций по счёту.При работе с данным методом необходимо учитывать
     * [особенности взаимодействия](/investAPI/operations_problems) с данным методом.
     * 
*/ public void getOperations(ru.tinkoff.piapi.contract.v1.OperationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetOperationsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения портфеля по счёту.
     * 
*/ public void getPortfolio(ru.tinkoff.piapi.contract.v1.PortfolioRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetPortfolioMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка позиций по счёту.
     * 
*/ public void getPositions(ru.tinkoff.piapi.contract.v1.PositionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetPositionsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения доступного остатка для вывода средств.
     * 
*/ public void getWithdrawLimits(ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetWithdrawLimitsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения брокерского отчёта.
     * 
*/ public void getBrokerReport(ru.tinkoff.piapi.contract.v1.BrokerReportRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBrokerReportMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения отчёта "Справка о доходах за пределами РФ".
     * 
*/ public void getDividendsForeignIssuer(ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDividendsForeignIssuerMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка операций по счёту с пагинацией. При работе с данным методом необходимо учитывать
     * [особенности взаимодействия](/investAPI/operations_problems) с данным методом.
     * 
*/ public void getOperationsByCursor(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetOperationsByCursorMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service OperationsService. *
   *Сервис предназначен для получения:</br> **1**.  списка операций по счёту;</br> **2**.
   *портфеля по счёту;</br> **3**. позиций ценных бумаг на счёте;</br> **4**.
   *доступного остатка для вывода средств;</br> **5**. получения различных отчётов.
   * 
*/ public static final class OperationsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private OperationsServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected OperationsServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperationsServiceBlockingStub(channel, callOptions); } /** *
     *Метод получения списка операций по счёту.При работе с данным методом необходимо учитывать
     * [особенности взаимодействия](/investAPI/operations_problems) с данным методом.
     * 
*/ public ru.tinkoff.piapi.contract.v1.OperationsResponse getOperations(ru.tinkoff.piapi.contract.v1.OperationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetOperationsMethod(), getCallOptions(), request); } /** *
     *Метод получения портфеля по счёту.
     * 
*/ public ru.tinkoff.piapi.contract.v1.PortfolioResponse getPortfolio(ru.tinkoff.piapi.contract.v1.PortfolioRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetPortfolioMethod(), getCallOptions(), request); } /** *
     *Метод получения списка позиций по счёту.
     * 
*/ public ru.tinkoff.piapi.contract.v1.PositionsResponse getPositions(ru.tinkoff.piapi.contract.v1.PositionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetPositionsMethod(), getCallOptions(), request); } /** *
     *Метод получения доступного остатка для вывода средств.
     * 
*/ public ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse getWithdrawLimits(ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetWithdrawLimitsMethod(), getCallOptions(), request); } /** *
     *Метод получения брокерского отчёта.
     * 
*/ public ru.tinkoff.piapi.contract.v1.BrokerReportResponse getBrokerReport(ru.tinkoff.piapi.contract.v1.BrokerReportRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBrokerReportMethod(), getCallOptions(), request); } /** *
     *Метод получения отчёта "Справка о доходах за пределами РФ".
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerResponse getDividendsForeignIssuer(ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDividendsForeignIssuerMethod(), getCallOptions(), request); } /** *
     *Метод получения списка операций по счёту с пагинацией. При работе с данным методом необходимо учитывать
     * [особенности взаимодействия](/investAPI/operations_problems) с данным методом.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse getOperationsByCursor(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetOperationsByCursorMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service OperationsService. *
   *Сервис предназначен для получения:</br> **1**.  списка операций по счёту;</br> **2**.
   *портфеля по счёту;</br> **3**. позиций ценных бумаг на счёте;</br> **4**.
   *доступного остатка для вывода средств;</br> **5**. получения различных отчётов.
   * 
*/ public static final class OperationsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private OperationsServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected OperationsServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperationsServiceFutureStub(channel, callOptions); } /** *
     *Метод получения списка операций по счёту.При работе с данным методом необходимо учитывать
     * [особенности взаимодействия](/investAPI/operations_problems) с данным методом.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getOperations( ru.tinkoff.piapi.contract.v1.OperationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetOperationsMethod(), getCallOptions()), request); } /** *
     *Метод получения портфеля по счёту.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getPortfolio( ru.tinkoff.piapi.contract.v1.PortfolioRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPortfolioMethod(), getCallOptions()), request); } /** *
     *Метод получения списка позиций по счёту.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getPositions( ru.tinkoff.piapi.contract.v1.PositionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPositionsMethod(), getCallOptions()), request); } /** *
     *Метод получения доступного остатка для вывода средств.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getWithdrawLimits( ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetWithdrawLimitsMethod(), getCallOptions()), request); } /** *
     *Метод получения брокерского отчёта.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getBrokerReport( ru.tinkoff.piapi.contract.v1.BrokerReportRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBrokerReportMethod(), getCallOptions()), request); } /** *
     *Метод получения отчёта "Справка о доходах за пределами РФ".
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getDividendsForeignIssuer( ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDividendsForeignIssuerMethod(), getCallOptions()), request); } /** *
     *Метод получения списка операций по счёту с пагинацией. При работе с данным методом необходимо учитывать
     * [особенности взаимодействия](/investAPI/operations_problems) с данным методом.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getOperationsByCursor( ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetOperationsByCursorMethod(), getCallOptions()), request); } } private static final int METHODID_GET_OPERATIONS = 0; private static final int METHODID_GET_PORTFOLIO = 1; private static final int METHODID_GET_POSITIONS = 2; private static final int METHODID_GET_WITHDRAW_LIMITS = 3; private static final int METHODID_GET_BROKER_REPORT = 4; private static final int METHODID_GET_DIVIDENDS_FOREIGN_ISSUER = 5; private static final int METHODID_GET_OPERATIONS_BY_CURSOR = 6; 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_GET_OPERATIONS: serviceImpl.getOperations((ru.tinkoff.piapi.contract.v1.OperationsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PORTFOLIO: serviceImpl.getPortfolio((ru.tinkoff.piapi.contract.v1.PortfolioRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_POSITIONS: serviceImpl.getPositions((ru.tinkoff.piapi.contract.v1.PositionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_WITHDRAW_LIMITS: serviceImpl.getWithdrawLimits((ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BROKER_REPORT: serviceImpl.getBrokerReport((ru.tinkoff.piapi.contract.v1.BrokerReportRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_DIVIDENDS_FOREIGN_ISSUER: serviceImpl.getDividendsForeignIssuer((ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_OPERATIONS_BY_CURSOR: serviceImpl.getOperationsByCursor((ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest) 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( getGetOperationsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.OperationsRequest, ru.tinkoff.piapi.contract.v1.OperationsResponse>( service, METHODID_GET_OPERATIONS))) .addMethod( getGetPortfolioMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.PortfolioRequest, ru.tinkoff.piapi.contract.v1.PortfolioResponse>( service, METHODID_GET_PORTFOLIO))) .addMethod( getGetPositionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.PositionsRequest, ru.tinkoff.piapi.contract.v1.PositionsResponse>( service, METHODID_GET_POSITIONS))) .addMethod( getGetWithdrawLimitsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.WithdrawLimitsRequest, ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse>( service, METHODID_GET_WITHDRAW_LIMITS))) .addMethod( getGetBrokerReportMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.BrokerReportRequest, ru.tinkoff.piapi.contract.v1.BrokerReportResponse>( service, METHODID_GET_BROKER_REPORT))) .addMethod( getGetDividendsForeignIssuerMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerRequest, ru.tinkoff.piapi.contract.v1.GetDividendsForeignIssuerResponse>( service, METHODID_GET_DIVIDENDS_FOREIGN_ISSUER))) .addMethod( getGetOperationsByCursorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest, ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse>( service, METHODID_GET_OPERATIONS_BY_CURSOR))) .build(); } private static abstract class OperationsServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { OperationsServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("OperationsService"); } } private static final class OperationsServiceFileDescriptorSupplier extends OperationsServiceBaseDescriptorSupplier { OperationsServiceFileDescriptorSupplier() {} } private static final class OperationsServiceMethodDescriptorSupplier extends OperationsServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; OperationsServiceMethodDescriptorSupplier(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 (OperationsServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new OperationsServiceFileDescriptorSupplier()) .addMethod(getGetOperationsMethod()) .addMethod(getGetPortfolioMethod()) .addMethod(getGetPositionsMethod()) .addMethod(getGetWithdrawLimitsMethod()) .addMethod(getGetBrokerReportMethod()) .addMethod(getGetDividendsForeignIssuerMethod()) .addMethod(getGetOperationsByCursorMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy