Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*Идентификатор инструмента (Figi инструмента или uid инструмента)
*
*
* string instrument_id = 2;
* @return The bytes for instrumentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstrumentIdBytes() {
java.lang.Object ref = instrumentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instrumentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FROM_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp from_;
/**
*
*Начало периода (по UTC).
*
*
* .google.protobuf.Timestamp from = 6;
* @return Whether the from field is set.
*/
@java.lang.Override
public boolean hasFrom() {
return from_ != null;
}
/**
*
*Начало периода (по UTC).
*
*
* .google.protobuf.Timestamp from = 6;
* @return The from.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getFrom() {
return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_;
}
/**
*
*Начало периода (по UTC).
*
*
* .google.protobuf.Timestamp from = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getFromOrBuilder() {
return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_;
}
public static final int TO_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp to_;
/**
*
*Окончание периода (по UTC).
*
*
* .google.protobuf.Timestamp to = 7;
* @return Whether the to field is set.
*/
@java.lang.Override
public boolean hasTo() {
return to_ != null;
}
/**
*
*Окончание периода (по UTC).
*
*
* .google.protobuf.Timestamp to = 7;
* @return The to.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTo() {
return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_;
}
/**
*
*Окончание периода (по UTC).
*
*
* .google.protobuf.Timestamp to = 7;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getToOrBuilder() {
return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_;
}
public static final int CURSOR_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object cursor_ = "";
/**
*
*Идентификатор элемента, с которого начать формировать ответ.
*
*Идентификатор элемента, с которого начать формировать ответ.
*
*
* string cursor = 11;
* @return The bytes for cursor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCursorBytes() {
java.lang.Object ref = cursor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cursor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LIMIT_FIELD_NUMBER = 12;
private int limit_ = 0;
/**
*
*Лимит количества операций. По умолчанию устанавливается значение **100**, максимальное значение 1000.
*
*
* int32 limit = 12;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int OPERATION_TYPES_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private java.util.List operationTypes_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, ru.tinkoff.piapi.contract.v1.OperationType> operationTypes_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, ru.tinkoff.piapi.contract.v1.OperationType>() {
public ru.tinkoff.piapi.contract.v1.OperationType convert(java.lang.Integer from) {
ru.tinkoff.piapi.contract.v1.OperationType result = ru.tinkoff.piapi.contract.v1.OperationType.forNumber(from);
return result == null ? ru.tinkoff.piapi.contract.v1.OperationType.UNRECOGNIZED : result;
}
};
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @return A list containing the operationTypes.
*/
@java.lang.Override
public java.util.List getOperationTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, ru.tinkoff.piapi.contract.v1.OperationType>(operationTypes_, operationTypes_converter_);
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @return The count of operationTypes.
*/
@java.lang.Override
public int getOperationTypesCount() {
return operationTypes_.size();
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @param index The index of the element to return.
* @return The operationTypes at the given index.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OperationType getOperationTypes(int index) {
return operationTypes_converter_.convert(operationTypes_.get(index));
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @return A list containing the enum numeric values on the wire for operationTypes.
*/
@java.lang.Override
public java.util.List
getOperationTypesValueList() {
return operationTypes_;
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of operationTypes at the given index.
*/
@java.lang.Override
public int getOperationTypesValue(int index) {
return operationTypes_.get(index);
}
private int operationTypesMemoizedSerializedSize;
public static final int STATE_FIELD_NUMBER = 14;
private int state_ = 0;
/**
*
*Статус запрашиваемых операций, возможные значения указаны в OperationState.
*
*
* .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
*Статус запрашиваемых операций, возможные значения указаны в OperationState.
*
*
* .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
* @return The state.
*/
@java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationState getState() {
ru.tinkoff.piapi.contract.v1.OperationState result = ru.tinkoff.piapi.contract.v1.OperationState.forNumber(state_);
return result == null ? ru.tinkoff.piapi.contract.v1.OperationState.UNRECOGNIZED : result;
}
public static final int WITHOUT_COMMISSIONS_FIELD_NUMBER = 15;
private boolean withoutCommissions_ = false;
/**
*
*Флаг возвращать ли комиссии, по умолчанию false
*
*
* bool without_commissions = 15;
* @return The withoutCommissions.
*/
@java.lang.Override
public boolean getWithoutCommissions() {
return withoutCommissions_;
}
public static final int WITHOUT_TRADES_FIELD_NUMBER = 16;
private boolean withoutTrades_ = false;
/**
*
*Флаг получения ответа без массива сделок.
*
*
* bool without_trades = 16;
* @return The withoutTrades.
*/
@java.lang.Override
public boolean getWithoutTrades() {
return withoutTrades_;
}
public static final int WITHOUT_OVERNIGHTS_FIELD_NUMBER = 17;
private boolean withoutOvernights_ = false;
/**
*
*Идентификатор инструмента (Figi инструмента или uid инструмента)
*
*
* string instrument_id = 2;
* @param value The bytes for instrumentId to set.
* @return This builder for chaining.
*/
public Builder setInstrumentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
instrumentId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.Timestamp from_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> fromBuilder_;
/**
*
*Начало периода (по UTC).
*
*
* .google.protobuf.Timestamp from = 6;
* @return Whether the from field is set.
*/
public boolean hasFrom() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*Начало периода (по UTC).
*
*
* .google.protobuf.Timestamp from = 6;
* @return The from.
*/
public com.google.protobuf.Timestamp getFrom() {
if (fromBuilder_ == null) {
return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_;
} else {
return fromBuilder_.getMessage();
}
}
/**
*
*Начало периода (по UTC).
*
*
* .google.protobuf.Timestamp from = 6;
*/
public Builder setFrom(com.google.protobuf.Timestamp value) {
if (fromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
from_ = value;
} else {
fromBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
* .google.protobuf.Timestamp to = 7;
* @return Whether the to field is set.
*/
public boolean hasTo() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*Окончание периода (по UTC).
*
*
* .google.protobuf.Timestamp to = 7;
* @return The to.
*/
public com.google.protobuf.Timestamp getTo() {
if (toBuilder_ == null) {
return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_;
} else {
return toBuilder_.getMessage();
}
}
/**
*
*Окончание периода (по UTC).
*
*
* .google.protobuf.Timestamp to = 7;
*/
public Builder setTo(com.google.protobuf.Timestamp value) {
if (toBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
to_ = value;
} else {
toBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @return A list containing the operationTypes.
*/
public java.util.List getOperationTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, ru.tinkoff.piapi.contract.v1.OperationType>(operationTypes_, operationTypes_converter_);
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @return The count of operationTypes.
*/
public int getOperationTypesCount() {
return operationTypes_.size();
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @param index The index of the element to return.
* @return The operationTypes at the given index.
*/
public ru.tinkoff.piapi.contract.v1.OperationType getOperationTypes(int index) {
return operationTypes_converter_.convert(operationTypes_.get(index));
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @param index The index to set the value at.
* @param value The operationTypes to set.
* @return This builder for chaining.
*/
public Builder setOperationTypes(
int index, ru.tinkoff.piapi.contract.v1.OperationType value) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationTypesIsMutable();
operationTypes_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @param value The operationTypes to add.
* @return This builder for chaining.
*/
public Builder addOperationTypes(ru.tinkoff.piapi.contract.v1.OperationType value) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationTypesIsMutable();
operationTypes_.add(value.getNumber());
onChanged();
return this;
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @param values The operationTypes to add.
* @return This builder for chaining.
*/
public Builder addAllOperationTypes(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.OperationType> values) {
ensureOperationTypesIsMutable();
for (ru.tinkoff.piapi.contract.v1.OperationType value : values) {
operationTypes_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @return A list containing the enum numeric values on the wire for operationTypes.
*/
public java.util.List
getOperationTypesValueList() {
return java.util.Collections.unmodifiableList(operationTypes_);
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of operationTypes at the given index.
*/
public int getOperationTypesValue(int index) {
return operationTypes_.get(index);
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for operationTypes to set.
* @return This builder for chaining.
*/
public Builder setOperationTypesValue(
int index, int value) {
ensureOperationTypesIsMutable();
operationTypes_.set(index, value);
onChanged();
return this;
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @param value The enum numeric value on the wire for operationTypes to add.
* @return This builder for chaining.
*/
public Builder addOperationTypesValue(int value) {
ensureOperationTypesIsMutable();
operationTypes_.add(value);
onChanged();
return this;
}
/**
*
*Тип операции. Принимает значение из списка OperationType.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
* @param values The enum numeric values on the wire for operationTypes to add.
* @return This builder for chaining.
*/
public Builder addAllOperationTypesValue(
java.lang.Iterable values) {
ensureOperationTypesIsMutable();
for (int value : values) {
operationTypes_.add(value);
}
onChanged();
return this;
}
private int state_ = 0;
/**
*
*Статус запрашиваемых операций, возможные значения указаны в OperationState.
*
*
* .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
*Статус запрашиваемых операций, возможные значения указаны в OperationState.
*
*
* .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Статус запрашиваемых операций, возможные значения указаны в OperationState.
*
*
* .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
* @return The state.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OperationState getState() {
ru.tinkoff.piapi.contract.v1.OperationState result = ru.tinkoff.piapi.contract.v1.OperationState.forNumber(state_);
return result == null ? ru.tinkoff.piapi.contract.v1.OperationState.UNRECOGNIZED : result;
}
/**
*
*Статус запрашиваемых операций, возможные значения указаны в OperationState.
*
*
* .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(ru.tinkoff.piapi.contract.v1.OperationState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Статус запрашиваемых операций, возможные значения указаны в OperationState.
*
*
* .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000080);
state_ = 0;
onChanged();
return this;
}
private boolean withoutCommissions_ ;
/**
*
*Флаг возвращать ли комиссии, по умолчанию false
*