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

main.java.com.streamlayer.inplay.common.SelectionStatus Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/inplay/common/inplay.common.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.inplay.common;

/**
 * Protobuf enum {@code streamlayer.inplay.common.SelectionStatus}
 */
public enum SelectionStatus
    implements com.google.protobuf.Internal.EnumLite {
  /**
   * SELECTION_STATUS_UNPRICED = 0;
   */
  SELECTION_STATUS_UNPRICED(0),
  /**
   * SELECTION_STATUS_TRADING = 1;
   */
  SELECTION_STATUS_TRADING(1),
  /**
   * SELECTION_STATUS_SUSPENDED = 2;
   */
  SELECTION_STATUS_SUSPENDED(2),
  /**
   * SELECTION_STATUS_NON_RUNNER = 3;
   */
  SELECTION_STATUS_NON_RUNNER(3),
  UNRECOGNIZED(-1),
  ;

  /**
   * SELECTION_STATUS_UNPRICED = 0;
   */
  public static final int SELECTION_STATUS_UNPRICED_VALUE = 0;
  /**
   * SELECTION_STATUS_TRADING = 1;
   */
  public static final int SELECTION_STATUS_TRADING_VALUE = 1;
  /**
   * SELECTION_STATUS_SUSPENDED = 2;
   */
  public static final int SELECTION_STATUS_SUSPENDED_VALUE = 2;
  /**
   * SELECTION_STATUS_NON_RUNNER = 3;
   */
  public static final int SELECTION_STATUS_NON_RUNNER_VALUE = 3;


  @java.lang.Override
  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 number of the enum to look for.
   * @return The enum associated with the given number.
   * @deprecated Use {@link #forNumber(int)} instead.
   */
  @java.lang.Deprecated
  public static SelectionStatus valueOf(int value) {
    return forNumber(value);
  }

  public static SelectionStatus forNumber(int value) {
    switch (value) {
      case 0: return SELECTION_STATUS_UNPRICED;
      case 1: return SELECTION_STATUS_TRADING;
      case 2: return SELECTION_STATUS_SUSPENDED;
      case 3: return SELECTION_STATUS_NON_RUNNER;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      SelectionStatus> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          @java.lang.Override
          public SelectionStatus findValueByNumber(int number) {
            return SelectionStatus.forNumber(number);
          }
        };

  public static com.google.protobuf.Internal.EnumVerifier 
      internalGetVerifier() {
    return SelectionStatusVerifier.INSTANCE;
  }

  private static final class SelectionStatusVerifier implements 
       com.google.protobuf.Internal.EnumVerifier { 
          static final com.google.protobuf.Internal.EnumVerifier           INSTANCE = new SelectionStatusVerifier();
          @java.lang.Override
          public boolean isInRange(int number) {
            return SelectionStatus.forNumber(number) != null;
          }
        };

  private final int value;

  private SelectionStatus(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:streamlayer.inplay.common.SelectionStatus)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy