Class SubscribeLastPriceRequest.Builder

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

public static final class SubscribeLastPriceRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SubscribeLastPriceRequest.Builder> implements SubscribeLastPriceRequestOrBuilder
Изменение статуса подписки на цену последней сделки по инструменту.
 
Protobuf type tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest
  • 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<SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.Builder>
    • getDefaultInstanceForType

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

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

      public SubscribeLastPriceRequest 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<SubscribeLastPriceRequest.Builder>
    • setField

      public SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.Builder>
    • clearField

      public SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.Builder>
    • clearOneof

      public SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.Builder>
    • setRepeatedField

      public SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.Builder>
    • addRepeatedField

      public SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.Builder>
    • mergeFrom

      public SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.Builder>
    • mergeFrom

      public SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.Builder>
      Throws:
      IOException
    • getSubscriptionActionValue

      public int getSubscriptionActionValue()
      Изменение статуса подписки.
       
      .tinkoff.public.invest.api.contract.v1.SubscriptionAction subscription_action = 1;
      Specified by:
      getSubscriptionActionValue in interface SubscribeLastPriceRequestOrBuilder
      Returns:
      The enum numeric value on the wire for subscriptionAction.
    • setSubscriptionActionValue

      public SubscribeLastPriceRequest.Builder setSubscriptionActionValue(int value)
      Изменение статуса подписки.
       
      .tinkoff.public.invest.api.contract.v1.SubscriptionAction subscription_action = 1;
      Parameters:
      value - The enum numeric value on the wire for subscriptionAction to set.
      Returns:
      This builder for chaining.
    • getSubscriptionAction

      public SubscriptionAction getSubscriptionAction()
      Изменение статуса подписки.
       
      .tinkoff.public.invest.api.contract.v1.SubscriptionAction subscription_action = 1;
      Specified by:
      getSubscriptionAction in interface SubscribeLastPriceRequestOrBuilder
      Returns:
      The subscriptionAction.
    • setSubscriptionAction

      public SubscribeLastPriceRequest.Builder setSubscriptionAction(SubscriptionAction value)
      Изменение статуса подписки.
       
      .tinkoff.public.invest.api.contract.v1.SubscriptionAction subscription_action = 1;
      Parameters:
      value - The subscriptionAction to set.
      Returns:
      This builder for chaining.
    • clearSubscriptionAction

      public SubscribeLastPriceRequest.Builder clearSubscriptionAction()
      Изменение статуса подписки.
       
      .tinkoff.public.invest.api.contract.v1.SubscriptionAction subscription_action = 1;
      Returns:
      This builder for chaining.
    • getInstrumentsList

      public List<LastPriceInstrument> getInstrumentsList()
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
      Specified by:
      getInstrumentsList in interface SubscribeLastPriceRequestOrBuilder
    • getInstrumentsCount

      public int getInstrumentsCount()
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
      Specified by:
      getInstrumentsCount in interface SubscribeLastPriceRequestOrBuilder
    • getInstruments

      public LastPriceInstrument getInstruments(int index)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
      Specified by:
      getInstruments in interface SubscribeLastPriceRequestOrBuilder
    • setInstruments

      public SubscribeLastPriceRequest.Builder setInstruments(int index, LastPriceInstrument value)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • setInstruments

      public SubscribeLastPriceRequest.Builder setInstruments(int index, LastPriceInstrument.Builder builderForValue)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • addInstruments

      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • addInstruments

      public SubscribeLastPriceRequest.Builder addInstruments(int index, LastPriceInstrument value)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • addInstruments

      public SubscribeLastPriceRequest.Builder addInstruments(LastPriceInstrument.Builder builderForValue)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • addInstruments

      public SubscribeLastPriceRequest.Builder addInstruments(int index, LastPriceInstrument.Builder builderForValue)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • addAllInstruments

      public SubscribeLastPriceRequest.Builder addAllInstruments(Iterable<? extends LastPriceInstrument> values)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • clearInstruments

      public SubscribeLastPriceRequest.Builder clearInstruments()
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • removeInstruments

      public SubscribeLastPriceRequest.Builder removeInstruments(int index)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • getInstrumentsBuilder

      public LastPriceInstrument.Builder getInstrumentsBuilder(int index)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • getInstrumentsOrBuilder

      public LastPriceInstrumentOrBuilder getInstrumentsOrBuilder(int index)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
      Specified by:
      getInstrumentsOrBuilder in interface SubscribeLastPriceRequestOrBuilder
    • getInstrumentsOrBuilderList

      public List<? extends LastPriceInstrumentOrBuilder> getInstrumentsOrBuilderList()
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
      Specified by:
      getInstrumentsOrBuilderList in interface SubscribeLastPriceRequestOrBuilder
    • addInstrumentsBuilder

      public LastPriceInstrument.Builder addInstrumentsBuilder()
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • addInstrumentsBuilder

      public LastPriceInstrument.Builder addInstrumentsBuilder(int index)
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • getInstrumentsBuilderList

      public List<LastPriceInstrument.Builder> getInstrumentsBuilderList()
      Массив инструментов для подписки на цену последней сделки.
       
      repeated .tinkoff.public.invest.api.contract.v1.LastPriceInstrument instruments = 2;
    • setUnknownFields

      public final SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.Builder>
    • mergeUnknownFields

      public final SubscribeLastPriceRequest.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<SubscribeLastPriceRequest.Builder>