// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/framework/model.proto

package org.tensorflow.proto.data.model;

/**
 * <pre>
 * Class of a node in the performance model.
 * </pre>
 *
 * Protobuf enum {@code tensorflow.data.model.NodeClass}
 */
public enum NodeClass
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * <code>UNKNOWN = 0;</code>
   */
  UNKNOWN(0),
  /**
   * <code>INTERLEAVE_MANY = 1;</code>
   */
  INTERLEAVE_MANY(1),
  /**
   * <code>ASYNC_INTERLEAVE_MANY = 2;</code>
   */
  ASYNC_INTERLEAVE_MANY(2),
  /**
   * <code>KNOWN_RATIO = 3;</code>
   */
  KNOWN_RATIO(3),
  /**
   * <code>ASYNC_KNOWN_RATIO = 4;</code>
   */
  ASYNC_KNOWN_RATIO(4),
  /**
   * <code>UNKNOWN_RATIO = 5;</code>
   */
  UNKNOWN_RATIO(5),
  UNRECOGNIZED(-1),
  ;

  /**
   * <code>UNKNOWN = 0;</code>
   */
  public static final int UNKNOWN_VALUE = 0;
  /**
   * <code>INTERLEAVE_MANY = 1;</code>
   */
  public static final int INTERLEAVE_MANY_VALUE = 1;
  /**
   * <code>ASYNC_INTERLEAVE_MANY = 2;</code>
   */
  public static final int ASYNC_INTERLEAVE_MANY_VALUE = 2;
  /**
   * <code>KNOWN_RATIO = 3;</code>
   */
  public static final int KNOWN_RATIO_VALUE = 3;
  /**
   * <code>ASYNC_KNOWN_RATIO = 4;</code>
   */
  public static final int ASYNC_KNOWN_RATIO_VALUE = 4;
  /**
   * <code>UNKNOWN_RATIO = 5;</code>
   */
  public static final int UNKNOWN_RATIO_VALUE = 5;


  public final int getNumber() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalArgumentException(
          "Can't get the number of an unknown enum value.");
    }
    return value;
  }

  /**
   * @deprecated Use {@link #forNumber(int)} instead.
   */
  @java.lang.Deprecated
  public static NodeClass valueOf(int value) {
    return forNumber(value);
  }

  public static NodeClass forNumber(int value) {
    switch (value) {
      case 0: return UNKNOWN;
      case 1: return INTERLEAVE_MANY;
      case 2: return ASYNC_INTERLEAVE_MANY;
      case 3: return KNOWN_RATIO;
      case 4: return ASYNC_KNOWN_RATIO;
      case 5: return UNKNOWN_RATIO;
      default: return null;
    }
  }

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

  public final com.google.protobuf.Descriptors.EnumValueDescriptor
      getValueDescriptor() {
    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 org.tensorflow.proto.data.model.ModelProtos.getDescriptor().getEnumTypes().get(0);
  }

  private static final NodeClass[] VALUES = values();

  public static NodeClass 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 NodeClass(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:tensorflow.data.model.NodeClass)
}

