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

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

There is a newer version: 1.25
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: operations.proto

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Запрос списка операций по счёту с пагинацией.
 * 
* * Protobuf type {@code tinkoff.public.invest.api.contract.v1.GetOperationsByCursorRequest} */ public final class GetOperationsByCursorRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetOperationsByCursorRequest) GetOperationsByCursorRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetOperationsByCursorRequest.newBuilder() to construct. private GetOperationsByCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetOperationsByCursorRequest() { accountId_ = ""; instrumentId_ = ""; cursor_ = ""; operationTypes_ = java.util.Collections.emptyList(); state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetOperationsByCursorRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetOperationsByCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetOperationsByCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest.class, ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** *
   *Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
   * 
* * string account_id = 1; * @return The accountId. */ @java.lang.Override public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** *
   *Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
   * 
* * string account_id = 1; * @return The bytes for accountId. */ @java.lang.Override public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INSTRUMENT_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object instrumentId_ = ""; /** *
   *Идентификатор инструмента (Figi инструмента или uid инструмента)
   * 
* * string instrument_id = 2; * @return The instrumentId. */ @java.lang.Override public java.lang.String getInstrumentId() { java.lang.Object ref = instrumentId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instrumentId_ = s; return s; } } /** *
   *Идентификатор инструмента (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 cursor. */ @java.lang.Override public java.lang.String getCursor() { java.lang.Object ref = cursor_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cursor_ = s; return s; } } /** *
   *Идентификатор элемента, с которого начать формировать ответ.
   * 
* * 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; /** *
   *Флаг не показывать overnight операций.
   * 
* * bool without_overnights = 17; * @return The withoutOvernights. */ @java.lang.Override public boolean getWithoutOvernights() { return withoutOvernights_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instrumentId_); } if (from_ != null) { output.writeMessage(6, getFrom()); } if (to_ != null) { output.writeMessage(7, getTo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cursor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, cursor_); } if (limit_ != 0) { output.writeInt32(12, limit_); } if (getOperationTypesList().size() > 0) { output.writeUInt32NoTag(106); output.writeUInt32NoTag(operationTypesMemoizedSerializedSize); } for (int i = 0; i < operationTypes_.size(); i++) { output.writeEnumNoTag(operationTypes_.get(i)); } if (state_ != ru.tinkoff.piapi.contract.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(14, state_); } if (withoutCommissions_ != false) { output.writeBool(15, withoutCommissions_); } if (withoutTrades_ != false) { output.writeBool(16, withoutTrades_); } if (withoutOvernights_ != false) { output.writeBool(17, withoutOvernights_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instrumentId_); } if (from_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getFrom()); } if (to_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getTo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cursor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, cursor_); } if (limit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, limit_); } { int dataSize = 0; for (int i = 0; i < operationTypes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(operationTypes_.get(i)); } size += dataSize; if (!getOperationTypesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }operationTypesMemoizedSerializedSize = dataSize; } if (state_ != ru.tinkoff.piapi.contract.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(14, state_); } if (withoutCommissions_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, withoutCommissions_); } if (withoutTrades_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, withoutTrades_); } if (withoutOvernights_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, withoutOvernights_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest other = (ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest) obj; if (!getAccountId() .equals(other.getAccountId())) return false; if (!getInstrumentId() .equals(other.getInstrumentId())) return false; if (hasFrom() != other.hasFrom()) return false; if (hasFrom()) { if (!getFrom() .equals(other.getFrom())) return false; } if (hasTo() != other.hasTo()) return false; if (hasTo()) { if (!getTo() .equals(other.getTo())) return false; } if (!getCursor() .equals(other.getCursor())) return false; if (getLimit() != other.getLimit()) return false; if (!operationTypes_.equals(other.operationTypes_)) return false; if (state_ != other.state_) return false; if (getWithoutCommissions() != other.getWithoutCommissions()) return false; if (getWithoutTrades() != other.getWithoutTrades()) return false; if (getWithoutOvernights() != other.getWithoutOvernights()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); hash = (37 * hash) + INSTRUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getInstrumentId().hashCode(); if (hasFrom()) { hash = (37 * hash) + FROM_FIELD_NUMBER; hash = (53 * hash) + getFrom().hashCode(); } if (hasTo()) { hash = (37 * hash) + TO_FIELD_NUMBER; hash = (53 * hash) + getTo().hashCode(); } hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); if (getOperationTypesCount() > 0) { hash = (37 * hash) + OPERATION_TYPES_FIELD_NUMBER; hash = (53 * hash) + operationTypes_.hashCode(); } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + WITHOUT_COMMISSIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWithoutCommissions()); hash = (37 * hash) + WITHOUT_TRADES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWithoutTrades()); hash = (37 * hash) + WITHOUT_OVERNIGHTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWithoutOvernights()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   *Запрос списка операций по счёту с пагинацией.
   * 
* * Protobuf type {@code tinkoff.public.invest.api.contract.v1.GetOperationsByCursorRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetOperationsByCursorRequest) ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetOperationsByCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetOperationsByCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest.class, ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; accountId_ = ""; instrumentId_ = ""; from_ = null; if (fromBuilder_ != null) { fromBuilder_.dispose(); fromBuilder_ = null; } to_ = null; if (toBuilder_ != null) { toBuilder_.dispose(); toBuilder_ = null; } cursor_ = ""; limit_ = 0; operationTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); state_ = 0; withoutCommissions_ = false; withoutTrades_ = false; withoutOvernights_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetOperationsByCursorRequest_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest build() { ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest buildPartial() { ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest result = new ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest result) { if (((bitField0_ & 0x00000040) != 0)) { operationTypes_ = java.util.Collections.unmodifiableList(operationTypes_); bitField0_ = (bitField0_ & ~0x00000040); } result.operationTypes_ = operationTypes_; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountId_ = accountId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.instrumentId_ = instrumentId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.from_ = fromBuilder_ == null ? from_ : fromBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.to_ = toBuilder_ == null ? to_ : toBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.cursor_ = cursor_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.limit_ = limit_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.withoutCommissions_ = withoutCommissions_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.withoutTrades_ = withoutTrades_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.withoutOvernights_ = withoutOvernights_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest) { return mergeFrom((ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest other) { if (other == ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest.getDefaultInstance()) return this; if (!other.getAccountId().isEmpty()) { accountId_ = other.accountId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getInstrumentId().isEmpty()) { instrumentId_ = other.instrumentId_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasFrom()) { mergeFrom(other.getFrom()); } if (other.hasTo()) { mergeTo(other.getTo()); } if (!other.getCursor().isEmpty()) { cursor_ = other.cursor_; bitField0_ |= 0x00000010; onChanged(); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } if (!other.operationTypes_.isEmpty()) { if (operationTypes_.isEmpty()) { operationTypes_ = other.operationTypes_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureOperationTypesIsMutable(); operationTypes_.addAll(other.operationTypes_); } onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.getWithoutCommissions() != false) { setWithoutCommissions(other.getWithoutCommissions()); } if (other.getWithoutTrades() != false) { setWithoutTrades(other.getWithoutTrades()); } if (other.getWithoutOvernights() != false) { setWithoutOvernights(other.getWithoutOvernights()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { accountId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { instrumentId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 50: { input.readMessage( getFromFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 50 case 58: { input.readMessage( getToFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 58 case 90: { cursor_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 90 case 96: { limit_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 96 case 104: { int tmpRaw = input.readEnum(); ensureOperationTypesIsMutable(); operationTypes_.add(tmpRaw); break; } // case 104 case 106: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureOperationTypesIsMutable(); operationTypes_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 106 case 112: { state_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 112 case 120: { withoutCommissions_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 120 case 128: { withoutTrades_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 128 case 136: { withoutOvernights_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 136 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object accountId_ = ""; /** *
     *Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
     * 
* * string account_id = 1; * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
     * 
* * string account_id = 1; * @return The bytes for accountId. */ public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
     * 
* * string account_id = 1; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
     * 
* * string account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { accountId_ = getDefaultInstance().getAccountId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
     * 
* * string account_id = 1; * @param value The bytes for accountId to set. * @return This builder for chaining. */ public Builder setAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object instrumentId_ = ""; /** *
     *Идентификатор инструмента (Figi инструмента или uid инструмента)
     * 
* * string instrument_id = 2; * @return The instrumentId. */ public java.lang.String getInstrumentId() { java.lang.Object ref = instrumentId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instrumentId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Идентификатор инструмента (Figi инструмента или uid инструмента)
     * 
* * string instrument_id = 2; * @return The bytes for instrumentId. */ public com.google.protobuf.ByteString getInstrumentIdBytes() { java.lang.Object ref = instrumentId_; if (ref instanceof 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; } } /** *
     *Идентификатор инструмента (Figi инструмента или uid инструмента)
     * 
* * string instrument_id = 2; * @param value The instrumentId to set. * @return This builder for chaining. */ public Builder setInstrumentId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instrumentId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Идентификатор инструмента (Figi инструмента или uid инструмента)
     * 
* * string instrument_id = 2; * @return This builder for chaining. */ public Builder clearInstrumentId() { instrumentId_ = getDefaultInstance().getInstrumentId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     *Идентификатор инструмента (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; } /** *
     *Начало периода (по UTC).
     * 
* * .google.protobuf.Timestamp from = 6; */ public Builder setFrom( com.google.protobuf.Timestamp.Builder builderForValue) { if (fromBuilder_ == null) { from_ = builderForValue.build(); } else { fromBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Начало периода (по UTC).
     * 
* * .google.protobuf.Timestamp from = 6; */ public Builder mergeFrom(com.google.protobuf.Timestamp value) { if (fromBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && from_ != null && from_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getFromBuilder().mergeFrom(value); } else { from_ = value; } } else { fromBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Начало периода (по UTC).
     * 
* * .google.protobuf.Timestamp from = 6; */ public Builder clearFrom() { bitField0_ = (bitField0_ & ~0x00000004); from_ = null; if (fromBuilder_ != null) { fromBuilder_.dispose(); fromBuilder_ = null; } onChanged(); return this; } /** *
     *Начало периода (по UTC).
     * 
* * .google.protobuf.Timestamp from = 6; */ public com.google.protobuf.Timestamp.Builder getFromBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFromFieldBuilder().getBuilder(); } /** *
     *Начало периода (по UTC).
     * 
* * .google.protobuf.Timestamp from = 6; */ public com.google.protobuf.TimestampOrBuilder getFromOrBuilder() { if (fromBuilder_ != null) { return fromBuilder_.getMessageOrBuilder(); } else { return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_; } } /** *
     *Начало периода (по UTC).
     * 
* * .google.protobuf.Timestamp from = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getFromFieldBuilder() { if (fromBuilder_ == null) { fromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getFrom(), getParentForChildren(), isClean()); from_ = null; } return fromBuilder_; } private com.google.protobuf.Timestamp to_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> toBuilder_; /** *
     *Окончание периода (по UTC).
     * 
* * .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; } /** *
     *Окончание периода (по UTC).
     * 
* * .google.protobuf.Timestamp to = 7; */ public Builder setTo( com.google.protobuf.Timestamp.Builder builderForValue) { if (toBuilder_ == null) { to_ = builderForValue.build(); } else { toBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Окончание периода (по UTC).
     * 
* * .google.protobuf.Timestamp to = 7; */ public Builder mergeTo(com.google.protobuf.Timestamp value) { if (toBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && to_ != null && to_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getToBuilder().mergeFrom(value); } else { to_ = value; } } else { toBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Окончание периода (по UTC).
     * 
* * .google.protobuf.Timestamp to = 7; */ public Builder clearTo() { bitField0_ = (bitField0_ & ~0x00000008); to_ = null; if (toBuilder_ != null) { toBuilder_.dispose(); toBuilder_ = null; } onChanged(); return this; } /** *
     *Окончание периода (по UTC).
     * 
* * .google.protobuf.Timestamp to = 7; */ public com.google.protobuf.Timestamp.Builder getToBuilder() { bitField0_ |= 0x00000008; onChanged(); return getToFieldBuilder().getBuilder(); } /** *
     *Окончание периода (по UTC).
     * 
* * .google.protobuf.Timestamp to = 7; */ public com.google.protobuf.TimestampOrBuilder getToOrBuilder() { if (toBuilder_ != null) { return toBuilder_.getMessageOrBuilder(); } else { return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_; } } /** *
     *Окончание периода (по UTC).
     * 
* * .google.protobuf.Timestamp to = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getToFieldBuilder() { if (toBuilder_ == null) { toBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTo(), getParentForChildren(), isClean()); to_ = null; } return toBuilder_; } private java.lang.Object cursor_ = ""; /** *
     *Идентификатор элемента, с которого начать формировать ответ.
     * 
* * string cursor = 11; * @return The cursor. */ public java.lang.String getCursor() { java.lang.Object ref = cursor_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cursor_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Идентификатор элемента, с которого начать формировать ответ.
     * 
* * string cursor = 11; * @return The bytes for cursor. */ public com.google.protobuf.ByteString getCursorBytes() { java.lang.Object ref = cursor_; if (ref instanceof 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; } } /** *
     *Идентификатор элемента, с которого начать формировать ответ.
     * 
* * string cursor = 11; * @param value The cursor to set. * @return This builder for chaining. */ public Builder setCursor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cursor_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Идентификатор элемента, с которого начать формировать ответ.
     * 
* * string cursor = 11; * @return This builder for chaining. */ public Builder clearCursor() { cursor_ = getDefaultInstance().getCursor(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     *Идентификатор элемента, с которого начать формировать ответ.
     * 
* * string cursor = 11; * @param value The bytes for cursor to set. * @return This builder for chaining. */ public Builder setCursorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cursor_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private int limit_ ; /** *
     *Лимит количества операций. По умолчанию устанавливается значение **100**, максимальное значение 1000.
     * 
* * int32 limit = 12; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } /** *
     *Лимит количества операций. По умолчанию устанавливается значение **100**, максимальное значение 1000.
     * 
* * int32 limit = 12; * @param value The limit to set. * @return This builder for chaining. */ public Builder setLimit(int value) { limit_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Лимит количества операций. По умолчанию устанавливается значение **100**, максимальное значение 1000.
     * 
* * int32 limit = 12; * @return This builder for chaining. */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00000020); limit_ = 0; onChanged(); return this; } private java.util.List operationTypes_ = java.util.Collections.emptyList(); private void ensureOperationTypesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { operationTypes_ = new java.util.ArrayList(operationTypes_); bitField0_ |= 0x00000040; } } /** *
     *Тип операции. Принимает значение из списка 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 values) { ensureOperationTypesIsMutable(); for (ru.tinkoff.piapi.contract.v1.OperationType value : values) { operationTypes_.add(value.getNumber()); } onChanged(); return this; } /** *
     *Тип операции. Принимает значение из списка OperationType.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13; * @return This builder for chaining. */ public Builder clearOperationTypes() { operationTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     *Тип операции. Принимает значение из списка 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
     * 
* * bool without_commissions = 15; * @return The withoutCommissions. */ @java.lang.Override public boolean getWithoutCommissions() { return withoutCommissions_; } /** *
     *Флаг возвращать ли комиссии, по умолчанию false
     * 
* * bool without_commissions = 15; * @param value The withoutCommissions to set. * @return This builder for chaining. */ public Builder setWithoutCommissions(boolean value) { withoutCommissions_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Флаг возвращать ли комиссии, по умолчанию false
     * 
* * bool without_commissions = 15; * @return This builder for chaining. */ public Builder clearWithoutCommissions() { bitField0_ = (bitField0_ & ~0x00000100); withoutCommissions_ = false; onChanged(); return this; } private boolean withoutTrades_ ; /** *
     *Флаг получения ответа без массива сделок.
     * 
* * bool without_trades = 16; * @return The withoutTrades. */ @java.lang.Override public boolean getWithoutTrades() { return withoutTrades_; } /** *
     *Флаг получения ответа без массива сделок.
     * 
* * bool without_trades = 16; * @param value The withoutTrades to set. * @return This builder for chaining. */ public Builder setWithoutTrades(boolean value) { withoutTrades_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Флаг получения ответа без массива сделок.
     * 
* * bool without_trades = 16; * @return This builder for chaining. */ public Builder clearWithoutTrades() { bitField0_ = (bitField0_ & ~0x00000200); withoutTrades_ = false; onChanged(); return this; } private boolean withoutOvernights_ ; /** *
     *Флаг не показывать overnight операций.
     * 
* * bool without_overnights = 17; * @return The withoutOvernights. */ @java.lang.Override public boolean getWithoutOvernights() { return withoutOvernights_; } /** *
     *Флаг не показывать overnight операций.
     * 
* * bool without_overnights = 17; * @param value The withoutOvernights to set. * @return This builder for chaining. */ public Builder setWithoutOvernights(boolean value) { withoutOvernights_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     *Флаг не показывать overnight операций.
     * 
* * bool without_overnights = 17; * @return This builder for chaining. */ public Builder clearWithoutOvernights() { bitField0_ = (bitField0_ & ~0x00000400); withoutOvernights_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tinkoff.public.invest.api.contract.v1.GetOperationsByCursorRequest) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetOperationsByCursorRequest) private static final ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest(); } public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetOperationsByCursorRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy