// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ordercenter.proto

package com.ywt.gapi.ordercenter;

/**
 * Protobuf enum {@code com.ywt.gapi.ordercenter.PaymentChannelEnum}
 */
public enum PaymentChannelEnum
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * <code>UNKNOW = 0;</code>
   */
  UNKNOW(0),
  /**
   * <pre>
   *微信
   * </pre>
   *
   * <code>WeChat = 1;</code>
   */
  WeChat(1),
  /**
   * <pre>
   *支付宝
   * </pre>
   *
   * <code>AliPay = 2;</code>
   */
  AliPay(2),
  /**
   * <pre>
   *现金
   * </pre>
   *
   * <code>Cash = 3;</code>
   */
  Cash(3),
  /**
   * <pre>
   *诊疗卡
   * </pre>
   *
   * <code>MedicalCard = 4;</code>
   */
  MedicalCard(4),
  /**
   * <pre>
   *pos机
   * </pre>
   *
   * <code>POS = 5;</code>
   */
  POS(5),
  /**
   * <pre>
   *无须支付
   * </pre>
   *
   * <code>FREE = 6;</code>
   */
  FREE(6),
  /**
   * <pre>
   *医保
   * </pre>
   *
   * <code>MedicalInsurance = 7;</code>
   */
  MedicalInsurance(7),
  UNRECOGNIZED(-1),
  ;

  /**
   * <code>UNKNOW = 0;</code>
   */
  public static final int UNKNOW_VALUE = 0;
  /**
   * <pre>
   *微信
   * </pre>
   *
   * <code>WeChat = 1;</code>
   */
  public static final int WeChat_VALUE = 1;
  /**
   * <pre>
   *支付宝
   * </pre>
   *
   * <code>AliPay = 2;</code>
   */
  public static final int AliPay_VALUE = 2;
  /**
   * <pre>
   *现金
   * </pre>
   *
   * <code>Cash = 3;</code>
   */
  public static final int Cash_VALUE = 3;
  /**
   * <pre>
   *诊疗卡
   * </pre>
   *
   * <code>MedicalCard = 4;</code>
   */
  public static final int MedicalCard_VALUE = 4;
  /**
   * <pre>
   *pos机
   * </pre>
   *
   * <code>POS = 5;</code>
   */
  public static final int POS_VALUE = 5;
  /**
   * <pre>
   *无须支付
   * </pre>
   *
   * <code>FREE = 6;</code>
   */
  public static final int FREE_VALUE = 6;
  /**
   * <pre>
   *医保
   * </pre>
   *
   * <code>MedicalInsurance = 7;</code>
   */
  public static final int MedicalInsurance_VALUE = 7;


  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 numeric wire value of the corresponding enum entry.
   * @return The enum associated with the given numeric wire value.
   * @deprecated Use {@link #forNumber(int)} instead.
   */
  @java.lang.Deprecated
  public static PaymentChannelEnum valueOf(int value) {
    return forNumber(value);
  }

  /**
   * @param value The numeric wire value of the corresponding enum entry.
   * @return The enum associated with the given numeric wire value.
   */
  public static PaymentChannelEnum forNumber(int value) {
    switch (value) {
      case 0: return UNKNOW;
      case 1: return WeChat;
      case 2: return AliPay;
      case 3: return Cash;
      case 4: return MedicalCard;
      case 5: return POS;
      case 6: return FREE;
      case 7: return MedicalInsurance;
      default: return null;
    }
  }

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

  public final com.google.protobuf.Descriptors.EnumValueDescriptor
      getValueDescriptor() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalStateException(
          "Can't get the descriptor of an unrecognized enum value.");
    }
    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.ywt.gapi.ordercenter.OrderCenterProto.getDescriptor().getEnumTypes().get(0);
  }

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

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

  // @@protoc_insertion_point(enum_scope:com.ywt.gapi.ordercenter.PaymentChannelEnum)
}

