Class AssetSecurity

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
ru.tinkoff.piapi.contract.v1.AssetSecurity
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, AssetSecurityOrBuilder

public final class AssetSecurity extends com.google.protobuf.GeneratedMessageV3 implements AssetSecurityOrBuilder
Ценная бумага.
 
Protobuf type tinkoff.public.invest.api.contract.v1.AssetSecurity
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getExtCase

      public AssetSecurity.ExtCase getExtCase()
      Specified by:
      getExtCase in interface AssetSecurityOrBuilder
    • getIsin

      public String getIsin()
      ISIN-идентификатор ценной бумаги.
       
      string isin = 1;
      Specified by:
      getIsin in interface AssetSecurityOrBuilder
      Returns:
      The isin.
    • getIsinBytes

      public com.google.protobuf.ByteString getIsinBytes()
      ISIN-идентификатор ценной бумаги.
       
      string isin = 1;
      Specified by:
      getIsinBytes in interface AssetSecurityOrBuilder
      Returns:
      The bytes for isin.
    • getType

      public String getType()
      Тип ценной бумаги.
       
      string type = 2;
      Specified by:
      getType in interface AssetSecurityOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
      Тип ценной бумаги.
       
      string type = 2;
      Specified by:
      getTypeBytes in interface AssetSecurityOrBuilder
      Returns:
      The bytes for type.
    • hasShare

      public boolean hasShare()
      Акция. Заполняется только для акций (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = share).
       
      .tinkoff.public.invest.api.contract.v1.AssetShare share = 3;
      Specified by:
      hasShare in interface AssetSecurityOrBuilder
      Returns:
      Whether the share field is set.
    • getShare

      public AssetShare getShare()
      Акция. Заполняется только для акций (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = share).
       
      .tinkoff.public.invest.api.contract.v1.AssetShare share = 3;
      Specified by:
      getShare in interface AssetSecurityOrBuilder
      Returns:
      The share.
    • getShareOrBuilder

      public AssetShareOrBuilder getShareOrBuilder()
      Акция. Заполняется только для акций (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = share).
       
      .tinkoff.public.invest.api.contract.v1.AssetShare share = 3;
      Specified by:
      getShareOrBuilder in interface AssetSecurityOrBuilder
    • hasBond

      public boolean hasBond()
      Облигация. Заполняется только для облигаций (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = bond).
       
      .tinkoff.public.invest.api.contract.v1.AssetBond bond = 4;
      Specified by:
      hasBond in interface AssetSecurityOrBuilder
      Returns:
      Whether the bond field is set.
    • getBond

      public AssetBond getBond()
      Облигация. Заполняется только для облигаций (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = bond).
       
      .tinkoff.public.invest.api.contract.v1.AssetBond bond = 4;
      Specified by:
      getBond in interface AssetSecurityOrBuilder
      Returns:
      The bond.
    • getBondOrBuilder

      public AssetBondOrBuilder getBondOrBuilder()
      Облигация. Заполняется только для облигаций (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = bond).
       
      .tinkoff.public.invest.api.contract.v1.AssetBond bond = 4;
      Specified by:
      getBondOrBuilder in interface AssetSecurityOrBuilder
    • hasSp

      public boolean hasSp()
      Структурная нота. Заполняется только для структурных продуктов (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = sp).
       
      .tinkoff.public.invest.api.contract.v1.AssetStructuredProduct sp = 5;
      Specified by:
      hasSp in interface AssetSecurityOrBuilder
      Returns:
      Whether the sp field is set.
    • getSp

      public AssetStructuredProduct getSp()
      Структурная нота. Заполняется только для структурных продуктов (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = sp).
       
      .tinkoff.public.invest.api.contract.v1.AssetStructuredProduct sp = 5;
      Specified by:
      getSp in interface AssetSecurityOrBuilder
      Returns:
      The sp.
    • getSpOrBuilder

      public AssetStructuredProductOrBuilder getSpOrBuilder()
      Структурная нота. Заполняется только для структурных продуктов (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = sp).
       
      .tinkoff.public.invest.api.contract.v1.AssetStructuredProduct sp = 5;
      Specified by:
      getSpOrBuilder in interface AssetSecurityOrBuilder
    • hasEtf

      public boolean hasEtf()
       Фонд. Заполняется только для фондов (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = etf).
       
      .tinkoff.public.invest.api.contract.v1.AssetEtf etf = 6;
      Specified by:
      hasEtf in interface AssetSecurityOrBuilder
      Returns:
      Whether the etf field is set.
    • getEtf

      public AssetEtf getEtf()
       Фонд. Заполняется только для фондов (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = etf).
       
      .tinkoff.public.invest.api.contract.v1.AssetEtf etf = 6;
      Specified by:
      getEtf in interface AssetSecurityOrBuilder
      Returns:
      The etf.
    • getEtfOrBuilder

      public AssetEtfOrBuilder getEtfOrBuilder()
       Фонд. Заполняется только для фондов (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = etf).
       
      .tinkoff.public.invest.api.contract.v1.AssetEtf etf = 6;
      Specified by:
      getEtfOrBuilder in interface AssetSecurityOrBuilder
    • hasClearingCertificate

      public boolean hasClearingCertificate()
       Клиринговый сертификат участия. Заполняется только для клиринговых сертификатов (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = clearing_certificate).
       
      .tinkoff.public.invest.api.contract.v1.AssetClearingCertificate clearing_certificate = 7;
      Specified by:
      hasClearingCertificate in interface AssetSecurityOrBuilder
      Returns:
      Whether the clearingCertificate field is set.
    • getClearingCertificate

      public AssetClearingCertificate getClearingCertificate()
       Клиринговый сертификат участия. Заполняется только для клиринговых сертификатов (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = clearing_certificate).
       
      .tinkoff.public.invest.api.contract.v1.AssetClearingCertificate clearing_certificate = 7;
      Specified by:
      getClearingCertificate in interface AssetSecurityOrBuilder
      Returns:
      The clearingCertificate.
    • getClearingCertificateOrBuilder

      public AssetClearingCertificateOrBuilder getClearingCertificateOrBuilder()
       Клиринговый сертификат участия. Заполняется только для клиринговых сертификатов (тип актива asset.type = "ASSET_TYPE_SECURITY" и security.type = clearing_certificate).
       
      .tinkoff.public.invest.api.contract.v1.AssetClearingCertificate clearing_certificate = 7;
      Specified by:
      getClearingCertificateOrBuilder in interface AssetSecurityOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AssetSecurity parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSecurity parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSecurity parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSecurity parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSecurity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSecurity parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSecurity parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AssetSecurity parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AssetSecurity parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AssetSecurity parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AssetSecurity parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AssetSecurity parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AssetSecurity.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AssetSecurity.Builder newBuilder()
    • newBuilder

      public static AssetSecurity.Builder newBuilder(AssetSecurity prototype)
    • toBuilder

      public AssetSecurity.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AssetSecurity.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static AssetSecurity getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AssetSecurity> parser()
    • getParserForType

      public com.google.protobuf.Parser<AssetSecurity> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public AssetSecurity getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder