Package ru.tinkoff.piapi.contract.v1
Enum CandleInterval
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<CandleInterval>
public enum CandleInterval
extends Enum<CandleInterval>
implements com.google.protobuf.ProtocolMessageEnum
Интервал свечей.Protobuf enum
tinkoff.public.invest.api.contract.v1.CandleInterval-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription1 минута.15 минут.5 минут.1 день.1 час.Интервал не определён. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int1 минута.static final int15 минут.static final int5 минут.static final int1 день.static final int1 час.static final intИнтервал не определён. -
Method Summary
Modifier and TypeMethodDescriptionstatic CandleIntervalforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<CandleInterval>static CandleIntervalvalueOf(int value) Deprecated.static CandleIntervalvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static CandleIntervalReturns the enum constant of this type with the specified name.static CandleInterval[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CANDLE_INTERVAL_UNSPECIFIED
Интервал не определён.
CANDLE_INTERVAL_UNSPECIFIED = 0; -
CANDLE_INTERVAL_1_MIN
1 минута.
CANDLE_INTERVAL_1_MIN = 1; -
CANDLE_INTERVAL_5_MIN
5 минут.
CANDLE_INTERVAL_5_MIN = 2; -
CANDLE_INTERVAL_15_MIN
15 минут.
CANDLE_INTERVAL_15_MIN = 3; -
CANDLE_INTERVAL_HOUR
1 час.
CANDLE_INTERVAL_HOUR = 4; -
CANDLE_INTERVAL_DAY
1 день.
CANDLE_INTERVAL_DAY = 5; -
UNRECOGNIZED
-
-
Field Details
-
CANDLE_INTERVAL_UNSPECIFIED_VALUE
public static final int CANDLE_INTERVAL_UNSPECIFIED_VALUEИнтервал не определён.
CANDLE_INTERVAL_UNSPECIFIED = 0;- See Also:
-
CANDLE_INTERVAL_1_MIN_VALUE
public static final int CANDLE_INTERVAL_1_MIN_VALUE1 минута.
CANDLE_INTERVAL_1_MIN = 1;- See Also:
-
CANDLE_INTERVAL_5_MIN_VALUE
public static final int CANDLE_INTERVAL_5_MIN_VALUE5 минут.
CANDLE_INTERVAL_5_MIN = 2;- See Also:
-
CANDLE_INTERVAL_15_MIN_VALUE
public static final int CANDLE_INTERVAL_15_MIN_VALUE15 минут.
CANDLE_INTERVAL_15_MIN = 3;- See Also:
-
CANDLE_INTERVAL_HOUR_VALUE
public static final int CANDLE_INTERVAL_HOUR_VALUE1 час.
CANDLE_INTERVAL_HOUR = 4;- See Also:
-
CANDLE_INTERVAL_DAY_VALUE
public static final int CANDLE_INTERVAL_DAY_VALUE1 день.
CANDLE_INTERVAL_DAY = 5;- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException- if the argument is null
-