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

main.java.com.streamlayer.sports.common.EventStatus 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/sports/sports_common.proto

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

/**
 * Protobuf enum {@code streamlayer.sports.EventStatus}
 */
public enum EventStatus
    implements com.google.protobuf.Internal.EnumLite {
  /**
   * EVENT_STATUS_UNSET = 0;
   */
  EVENT_STATUS_UNSET(0),
  /**
   * EVENT_STATUS_PREGAME = 1;
   */
  EVENT_STATUS_PREGAME(1),
  /**
   * EVENT_STATUS_ACTIVE = 2;
   */
  EVENT_STATUS_ACTIVE(2),
  /**
   * EVENT_STATUS_BREAK = 3;
   */
  EVENT_STATUS_BREAK(3),
  /**
   * EVENT_STATUS_OVERTIME = 4;
   */
  EVENT_STATUS_OVERTIME(4),
  /**
   * EVENT_STATUS_SHOOTOUTS = 5;
   */
  EVENT_STATUS_SHOOTOUTS(5),
  /**
   * EVENT_STATUS_POSTGAME = 6;
   */
  EVENT_STATUS_POSTGAME(6),
  /**
   * EVENT_STATUS_CANCELLED = 7;
   */
  EVENT_STATUS_CANCELLED(7),
  UNRECOGNIZED(-1),
  ;

  /**
   * EVENT_STATUS_UNSET = 0;
   */
  public static final int EVENT_STATUS_UNSET_VALUE = 0;
  /**
   * EVENT_STATUS_PREGAME = 1;
   */
  public static final int EVENT_STATUS_PREGAME_VALUE = 1;
  /**
   * EVENT_STATUS_ACTIVE = 2;
   */
  public static final int EVENT_STATUS_ACTIVE_VALUE = 2;
  /**
   * EVENT_STATUS_BREAK = 3;
   */
  public static final int EVENT_STATUS_BREAK_VALUE = 3;
  /**
   * EVENT_STATUS_OVERTIME = 4;
   */
  public static final int EVENT_STATUS_OVERTIME_VALUE = 4;
  /**
   * EVENT_STATUS_SHOOTOUTS = 5;
   */
  public static final int EVENT_STATUS_SHOOTOUTS_VALUE = 5;
  /**
   * EVENT_STATUS_POSTGAME = 6;
   */
  public static final int EVENT_STATUS_POSTGAME_VALUE = 6;
  /**
   * EVENT_STATUS_CANCELLED = 7;
   */
  public static final int EVENT_STATUS_CANCELLED_VALUE = 7;


  @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 EventStatus valueOf(int value) {
    return forNumber(value);
  }

  public static EventStatus forNumber(int value) {
    switch (value) {
      case 0: return EVENT_STATUS_UNSET;
      case 1: return EVENT_STATUS_PREGAME;
      case 2: return EVENT_STATUS_ACTIVE;
      case 3: return EVENT_STATUS_BREAK;
      case 4: return EVENT_STATUS_OVERTIME;
      case 5: return EVENT_STATUS_SHOOTOUTS;
      case 6: return EVENT_STATUS_POSTGAME;
      case 7: return EVENT_STATUS_CANCELLED;
      default: return null;
    }
  }

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

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

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

  private final int value;

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

  // @@protoc_insertion_point(enum_scope:streamlayer.sports.EventStatus)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy