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

package com.ywt.gapi.ordercenter;

/**
 * <pre>
 *创建订单请求消息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.ordercenter.CreateOrderRequest}
 */
public final class CreateOrderRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.ordercenter.CreateOrderRequest)
    CreateOrderRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CreateOrderRequest.newBuilder() to construct.
  private CreateOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CreateOrderRequest() {
    patientMobile_ = "";
    remark_ = "";
    title_ = "";
    paymentCallbackMethod_ = "";
    statusChangedCallbackMethod_ = "";
    custom_ = "";
    payCode_ = "";
    payBody_ = "";
    refundNotifyRestUrl_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new CreateOrderRequest();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CreateOrderRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {

            userId_ = input.readInt32();
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            patientMobile_ = s;
            break;
          }
          case 24: {

            amount_ = input.readInt32();
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

            remark_ = s;
            break;
          }
          case 40: {

            orderType_ = input.readInt32();
            break;
          }
          case 48: {

            bizId_ = input.readInt32();
            break;
          }
          case 56: {

            doctorId_ = input.readInt32();
            break;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();

            title_ = s;
            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

            paymentCallbackMethod_ = s;
            break;
          }
          case 82: {
            java.lang.String s = input.readStringRequireUtf8();

            statusChangedCallbackMethod_ = s;
            break;
          }
          case 90: {
            java.lang.String s = input.readStringRequireUtf8();

            custom_ = s;
            break;
          }
          case 98: {
            java.lang.String s = input.readStringRequireUtf8();

            payCode_ = s;
            break;
          }
          case 106: {
            java.lang.String s = input.readStringRequireUtf8();

            payBody_ = s;
            break;
          }
          case 112: {

            terminal_ = input.readInt32();
            break;
          }
          case 122: {
            java.lang.String s = input.readStringRequireUtf8();

            refundNotifyRestUrl_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_CreateOrderRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_CreateOrderRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.ordercenter.CreateOrderRequest.class, com.ywt.gapi.ordercenter.CreateOrderRequest.Builder.class);
  }

  public static final int USERID_FIELD_NUMBER = 1;
  private int userId_;
  /**
   * <code>int32 userId = 1;</code>
   * @return The userId.
   */
  @java.lang.Override
  public int getUserId() {
    return userId_;
  }

  public static final int PATIENTMOBILE_FIELD_NUMBER = 2;
  private volatile java.lang.Object patientMobile_;
  /**
   * <code>string patientMobile = 2;</code>
   * @return The patientMobile.
   */
  @java.lang.Override
  public java.lang.String getPatientMobile() {
    java.lang.Object ref = patientMobile_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      patientMobile_ = s;
      return s;
    }
  }
  /**
   * <code>string patientMobile = 2;</code>
   * @return The bytes for patientMobile.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientMobileBytes() {
    java.lang.Object ref = patientMobile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientMobile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AMOUNT_FIELD_NUMBER = 3;
  private int amount_;
  /**
   * <pre>
   *单位：分
   * </pre>
   *
   * <code>int32 amount = 3;</code>
   * @return The amount.
   */
  @java.lang.Override
  public int getAmount() {
    return amount_;
  }

  public static final int REMARK_FIELD_NUMBER = 4;
  private volatile java.lang.Object remark_;
  /**
   * <code>string remark = 4;</code>
   * @return The remark.
   */
  @java.lang.Override
  public java.lang.String getRemark() {
    java.lang.Object ref = remark_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      remark_ = s;
      return s;
    }
  }
  /**
   * <code>string remark = 4;</code>
   * @return The bytes for remark.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRemarkBytes() {
    java.lang.Object ref = remark_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      remark_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERTYPE_FIELD_NUMBER = 5;
  private int orderType_;
  /**
   * <code>int32 orderType = 5;</code>
   * @return The orderType.
   */
  @java.lang.Override
  public int getOrderType() {
    return orderType_;
  }

  public static final int BIZID_FIELD_NUMBER = 6;
  private int bizId_;
  /**
   * <code>int32 bizId = 6;</code>
   * @return The bizId.
   */
  @java.lang.Override
  public int getBizId() {
    return bizId_;
  }

  public static final int DOCTORID_FIELD_NUMBER = 7;
  private int doctorId_;
  /**
   * <code>int32 doctorId = 7;</code>
   * @return The doctorId.
   */
  @java.lang.Override
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int TITLE_FIELD_NUMBER = 8;
  private volatile java.lang.Object title_;
  /**
   * <code>string title = 8;</code>
   * @return The title.
   */
  @java.lang.Override
  public java.lang.String getTitle() {
    java.lang.Object ref = title_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      title_ = s;
      return s;
    }
  }
  /**
   * <code>string title = 8;</code>
   * @return The bytes for title.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTitleBytes() {
    java.lang.Object ref = title_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      title_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAYMENTCALLBACKMETHOD_FIELD_NUMBER = 9;
  private volatile java.lang.Object paymentCallbackMethod_;
  /**
   * <pre>
   *支付成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
   * </pre>
   *
   * <code>string paymentCallbackMethod = 9;</code>
   * @return The paymentCallbackMethod.
   */
  @java.lang.Override
  public java.lang.String getPaymentCallbackMethod() {
    java.lang.Object ref = paymentCallbackMethod_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      paymentCallbackMethod_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *支付成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
   * </pre>
   *
   * <code>string paymentCallbackMethod = 9;</code>
   * @return The bytes for paymentCallbackMethod.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPaymentCallbackMethodBytes() {
    java.lang.Object ref = paymentCallbackMethod_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      paymentCallbackMethod_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATUSCHANGEDCALLBACKMETHOD_FIELD_NUMBER = 10;
  private volatile java.lang.Object statusChangedCallbackMethod_;
  /**
   * <code>string statusChangedCallbackMethod = 10;</code>
   * @return The statusChangedCallbackMethod.
   */
  @java.lang.Override
  public java.lang.String getStatusChangedCallbackMethod() {
    java.lang.Object ref = statusChangedCallbackMethod_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      statusChangedCallbackMethod_ = s;
      return s;
    }
  }
  /**
   * <code>string statusChangedCallbackMethod = 10;</code>
   * @return The bytes for statusChangedCallbackMethod.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStatusChangedCallbackMethodBytes() {
    java.lang.Object ref = statusChangedCallbackMethod_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      statusChangedCallbackMethod_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CUSTOM_FIELD_NUMBER = 11;
  private volatile java.lang.Object custom_;
  /**
   * <pre>
   *自定义数据
   * </pre>
   *
   * <code>string custom = 11;</code>
   * @return The custom.
   */
  @java.lang.Override
  public java.lang.String getCustom() {
    java.lang.Object ref = custom_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      custom_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *自定义数据
   * </pre>
   *
   * <code>string custom = 11;</code>
   * @return The bytes for custom.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCustomBytes() {
    java.lang.Object ref = custom_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      custom_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAYCODE_FIELD_NUMBER = 12;
  private volatile java.lang.Object payCode_;
  /**
   * <pre>
   *支付代码--支付中心统一编码
   * </pre>
   *
   * <code>string payCode = 12;</code>
   * @return The payCode.
   */
  @java.lang.Override
  public java.lang.String getPayCode() {
    java.lang.Object ref = payCode_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      payCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *支付代码--支付中心统一编码
   * </pre>
   *
   * <code>string payCode = 12;</code>
   * @return The bytes for payCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPayCodeBytes() {
    java.lang.Object ref = payCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      payCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAYBODY_FIELD_NUMBER = 13;
  private volatile java.lang.Object payBody_;
  /**
   * <code>string payBody = 13;</code>
   * @return The payBody.
   */
  @java.lang.Override
  public java.lang.String getPayBody() {
    java.lang.Object ref = payBody_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      payBody_ = s;
      return s;
    }
  }
  /**
   * <code>string payBody = 13;</code>
   * @return The bytes for payBody.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPayBodyBytes() {
    java.lang.Object ref = payBody_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      payBody_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TERMINAL_FIELD_NUMBER = 14;
  private int terminal_;
  /**
   * <code>int32 terminal = 14;</code>
   * @return The terminal.
   */
  @java.lang.Override
  public int getTerminal() {
    return terminal_;
  }

  public static final int REFUNDNOTIFYRESTURL_FIELD_NUMBER = 15;
  private volatile java.lang.Object refundNotifyRestUrl_;
  /**
   * <pre>
   *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
   * </pre>
   *
   * <code>string refundNotifyRestUrl = 15;</code>
   * @return The refundNotifyRestUrl.
   */
  @java.lang.Override
  public java.lang.String getRefundNotifyRestUrl() {
    java.lang.Object ref = refundNotifyRestUrl_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      refundNotifyRestUrl_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
   * </pre>
   *
   * <code>string refundNotifyRestUrl = 15;</code>
   * @return The bytes for refundNotifyRestUrl.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRefundNotifyRestUrlBytes() {
    java.lang.Object ref = refundNotifyRestUrl_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      refundNotifyRestUrl_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (userId_ != 0) {
      output.writeInt32(1, userId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientMobile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, patientMobile_);
    }
    if (amount_ != 0) {
      output.writeInt32(3, amount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remark_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, remark_);
    }
    if (orderType_ != 0) {
      output.writeInt32(5, orderType_);
    }
    if (bizId_ != 0) {
      output.writeInt32(6, bizId_);
    }
    if (doctorId_ != 0) {
      output.writeInt32(7, doctorId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, title_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentCallbackMethod_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, paymentCallbackMethod_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusChangedCallbackMethod_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, statusChangedCallbackMethod_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(custom_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, custom_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, payCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payBody_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, payBody_);
    }
    if (terminal_ != 0) {
      output.writeInt32(14, terminal_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(refundNotifyRestUrl_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, refundNotifyRestUrl_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, userId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientMobile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, patientMobile_);
    }
    if (amount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, amount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remark_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, remark_);
    }
    if (orderType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, orderType_);
    }
    if (bizId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, bizId_);
    }
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, doctorId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, title_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentCallbackMethod_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, paymentCallbackMethod_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusChangedCallbackMethod_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, statusChangedCallbackMethod_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(custom_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, custom_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, payCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payBody_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, payBody_);
    }
    if (terminal_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, terminal_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(refundNotifyRestUrl_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, refundNotifyRestUrl_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.ordercenter.CreateOrderRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.ordercenter.CreateOrderRequest other = (com.ywt.gapi.ordercenter.CreateOrderRequest) obj;

    if (getUserId()
        != other.getUserId()) return false;
    if (!getPatientMobile()
        .equals(other.getPatientMobile())) return false;
    if (getAmount()
        != other.getAmount()) return false;
    if (!getRemark()
        .equals(other.getRemark())) return false;
    if (getOrderType()
        != other.getOrderType()) return false;
    if (getBizId()
        != other.getBizId()) return false;
    if (getDoctorId()
        != other.getDoctorId()) return false;
    if (!getTitle()
        .equals(other.getTitle())) return false;
    if (!getPaymentCallbackMethod()
        .equals(other.getPaymentCallbackMethod())) return false;
    if (!getStatusChangedCallbackMethod()
        .equals(other.getStatusChangedCallbackMethod())) return false;
    if (!getCustom()
        .equals(other.getCustom())) return false;
    if (!getPayCode()
        .equals(other.getPayCode())) return false;
    if (!getPayBody()
        .equals(other.getPayBody())) return false;
    if (getTerminal()
        != other.getTerminal()) return false;
    if (!getRefundNotifyRestUrl()
        .equals(other.getRefundNotifyRestUrl())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + PATIENTMOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientMobile().hashCode();
    hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getAmount();
    hash = (37 * hash) + REMARK_FIELD_NUMBER;
    hash = (53 * hash) + getRemark().hashCode();
    hash = (37 * hash) + ORDERTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getOrderType();
    hash = (37 * hash) + BIZID_FIELD_NUMBER;
    hash = (53 * hash) + getBizId();
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + TITLE_FIELD_NUMBER;
    hash = (53 * hash) + getTitle().hashCode();
    hash = (37 * hash) + PAYMENTCALLBACKMETHOD_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentCallbackMethod().hashCode();
    hash = (37 * hash) + STATUSCHANGEDCALLBACKMETHOD_FIELD_NUMBER;
    hash = (53 * hash) + getStatusChangedCallbackMethod().hashCode();
    hash = (37 * hash) + CUSTOM_FIELD_NUMBER;
    hash = (53 * hash) + getCustom().hashCode();
    hash = (37 * hash) + PAYCODE_FIELD_NUMBER;
    hash = (53 * hash) + getPayCode().hashCode();
    hash = (37 * hash) + PAYBODY_FIELD_NUMBER;
    hash = (53 * hash) + getPayBody().hashCode();
    hash = (37 * hash) + TERMINAL_FIELD_NUMBER;
    hash = (53 * hash) + getTerminal();
    hash = (37 * hash) + REFUNDNOTIFYRESTURL_FIELD_NUMBER;
    hash = (53 * hash) + getRefundNotifyRestUrl().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.ordercenter.CreateOrderRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.ordercenter.CreateOrderRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *创建订单请求消息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.ordercenter.CreateOrderRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.ordercenter.CreateOrderRequest)
      com.ywt.gapi.ordercenter.CreateOrderRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_CreateOrderRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_CreateOrderRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.ordercenter.CreateOrderRequest.class, com.ywt.gapi.ordercenter.CreateOrderRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.ordercenter.CreateOrderRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      userId_ = 0;

      patientMobile_ = "";

      amount_ = 0;

      remark_ = "";

      orderType_ = 0;

      bizId_ = 0;

      doctorId_ = 0;

      title_ = "";

      paymentCallbackMethod_ = "";

      statusChangedCallbackMethod_ = "";

      custom_ = "";

      payCode_ = "";

      payBody_ = "";

      terminal_ = 0;

      refundNotifyRestUrl_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_CreateOrderRequest_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.ordercenter.CreateOrderRequest getDefaultInstanceForType() {
      return com.ywt.gapi.ordercenter.CreateOrderRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.ywt.gapi.ordercenter.CreateOrderRequest build() {
      com.ywt.gapi.ordercenter.CreateOrderRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ywt.gapi.ordercenter.CreateOrderRequest buildPartial() {
      com.ywt.gapi.ordercenter.CreateOrderRequest result = new com.ywt.gapi.ordercenter.CreateOrderRequest(this);
      result.userId_ = userId_;
      result.patientMobile_ = patientMobile_;
      result.amount_ = amount_;
      result.remark_ = remark_;
      result.orderType_ = orderType_;
      result.bizId_ = bizId_;
      result.doctorId_ = doctorId_;
      result.title_ = title_;
      result.paymentCallbackMethod_ = paymentCallbackMethod_;
      result.statusChangedCallbackMethod_ = statusChangedCallbackMethod_;
      result.custom_ = custom_;
      result.payCode_ = payCode_;
      result.payBody_ = payBody_;
      result.terminal_ = terminal_;
      result.refundNotifyRestUrl_ = refundNotifyRestUrl_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.ywt.gapi.ordercenter.CreateOrderRequest) {
        return mergeFrom((com.ywt.gapi.ordercenter.CreateOrderRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.ordercenter.CreateOrderRequest other) {
      if (other == com.ywt.gapi.ordercenter.CreateOrderRequest.getDefaultInstance()) return this;
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getPatientMobile().isEmpty()) {
        patientMobile_ = other.patientMobile_;
        onChanged();
      }
      if (other.getAmount() != 0) {
        setAmount(other.getAmount());
      }
      if (!other.getRemark().isEmpty()) {
        remark_ = other.remark_;
        onChanged();
      }
      if (other.getOrderType() != 0) {
        setOrderType(other.getOrderType());
      }
      if (other.getBizId() != 0) {
        setBizId(other.getBizId());
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (!other.getTitle().isEmpty()) {
        title_ = other.title_;
        onChanged();
      }
      if (!other.getPaymentCallbackMethod().isEmpty()) {
        paymentCallbackMethod_ = other.paymentCallbackMethod_;
        onChanged();
      }
      if (!other.getStatusChangedCallbackMethod().isEmpty()) {
        statusChangedCallbackMethod_ = other.statusChangedCallbackMethod_;
        onChanged();
      }
      if (!other.getCustom().isEmpty()) {
        custom_ = other.custom_;
        onChanged();
      }
      if (!other.getPayCode().isEmpty()) {
        payCode_ = other.payCode_;
        onChanged();
      }
      if (!other.getPayBody().isEmpty()) {
        payBody_ = other.payBody_;
        onChanged();
      }
      if (other.getTerminal() != 0) {
        setTerminal(other.getTerminal());
      }
      if (!other.getRefundNotifyRestUrl().isEmpty()) {
        refundNotifyRestUrl_ = other.refundNotifyRestUrl_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.ordercenter.CreateOrderRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.ordercenter.CreateOrderRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int userId_ ;
    /**
     * <code>int32 userId = 1;</code>
     * @return The userId.
     */
    @java.lang.Override
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 1;</code>
     * @param value The userId to set.
     * @return This builder for chaining.
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object patientMobile_ = "";
    /**
     * <code>string patientMobile = 2;</code>
     * @return The patientMobile.
     */
    public java.lang.String getPatientMobile() {
      java.lang.Object ref = patientMobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientMobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientMobile = 2;</code>
     * @return The bytes for patientMobile.
     */
    public com.google.protobuf.ByteString
        getPatientMobileBytes() {
      java.lang.Object ref = patientMobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientMobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientMobile = 2;</code>
     * @param value The patientMobile to set.
     * @return This builder for chaining.
     */
    public Builder setPatientMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientMobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientMobile = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientMobile() {
      
      patientMobile_ = getDefaultInstance().getPatientMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string patientMobile = 2;</code>
     * @param value The bytes for patientMobile to set.
     * @return This builder for chaining.
     */
    public Builder setPatientMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientMobile_ = value;
      onChanged();
      return this;
    }

    private int amount_ ;
    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 3;</code>
     * @return The amount.
     */
    @java.lang.Override
    public int getAmount() {
      return amount_;
    }
    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 3;</code>
     * @param value The amount to set.
     * @return This builder for chaining.
     */
    public Builder setAmount(int value) {
      
      amount_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearAmount() {
      
      amount_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object remark_ = "";
    /**
     * <code>string remark = 4;</code>
     * @return The remark.
     */
    public java.lang.String getRemark() {
      java.lang.Object ref = remark_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        remark_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string remark = 4;</code>
     * @return The bytes for remark.
     */
    public com.google.protobuf.ByteString
        getRemarkBytes() {
      java.lang.Object ref = remark_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        remark_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string remark = 4;</code>
     * @param value The remark to set.
     * @return This builder for chaining.
     */
    public Builder setRemark(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      remark_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearRemark() {
      
      remark_ = getDefaultInstance().getRemark();
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 4;</code>
     * @param value The bytes for remark to set.
     * @return This builder for chaining.
     */
    public Builder setRemarkBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      remark_ = value;
      onChanged();
      return this;
    }

    private int orderType_ ;
    /**
     * <code>int32 orderType = 5;</code>
     * @return The orderType.
     */
    @java.lang.Override
    public int getOrderType() {
      return orderType_;
    }
    /**
     * <code>int32 orderType = 5;</code>
     * @param value The orderType to set.
     * @return This builder for chaining.
     */
    public Builder setOrderType(int value) {
      
      orderType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderType = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderType() {
      
      orderType_ = 0;
      onChanged();
      return this;
    }

    private int bizId_ ;
    /**
     * <code>int32 bizId = 6;</code>
     * @return The bizId.
     */
    @java.lang.Override
    public int getBizId() {
      return bizId_;
    }
    /**
     * <code>int32 bizId = 6;</code>
     * @param value The bizId to set.
     * @return This builder for chaining.
     */
    public Builder setBizId(int value) {
      
      bizId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 bizId = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearBizId() {
      
      bizId_ = 0;
      onChanged();
      return this;
    }

    private int doctorId_ ;
    /**
     * <code>int32 doctorId = 7;</code>
     * @return The doctorId.
     */
    @java.lang.Override
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <code>int32 doctorId = 7;</code>
     * @param value The doctorId to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 doctorId = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object title_ = "";
    /**
     * <code>string title = 8;</code>
     * @return The title.
     */
    public java.lang.String getTitle() {
      java.lang.Object ref = title_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        title_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string title = 8;</code>
     * @return The bytes for title.
     */
    public com.google.protobuf.ByteString
        getTitleBytes() {
      java.lang.Object ref = title_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        title_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string title = 8;</code>
     * @param value The title to set.
     * @return This builder for chaining.
     */
    public Builder setTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      title_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string title = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearTitle() {
      
      title_ = getDefaultInstance().getTitle();
      onChanged();
      return this;
    }
    /**
     * <code>string title = 8;</code>
     * @param value The bytes for title to set.
     * @return This builder for chaining.
     */
    public Builder setTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      title_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object paymentCallbackMethod_ = "";
    /**
     * <pre>
     *支付成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
     * </pre>
     *
     * <code>string paymentCallbackMethod = 9;</code>
     * @return The paymentCallbackMethod.
     */
    public java.lang.String getPaymentCallbackMethod() {
      java.lang.Object ref = paymentCallbackMethod_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        paymentCallbackMethod_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *支付成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
     * </pre>
     *
     * <code>string paymentCallbackMethod = 9;</code>
     * @return The bytes for paymentCallbackMethod.
     */
    public com.google.protobuf.ByteString
        getPaymentCallbackMethodBytes() {
      java.lang.Object ref = paymentCallbackMethod_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        paymentCallbackMethod_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *支付成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
     * </pre>
     *
     * <code>string paymentCallbackMethod = 9;</code>
     * @param value The paymentCallbackMethod to set.
     * @return This builder for chaining.
     */
    public Builder setPaymentCallbackMethod(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      paymentCallbackMethod_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
     * </pre>
     *
     * <code>string paymentCallbackMethod = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearPaymentCallbackMethod() {
      
      paymentCallbackMethod_ = getDefaultInstance().getPaymentCallbackMethod();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
     * </pre>
     *
     * <code>string paymentCallbackMethod = 9;</code>
     * @param value The bytes for paymentCallbackMethod to set.
     * @return This builder for chaining.
     */
    public Builder setPaymentCallbackMethodBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      paymentCallbackMethod_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object statusChangedCallbackMethod_ = "";
    /**
     * <code>string statusChangedCallbackMethod = 10;</code>
     * @return The statusChangedCallbackMethod.
     */
    public java.lang.String getStatusChangedCallbackMethod() {
      java.lang.Object ref = statusChangedCallbackMethod_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        statusChangedCallbackMethod_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string statusChangedCallbackMethod = 10;</code>
     * @return The bytes for statusChangedCallbackMethod.
     */
    public com.google.protobuf.ByteString
        getStatusChangedCallbackMethodBytes() {
      java.lang.Object ref = statusChangedCallbackMethod_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        statusChangedCallbackMethod_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string statusChangedCallbackMethod = 10;</code>
     * @param value The statusChangedCallbackMethod to set.
     * @return This builder for chaining.
     */
    public Builder setStatusChangedCallbackMethod(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      statusChangedCallbackMethod_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string statusChangedCallbackMethod = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearStatusChangedCallbackMethod() {
      
      statusChangedCallbackMethod_ = getDefaultInstance().getStatusChangedCallbackMethod();
      onChanged();
      return this;
    }
    /**
     * <code>string statusChangedCallbackMethod = 10;</code>
     * @param value The bytes for statusChangedCallbackMethod to set.
     * @return This builder for chaining.
     */
    public Builder setStatusChangedCallbackMethodBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      statusChangedCallbackMethod_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object custom_ = "";
    /**
     * <pre>
     *自定义数据
     * </pre>
     *
     * <code>string custom = 11;</code>
     * @return The custom.
     */
    public java.lang.String getCustom() {
      java.lang.Object ref = custom_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        custom_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *自定义数据
     * </pre>
     *
     * <code>string custom = 11;</code>
     * @return The bytes for custom.
     */
    public com.google.protobuf.ByteString
        getCustomBytes() {
      java.lang.Object ref = custom_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        custom_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *自定义数据
     * </pre>
     *
     * <code>string custom = 11;</code>
     * @param value The custom to set.
     * @return This builder for chaining.
     */
    public Builder setCustom(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      custom_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *自定义数据
     * </pre>
     *
     * <code>string custom = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearCustom() {
      
      custom_ = getDefaultInstance().getCustom();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *自定义数据
     * </pre>
     *
     * <code>string custom = 11;</code>
     * @param value The bytes for custom to set.
     * @return This builder for chaining.
     */
    public Builder setCustomBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      custom_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object payCode_ = "";
    /**
     * <pre>
     *支付代码--支付中心统一编码
     * </pre>
     *
     * <code>string payCode = 12;</code>
     * @return The payCode.
     */
    public java.lang.String getPayCode() {
      java.lang.Object ref = payCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        payCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *支付代码--支付中心统一编码
     * </pre>
     *
     * <code>string payCode = 12;</code>
     * @return The bytes for payCode.
     */
    public com.google.protobuf.ByteString
        getPayCodeBytes() {
      java.lang.Object ref = payCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        payCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *支付代码--支付中心统一编码
     * </pre>
     *
     * <code>string payCode = 12;</code>
     * @param value The payCode to set.
     * @return This builder for chaining.
     */
    public Builder setPayCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付代码--支付中心统一编码
     * </pre>
     *
     * <code>string payCode = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearPayCode() {
      
      payCode_ = getDefaultInstance().getPayCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付代码--支付中心统一编码
     * </pre>
     *
     * <code>string payCode = 12;</code>
     * @param value The bytes for payCode to set.
     * @return This builder for chaining.
     */
    public Builder setPayCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object payBody_ = "";
    /**
     * <code>string payBody = 13;</code>
     * @return The payBody.
     */
    public java.lang.String getPayBody() {
      java.lang.Object ref = payBody_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        payBody_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string payBody = 13;</code>
     * @return The bytes for payBody.
     */
    public com.google.protobuf.ByteString
        getPayBodyBytes() {
      java.lang.Object ref = payBody_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        payBody_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string payBody = 13;</code>
     * @param value The payBody to set.
     * @return This builder for chaining.
     */
    public Builder setPayBody(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payBody_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string payBody = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearPayBody() {
      
      payBody_ = getDefaultInstance().getPayBody();
      onChanged();
      return this;
    }
    /**
     * <code>string payBody = 13;</code>
     * @param value The bytes for payBody to set.
     * @return This builder for chaining.
     */
    public Builder setPayBodyBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payBody_ = value;
      onChanged();
      return this;
    }

    private int terminal_ ;
    /**
     * <code>int32 terminal = 14;</code>
     * @return The terminal.
     */
    @java.lang.Override
    public int getTerminal() {
      return terminal_;
    }
    /**
     * <code>int32 terminal = 14;</code>
     * @param value The terminal to set.
     * @return This builder for chaining.
     */
    public Builder setTerminal(int value) {
      
      terminal_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 terminal = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearTerminal() {
      
      terminal_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object refundNotifyRestUrl_ = "";
    /**
     * <pre>
     *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
     * </pre>
     *
     * <code>string refundNotifyRestUrl = 15;</code>
     * @return The refundNotifyRestUrl.
     */
    public java.lang.String getRefundNotifyRestUrl() {
      java.lang.Object ref = refundNotifyRestUrl_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        refundNotifyRestUrl_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
     * </pre>
     *
     * <code>string refundNotifyRestUrl = 15;</code>
     * @return The bytes for refundNotifyRestUrl.
     */
    public com.google.protobuf.ByteString
        getRefundNotifyRestUrlBytes() {
      java.lang.Object ref = refundNotifyRestUrl_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        refundNotifyRestUrl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
     * </pre>
     *
     * <code>string refundNotifyRestUrl = 15;</code>
     * @param value The refundNotifyRestUrl to set.
     * @return This builder for chaining.
     */
    public Builder setRefundNotifyRestUrl(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      refundNotifyRestUrl_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
     * </pre>
     *
     * <code>string refundNotifyRestUrl = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundNotifyRestUrl() {
      
      refundNotifyRestUrl_ = getDefaultInstance().getRefundNotifyRestUrl();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
     * </pre>
     *
     * <code>string refundNotifyRestUrl = 15;</code>
     * @param value The bytes for refundNotifyRestUrl to set.
     * @return This builder for chaining.
     */
    public Builder setRefundNotifyRestUrlBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      refundNotifyRestUrl_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.ordercenter.CreateOrderRequest)
  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.ordercenter.CreateOrderRequest)
  private static final com.ywt.gapi.ordercenter.CreateOrderRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.ywt.gapi.ordercenter.CreateOrderRequest();
  }

  public static com.ywt.gapi.ordercenter.CreateOrderRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<CreateOrderRequest>
      PARSER = new com.google.protobuf.AbstractParser<CreateOrderRequest>() {
    @java.lang.Override
    public CreateOrderRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new CreateOrderRequest(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<CreateOrderRequest> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<CreateOrderRequest> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.ywt.gapi.ordercenter.CreateOrderRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

