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

package com.ywt.gapi.order;

/**
 * <pre>
 *创建随访触发配置请求
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.order.CreateFollowUpConfigRequest}
 */
public  final class CreateFollowUpConfigRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.CreateFollowUpConfigRequest)
    CreateFollowUpConfigRequestOrBuilder {
  // Use CreateFollowUpConfigRequest.newBuilder() to construct.
  private CreateFollowUpConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CreateFollowUpConfigRequest() {
    prescriptionId_ = 0;
    questionnaireId_ = 0;
    type_ = 0;
    doctorId_ = 0;
    userId_ = 0;
    unit_ = "";
    delay_ = 0;
    mobile_ = "";
    name_ = "";
    sex_ = 0;
    age_ = 0;
    diagnose_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private CreateFollowUpConfigRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 8: {

            prescriptionId_ = input.readInt32();
            break;
          }
          case 16: {

            questionnaireId_ = input.readInt32();
            break;
          }
          case 24: {

            type_ = input.readInt32();
            break;
          }
          case 32: {

            doctorId_ = input.readInt32();
            break;
          }
          case 40: {

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

            unit_ = s;
            break;
          }
          case 56: {

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

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

            name_ = s;
            break;
          }
          case 80: {

            sex_ = input.readInt32();
            break;
          }
          case 88: {

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

            diagnose_ = s;
            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 {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_CreateFollowUpConfigRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_CreateFollowUpConfigRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.order.CreateFollowUpConfigRequest.class, com.ywt.gapi.order.CreateFollowUpConfigRequest.Builder.class);
  }

  public static final int PRESCRIPTIONID_FIELD_NUMBER = 1;
  private int prescriptionId_;
  /**
   * <pre>
   *处方单Id
   * </pre>
   *
   * <code>int32 prescriptionId = 1;</code>
   */
  public int getPrescriptionId() {
    return prescriptionId_;
  }

  public static final int QUESTIONNAIREID_FIELD_NUMBER = 2;
  private int questionnaireId_;
  /**
   * <pre>
   *问卷Id
   * </pre>
   *
   * <code>int32 questionnaireId = 2;</code>
   */
  public int getQuestionnaireId() {
    return questionnaireId_;
  }

  public static final int TYPE_FIELD_NUMBER = 3;
  private int type_;
  /**
   * <pre>
   *类型
   * </pre>
   *
   * <code>int32 type = 3;</code>
   */
  public int getType() {
    return type_;
  }

  public static final int DOCTORID_FIELD_NUMBER = 4;
  private int doctorId_;
  /**
   * <pre>
   *医生Id
   * </pre>
   *
   * <code>int32 doctorId = 4;</code>
   */
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int USERID_FIELD_NUMBER = 5;
  private int userId_;
  /**
   * <pre>
   *用户Id
   * </pre>
   *
   * <code>int32 userId = 5;</code>
   */
  public int getUserId() {
    return userId_;
  }

  public static final int UNIT_FIELD_NUMBER = 6;
  private volatile java.lang.Object unit_;
  /**
   * <pre>
   *延迟触发的时间单位
   * </pre>
   *
   * <code>string unit = 6;</code>
   */
  public java.lang.String getUnit() {
    java.lang.Object ref = unit_;
    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();
      unit_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *延迟触发的时间单位
   * </pre>
   *
   * <code>string unit = 6;</code>
   */
  public com.google.protobuf.ByteString
      getUnitBytes() {
    java.lang.Object ref = unit_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      unit_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DELAY_FIELD_NUMBER = 7;
  private int delay_;
  /**
   * <pre>
   *延迟触发的时间数
   * </pre>
   *
   * <code>int32 delay = 7;</code>
   */
  public int getDelay() {
    return delay_;
  }

  public static final int MOBILE_FIELD_NUMBER = 8;
  private volatile java.lang.Object mobile_;
  /**
   * <pre>
   *手机号
   * </pre>
   *
   * <code>string mobile = 8;</code>
   */
  public java.lang.String getMobile() {
    java.lang.Object ref = mobile_;
    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();
      mobile_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *手机号
   * </pre>
   *
   * <code>string mobile = 8;</code>
   */
  public com.google.protobuf.ByteString
      getMobileBytes() {
    java.lang.Object ref = mobile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      mobile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int NAME_FIELD_NUMBER = 9;
  private volatile java.lang.Object name_;
  /**
   * <pre>
   *名字
   * </pre>
   *
   * <code>string name = 9;</code>
   */
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    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();
      name_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *名字
   * </pre>
   *
   * <code>string name = 9;</code>
   */
  public com.google.protobuf.ByteString
      getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SEX_FIELD_NUMBER = 10;
  private int sex_;
  /**
   * <pre>
   *性别
   * </pre>
   *
   * <code>int32 sex = 10;</code>
   */
  public int getSex() {
    return sex_;
  }

  public static final int AGE_FIELD_NUMBER = 11;
  private int age_;
  /**
   * <pre>
   *年龄
   * </pre>
   *
   * <code>int32 age = 11;</code>
   */
  public int getAge() {
    return age_;
  }

  public static final int DIAGNOSE_FIELD_NUMBER = 12;
  private volatile java.lang.Object diagnose_;
  /**
   * <pre>
   *诊断
   * </pre>
   *
   * <code>string diagnose = 12;</code>
   */
  public java.lang.String getDiagnose() {
    java.lang.Object ref = diagnose_;
    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();
      diagnose_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *诊断
   * </pre>
   *
   * <code>string diagnose = 12;</code>
   */
  public com.google.protobuf.ByteString
      getDiagnoseBytes() {
    java.lang.Object ref = diagnose_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diagnose_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (prescriptionId_ != 0) {
      output.writeInt32(1, prescriptionId_);
    }
    if (questionnaireId_ != 0) {
      output.writeInt32(2, questionnaireId_);
    }
    if (type_ != 0) {
      output.writeInt32(3, type_);
    }
    if (doctorId_ != 0) {
      output.writeInt32(4, doctorId_);
    }
    if (userId_ != 0) {
      output.writeInt32(5, userId_);
    }
    if (!getUnitBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, unit_);
    }
    if (delay_ != 0) {
      output.writeInt32(7, delay_);
    }
    if (!getMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, mobile_);
    }
    if (!getNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, name_);
    }
    if (sex_ != 0) {
      output.writeInt32(10, sex_);
    }
    if (age_ != 0) {
      output.writeInt32(11, age_);
    }
    if (!getDiagnoseBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, diagnose_);
    }
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (prescriptionId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, prescriptionId_);
    }
    if (questionnaireId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, questionnaireId_);
    }
    if (type_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, type_);
    }
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, doctorId_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, userId_);
    }
    if (!getUnitBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, unit_);
    }
    if (delay_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, delay_);
    }
    if (!getMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, mobile_);
    }
    if (!getNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, name_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, sex_);
    }
    if (age_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, age_);
    }
    if (!getDiagnoseBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, diagnose_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.order.CreateFollowUpConfigRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.CreateFollowUpConfigRequest other = (com.ywt.gapi.order.CreateFollowUpConfigRequest) obj;

    boolean result = true;
    result = result && (getPrescriptionId()
        == other.getPrescriptionId());
    result = result && (getQuestionnaireId()
        == other.getQuestionnaireId());
    result = result && (getType()
        == other.getType());
    result = result && (getDoctorId()
        == other.getDoctorId());
    result = result && (getUserId()
        == other.getUserId());
    result = result && getUnit()
        .equals(other.getUnit());
    result = result && (getDelay()
        == other.getDelay());
    result = result && getMobile()
        .equals(other.getMobile());
    result = result && getName()
        .equals(other.getName());
    result = result && (getSex()
        == other.getSex());
    result = result && (getAge()
        == other.getAge());
    result = result && getDiagnose()
        .equals(other.getDiagnose());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + PRESCRIPTIONID_FIELD_NUMBER;
    hash = (53 * hash) + getPrescriptionId();
    hash = (37 * hash) + QUESTIONNAIREID_FIELD_NUMBER;
    hash = (53 * hash) + getQuestionnaireId();
    hash = (37 * hash) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getType();
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + UNIT_FIELD_NUMBER;
    hash = (53 * hash) + getUnit().hashCode();
    hash = (37 * hash) + DELAY_FIELD_NUMBER;
    hash = (53 * hash) + getDelay();
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex();
    hash = (37 * hash) + AGE_FIELD_NUMBER;
    hash = (53 * hash) + getAge();
    hash = (37 * hash) + DIAGNOSE_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnose().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.order.CreateFollowUpConfigRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.CreateFollowUpConfigRequest 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.order.CreateFollowUpConfigRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.CreateFollowUpConfigRequest 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.order.CreateFollowUpConfigRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.CreateFollowUpConfigRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.CreateFollowUpConfigRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.CreateFollowUpConfigRequest 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.order.CreateFollowUpConfigRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.CreateFollowUpConfigRequest 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.order.CreateFollowUpConfigRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.CreateFollowUpConfigRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.order.CreateFollowUpConfigRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  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.order.CreateFollowUpConfigRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.order.CreateFollowUpConfigRequest)
      com.ywt.gapi.order.CreateFollowUpConfigRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_CreateFollowUpConfigRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_CreateFollowUpConfigRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.order.CreateFollowUpConfigRequest.class, com.ywt.gapi.order.CreateFollowUpConfigRequest.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      prescriptionId_ = 0;

      questionnaireId_ = 0;

      type_ = 0;

      doctorId_ = 0;

      userId_ = 0;

      unit_ = "";

      delay_ = 0;

      mobile_ = "";

      name_ = "";

      sex_ = 0;

      age_ = 0;

      diagnose_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_CreateFollowUpConfigRequest_descriptor;
    }

    public com.ywt.gapi.order.CreateFollowUpConfigRequest getDefaultInstanceForType() {
      return com.ywt.gapi.order.CreateFollowUpConfigRequest.getDefaultInstance();
    }

    public com.ywt.gapi.order.CreateFollowUpConfigRequest build() {
      com.ywt.gapi.order.CreateFollowUpConfigRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.ywt.gapi.order.CreateFollowUpConfigRequest buildPartial() {
      com.ywt.gapi.order.CreateFollowUpConfigRequest result = new com.ywt.gapi.order.CreateFollowUpConfigRequest(this);
      result.prescriptionId_ = prescriptionId_;
      result.questionnaireId_ = questionnaireId_;
      result.type_ = type_;
      result.doctorId_ = doctorId_;
      result.userId_ = userId_;
      result.unit_ = unit_;
      result.delay_ = delay_;
      result.mobile_ = mobile_;
      result.name_ = name_;
      result.sex_ = sex_;
      result.age_ = age_;
      result.diagnose_ = diagnose_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.order.CreateFollowUpConfigRequest other) {
      if (other == com.ywt.gapi.order.CreateFollowUpConfigRequest.getDefaultInstance()) return this;
      if (other.getPrescriptionId() != 0) {
        setPrescriptionId(other.getPrescriptionId());
      }
      if (other.getQuestionnaireId() != 0) {
        setQuestionnaireId(other.getQuestionnaireId());
      }
      if (other.getType() != 0) {
        setType(other.getType());
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getUnit().isEmpty()) {
        unit_ = other.unit_;
        onChanged();
      }
      if (other.getDelay() != 0) {
        setDelay(other.getDelay());
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (other.getAge() != 0) {
        setAge(other.getAge());
      }
      if (!other.getDiagnose().isEmpty()) {
        diagnose_ = other.diagnose_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private int prescriptionId_ ;
    /**
     * <pre>
     *处方单Id
     * </pre>
     *
     * <code>int32 prescriptionId = 1;</code>
     */
    public int getPrescriptionId() {
      return prescriptionId_;
    }
    /**
     * <pre>
     *处方单Id
     * </pre>
     *
     * <code>int32 prescriptionId = 1;</code>
     */
    public Builder setPrescriptionId(int value) {
      
      prescriptionId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方单Id
     * </pre>
     *
     * <code>int32 prescriptionId = 1;</code>
     */
    public Builder clearPrescriptionId() {
      
      prescriptionId_ = 0;
      onChanged();
      return this;
    }

    private int questionnaireId_ ;
    /**
     * <pre>
     *问卷Id
     * </pre>
     *
     * <code>int32 questionnaireId = 2;</code>
     */
    public int getQuestionnaireId() {
      return questionnaireId_;
    }
    /**
     * <pre>
     *问卷Id
     * </pre>
     *
     * <code>int32 questionnaireId = 2;</code>
     */
    public Builder setQuestionnaireId(int value) {
      
      questionnaireId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *问卷Id
     * </pre>
     *
     * <code>int32 questionnaireId = 2;</code>
     */
    public Builder clearQuestionnaireId() {
      
      questionnaireId_ = 0;
      onChanged();
      return this;
    }

    private int type_ ;
    /**
     * <pre>
     *类型
     * </pre>
     *
     * <code>int32 type = 3;</code>
     */
    public int getType() {
      return type_;
    }
    /**
     * <pre>
     *类型
     * </pre>
     *
     * <code>int32 type = 3;</code>
     */
    public Builder setType(int value) {
      
      type_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *类型
     * </pre>
     *
     * <code>int32 type = 3;</code>
     */
    public Builder clearType() {
      
      type_ = 0;
      onChanged();
      return this;
    }

    private int doctorId_ ;
    /**
     * <pre>
     *医生Id
     * </pre>
     *
     * <code>int32 doctorId = 4;</code>
     */
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <pre>
     *医生Id
     * </pre>
     *
     * <code>int32 doctorId = 4;</code>
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生Id
     * </pre>
     *
     * <code>int32 doctorId = 4;</code>
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <pre>
     *用户Id
     * </pre>
     *
     * <code>int32 userId = 5;</code>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <pre>
     *用户Id
     * </pre>
     *
     * <code>int32 userId = 5;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *用户Id
     * </pre>
     *
     * <code>int32 userId = 5;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object unit_ = "";
    /**
     * <pre>
     *延迟触发的时间单位
     * </pre>
     *
     * <code>string unit = 6;</code>
     */
    public java.lang.String getUnit() {
      java.lang.Object ref = unit_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        unit_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *延迟触发的时间单位
     * </pre>
     *
     * <code>string unit = 6;</code>
     */
    public com.google.protobuf.ByteString
        getUnitBytes() {
      java.lang.Object ref = unit_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        unit_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *延迟触发的时间单位
     * </pre>
     *
     * <code>string unit = 6;</code>
     */
    public Builder setUnit(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      unit_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *延迟触发的时间单位
     * </pre>
     *
     * <code>string unit = 6;</code>
     */
    public Builder clearUnit() {
      
      unit_ = getDefaultInstance().getUnit();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *延迟触发的时间单位
     * </pre>
     *
     * <code>string unit = 6;</code>
     */
    public Builder setUnitBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      unit_ = value;
      onChanged();
      return this;
    }

    private int delay_ ;
    /**
     * <pre>
     *延迟触发的时间数
     * </pre>
     *
     * <code>int32 delay = 7;</code>
     */
    public int getDelay() {
      return delay_;
    }
    /**
     * <pre>
     *延迟触发的时间数
     * </pre>
     *
     * <code>int32 delay = 7;</code>
     */
    public Builder setDelay(int value) {
      
      delay_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *延迟触发的时间数
     * </pre>
     *
     * <code>int32 delay = 7;</code>
     */
    public Builder clearDelay() {
      
      delay_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object mobile_ = "";
    /**
     * <pre>
     *手机号
     * </pre>
     *
     * <code>string mobile = 8;</code>
     */
    public java.lang.String getMobile() {
      java.lang.Object ref = mobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        mobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *手机号
     * </pre>
     *
     * <code>string mobile = 8;</code>
     */
    public com.google.protobuf.ByteString
        getMobileBytes() {
      java.lang.Object ref = mobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *手机号
     * </pre>
     *
     * <code>string mobile = 8;</code>
     */
    public Builder setMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      mobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *手机号
     * </pre>
     *
     * <code>string mobile = 8;</code>
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *手机号
     * </pre>
     *
     * <code>string mobile = 8;</code>
     */
    public Builder setMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      mobile_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object name_ = "";
    /**
     * <pre>
     *名字
     * </pre>
     *
     * <code>string name = 9;</code>
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *名字
     * </pre>
     *
     * <code>string name = 9;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *名字
     * </pre>
     *
     * <code>string name = 9;</code>
     */
    public Builder setName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      name_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *名字
     * </pre>
     *
     * <code>string name = 9;</code>
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *名字
     * </pre>
     *
     * <code>string name = 9;</code>
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      name_ = value;
      onChanged();
      return this;
    }

    private int sex_ ;
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>int32 sex = 10;</code>
     */
    public int getSex() {
      return sex_;
    }
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>int32 sex = 10;</code>
     */
    public Builder setSex(int value) {
      
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>int32 sex = 10;</code>
     */
    public Builder clearSex() {
      
      sex_ = 0;
      onChanged();
      return this;
    }

    private int age_ ;
    /**
     * <pre>
     *年龄
     * </pre>
     *
     * <code>int32 age = 11;</code>
     */
    public int getAge() {
      return age_;
    }
    /**
     * <pre>
     *年龄
     * </pre>
     *
     * <code>int32 age = 11;</code>
     */
    public Builder setAge(int value) {
      
      age_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *年龄
     * </pre>
     *
     * <code>int32 age = 11;</code>
     */
    public Builder clearAge() {
      
      age_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object diagnose_ = "";
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnose = 12;</code>
     */
    public java.lang.String getDiagnose() {
      java.lang.Object ref = diagnose_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diagnose_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnose = 12;</code>
     */
    public com.google.protobuf.ByteString
        getDiagnoseBytes() {
      java.lang.Object ref = diagnose_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnose_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnose = 12;</code>
     */
    public Builder setDiagnose(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnose_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnose = 12;</code>
     */
    public Builder clearDiagnose() {
      
      diagnose_ = getDefaultInstance().getDiagnose();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnose = 12;</code>
     */
    public Builder setDiagnoseBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnose_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.order.CreateFollowUpConfigRequest)
  }

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

  public static com.ywt.gapi.order.CreateFollowUpConfigRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.order.CreateFollowUpConfigRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

