// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/talent/v4beta1/common.proto

package com.google.cloud.talent.v4beta1;

/**
 *
 *
 * <pre>
 * Method for commute.
 * </pre>
 *
 * Protobuf enum {@code google.cloud.talent.v4beta1.CommuteMethod}
 */
public enum CommuteMethod implements com.google.protobuf.ProtocolMessageEnum {
  /**
   *
   *
   * <pre>
   * Commute method isn't specified.
   * </pre>
   *
   * <code>COMMUTE_METHOD_UNSPECIFIED = 0;</code>
   */
  COMMUTE_METHOD_UNSPECIFIED(0),
  /**
   *
   *
   * <pre>
   * Commute time is calculated based on driving time.
   * </pre>
   *
   * <code>DRIVING = 1;</code>
   */
  DRIVING(1),
  /**
   *
   *
   * <pre>
   * Commute time is calculated based on public transit including bus, metro,
   * subway, etc.
   * </pre>
   *
   * <code>TRANSIT = 2;</code>
   */
  TRANSIT(2),
  /**
   *
   *
   * <pre>
   * Commute time is calculated based on walking time.
   * </pre>
   *
   * <code>WALKING = 3;</code>
   */
  WALKING(3),
  /**
   *
   *
   * <pre>
   * Commute time is calculated based on biking time.
   * </pre>
   *
   * <code>CYCLING = 4;</code>
   */
  CYCLING(4),
  UNRECOGNIZED(-1),
  ;

  /**
   *
   *
   * <pre>
   * Commute method isn't specified.
   * </pre>
   *
   * <code>COMMUTE_METHOD_UNSPECIFIED = 0;</code>
   */
  public static final int COMMUTE_METHOD_UNSPECIFIED_VALUE = 0;
  /**
   *
   *
   * <pre>
   * Commute time is calculated based on driving time.
   * </pre>
   *
   * <code>DRIVING = 1;</code>
   */
  public static final int DRIVING_VALUE = 1;
  /**
   *
   *
   * <pre>
   * Commute time is calculated based on public transit including bus, metro,
   * subway, etc.
   * </pre>
   *
   * <code>TRANSIT = 2;</code>
   */
  public static final int TRANSIT_VALUE = 2;
  /**
   *
   *
   * <pre>
   * Commute time is calculated based on walking time.
   * </pre>
   *
   * <code>WALKING = 3;</code>
   */
  public static final int WALKING_VALUE = 3;
  /**
   *
   *
   * <pre>
   * Commute time is calculated based on biking time.
   * </pre>
   *
   * <code>CYCLING = 4;</code>
   */
  public static final int CYCLING_VALUE = 4;

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

  public static CommuteMethod forNumber(int value) {
    switch (value) {
      case 0:
        return COMMUTE_METHOD_UNSPECIFIED;
      case 1:
        return DRIVING;
      case 2:
        return TRANSIT;
      case 3:
        return WALKING;
      case 4:
        return CYCLING;
      default:
        return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap<CommuteMethod> internalGetValueMap() {
    return internalValueMap;
  }

  private static final com.google.protobuf.Internal.EnumLiteMap<CommuteMethod> internalValueMap =
      new com.google.protobuf.Internal.EnumLiteMap<CommuteMethod>() {
        public CommuteMethod findValueByNumber(int number) {
          return CommuteMethod.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 com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(10);
  }

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

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

  // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CommuteMethod)
}
