Class GetOperationsByCursorRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
ru.tinkoff.piapi.contract.v1.GetOperationsByCursorRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, GetOperationsByCursorRequestOrBuilder
Enclosing class:
GetOperationsByCursorRequest

public static final class GetOperationsByCursorRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder> implements GetOperationsByCursorRequestOrBuilder
Запрос списка операций по счёту с пагинацией.
 
Protobuf type tinkoff.public.invest.api.contract.v1.GetOperationsByCursorRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • getDefaultInstanceForType

      public GetOperationsByCursorRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GetOperationsByCursorRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • setField

      public GetOperationsByCursorRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • clearField

      public GetOperationsByCursorRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • clearOneof

      public GetOperationsByCursorRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • setRepeatedField

      public GetOperationsByCursorRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • addRepeatedField

      public GetOperationsByCursorRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • mergeFrom

      public GetOperationsByCursorRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GetOperationsByCursorRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • mergeFrom

      public GetOperationsByCursorRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GetOperationsByCursorRequest.Builder>
      Throws:
      IOException
    • getAccountId

      public String getAccountId()
      Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
       
      string account_id = 1;
      Specified by:
      getAccountId in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The accountId.
    • getAccountIdBytes

      public com.google.protobuf.ByteString getAccountIdBytes()
      Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
       
      string account_id = 1;
      Specified by:
      getAccountIdBytes in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The bytes for accountId.
    • setAccountId

      public GetOperationsByCursorRequest.Builder setAccountId(String value)
      Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
       
      string account_id = 1;
      Parameters:
      value - The accountId to set.
      Returns:
      This builder for chaining.
    • clearAccountId

      public GetOperationsByCursorRequest.Builder clearAccountId()
      Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
       
      string account_id = 1;
      Returns:
      This builder for chaining.
    • setAccountIdBytes

      public GetOperationsByCursorRequest.Builder setAccountIdBytes(com.google.protobuf.ByteString value)
      Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
       
      string account_id = 1;
      Parameters:
      value - The bytes for accountId to set.
      Returns:
      This builder for chaining.
    • getInstrumentId

      public String getInstrumentId()
      Идентификатор инструмента (Figi инструмента или uid инструмента)
       
      string instrument_id = 2;
      Specified by:
      getInstrumentId in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The instrumentId.
    • getInstrumentIdBytes

      public com.google.protobuf.ByteString getInstrumentIdBytes()
      Идентификатор инструмента (Figi инструмента или uid инструмента)
       
      string instrument_id = 2;
      Specified by:
      getInstrumentIdBytes in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The bytes for instrumentId.
    • setInstrumentId

      public GetOperationsByCursorRequest.Builder setInstrumentId(String value)
      Идентификатор инструмента (Figi инструмента или uid инструмента)
       
      string instrument_id = 2;
      Parameters:
      value - The instrumentId to set.
      Returns:
      This builder for chaining.
    • clearInstrumentId

      public GetOperationsByCursorRequest.Builder clearInstrumentId()
      Идентификатор инструмента (Figi инструмента или uid инструмента)
       
      string instrument_id = 2;
      Returns:
      This builder for chaining.
    • setInstrumentIdBytes

      public GetOperationsByCursorRequest.Builder setInstrumentIdBytes(com.google.protobuf.ByteString value)
      Идентификатор инструмента (Figi инструмента или uid инструмента)
       
      string instrument_id = 2;
      Parameters:
      value - The bytes for instrumentId to set.
      Returns:
      This builder for chaining.
    • hasFrom

      public boolean hasFrom()
      Начало периода (по UTC).
       
      .google.protobuf.Timestamp from = 6;
      Specified by:
      hasFrom in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      Whether the from field is set.
    • getFrom

      public com.google.protobuf.Timestamp getFrom()
      Начало периода (по UTC).
       
      .google.protobuf.Timestamp from = 6;
      Specified by:
      getFrom in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The from.
    • setFrom

      public GetOperationsByCursorRequest.Builder setFrom(com.google.protobuf.Timestamp value)
      Начало периода (по UTC).
       
      .google.protobuf.Timestamp from = 6;
    • setFrom

      public GetOperationsByCursorRequest.Builder setFrom(com.google.protobuf.Timestamp.Builder builderForValue)
      Начало периода (по UTC).
       
      .google.protobuf.Timestamp from = 6;
    • mergeFrom

      public GetOperationsByCursorRequest.Builder mergeFrom(com.google.protobuf.Timestamp value)
      Начало периода (по UTC).
       
      .google.protobuf.Timestamp from = 6;
    • clearFrom

      Начало периода (по UTC).
       
      .google.protobuf.Timestamp from = 6;
    • getFromBuilder

      public com.google.protobuf.Timestamp.Builder getFromBuilder()
      Начало периода (по UTC).
       
      .google.protobuf.Timestamp from = 6;
    • getFromOrBuilder

      public com.google.protobuf.TimestampOrBuilder getFromOrBuilder()
      Начало периода (по UTC).
       
      .google.protobuf.Timestamp from = 6;
      Specified by:
      getFromOrBuilder in interface GetOperationsByCursorRequestOrBuilder
    • hasTo

      public boolean hasTo()
      Окончание периода (по UTC).
       
      .google.protobuf.Timestamp to = 7;
      Specified by:
      hasTo in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      Whether the to field is set.
    • getTo

      public com.google.protobuf.Timestamp getTo()
      Окончание периода (по UTC).
       
      .google.protobuf.Timestamp to = 7;
      Specified by:
      getTo in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The to.
    • setTo

      public GetOperationsByCursorRequest.Builder setTo(com.google.protobuf.Timestamp value)
      Окончание периода (по UTC).
       
      .google.protobuf.Timestamp to = 7;
    • setTo

      public GetOperationsByCursorRequest.Builder setTo(com.google.protobuf.Timestamp.Builder builderForValue)
      Окончание периода (по UTC).
       
      .google.protobuf.Timestamp to = 7;
    • mergeTo

      public GetOperationsByCursorRequest.Builder mergeTo(com.google.protobuf.Timestamp value)
      Окончание периода (по UTC).
       
      .google.protobuf.Timestamp to = 7;
    • clearTo

      Окончание периода (по UTC).
       
      .google.protobuf.Timestamp to = 7;
    • getToBuilder

      public com.google.protobuf.Timestamp.Builder getToBuilder()
      Окончание периода (по UTC).
       
      .google.protobuf.Timestamp to = 7;
    • getToOrBuilder

      public com.google.protobuf.TimestampOrBuilder getToOrBuilder()
      Окончание периода (по UTC).
       
      .google.protobuf.Timestamp to = 7;
      Specified by:
      getToOrBuilder in interface GetOperationsByCursorRequestOrBuilder
    • getCursor

      public String getCursor()
      Идентификатор элемента, с которого начать формировать ответ.
       
      string cursor = 11;
      Specified by:
      getCursor in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The cursor.
    • getCursorBytes

      public com.google.protobuf.ByteString getCursorBytes()
      Идентификатор элемента, с которого начать формировать ответ.
       
      string cursor = 11;
      Specified by:
      getCursorBytes in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The bytes for cursor.
    • setCursor

      public GetOperationsByCursorRequest.Builder setCursor(String value)
      Идентификатор элемента, с которого начать формировать ответ.
       
      string cursor = 11;
      Parameters:
      value - The cursor to set.
      Returns:
      This builder for chaining.
    • clearCursor

      Идентификатор элемента, с которого начать формировать ответ.
       
      string cursor = 11;
      Returns:
      This builder for chaining.
    • setCursorBytes

      public GetOperationsByCursorRequest.Builder setCursorBytes(com.google.protobuf.ByteString value)
      Идентификатор элемента, с которого начать формировать ответ.
       
      string cursor = 11;
      Parameters:
      value - The bytes for cursor to set.
      Returns:
      This builder for chaining.
    • getLimit

      public int getLimit()
      Лимит количества операций. По умолчанию устанавливается значение **100**, максимальное значение 1000.
       
      int32 limit = 12;
      Specified by:
      getLimit in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The limit.
    • setLimit

      public GetOperationsByCursorRequest.Builder setLimit(int value)
      Лимит количества операций. По умолчанию устанавливается значение **100**, максимальное значение 1000.
       
      int32 limit = 12;
      Parameters:
      value - The limit to set.
      Returns:
      This builder for chaining.
    • clearLimit

      Лимит количества операций. По умолчанию устанавливается значение **100**, максимальное значение 1000.
       
      int32 limit = 12;
      Returns:
      This builder for chaining.
    • getOperationTypesList

      public List<OperationType> getOperationTypesList()
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Specified by:
      getOperationTypesList in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      A list containing the operationTypes.
    • getOperationTypesCount

      public int getOperationTypesCount()
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Specified by:
      getOperationTypesCount in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The count of operationTypes.
    • getOperationTypes

      public OperationType getOperationTypes(int index)
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Specified by:
      getOperationTypes in interface GetOperationsByCursorRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The operationTypes at the given index.
    • setOperationTypes

      public GetOperationsByCursorRequest.Builder setOperationTypes(int index, OperationType value)
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Parameters:
      index - The index to set the value at.
      value - The operationTypes to set.
      Returns:
      This builder for chaining.
    • addOperationTypes

      public GetOperationsByCursorRequest.Builder addOperationTypes(OperationType value)
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Parameters:
      value - The operationTypes to add.
      Returns:
      This builder for chaining.
    • addAllOperationTypes

      public GetOperationsByCursorRequest.Builder addAllOperationTypes(Iterable<? extends OperationType> values)
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Parameters:
      values - The operationTypes to add.
      Returns:
      This builder for chaining.
    • clearOperationTypes

      public GetOperationsByCursorRequest.Builder clearOperationTypes()
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Returns:
      This builder for chaining.
    • getOperationTypesValueList

      public List<Integer> getOperationTypesValueList()
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Specified by:
      getOperationTypesValueList in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for operationTypes.
    • getOperationTypesValue

      public int getOperationTypesValue(int index)
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Specified by:
      getOperationTypesValue in interface GetOperationsByCursorRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of operationTypes at the given index.
    • setOperationTypesValue

      public GetOperationsByCursorRequest.Builder setOperationTypesValue(int index, int value)
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of operationTypes at the given index.
    • addOperationTypesValue

      public GetOperationsByCursorRequest.Builder addOperationTypesValue(int value)
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Parameters:
      value - The enum numeric value on the wire for operationTypes to add.
      Returns:
      This builder for chaining.
    • addAllOperationTypesValue

      public GetOperationsByCursorRequest.Builder addAllOperationTypesValue(Iterable<Integer> values)
      Тип операции. Принимает значение из списка OperationType.
       
      repeated .tinkoff.public.invest.api.contract.v1.OperationType operation_types = 13;
      Parameters:
      values - The enum numeric values on the wire for operationTypes to add.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
      Статус запрашиваемых операций, возможные значения указаны в OperationState.
       
      .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
      Specified by:
      getStateValue in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public GetOperationsByCursorRequest.Builder setStateValue(int value)
      Статус запрашиваемых операций, возможные значения указаны в OperationState.
       
      .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public OperationState getState()
      Статус запрашиваемых операций, возможные значения указаны в OperationState.
       
      .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
      Specified by:
      getState in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The state.
    • setState

      Статус запрашиваемых операций, возможные значения указаны в OperationState.
       
      .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      Статус запрашиваемых операций, возможные значения указаны в OperationState.
       
      .tinkoff.public.invest.api.contract.v1.OperationState state = 14;
      Returns:
      This builder for chaining.
    • getWithoutCommissions

      public boolean getWithoutCommissions()
      Флаг возвращать ли комиссии, по умолчанию false
       
      bool without_commissions = 15;
      Specified by:
      getWithoutCommissions in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The withoutCommissions.
    • setWithoutCommissions

      public GetOperationsByCursorRequest.Builder setWithoutCommissions(boolean value)
      Флаг возвращать ли комиссии, по умолчанию false
       
      bool without_commissions = 15;
      Parameters:
      value - The withoutCommissions to set.
      Returns:
      This builder for chaining.
    • clearWithoutCommissions

      public GetOperationsByCursorRequest.Builder clearWithoutCommissions()
      Флаг возвращать ли комиссии, по умолчанию false
       
      bool without_commissions = 15;
      Returns:
      This builder for chaining.
    • getWithoutTrades

      public boolean getWithoutTrades()
      Флаг получения ответа без массива сделок.
       
      bool without_trades = 16;
      Specified by:
      getWithoutTrades in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The withoutTrades.
    • setWithoutTrades

      public GetOperationsByCursorRequest.Builder setWithoutTrades(boolean value)
      Флаг получения ответа без массива сделок.
       
      bool without_trades = 16;
      Parameters:
      value - The withoutTrades to set.
      Returns:
      This builder for chaining.
    • clearWithoutTrades

      public GetOperationsByCursorRequest.Builder clearWithoutTrades()
      Флаг получения ответа без массива сделок.
       
      bool without_trades = 16;
      Returns:
      This builder for chaining.
    • getWithoutOvernights

      public boolean getWithoutOvernights()
      Флаг не показывать overnight операций.
       
      bool without_overnights = 17;
      Specified by:
      getWithoutOvernights in interface GetOperationsByCursorRequestOrBuilder
      Returns:
      The withoutOvernights.
    • setWithoutOvernights

      public GetOperationsByCursorRequest.Builder setWithoutOvernights(boolean value)
      Флаг не показывать overnight операций.
       
      bool without_overnights = 17;
      Parameters:
      value - The withoutOvernights to set.
      Returns:
      This builder for chaining.
    • clearWithoutOvernights

      public GetOperationsByCursorRequest.Builder clearWithoutOvernights()
      Флаг не показывать overnight операций.
       
      bool without_overnights = 17;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final GetOperationsByCursorRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>
    • mergeUnknownFields

      public final GetOperationsByCursorRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GetOperationsByCursorRequest.Builder>