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

ru.tinkoff.piapi.contract.v1.InstrumentsServiceGrpc 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: instruments.proto") @io.grpc.stub.annotations.GrpcGenerated public final class InstrumentsServiceGrpc { private InstrumentsServiceGrpc() {} public static final String SERVICE_NAME = "tinkoff.public.invest.api.contract.v1.InstrumentsService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getTradingSchedulesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TradingSchedules", requestType = ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest.class, responseType = ru.tinkoff.piapi.contract.v1.TradingSchedulesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getTradingSchedulesMethod() { io.grpc.MethodDescriptor getTradingSchedulesMethod; if ((getTradingSchedulesMethod = InstrumentsServiceGrpc.getTradingSchedulesMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getTradingSchedulesMethod = InstrumentsServiceGrpc.getTradingSchedulesMethod) == null) { InstrumentsServiceGrpc.getTradingSchedulesMethod = getTradingSchedulesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TradingSchedules")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.TradingSchedulesResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("TradingSchedules")) .build(); } } } return getTradingSchedulesMethod; } private static volatile io.grpc.MethodDescriptor getBondByMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BondBy", requestType = ru.tinkoff.piapi.contract.v1.InstrumentRequest.class, responseType = ru.tinkoff.piapi.contract.v1.BondResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getBondByMethod() { io.grpc.MethodDescriptor getBondByMethod; if ((getBondByMethod = InstrumentsServiceGrpc.getBondByMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getBondByMethod = InstrumentsServiceGrpc.getBondByMethod) == null) { InstrumentsServiceGrpc.getBondByMethod = getBondByMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BondBy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.BondResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("BondBy")) .build(); } } } return getBondByMethod; } private static volatile io.grpc.MethodDescriptor getBondsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Bonds", requestType = ru.tinkoff.piapi.contract.v1.InstrumentsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.BondsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getBondsMethod() { io.grpc.MethodDescriptor getBondsMethod; if ((getBondsMethod = InstrumentsServiceGrpc.getBondsMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getBondsMethod = InstrumentsServiceGrpc.getBondsMethod) == null) { InstrumentsServiceGrpc.getBondsMethod = getBondsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Bonds")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.BondsResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("Bonds")) .build(); } } } return getBondsMethod; } private static volatile io.grpc.MethodDescriptor getGetBondCouponsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBondCoupons", requestType = ru.tinkoff.piapi.contract.v1.GetBondCouponsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetBondCouponsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetBondCouponsMethod() { io.grpc.MethodDescriptor getGetBondCouponsMethod; if ((getGetBondCouponsMethod = InstrumentsServiceGrpc.getGetBondCouponsMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetBondCouponsMethod = InstrumentsServiceGrpc.getGetBondCouponsMethod) == null) { InstrumentsServiceGrpc.getGetBondCouponsMethod = getGetBondCouponsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBondCoupons")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetBondCouponsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetBondCouponsResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetBondCoupons")) .build(); } } } return getGetBondCouponsMethod; } private static volatile io.grpc.MethodDescriptor getCurrencyByMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CurrencyBy", requestType = ru.tinkoff.piapi.contract.v1.InstrumentRequest.class, responseType = ru.tinkoff.piapi.contract.v1.CurrencyResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCurrencyByMethod() { io.grpc.MethodDescriptor getCurrencyByMethod; if ((getCurrencyByMethod = InstrumentsServiceGrpc.getCurrencyByMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getCurrencyByMethod = InstrumentsServiceGrpc.getCurrencyByMethod) == null) { InstrumentsServiceGrpc.getCurrencyByMethod = getCurrencyByMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CurrencyBy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.CurrencyResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("CurrencyBy")) .build(); } } } return getCurrencyByMethod; } private static volatile io.grpc.MethodDescriptor getCurrenciesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Currencies", requestType = ru.tinkoff.piapi.contract.v1.InstrumentsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.CurrenciesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCurrenciesMethod() { io.grpc.MethodDescriptor getCurrenciesMethod; if ((getCurrenciesMethod = InstrumentsServiceGrpc.getCurrenciesMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getCurrenciesMethod = InstrumentsServiceGrpc.getCurrenciesMethod) == null) { InstrumentsServiceGrpc.getCurrenciesMethod = getCurrenciesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Currencies")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.CurrenciesResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("Currencies")) .build(); } } } return getCurrenciesMethod; } private static volatile io.grpc.MethodDescriptor getEtfByMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "EtfBy", requestType = ru.tinkoff.piapi.contract.v1.InstrumentRequest.class, responseType = ru.tinkoff.piapi.contract.v1.EtfResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getEtfByMethod() { io.grpc.MethodDescriptor getEtfByMethod; if ((getEtfByMethod = InstrumentsServiceGrpc.getEtfByMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getEtfByMethod = InstrumentsServiceGrpc.getEtfByMethod) == null) { InstrumentsServiceGrpc.getEtfByMethod = getEtfByMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EtfBy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.EtfResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("EtfBy")) .build(); } } } return getEtfByMethod; } private static volatile io.grpc.MethodDescriptor getEtfsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Etfs", requestType = ru.tinkoff.piapi.contract.v1.InstrumentsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.EtfsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getEtfsMethod() { io.grpc.MethodDescriptor getEtfsMethod; if ((getEtfsMethod = InstrumentsServiceGrpc.getEtfsMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getEtfsMethod = InstrumentsServiceGrpc.getEtfsMethod) == null) { InstrumentsServiceGrpc.getEtfsMethod = getEtfsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Etfs")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.EtfsResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("Etfs")) .build(); } } } return getEtfsMethod; } private static volatile io.grpc.MethodDescriptor getFutureByMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "FutureBy", requestType = ru.tinkoff.piapi.contract.v1.InstrumentRequest.class, responseType = ru.tinkoff.piapi.contract.v1.FutureResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getFutureByMethod() { io.grpc.MethodDescriptor getFutureByMethod; if ((getFutureByMethod = InstrumentsServiceGrpc.getFutureByMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getFutureByMethod = InstrumentsServiceGrpc.getFutureByMethod) == null) { InstrumentsServiceGrpc.getFutureByMethod = getFutureByMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FutureBy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.FutureResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("FutureBy")) .build(); } } } return getFutureByMethod; } private static volatile io.grpc.MethodDescriptor getFuturesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Futures", requestType = ru.tinkoff.piapi.contract.v1.InstrumentsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.FuturesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getFuturesMethod() { io.grpc.MethodDescriptor getFuturesMethod; if ((getFuturesMethod = InstrumentsServiceGrpc.getFuturesMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getFuturesMethod = InstrumentsServiceGrpc.getFuturesMethod) == null) { InstrumentsServiceGrpc.getFuturesMethod = getFuturesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Futures")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.FuturesResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("Futures")) .build(); } } } return getFuturesMethod; } private static volatile io.grpc.MethodDescriptor getOptionByMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "OptionBy", requestType = ru.tinkoff.piapi.contract.v1.InstrumentRequest.class, responseType = ru.tinkoff.piapi.contract.v1.OptionResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getOptionByMethod() { io.grpc.MethodDescriptor getOptionByMethod; if ((getOptionByMethod = InstrumentsServiceGrpc.getOptionByMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getOptionByMethod = InstrumentsServiceGrpc.getOptionByMethod) == null) { InstrumentsServiceGrpc.getOptionByMethod = getOptionByMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OptionBy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.OptionResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("OptionBy")) .build(); } } } return getOptionByMethod; } private static volatile io.grpc.MethodDescriptor getOptionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Options", requestType = ru.tinkoff.piapi.contract.v1.InstrumentsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.OptionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getOptionsMethod() { io.grpc.MethodDescriptor getOptionsMethod; if ((getOptionsMethod = InstrumentsServiceGrpc.getOptionsMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getOptionsMethod = InstrumentsServiceGrpc.getOptionsMethod) == null) { InstrumentsServiceGrpc.getOptionsMethod = getOptionsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Options")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.OptionsResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("Options")) .build(); } } } return getOptionsMethod; } private static volatile io.grpc.MethodDescriptor getOptionsByMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "OptionsBy", requestType = ru.tinkoff.piapi.contract.v1.FilterOptionsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.OptionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getOptionsByMethod() { io.grpc.MethodDescriptor getOptionsByMethod; if ((getOptionsByMethod = InstrumentsServiceGrpc.getOptionsByMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getOptionsByMethod = InstrumentsServiceGrpc.getOptionsByMethod) == null) { InstrumentsServiceGrpc.getOptionsByMethod = getOptionsByMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OptionsBy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.FilterOptionsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.OptionsResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("OptionsBy")) .build(); } } } return getOptionsByMethod; } private static volatile io.grpc.MethodDescriptor getShareByMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ShareBy", requestType = ru.tinkoff.piapi.contract.v1.InstrumentRequest.class, responseType = ru.tinkoff.piapi.contract.v1.ShareResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getShareByMethod() { io.grpc.MethodDescriptor getShareByMethod; if ((getShareByMethod = InstrumentsServiceGrpc.getShareByMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getShareByMethod = InstrumentsServiceGrpc.getShareByMethod) == null) { InstrumentsServiceGrpc.getShareByMethod = getShareByMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ShareBy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.ShareResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("ShareBy")) .build(); } } } return getShareByMethod; } private static volatile io.grpc.MethodDescriptor getSharesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Shares", requestType = ru.tinkoff.piapi.contract.v1.InstrumentsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.SharesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSharesMethod() { io.grpc.MethodDescriptor getSharesMethod; if ((getSharesMethod = InstrumentsServiceGrpc.getSharesMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getSharesMethod = InstrumentsServiceGrpc.getSharesMethod) == null) { InstrumentsServiceGrpc.getSharesMethod = getSharesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Shares")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.SharesResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("Shares")) .build(); } } } return getSharesMethod; } private static volatile io.grpc.MethodDescriptor getGetAccruedInterestsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetAccruedInterests", requestType = ru.tinkoff.piapi.contract.v1.GetAccruedInterestsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetAccruedInterestsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetAccruedInterestsMethod() { io.grpc.MethodDescriptor getGetAccruedInterestsMethod; if ((getGetAccruedInterestsMethod = InstrumentsServiceGrpc.getGetAccruedInterestsMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetAccruedInterestsMethod = InstrumentsServiceGrpc.getGetAccruedInterestsMethod) == null) { InstrumentsServiceGrpc.getGetAccruedInterestsMethod = getGetAccruedInterestsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccruedInterests")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetAccruedInterestsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetAccruedInterestsResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetAccruedInterests")) .build(); } } } return getGetAccruedInterestsMethod; } private static volatile io.grpc.MethodDescriptor getGetFuturesMarginMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetFuturesMargin", requestType = ru.tinkoff.piapi.contract.v1.GetFuturesMarginRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetFuturesMarginMethod() { io.grpc.MethodDescriptor getGetFuturesMarginMethod; if ((getGetFuturesMarginMethod = InstrumentsServiceGrpc.getGetFuturesMarginMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetFuturesMarginMethod = InstrumentsServiceGrpc.getGetFuturesMarginMethod) == null) { InstrumentsServiceGrpc.getGetFuturesMarginMethod = getGetFuturesMarginMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFuturesMargin")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetFuturesMarginRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetFuturesMargin")) .build(); } } } return getGetFuturesMarginMethod; } private static volatile io.grpc.MethodDescriptor getGetInstrumentByMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetInstrumentBy", requestType = ru.tinkoff.piapi.contract.v1.InstrumentRequest.class, responseType = ru.tinkoff.piapi.contract.v1.InstrumentResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetInstrumentByMethod() { io.grpc.MethodDescriptor getGetInstrumentByMethod; if ((getGetInstrumentByMethod = InstrumentsServiceGrpc.getGetInstrumentByMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetInstrumentByMethod = InstrumentsServiceGrpc.getGetInstrumentByMethod) == null) { InstrumentsServiceGrpc.getGetInstrumentByMethod = getGetInstrumentByMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstrumentBy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.InstrumentResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetInstrumentBy")) .build(); } } } return getGetInstrumentByMethod; } private static volatile io.grpc.MethodDescriptor getGetDividendsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetDividends", requestType = ru.tinkoff.piapi.contract.v1.GetDividendsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetDividendsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetDividendsMethod() { io.grpc.MethodDescriptor getGetDividendsMethod; if ((getGetDividendsMethod = InstrumentsServiceGrpc.getGetDividendsMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetDividendsMethod = InstrumentsServiceGrpc.getGetDividendsMethod) == null) { InstrumentsServiceGrpc.getGetDividendsMethod = getGetDividendsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDividends")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetDividendsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetDividendsResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetDividends")) .build(); } } } return getGetDividendsMethod; } private static volatile io.grpc.MethodDescriptor getGetAssetByMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetAssetBy", requestType = ru.tinkoff.piapi.contract.v1.AssetRequest.class, responseType = ru.tinkoff.piapi.contract.v1.AssetResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetAssetByMethod() { io.grpc.MethodDescriptor getGetAssetByMethod; if ((getGetAssetByMethod = InstrumentsServiceGrpc.getGetAssetByMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetAssetByMethod = InstrumentsServiceGrpc.getGetAssetByMethod) == null) { InstrumentsServiceGrpc.getGetAssetByMethod = getGetAssetByMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetBy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.AssetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.AssetResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetAssetBy")) .build(); } } } return getGetAssetByMethod; } private static volatile io.grpc.MethodDescriptor getGetAssetsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetAssets", requestType = ru.tinkoff.piapi.contract.v1.AssetsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.AssetsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetAssetsMethod() { io.grpc.MethodDescriptor getGetAssetsMethod; if ((getGetAssetsMethod = InstrumentsServiceGrpc.getGetAssetsMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetAssetsMethod = InstrumentsServiceGrpc.getGetAssetsMethod) == null) { InstrumentsServiceGrpc.getGetAssetsMethod = getGetAssetsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssets")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.AssetsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.AssetsResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetAssets")) .build(); } } } return getGetAssetsMethod; } private static volatile io.grpc.MethodDescriptor getGetFavoritesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetFavorites", requestType = ru.tinkoff.piapi.contract.v1.GetFavoritesRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetFavoritesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetFavoritesMethod() { io.grpc.MethodDescriptor getGetFavoritesMethod; if ((getGetFavoritesMethod = InstrumentsServiceGrpc.getGetFavoritesMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetFavoritesMethod = InstrumentsServiceGrpc.getGetFavoritesMethod) == null) { InstrumentsServiceGrpc.getGetFavoritesMethod = getGetFavoritesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFavorites")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetFavoritesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetFavoritesResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetFavorites")) .build(); } } } return getGetFavoritesMethod; } private static volatile io.grpc.MethodDescriptor getEditFavoritesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "EditFavorites", requestType = ru.tinkoff.piapi.contract.v1.EditFavoritesRequest.class, responseType = ru.tinkoff.piapi.contract.v1.EditFavoritesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getEditFavoritesMethod() { io.grpc.MethodDescriptor getEditFavoritesMethod; if ((getEditFavoritesMethod = InstrumentsServiceGrpc.getEditFavoritesMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getEditFavoritesMethod = InstrumentsServiceGrpc.getEditFavoritesMethod) == null) { InstrumentsServiceGrpc.getEditFavoritesMethod = getEditFavoritesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EditFavorites")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.EditFavoritesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.EditFavoritesResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("EditFavorites")) .build(); } } } return getEditFavoritesMethod; } private static volatile io.grpc.MethodDescriptor getGetCountriesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetCountries", requestType = ru.tinkoff.piapi.contract.v1.GetCountriesRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetCountriesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetCountriesMethod() { io.grpc.MethodDescriptor getGetCountriesMethod; if ((getGetCountriesMethod = InstrumentsServiceGrpc.getGetCountriesMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetCountriesMethod = InstrumentsServiceGrpc.getGetCountriesMethod) == null) { InstrumentsServiceGrpc.getGetCountriesMethod = getGetCountriesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCountries")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetCountriesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetCountriesResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetCountries")) .build(); } } } return getGetCountriesMethod; } private static volatile io.grpc.MethodDescriptor getFindInstrumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "FindInstrument", requestType = ru.tinkoff.piapi.contract.v1.FindInstrumentRequest.class, responseType = ru.tinkoff.piapi.contract.v1.FindInstrumentResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getFindInstrumentMethod() { io.grpc.MethodDescriptor getFindInstrumentMethod; if ((getFindInstrumentMethod = InstrumentsServiceGrpc.getFindInstrumentMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getFindInstrumentMethod = InstrumentsServiceGrpc.getFindInstrumentMethod) == null) { InstrumentsServiceGrpc.getFindInstrumentMethod = getFindInstrumentMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FindInstrument")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.FindInstrumentRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.FindInstrumentResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("FindInstrument")) .build(); } } } return getFindInstrumentMethod; } private static volatile io.grpc.MethodDescriptor getGetBrandsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBrands", requestType = ru.tinkoff.piapi.contract.v1.GetBrandsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetBrandsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetBrandsMethod() { io.grpc.MethodDescriptor getGetBrandsMethod; if ((getGetBrandsMethod = InstrumentsServiceGrpc.getGetBrandsMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetBrandsMethod = InstrumentsServiceGrpc.getGetBrandsMethod) == null) { InstrumentsServiceGrpc.getGetBrandsMethod = getGetBrandsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBrands")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetBrandsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetBrandsResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetBrands")) .build(); } } } return getGetBrandsMethod; } private static volatile io.grpc.MethodDescriptor getGetBrandByMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBrandBy", requestType = ru.tinkoff.piapi.contract.v1.GetBrandRequest.class, responseType = ru.tinkoff.piapi.contract.v1.Brand.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetBrandByMethod() { io.grpc.MethodDescriptor getGetBrandByMethod; if ((getGetBrandByMethod = InstrumentsServiceGrpc.getGetBrandByMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetBrandByMethod = InstrumentsServiceGrpc.getGetBrandByMethod) == null) { InstrumentsServiceGrpc.getGetBrandByMethod = getGetBrandByMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBrandBy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetBrandRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.Brand.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetBrandBy")) .build(); } } } return getGetBrandByMethod; } private static volatile io.grpc.MethodDescriptor getGetAssetFundamentalsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetAssetFundamentals", requestType = ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest.class, responseType = ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetAssetFundamentalsMethod() { io.grpc.MethodDescriptor getGetAssetFundamentalsMethod; if ((getGetAssetFundamentalsMethod = InstrumentsServiceGrpc.getGetAssetFundamentalsMethod) == null) { synchronized (InstrumentsServiceGrpc.class) { if ((getGetAssetFundamentalsMethod = InstrumentsServiceGrpc.getGetAssetFundamentalsMethod) == null) { InstrumentsServiceGrpc.getGetAssetFundamentalsMethod = getGetAssetFundamentalsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssetFundamentals")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsResponse.getDefaultInstance())) .setSchemaDescriptor(new InstrumentsServiceMethodDescriptorSupplier("GetAssetFundamentals")) .build(); } } } return getGetAssetFundamentalsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static InstrumentsServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public InstrumentsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new InstrumentsServiceStub(channel, callOptions); } }; return InstrumentsServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static InstrumentsServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public InstrumentsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new InstrumentsServiceBlockingStub(channel, callOptions); } }; return InstrumentsServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static InstrumentsServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public InstrumentsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new InstrumentsServiceFutureStub(channel, callOptions); } }; return InstrumentsServiceFutureStub.newStub(factory, channel); } /** *
   *Сервис предназначен для получения:</br>**1**. информации об инструментах;</br>**2**.
   *расписания торговых сессий;</br>**3**. календаря выплат купонов по облигациям;</br>**4**.
   *размера гарантийного обеспечения по фьючерсам;</br>**5**. дивидендов по ценной бумаге.
   * 
*/ public interface AsyncService { /** *
     *Метод получения расписания торгов торговых площадок.
     * 
*/ default void tradingSchedules(ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTradingSchedulesMethod(), responseObserver); } /** *
     *Метод получения облигации по её идентификатору.
     * 
*/ default void bondBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBondByMethod(), responseObserver); } /** *
     *Метод получения списка облигаций.
     * 
*/ default void bonds(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBondsMethod(), responseObserver); } /** *
     *Метод получения графика выплат купонов по облигации.
     * 
*/ default void getBondCoupons(ru.tinkoff.piapi.contract.v1.GetBondCouponsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBondCouponsMethod(), responseObserver); } /** *
     *Метод получения валюты по её идентификатору.
     * 
*/ default void currencyBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCurrencyByMethod(), responseObserver); } /** *
     *Метод получения списка валют.
     * 
*/ default void currencies(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCurrenciesMethod(), responseObserver); } /** *
     *Метод получения инвестиционного фонда по его идентификатору.
     * 
*/ default void etfBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEtfByMethod(), responseObserver); } /** *
     *Метод получения списка инвестиционных фондов.
     * 
*/ default void etfs(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEtfsMethod(), responseObserver); } /** *
     *Метод получения фьючерса по его идентификатору.
     * 
*/ default void futureBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFutureByMethod(), responseObserver); } /** *
     *Метод получения списка фьючерсов.
     * 
*/ default void futures(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFuturesMethod(), responseObserver); } /** *
     *Метод получения опциона по его идентификатору.
     * 
*/ default void optionBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOptionByMethod(), responseObserver); } /** *
     *Deprecated Метод получения списка опционов.
     * 
*/ @java.lang.Deprecated default void options(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOptionsMethod(), responseObserver); } /** *
     *Метод получения списка опционов.
     * 
*/ default void optionsBy(ru.tinkoff.piapi.contract.v1.FilterOptionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOptionsByMethod(), responseObserver); } /** *
     *Метод получения акции по её идентификатору.
     * 
*/ default void shareBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getShareByMethod(), responseObserver); } /** *
     *Метод получения списка акций.
     * 
*/ default void shares(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSharesMethod(), responseObserver); } /** *
     *Метод получения накопленного купонного дохода по облигации.
     * 
*/ default void getAccruedInterests(ru.tinkoff.piapi.contract.v1.GetAccruedInterestsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccruedInterestsMethod(), responseObserver); } /** *
     *Метод получения размера гарантийного обеспечения по фьючерсам.
     * 
*/ default void getFuturesMargin(ru.tinkoff.piapi.contract.v1.GetFuturesMarginRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFuturesMarginMethod(), responseObserver); } /** *
     *Метод получения основной информации об инструменте.
     * 
*/ default void getInstrumentBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstrumentByMethod(), responseObserver); } /** *
     *Метод для получения событий выплаты дивидендов по инструменту.
     * 
*/ default void getDividends(ru.tinkoff.piapi.contract.v1.GetDividendsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDividendsMethod(), responseObserver); } /** *
     *Метод получения актива по его идентификатору.
     * 
*/ default void getAssetBy(ru.tinkoff.piapi.contract.v1.AssetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAssetByMethod(), responseObserver); } /** *
     *Метод получения списка активов. Метод работает для всех инструментов, за исключением срочных - опционов и фьючерсов.
     * 
*/ default void getAssets(ru.tinkoff.piapi.contract.v1.AssetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAssetsMethod(), responseObserver); } /** *
     *Метод получения списка избранных инструментов.
     * 
*/ default void getFavorites(ru.tinkoff.piapi.contract.v1.GetFavoritesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFavoritesMethod(), responseObserver); } /** *
     *Метод редактирования списка избранных инструментов.
     * 
*/ default void editFavorites(ru.tinkoff.piapi.contract.v1.EditFavoritesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEditFavoritesMethod(), responseObserver); } /** *
     *Метод получения списка стран.
     * 
*/ default void getCountries(ru.tinkoff.piapi.contract.v1.GetCountriesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCountriesMethod(), responseObserver); } /** *
     *Метод поиска инструмента.
     * 
*/ default void findInstrument(ru.tinkoff.piapi.contract.v1.FindInstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFindInstrumentMethod(), responseObserver); } /** *
     *Метод получения списка брендов.
     * 
*/ default void getBrands(ru.tinkoff.piapi.contract.v1.GetBrandsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBrandsMethod(), responseObserver); } /** *
     *Метод получения бренда по его идентификатору.
     * 
*/ default void getBrandBy(ru.tinkoff.piapi.contract.v1.GetBrandRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBrandByMethod(), responseObserver); } /** *
     *Метод получения фундаментальных показателей по активу
     * 
*/ default void getAssetFundamentals(ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAssetFundamentalsMethod(), responseObserver); } } /** * Base class for the server implementation of the service InstrumentsService. *
   *Сервис предназначен для получения:</br>**1**. информации об инструментах;</br>**2**.
   *расписания торговых сессий;</br>**3**. календаря выплат купонов по облигациям;</br>**4**.
   *размера гарантийного обеспечения по фьючерсам;</br>**5**. дивидендов по ценной бумаге.
   * 
*/ public static abstract class InstrumentsServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return InstrumentsServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service InstrumentsService. *
   *Сервис предназначен для получения:</br>**1**. информации об инструментах;</br>**2**.
   *расписания торговых сессий;</br>**3**. календаря выплат купонов по облигациям;</br>**4**.
   *размера гарантийного обеспечения по фьючерсам;</br>**5**. дивидендов по ценной бумаге.
   * 
*/ public static final class InstrumentsServiceStub extends io.grpc.stub.AbstractAsyncStub { private InstrumentsServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected InstrumentsServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new InstrumentsServiceStub(channel, callOptions); } /** *
     *Метод получения расписания торгов торговых площадок.
     * 
*/ public void tradingSchedules(ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTradingSchedulesMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения облигации по её идентификатору.
     * 
*/ public void bondBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBondByMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка облигаций.
     * 
*/ public void bonds(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBondsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения графика выплат купонов по облигации.
     * 
*/ public void getBondCoupons(ru.tinkoff.piapi.contract.v1.GetBondCouponsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBondCouponsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения валюты по её идентификатору.
     * 
*/ public void currencyBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCurrencyByMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка валют.
     * 
*/ public void currencies(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCurrenciesMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения инвестиционного фонда по его идентификатору.
     * 
*/ public void etfBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getEtfByMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка инвестиционных фондов.
     * 
*/ public void etfs(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getEtfsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения фьючерса по его идентификатору.
     * 
*/ public void futureBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFutureByMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка фьючерсов.
     * 
*/ public void futures(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFuturesMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения опциона по его идентификатору.
     * 
*/ public void optionBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getOptionByMethod(), getCallOptions()), request, responseObserver); } /** *
     *Deprecated Метод получения списка опционов.
     * 
*/ @java.lang.Deprecated public void options(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getOptionsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка опционов.
     * 
*/ public void optionsBy(ru.tinkoff.piapi.contract.v1.FilterOptionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getOptionsByMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения акции по её идентификатору.
     * 
*/ public void shareBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getShareByMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка акций.
     * 
*/ public void shares(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSharesMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения накопленного купонного дохода по облигации.
     * 
*/ public void getAccruedInterests(ru.tinkoff.piapi.contract.v1.GetAccruedInterestsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAccruedInterestsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения размера гарантийного обеспечения по фьючерсам.
     * 
*/ public void getFuturesMargin(ru.tinkoff.piapi.contract.v1.GetFuturesMarginRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetFuturesMarginMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения основной информации об инструменте.
     * 
*/ public void getInstrumentBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetInstrumentByMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод для получения событий выплаты дивидендов по инструменту.
     * 
*/ public void getDividends(ru.tinkoff.piapi.contract.v1.GetDividendsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDividendsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения актива по его идентификатору.
     * 
*/ public void getAssetBy(ru.tinkoff.piapi.contract.v1.AssetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAssetByMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка активов. Метод работает для всех инструментов, за исключением срочных - опционов и фьючерсов.
     * 
*/ public void getAssets(ru.tinkoff.piapi.contract.v1.AssetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAssetsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка избранных инструментов.
     * 
*/ public void getFavorites(ru.tinkoff.piapi.contract.v1.GetFavoritesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetFavoritesMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод редактирования списка избранных инструментов.
     * 
*/ public void editFavorites(ru.tinkoff.piapi.contract.v1.EditFavoritesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getEditFavoritesMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка стран.
     * 
*/ public void getCountries(ru.tinkoff.piapi.contract.v1.GetCountriesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetCountriesMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод поиска инструмента.
     * 
*/ public void findInstrument(ru.tinkoff.piapi.contract.v1.FindInstrumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFindInstrumentMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения списка брендов.
     * 
*/ public void getBrands(ru.tinkoff.piapi.contract.v1.GetBrandsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBrandsMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения бренда по его идентификатору.
     * 
*/ public void getBrandBy(ru.tinkoff.piapi.contract.v1.GetBrandRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBrandByMethod(), getCallOptions()), request, responseObserver); } /** *
     *Метод получения фундаментальных показателей по активу
     * 
*/ public void getAssetFundamentals(ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAssetFundamentalsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service InstrumentsService. *
   *Сервис предназначен для получения:</br>**1**. информации об инструментах;</br>**2**.
   *расписания торговых сессий;</br>**3**. календаря выплат купонов по облигациям;</br>**4**.
   *размера гарантийного обеспечения по фьючерсам;</br>**5**. дивидендов по ценной бумаге.
   * 
*/ public static final class InstrumentsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private InstrumentsServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected InstrumentsServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new InstrumentsServiceBlockingStub(channel, callOptions); } /** *
     *Метод получения расписания торгов торговых площадок.
     * 
*/ public ru.tinkoff.piapi.contract.v1.TradingSchedulesResponse tradingSchedules(ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTradingSchedulesMethod(), getCallOptions(), request); } /** *
     *Метод получения облигации по её идентификатору.
     * 
*/ public ru.tinkoff.piapi.contract.v1.BondResponse bondBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBondByMethod(), getCallOptions(), request); } /** *
     *Метод получения списка облигаций.
     * 
*/ public ru.tinkoff.piapi.contract.v1.BondsResponse bonds(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBondsMethod(), getCallOptions(), request); } /** *
     *Метод получения графика выплат купонов по облигации.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetBondCouponsResponse getBondCoupons(ru.tinkoff.piapi.contract.v1.GetBondCouponsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBondCouponsMethod(), getCallOptions(), request); } /** *
     *Метод получения валюты по её идентификатору.
     * 
*/ public ru.tinkoff.piapi.contract.v1.CurrencyResponse currencyBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCurrencyByMethod(), getCallOptions(), request); } /** *
     *Метод получения списка валют.
     * 
*/ public ru.tinkoff.piapi.contract.v1.CurrenciesResponse currencies(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCurrenciesMethod(), getCallOptions(), request); } /** *
     *Метод получения инвестиционного фонда по его идентификатору.
     * 
*/ public ru.tinkoff.piapi.contract.v1.EtfResponse etfBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEtfByMethod(), getCallOptions(), request); } /** *
     *Метод получения списка инвестиционных фондов.
     * 
*/ public ru.tinkoff.piapi.contract.v1.EtfsResponse etfs(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEtfsMethod(), getCallOptions(), request); } /** *
     *Метод получения фьючерса по его идентификатору.
     * 
*/ public ru.tinkoff.piapi.contract.v1.FutureResponse futureBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFutureByMethod(), getCallOptions(), request); } /** *
     *Метод получения списка фьючерсов.
     * 
*/ public ru.tinkoff.piapi.contract.v1.FuturesResponse futures(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFuturesMethod(), getCallOptions(), request); } /** *
     *Метод получения опциона по его идентификатору.
     * 
*/ public ru.tinkoff.piapi.contract.v1.OptionResponse optionBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getOptionByMethod(), getCallOptions(), request); } /** *
     *Deprecated Метод получения списка опционов.
     * 
*/ @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.OptionsResponse options(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getOptionsMethod(), getCallOptions(), request); } /** *
     *Метод получения списка опционов.
     * 
*/ public ru.tinkoff.piapi.contract.v1.OptionsResponse optionsBy(ru.tinkoff.piapi.contract.v1.FilterOptionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getOptionsByMethod(), getCallOptions(), request); } /** *
     *Метод получения акции по её идентификатору.
     * 
*/ public ru.tinkoff.piapi.contract.v1.ShareResponse shareBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getShareByMethod(), getCallOptions(), request); } /** *
     *Метод получения списка акций.
     * 
*/ public ru.tinkoff.piapi.contract.v1.SharesResponse shares(ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSharesMethod(), getCallOptions(), request); } /** *
     *Метод получения накопленного купонного дохода по облигации.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetAccruedInterestsResponse getAccruedInterests(ru.tinkoff.piapi.contract.v1.GetAccruedInterestsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAccruedInterestsMethod(), getCallOptions(), request); } /** *
     *Метод получения размера гарантийного обеспечения по фьючерсам.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse getFuturesMargin(ru.tinkoff.piapi.contract.v1.GetFuturesMarginRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetFuturesMarginMethod(), getCallOptions(), request); } /** *
     *Метод получения основной информации об инструменте.
     * 
*/ public ru.tinkoff.piapi.contract.v1.InstrumentResponse getInstrumentBy(ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstrumentByMethod(), getCallOptions(), request); } /** *
     *Метод для получения событий выплаты дивидендов по инструменту.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetDividendsResponse getDividends(ru.tinkoff.piapi.contract.v1.GetDividendsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDividendsMethod(), getCallOptions(), request); } /** *
     *Метод получения актива по его идентификатору.
     * 
*/ public ru.tinkoff.piapi.contract.v1.AssetResponse getAssetBy(ru.tinkoff.piapi.contract.v1.AssetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAssetByMethod(), getCallOptions(), request); } /** *
     *Метод получения списка активов. Метод работает для всех инструментов, за исключением срочных - опционов и фьючерсов.
     * 
*/ public ru.tinkoff.piapi.contract.v1.AssetsResponse getAssets(ru.tinkoff.piapi.contract.v1.AssetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAssetsMethod(), getCallOptions(), request); } /** *
     *Метод получения списка избранных инструментов.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetFavoritesResponse getFavorites(ru.tinkoff.piapi.contract.v1.GetFavoritesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetFavoritesMethod(), getCallOptions(), request); } /** *
     *Метод редактирования списка избранных инструментов.
     * 
*/ public ru.tinkoff.piapi.contract.v1.EditFavoritesResponse editFavorites(ru.tinkoff.piapi.contract.v1.EditFavoritesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEditFavoritesMethod(), getCallOptions(), request); } /** *
     *Метод получения списка стран.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetCountriesResponse getCountries(ru.tinkoff.piapi.contract.v1.GetCountriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetCountriesMethod(), getCallOptions(), request); } /** *
     *Метод поиска инструмента.
     * 
*/ public ru.tinkoff.piapi.contract.v1.FindInstrumentResponse findInstrument(ru.tinkoff.piapi.contract.v1.FindInstrumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFindInstrumentMethod(), getCallOptions(), request); } /** *
     *Метод получения списка брендов.
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetBrandsResponse getBrands(ru.tinkoff.piapi.contract.v1.GetBrandsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBrandsMethod(), getCallOptions(), request); } /** *
     *Метод получения бренда по его идентификатору.
     * 
*/ public ru.tinkoff.piapi.contract.v1.Brand getBrandBy(ru.tinkoff.piapi.contract.v1.GetBrandRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBrandByMethod(), getCallOptions(), request); } /** *
     *Метод получения фундаментальных показателей по активу
     * 
*/ public ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsResponse getAssetFundamentals(ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAssetFundamentalsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service InstrumentsService. *
   *Сервис предназначен для получения:</br>**1**. информации об инструментах;</br>**2**.
   *расписания торговых сессий;</br>**3**. календаря выплат купонов по облигациям;</br>**4**.
   *размера гарантийного обеспечения по фьючерсам;</br>**5**. дивидендов по ценной бумаге.
   * 
*/ public static final class InstrumentsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private InstrumentsServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected InstrumentsServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new InstrumentsServiceFutureStub(channel, callOptions); } /** *
     *Метод получения расписания торгов торговых площадок.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture tradingSchedules( ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTradingSchedulesMethod(), getCallOptions()), request); } /** *
     *Метод получения облигации по её идентификатору.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture bondBy( ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBondByMethod(), getCallOptions()), request); } /** *
     *Метод получения списка облигаций.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture bonds( ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBondsMethod(), getCallOptions()), request); } /** *
     *Метод получения графика выплат купонов по облигации.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getBondCoupons( ru.tinkoff.piapi.contract.v1.GetBondCouponsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBondCouponsMethod(), getCallOptions()), request); } /** *
     *Метод получения валюты по её идентификатору.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture currencyBy( ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCurrencyByMethod(), getCallOptions()), request); } /** *
     *Метод получения списка валют.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture currencies( ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCurrenciesMethod(), getCallOptions()), request); } /** *
     *Метод получения инвестиционного фонда по его идентификатору.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture etfBy( ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEtfByMethod(), getCallOptions()), request); } /** *
     *Метод получения списка инвестиционных фондов.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture etfs( ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEtfsMethod(), getCallOptions()), request); } /** *
     *Метод получения фьючерса по его идентификатору.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture futureBy( ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFutureByMethod(), getCallOptions()), request); } /** *
     *Метод получения списка фьючерсов.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture futures( ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFuturesMethod(), getCallOptions()), request); } /** *
     *Метод получения опциона по его идентификатору.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture optionBy( ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getOptionByMethod(), getCallOptions()), request); } /** *
     *Deprecated Метод получения списка опционов.
     * 
*/ @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture options( ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getOptionsMethod(), getCallOptions()), request); } /** *
     *Метод получения списка опционов.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture optionsBy( ru.tinkoff.piapi.contract.v1.FilterOptionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getOptionsByMethod(), getCallOptions()), request); } /** *
     *Метод получения акции по её идентификатору.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture shareBy( ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getShareByMethod(), getCallOptions()), request); } /** *
     *Метод получения списка акций.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture shares( ru.tinkoff.piapi.contract.v1.InstrumentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSharesMethod(), getCallOptions()), request); } /** *
     *Метод получения накопленного купонного дохода по облигации.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getAccruedInterests( ru.tinkoff.piapi.contract.v1.GetAccruedInterestsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAccruedInterestsMethod(), getCallOptions()), request); } /** *
     *Метод получения размера гарантийного обеспечения по фьючерсам.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getFuturesMargin( ru.tinkoff.piapi.contract.v1.GetFuturesMarginRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetFuturesMarginMethod(), getCallOptions()), request); } /** *
     *Метод получения основной информации об инструменте.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getInstrumentBy( ru.tinkoff.piapi.contract.v1.InstrumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstrumentByMethod(), getCallOptions()), request); } /** *
     *Метод для получения событий выплаты дивидендов по инструменту.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getDividends( ru.tinkoff.piapi.contract.v1.GetDividendsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDividendsMethod(), getCallOptions()), request); } /** *
     *Метод получения актива по его идентификатору.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getAssetBy( ru.tinkoff.piapi.contract.v1.AssetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAssetByMethod(), getCallOptions()), request); } /** *
     *Метод получения списка активов. Метод работает для всех инструментов, за исключением срочных - опционов и фьючерсов.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getAssets( ru.tinkoff.piapi.contract.v1.AssetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAssetsMethod(), getCallOptions()), request); } /** *
     *Метод получения списка избранных инструментов.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getFavorites( ru.tinkoff.piapi.contract.v1.GetFavoritesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetFavoritesMethod(), getCallOptions()), request); } /** *
     *Метод редактирования списка избранных инструментов.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture editFavorites( ru.tinkoff.piapi.contract.v1.EditFavoritesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEditFavoritesMethod(), getCallOptions()), request); } /** *
     *Метод получения списка стран.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getCountries( ru.tinkoff.piapi.contract.v1.GetCountriesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetCountriesMethod(), getCallOptions()), request); } /** *
     *Метод поиска инструмента.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture findInstrument( ru.tinkoff.piapi.contract.v1.FindInstrumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFindInstrumentMethod(), getCallOptions()), request); } /** *
     *Метод получения списка брендов.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getBrands( ru.tinkoff.piapi.contract.v1.GetBrandsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBrandsMethod(), getCallOptions()), request); } /** *
     *Метод получения бренда по его идентификатору.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getBrandBy( ru.tinkoff.piapi.contract.v1.GetBrandRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBrandByMethod(), getCallOptions()), request); } /** *
     *Метод получения фундаментальных показателей по активу
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getAssetFundamentals( ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAssetFundamentalsMethod(), getCallOptions()), request); } } private static final int METHODID_TRADING_SCHEDULES = 0; private static final int METHODID_BOND_BY = 1; private static final int METHODID_BONDS = 2; private static final int METHODID_GET_BOND_COUPONS = 3; private static final int METHODID_CURRENCY_BY = 4; private static final int METHODID_CURRENCIES = 5; private static final int METHODID_ETF_BY = 6; private static final int METHODID_ETFS = 7; private static final int METHODID_FUTURE_BY = 8; private static final int METHODID_FUTURES = 9; private static final int METHODID_OPTION_BY = 10; private static final int METHODID_OPTIONS = 11; private static final int METHODID_OPTIONS_BY = 12; private static final int METHODID_SHARE_BY = 13; private static final int METHODID_SHARES = 14; private static final int METHODID_GET_ACCRUED_INTERESTS = 15; private static final int METHODID_GET_FUTURES_MARGIN = 16; private static final int METHODID_GET_INSTRUMENT_BY = 17; private static final int METHODID_GET_DIVIDENDS = 18; private static final int METHODID_GET_ASSET_BY = 19; private static final int METHODID_GET_ASSETS = 20; private static final int METHODID_GET_FAVORITES = 21; private static final int METHODID_EDIT_FAVORITES = 22; private static final int METHODID_GET_COUNTRIES = 23; private static final int METHODID_FIND_INSTRUMENT = 24; private static final int METHODID_GET_BRANDS = 25; private static final int METHODID_GET_BRAND_BY = 26; private static final int METHODID_GET_ASSET_FUNDAMENTALS = 27; 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_TRADING_SCHEDULES: serviceImpl.tradingSchedules((ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BOND_BY: serviceImpl.bondBy((ru.tinkoff.piapi.contract.v1.InstrumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BONDS: serviceImpl.bonds((ru.tinkoff.piapi.contract.v1.InstrumentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BOND_COUPONS: serviceImpl.getBondCoupons((ru.tinkoff.piapi.contract.v1.GetBondCouponsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CURRENCY_BY: serviceImpl.currencyBy((ru.tinkoff.piapi.contract.v1.InstrumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CURRENCIES: serviceImpl.currencies((ru.tinkoff.piapi.contract.v1.InstrumentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ETF_BY: serviceImpl.etfBy((ru.tinkoff.piapi.contract.v1.InstrumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ETFS: serviceImpl.etfs((ru.tinkoff.piapi.contract.v1.InstrumentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FUTURE_BY: serviceImpl.futureBy((ru.tinkoff.piapi.contract.v1.InstrumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FUTURES: serviceImpl.futures((ru.tinkoff.piapi.contract.v1.InstrumentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_OPTION_BY: serviceImpl.optionBy((ru.tinkoff.piapi.contract.v1.InstrumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_OPTIONS: serviceImpl.options((ru.tinkoff.piapi.contract.v1.InstrumentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_OPTIONS_BY: serviceImpl.optionsBy((ru.tinkoff.piapi.contract.v1.FilterOptionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SHARE_BY: serviceImpl.shareBy((ru.tinkoff.piapi.contract.v1.InstrumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SHARES: serviceImpl.shares((ru.tinkoff.piapi.contract.v1.InstrumentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ACCRUED_INTERESTS: serviceImpl.getAccruedInterests((ru.tinkoff.piapi.contract.v1.GetAccruedInterestsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_FUTURES_MARGIN: serviceImpl.getFuturesMargin((ru.tinkoff.piapi.contract.v1.GetFuturesMarginRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_INSTRUMENT_BY: serviceImpl.getInstrumentBy((ru.tinkoff.piapi.contract.v1.InstrumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_DIVIDENDS: serviceImpl.getDividends((ru.tinkoff.piapi.contract.v1.GetDividendsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ASSET_BY: serviceImpl.getAssetBy((ru.tinkoff.piapi.contract.v1.AssetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ASSETS: serviceImpl.getAssets((ru.tinkoff.piapi.contract.v1.AssetsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_FAVORITES: serviceImpl.getFavorites((ru.tinkoff.piapi.contract.v1.GetFavoritesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EDIT_FAVORITES: serviceImpl.editFavorites((ru.tinkoff.piapi.contract.v1.EditFavoritesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_COUNTRIES: serviceImpl.getCountries((ru.tinkoff.piapi.contract.v1.GetCountriesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FIND_INSTRUMENT: serviceImpl.findInstrument((ru.tinkoff.piapi.contract.v1.FindInstrumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BRANDS: serviceImpl.getBrands((ru.tinkoff.piapi.contract.v1.GetBrandsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BRAND_BY: serviceImpl.getBrandBy((ru.tinkoff.piapi.contract.v1.GetBrandRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ASSET_FUNDAMENTALS: serviceImpl.getAssetFundamentals((ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest) 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( getTradingSchedulesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest, ru.tinkoff.piapi.contract.v1.TradingSchedulesResponse>( service, METHODID_TRADING_SCHEDULES))) .addMethod( getBondByMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentRequest, ru.tinkoff.piapi.contract.v1.BondResponse>( service, METHODID_BOND_BY))) .addMethod( getBondsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentsRequest, ru.tinkoff.piapi.contract.v1.BondsResponse>( service, METHODID_BONDS))) .addMethod( getGetBondCouponsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetBondCouponsRequest, ru.tinkoff.piapi.contract.v1.GetBondCouponsResponse>( service, METHODID_GET_BOND_COUPONS))) .addMethod( getCurrencyByMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentRequest, ru.tinkoff.piapi.contract.v1.CurrencyResponse>( service, METHODID_CURRENCY_BY))) .addMethod( getCurrenciesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentsRequest, ru.tinkoff.piapi.contract.v1.CurrenciesResponse>( service, METHODID_CURRENCIES))) .addMethod( getEtfByMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentRequest, ru.tinkoff.piapi.contract.v1.EtfResponse>( service, METHODID_ETF_BY))) .addMethod( getEtfsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentsRequest, ru.tinkoff.piapi.contract.v1.EtfsResponse>( service, METHODID_ETFS))) .addMethod( getFutureByMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentRequest, ru.tinkoff.piapi.contract.v1.FutureResponse>( service, METHODID_FUTURE_BY))) .addMethod( getFuturesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentsRequest, ru.tinkoff.piapi.contract.v1.FuturesResponse>( service, METHODID_FUTURES))) .addMethod( getOptionByMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentRequest, ru.tinkoff.piapi.contract.v1.OptionResponse>( service, METHODID_OPTION_BY))) .addMethod( getOptionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentsRequest, ru.tinkoff.piapi.contract.v1.OptionsResponse>( service, METHODID_OPTIONS))) .addMethod( getOptionsByMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.FilterOptionsRequest, ru.tinkoff.piapi.contract.v1.OptionsResponse>( service, METHODID_OPTIONS_BY))) .addMethod( getShareByMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentRequest, ru.tinkoff.piapi.contract.v1.ShareResponse>( service, METHODID_SHARE_BY))) .addMethod( getSharesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentsRequest, ru.tinkoff.piapi.contract.v1.SharesResponse>( service, METHODID_SHARES))) .addMethod( getGetAccruedInterestsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetAccruedInterestsRequest, ru.tinkoff.piapi.contract.v1.GetAccruedInterestsResponse>( service, METHODID_GET_ACCRUED_INTERESTS))) .addMethod( getGetFuturesMarginMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetFuturesMarginRequest, ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse>( service, METHODID_GET_FUTURES_MARGIN))) .addMethod( getGetInstrumentByMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.InstrumentRequest, ru.tinkoff.piapi.contract.v1.InstrumentResponse>( service, METHODID_GET_INSTRUMENT_BY))) .addMethod( getGetDividendsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetDividendsRequest, ru.tinkoff.piapi.contract.v1.GetDividendsResponse>( service, METHODID_GET_DIVIDENDS))) .addMethod( getGetAssetByMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.AssetRequest, ru.tinkoff.piapi.contract.v1.AssetResponse>( service, METHODID_GET_ASSET_BY))) .addMethod( getGetAssetsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.AssetsRequest, ru.tinkoff.piapi.contract.v1.AssetsResponse>( service, METHODID_GET_ASSETS))) .addMethod( getGetFavoritesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetFavoritesRequest, ru.tinkoff.piapi.contract.v1.GetFavoritesResponse>( service, METHODID_GET_FAVORITES))) .addMethod( getEditFavoritesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.EditFavoritesRequest, ru.tinkoff.piapi.contract.v1.EditFavoritesResponse>( service, METHODID_EDIT_FAVORITES))) .addMethod( getGetCountriesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetCountriesRequest, ru.tinkoff.piapi.contract.v1.GetCountriesResponse>( service, METHODID_GET_COUNTRIES))) .addMethod( getFindInstrumentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.FindInstrumentRequest, ru.tinkoff.piapi.contract.v1.FindInstrumentResponse>( service, METHODID_FIND_INSTRUMENT))) .addMethod( getGetBrandsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetBrandsRequest, ru.tinkoff.piapi.contract.v1.GetBrandsResponse>( service, METHODID_GET_BRANDS))) .addMethod( getGetBrandByMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetBrandRequest, ru.tinkoff.piapi.contract.v1.Brand>( service, METHODID_GET_BRAND_BY))) .addMethod( getGetAssetFundamentalsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest, ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsResponse>( service, METHODID_GET_ASSET_FUNDAMENTALS))) .build(); } private static abstract class InstrumentsServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { InstrumentsServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return ru.tinkoff.piapi.contract.v1.Instruments.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("InstrumentsService"); } } private static final class InstrumentsServiceFileDescriptorSupplier extends InstrumentsServiceBaseDescriptorSupplier { InstrumentsServiceFileDescriptorSupplier() {} } private static final class InstrumentsServiceMethodDescriptorSupplier extends InstrumentsServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; InstrumentsServiceMethodDescriptorSupplier(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 (InstrumentsServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new InstrumentsServiceFileDescriptorSupplier()) .addMethod(getTradingSchedulesMethod()) .addMethod(getBondByMethod()) .addMethod(getBondsMethod()) .addMethod(getGetBondCouponsMethod()) .addMethod(getCurrencyByMethod()) .addMethod(getCurrenciesMethod()) .addMethod(getEtfByMethod()) .addMethod(getEtfsMethod()) .addMethod(getFutureByMethod()) .addMethod(getFuturesMethod()) .addMethod(getOptionByMethod()) .addMethod(getOptionsMethod()) .addMethod(getOptionsByMethod()) .addMethod(getShareByMethod()) .addMethod(getSharesMethod()) .addMethod(getGetAccruedInterestsMethod()) .addMethod(getGetFuturesMarginMethod()) .addMethod(getGetInstrumentByMethod()) .addMethod(getGetDividendsMethod()) .addMethod(getGetAssetByMethod()) .addMethod(getGetAssetsMethod()) .addMethod(getGetFavoritesMethod()) .addMethod(getEditFavoritesMethod()) .addMethod(getGetCountriesMethod()) .addMethod(getFindInstrumentMethod()) .addMethod(getGetBrandsMethod()) .addMethod(getGetBrandByMethod()) .addMethod(getGetAssetFundamentalsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy