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

package org.tensorflow.proto.framework;

/**
 * Protobuf enum {@code tensorflow.DataClass}
 */
public enum DataClass
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * <pre>
   * Unknown data class, used (implicitly) for legacy data. Will not be
   * processed by data ingestion pipelines.
   * </pre>
   *
   * <code>DATA_CLASS_UNKNOWN = 0;</code>
   */
  DATA_CLASS_UNKNOWN(0),
  /**
   * <pre>
   * Scalar time series. Each `Value` for the corresponding tag must have
   * `tensor` set to a rank-0 tensor of type `DT_FLOAT` (float32).
   * </pre>
   *
   * <code>DATA_CLASS_SCALAR = 1;</code>
   */
  DATA_CLASS_SCALAR(1),
  /**
   * <pre>
   * Tensor time series. Each `Value` for the corresponding tag must have
   * `tensor` set. The tensor value is arbitrary, but should be small to
   * accommodate direct storage in database backends: an upper bound of a few
   * kilobytes is a reasonable rule of thumb.
   * </pre>
   *
   * <code>DATA_CLASS_TENSOR = 2;</code>
   */
  DATA_CLASS_TENSOR(2),
  /**
   * <pre>
   * Blob sequence time series. Each `Value` for the corresponding tag must
   * have `tensor` set to a rank-1 tensor of bytestring dtype.
   * </pre>
   *
   * <code>DATA_CLASS_BLOB_SEQUENCE = 3;</code>
   */
  DATA_CLASS_BLOB_SEQUENCE(3),
  UNRECOGNIZED(-1),
  ;

  /**
   * <pre>
   * Unknown data class, used (implicitly) for legacy data. Will not be
   * processed by data ingestion pipelines.
   * </pre>
   *
   * <code>DATA_CLASS_UNKNOWN = 0;</code>
   */
  public static final int DATA_CLASS_UNKNOWN_VALUE = 0;
  /**
   * <pre>
   * Scalar time series. Each `Value` for the corresponding tag must have
   * `tensor` set to a rank-0 tensor of type `DT_FLOAT` (float32).
   * </pre>
   *
   * <code>DATA_CLASS_SCALAR = 1;</code>
   */
  public static final int DATA_CLASS_SCALAR_VALUE = 1;
  /**
   * <pre>
   * Tensor time series. Each `Value` for the corresponding tag must have
   * `tensor` set. The tensor value is arbitrary, but should be small to
   * accommodate direct storage in database backends: an upper bound of a few
   * kilobytes is a reasonable rule of thumb.
   * </pre>
   *
   * <code>DATA_CLASS_TENSOR = 2;</code>
   */
  public static final int DATA_CLASS_TENSOR_VALUE = 2;
  /**
   * <pre>
   * Blob sequence time series. Each `Value` for the corresponding tag must
   * have `tensor` set to a rank-1 tensor of bytestring dtype.
   * </pre>
   *
   * <code>DATA_CLASS_BLOB_SEQUENCE = 3;</code>
   */
  public static final int DATA_CLASS_BLOB_SEQUENCE_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;
  }

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

  public static DataClass forNumber(int value) {
    switch (value) {
      case 0: return DATA_CLASS_UNKNOWN;
      case 1: return DATA_CLASS_SCALAR;
      case 2: return DATA_CLASS_TENSOR;
      case 3: return DATA_CLASS_BLOB_SEQUENCE;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap<DataClass>
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      DataClass> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<DataClass>() {
          public DataClass findValueByNumber(int number) {
            return DataClass.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.framework.SummaryProtos.getDescriptor().getEnumTypes().get(0);
  }

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

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

  // @@protoc_insertion_point(enum_scope:tensorflow.DataClass)
}

