Enum AssetType

java.lang.Object
java.lang.Enum<AssetType>
ru.tinkoff.piapi.contract.v1.AssetType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<AssetType>

public enum AssetType extends Enum<AssetType> implements com.google.protobuf.ProtocolMessageEnum
Тип актива.
 
Protobuf enum tinkoff.public.invest.api.contract.v1.AssetType
  • Enum Constant Details

    • ASSET_TYPE_UNSPECIFIED

      public static final AssetType ASSET_TYPE_UNSPECIFIED
      Тип не определён.
       
      ASSET_TYPE_UNSPECIFIED = 0;
    • ASSET_TYPE_CURRENCY

      public static final AssetType ASSET_TYPE_CURRENCY
      Валюта.
       
      ASSET_TYPE_CURRENCY = 1;
    • ASSET_TYPE_COMMODITY

      public static final AssetType ASSET_TYPE_COMMODITY
      Товар.
       
      ASSET_TYPE_COMMODITY = 2;
    • ASSET_TYPE_INDEX

      public static final AssetType ASSET_TYPE_INDEX
      Индекс.
       
      ASSET_TYPE_INDEX = 3;
    • ASSET_TYPE_SECURITY

      public static final AssetType ASSET_TYPE_SECURITY
      Ценная бумага.
       
      ASSET_TYPE_SECURITY = 4;
    • UNRECOGNIZED

      public static final AssetType UNRECOGNIZED
  • Field Details

    • ASSET_TYPE_UNSPECIFIED_VALUE

      public static final int ASSET_TYPE_UNSPECIFIED_VALUE
      Тип не определён.
       
      ASSET_TYPE_UNSPECIFIED = 0;
      See Also:
    • ASSET_TYPE_CURRENCY_VALUE

      public static final int ASSET_TYPE_CURRENCY_VALUE
      Валюта.
       
      ASSET_TYPE_CURRENCY = 1;
      See Also:
    • ASSET_TYPE_COMMODITY_VALUE

      public static final int ASSET_TYPE_COMMODITY_VALUE
      Товар.
       
      ASSET_TYPE_COMMODITY = 2;
      See Also:
    • ASSET_TYPE_INDEX_VALUE

      public static final int ASSET_TYPE_INDEX_VALUE
      Индекс.
       
      ASSET_TYPE_INDEX = 3;
      See Also:
    • ASSET_TYPE_SECURITY_VALUE

      public static final int ASSET_TYPE_SECURITY_VALUE
      Ценная бумага.
       
      ASSET_TYPE_SECURITY = 4;
      See Also:
  • Method Details

    • values

      public static AssetType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AssetType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static AssetType valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static AssetType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<AssetType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static AssetType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null