/**
 * Autogenerated by Thrift Compiler (0.9.1)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package org.apache.curator.generated;


import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;

public enum PathChildrenCacheEventType implements org.apache.thrift.TEnum {
  CHILD_ADDED(0),
  CHILD_UPDATED(1),
  CHILD_REMOVED(2),
  CONNECTION_SUSPENDED(3),
  CONNECTION_RECONNECTED(4),
  CONNECTION_LOST(5),
  INITIALIZED(6);

  private final int value;

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

  /**
   * Get the integer value of this enum value, as defined in the Thrift IDL.
   */
  public int getValue() {
    return value;
  }

  /**
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
   * @return null if the value is not found.
   */
  public static PathChildrenCacheEventType findByValue(int value) { 
    switch (value) {
      case 0:
        return CHILD_ADDED;
      case 1:
        return CHILD_UPDATED;
      case 2:
        return CHILD_REMOVED;
      case 3:
        return CONNECTION_SUSPENDED;
      case 4:
        return CONNECTION_RECONNECTED;
      case 5:
        return CONNECTION_LOST;
      case 6:
        return INITIALIZED;
      default:
        return null;
    }
  }
}
