All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.piapi.contract.v1.AccessLevel Maven / Gradle / Ivy

There is a newer version: 1.25
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: users.proto

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Уровень доступа к счёту.
 * 
* * Protobuf enum {@code tinkoff.public.invest.api.contract.v1.AccessLevel} */ public enum AccessLevel implements com.google.protobuf.ProtocolMessageEnum { /** *
   *Уровень доступа не определён.
   * 
* * ACCOUNT_ACCESS_LEVEL_UNSPECIFIED = 0; */ ACCOUNT_ACCESS_LEVEL_UNSPECIFIED(0), /** *
   *Полный доступ к счёту.
   * 
* * ACCOUNT_ACCESS_LEVEL_FULL_ACCESS = 1; */ ACCOUNT_ACCESS_LEVEL_FULL_ACCESS(1), /** *
   *Доступ с уровнем прав "только чтение".
   * 
* * ACCOUNT_ACCESS_LEVEL_READ_ONLY = 2; */ ACCOUNT_ACCESS_LEVEL_READ_ONLY(2), /** *
   *Доступ отсутствует.
   * 
* * ACCOUNT_ACCESS_LEVEL_NO_ACCESS = 3; */ ACCOUNT_ACCESS_LEVEL_NO_ACCESS(3), UNRECOGNIZED(-1), ; /** *
   *Уровень доступа не определён.
   * 
* * ACCOUNT_ACCESS_LEVEL_UNSPECIFIED = 0; */ public static final int ACCOUNT_ACCESS_LEVEL_UNSPECIFIED_VALUE = 0; /** *
   *Полный доступ к счёту.
   * 
* * ACCOUNT_ACCESS_LEVEL_FULL_ACCESS = 1; */ public static final int ACCOUNT_ACCESS_LEVEL_FULL_ACCESS_VALUE = 1; /** *
   *Доступ с уровнем прав "только чтение".
   * 
* * ACCOUNT_ACCESS_LEVEL_READ_ONLY = 2; */ public static final int ACCOUNT_ACCESS_LEVEL_READ_ONLY_VALUE = 2; /** *
   *Доступ отсутствует.
   * 
* * ACCOUNT_ACCESS_LEVEL_NO_ACCESS = 3; */ public static final int ACCOUNT_ACCESS_LEVEL_NO_ACCESS_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AccessLevel valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static AccessLevel forNumber(int value) { switch (value) { case 0: return ACCOUNT_ACCESS_LEVEL_UNSPECIFIED; case 1: return ACCOUNT_ACCESS_LEVEL_FULL_ACCESS; case 2: return ACCOUNT_ACCESS_LEVEL_READ_ONLY; case 3: return ACCOUNT_ACCESS_LEVEL_NO_ACCESS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AccessLevel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AccessLevel findValueByNumber(int number) { return AccessLevel.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Users.getDescriptor().getEnumTypes().get(2); } private static final AccessLevel[] VALUES = values(); public static AccessLevel valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private AccessLevel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:tinkoff.public.invest.api.contract.v1.AccessLevel) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy