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

package com.ywt.gapi.drug;

/**
 * Protobuf type {@code com.ywt.gapi.drug.GetDisplayMedConOrderResponse}
 */
public  final class GetDisplayMedConOrderResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.GetDisplayMedConOrderResponse)
    GetDisplayMedConOrderResponseOrBuilder {
  // Use GetDisplayMedConOrderResponse.newBuilder() to construct.
  private GetDisplayMedConOrderResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetDisplayMedConOrderResponse() {
    code_ = 0;
    info_ = "";
    doctor_ = "";
    patient_ = "";
    mobile_ = "";
    displayMedCon_ = java.util.Collections.emptyList();
    dept_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private GetDisplayMedConOrderResponse(
      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: {

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

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

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

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

            mobile_ = s;
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
              displayMedCon_ = new java.util.ArrayList<com.ywt.gapi.drug.DisplayMedCon>();
              mutable_bitField0_ |= 0x00000020;
            }
            displayMedCon_.add(
                input.readMessage(com.ywt.gapi.drug.DisplayMedCon.parser(), extensionRegistry));
            break;
          }
          case 58: {
            java.lang.String s = input.readStringRequireUtf8();

            dept_ = 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 {
      if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
        displayMedCon_ = java.util.Collections.unmodifiableList(displayMedCon_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_GetDisplayMedConOrderResponse_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_GetDisplayMedConOrderResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.drug.GetDisplayMedConOrderResponse.class, com.ywt.gapi.drug.GetDisplayMedConOrderResponse.Builder.class);
  }

  private int bitField0_;
  public static final int CODE_FIELD_NUMBER = 1;
  private int code_;
  /**
   * <code>int32 code = 1;</code>
   */
  public int getCode() {
    return code_;
  }

  public static final int INFO_FIELD_NUMBER = 2;
  private volatile java.lang.Object info_;
  /**
   * <code>string info = 2;</code>
   */
  public java.lang.String getInfo() {
    java.lang.Object ref = info_;
    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();
      info_ = s;
      return s;
    }
  }
  /**
   * <code>string info = 2;</code>
   */
  public com.google.protobuf.ByteString
      getInfoBytes() {
    java.lang.Object ref = info_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      info_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTOR_FIELD_NUMBER = 3;
  private volatile java.lang.Object doctor_;
  /**
   * <code>string doctor = 3;</code>
   */
  public java.lang.String getDoctor() {
    java.lang.Object ref = doctor_;
    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();
      doctor_ = s;
      return s;
    }
  }
  /**
   * <code>string doctor = 3;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorBytes() {
    java.lang.Object ref = doctor_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctor_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENT_FIELD_NUMBER = 4;
  private volatile java.lang.Object patient_;
  /**
   * <code>string patient = 4;</code>
   */
  public java.lang.String getPatient() {
    java.lang.Object ref = patient_;
    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();
      patient_ = s;
      return s;
    }
  }
  /**
   * <code>string patient = 4;</code>
   */
  public com.google.protobuf.ByteString
      getPatientBytes() {
    java.lang.Object ref = patient_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patient_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MOBILE_FIELD_NUMBER = 5;
  private volatile java.lang.Object mobile_;
  /**
   * <code>string mobile = 5;</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;
    }
  }
  /**
   * <code>string mobile = 5;</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 DISPLAYMEDCON_FIELD_NUMBER = 6;
  private java.util.List<com.ywt.gapi.drug.DisplayMedCon> displayMedCon_;
  /**
   * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
   */
  public java.util.List<com.ywt.gapi.drug.DisplayMedCon> getDisplayMedConList() {
    return displayMedCon_;
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
   */
  public java.util.List<? extends com.ywt.gapi.drug.DisplayMedConOrBuilder> 
      getDisplayMedConOrBuilderList() {
    return displayMedCon_;
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
   */
  public int getDisplayMedConCount() {
    return displayMedCon_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
   */
  public com.ywt.gapi.drug.DisplayMedCon getDisplayMedCon(int index) {
    return displayMedCon_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
   */
  public com.ywt.gapi.drug.DisplayMedConOrBuilder getDisplayMedConOrBuilder(
      int index) {
    return displayMedCon_.get(index);
  }

  public static final int DEPT_FIELD_NUMBER = 7;
  private volatile java.lang.Object dept_;
  /**
   * <code>string dept = 7;</code>
   */
  public java.lang.String getDept() {
    java.lang.Object ref = dept_;
    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();
      dept_ = s;
      return s;
    }
  }
  /**
   * <code>string dept = 7;</code>
   */
  public com.google.protobuf.ByteString
      getDeptBytes() {
    java.lang.Object ref = dept_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      dept_ = 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 (code_ != 0) {
      output.writeInt32(1, code_);
    }
    if (!getInfoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, info_);
    }
    if (!getDoctorBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, doctor_);
    }
    if (!getPatientBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, patient_);
    }
    if (!getMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mobile_);
    }
    for (int i = 0; i < displayMedCon_.size(); i++) {
      output.writeMessage(6, displayMedCon_.get(i));
    }
    if (!getDeptBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, dept_);
    }
  }

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

    size = 0;
    if (code_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, code_);
    }
    if (!getInfoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, info_);
    }
    if (!getDoctorBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, doctor_);
    }
    if (!getPatientBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, patient_);
    }
    if (!getMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, mobile_);
    }
    for (int i = 0; i < displayMedCon_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, displayMedCon_.get(i));
    }
    if (!getDeptBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dept_);
    }
    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.drug.GetDisplayMedConOrderResponse)) {
      return super.equals(obj);
    }
    com.ywt.gapi.drug.GetDisplayMedConOrderResponse other = (com.ywt.gapi.drug.GetDisplayMedConOrderResponse) obj;

    boolean result = true;
    result = result && (getCode()
        == other.getCode());
    result = result && getInfo()
        .equals(other.getInfo());
    result = result && getDoctor()
        .equals(other.getDoctor());
    result = result && getPatient()
        .equals(other.getPatient());
    result = result && getMobile()
        .equals(other.getMobile());
    result = result && getDisplayMedConList()
        .equals(other.getDisplayMedConList());
    result = result && getDept()
        .equals(other.getDept());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + CODE_FIELD_NUMBER;
    hash = (53 * hash) + getCode();
    hash = (37 * hash) + INFO_FIELD_NUMBER;
    hash = (53 * hash) + getInfo().hashCode();
    hash = (37 * hash) + DOCTOR_FIELD_NUMBER;
    hash = (53 * hash) + getDoctor().hashCode();
    hash = (37 * hash) + PATIENT_FIELD_NUMBER;
    hash = (53 * hash) + getPatient().hashCode();
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    if (getDisplayMedConCount() > 0) {
      hash = (37 * hash) + DISPLAYMEDCON_FIELD_NUMBER;
      hash = (53 * hash) + getDisplayMedConList().hashCode();
    }
    hash = (37 * hash) + DEPT_FIELD_NUMBER;
    hash = (53 * hash) + getDept().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.drug.GetDisplayMedConOrderResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.GetDisplayMedConOrderResponse 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.drug.GetDisplayMedConOrderResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.GetDisplayMedConOrderResponse 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.drug.GetDisplayMedConOrderResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.GetDisplayMedConOrderResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.drug.GetDisplayMedConOrderResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.GetDisplayMedConOrderResponse 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.drug.GetDisplayMedConOrderResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.GetDisplayMedConOrderResponse 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.drug.GetDisplayMedConOrderResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.GetDisplayMedConOrderResponse 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.drug.GetDisplayMedConOrderResponse 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;
  }
  /**
   * Protobuf type {@code com.ywt.gapi.drug.GetDisplayMedConOrderResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.drug.GetDisplayMedConOrderResponse)
      com.ywt.gapi.drug.GetDisplayMedConOrderResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_GetDisplayMedConOrderResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_GetDisplayMedConOrderResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.drug.GetDisplayMedConOrderResponse.class, com.ywt.gapi.drug.GetDisplayMedConOrderResponse.Builder.class);
    }

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

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

      info_ = "";

      doctor_ = "";

      patient_ = "";

      mobile_ = "";

      if (displayMedConBuilder_ == null) {
        displayMedCon_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000020);
      } else {
        displayMedConBuilder_.clear();
      }
      dept_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_GetDisplayMedConOrderResponse_descriptor;
    }

    public com.ywt.gapi.drug.GetDisplayMedConOrderResponse getDefaultInstanceForType() {
      return com.ywt.gapi.drug.GetDisplayMedConOrderResponse.getDefaultInstance();
    }

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

    public com.ywt.gapi.drug.GetDisplayMedConOrderResponse buildPartial() {
      com.ywt.gapi.drug.GetDisplayMedConOrderResponse result = new com.ywt.gapi.drug.GetDisplayMedConOrderResponse(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.code_ = code_;
      result.info_ = info_;
      result.doctor_ = doctor_;
      result.patient_ = patient_;
      result.mobile_ = mobile_;
      if (displayMedConBuilder_ == null) {
        if (((bitField0_ & 0x00000020) == 0x00000020)) {
          displayMedCon_ = java.util.Collections.unmodifiableList(displayMedCon_);
          bitField0_ = (bitField0_ & ~0x00000020);
        }
        result.displayMedCon_ = displayMedCon_;
      } else {
        result.displayMedCon_ = displayMedConBuilder_.build();
      }
      result.dept_ = dept_;
      result.bitField0_ = to_bitField0_;
      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.drug.GetDisplayMedConOrderResponse) {
        return mergeFrom((com.ywt.gapi.drug.GetDisplayMedConOrderResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.drug.GetDisplayMedConOrderResponse other) {
      if (other == com.ywt.gapi.drug.GetDisplayMedConOrderResponse.getDefaultInstance()) return this;
      if (other.getCode() != 0) {
        setCode(other.getCode());
      }
      if (!other.getInfo().isEmpty()) {
        info_ = other.info_;
        onChanged();
      }
      if (!other.getDoctor().isEmpty()) {
        doctor_ = other.doctor_;
        onChanged();
      }
      if (!other.getPatient().isEmpty()) {
        patient_ = other.patient_;
        onChanged();
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (displayMedConBuilder_ == null) {
        if (!other.displayMedCon_.isEmpty()) {
          if (displayMedCon_.isEmpty()) {
            displayMedCon_ = other.displayMedCon_;
            bitField0_ = (bitField0_ & ~0x00000020);
          } else {
            ensureDisplayMedConIsMutable();
            displayMedCon_.addAll(other.displayMedCon_);
          }
          onChanged();
        }
      } else {
        if (!other.displayMedCon_.isEmpty()) {
          if (displayMedConBuilder_.isEmpty()) {
            displayMedConBuilder_.dispose();
            displayMedConBuilder_ = null;
            displayMedCon_ = other.displayMedCon_;
            bitField0_ = (bitField0_ & ~0x00000020);
            displayMedConBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDisplayMedConFieldBuilder() : null;
          } else {
            displayMedConBuilder_.addAllMessages(other.displayMedCon_);
          }
        }
      }
      if (!other.getDept().isEmpty()) {
        dept_ = other.dept_;
        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.drug.GetDisplayMedConOrderResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.drug.GetDisplayMedConOrderResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int code_ ;
    /**
     * <code>int32 code = 1;</code>
     */
    public int getCode() {
      return code_;
    }
    /**
     * <code>int32 code = 1;</code>
     */
    public Builder setCode(int value) {
      
      code_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 code = 1;</code>
     */
    public Builder clearCode() {
      
      code_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object info_ = "";
    /**
     * <code>string info = 2;</code>
     */
    public java.lang.String getInfo() {
      java.lang.Object ref = info_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        info_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string info = 2;</code>
     */
    public com.google.protobuf.ByteString
        getInfoBytes() {
      java.lang.Object ref = info_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        info_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string info = 2;</code>
     */
    public Builder setInfo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      info_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string info = 2;</code>
     */
    public Builder clearInfo() {
      
      info_ = getDefaultInstance().getInfo();
      onChanged();
      return this;
    }
    /**
     * <code>string info = 2;</code>
     */
    public Builder setInfoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      info_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctor_ = "";
    /**
     * <code>string doctor = 3;</code>
     */
    public java.lang.String getDoctor() {
      java.lang.Object ref = doctor_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctor_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctor = 3;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorBytes() {
      java.lang.Object ref = doctor_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctor_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctor = 3;</code>
     */
    public Builder setDoctor(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctor_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctor = 3;</code>
     */
    public Builder clearDoctor() {
      
      doctor_ = getDefaultInstance().getDoctor();
      onChanged();
      return this;
    }
    /**
     * <code>string doctor = 3;</code>
     */
    public Builder setDoctorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctor_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patient_ = "";
    /**
     * <code>string patient = 4;</code>
     */
    public java.lang.String getPatient() {
      java.lang.Object ref = patient_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patient_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patient = 4;</code>
     */
    public com.google.protobuf.ByteString
        getPatientBytes() {
      java.lang.Object ref = patient_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patient_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patient = 4;</code>
     */
    public Builder setPatient(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patient_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patient = 4;</code>
     */
    public Builder clearPatient() {
      
      patient_ = getDefaultInstance().getPatient();
      onChanged();
      return this;
    }
    /**
     * <code>string patient = 4;</code>
     */
    public Builder setPatientBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patient_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object mobile_ = "";
    /**
     * <code>string mobile = 5;</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;
      }
    }
    /**
     * <code>string mobile = 5;</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;
      }
    }
    /**
     * <code>string mobile = 5;</code>
     */
    public Builder setMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      mobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 5;</code>
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 5;</code>
     */
    public Builder setMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      mobile_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.drug.DisplayMedCon> displayMedCon_ =
      java.util.Collections.emptyList();
    private void ensureDisplayMedConIsMutable() {
      if (!((bitField0_ & 0x00000020) == 0x00000020)) {
        displayMedCon_ = new java.util.ArrayList<com.ywt.gapi.drug.DisplayMedCon>(displayMedCon_);
        bitField0_ |= 0x00000020;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.drug.DisplayMedCon, com.ywt.gapi.drug.DisplayMedCon.Builder, com.ywt.gapi.drug.DisplayMedConOrBuilder> displayMedConBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public java.util.List<com.ywt.gapi.drug.DisplayMedCon> getDisplayMedConList() {
      if (displayMedConBuilder_ == null) {
        return java.util.Collections.unmodifiableList(displayMedCon_);
      } else {
        return displayMedConBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public int getDisplayMedConCount() {
      if (displayMedConBuilder_ == null) {
        return displayMedCon_.size();
      } else {
        return displayMedConBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public com.ywt.gapi.drug.DisplayMedCon getDisplayMedCon(int index) {
      if (displayMedConBuilder_ == null) {
        return displayMedCon_.get(index);
      } else {
        return displayMedConBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public Builder setDisplayMedCon(
        int index, com.ywt.gapi.drug.DisplayMedCon value) {
      if (displayMedConBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDisplayMedConIsMutable();
        displayMedCon_.set(index, value);
        onChanged();
      } else {
        displayMedConBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public Builder setDisplayMedCon(
        int index, com.ywt.gapi.drug.DisplayMedCon.Builder builderForValue) {
      if (displayMedConBuilder_ == null) {
        ensureDisplayMedConIsMutable();
        displayMedCon_.set(index, builderForValue.build());
        onChanged();
      } else {
        displayMedConBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public Builder addDisplayMedCon(com.ywt.gapi.drug.DisplayMedCon value) {
      if (displayMedConBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDisplayMedConIsMutable();
        displayMedCon_.add(value);
        onChanged();
      } else {
        displayMedConBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public Builder addDisplayMedCon(
        int index, com.ywt.gapi.drug.DisplayMedCon value) {
      if (displayMedConBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDisplayMedConIsMutable();
        displayMedCon_.add(index, value);
        onChanged();
      } else {
        displayMedConBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public Builder addDisplayMedCon(
        com.ywt.gapi.drug.DisplayMedCon.Builder builderForValue) {
      if (displayMedConBuilder_ == null) {
        ensureDisplayMedConIsMutable();
        displayMedCon_.add(builderForValue.build());
        onChanged();
      } else {
        displayMedConBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public Builder addDisplayMedCon(
        int index, com.ywt.gapi.drug.DisplayMedCon.Builder builderForValue) {
      if (displayMedConBuilder_ == null) {
        ensureDisplayMedConIsMutable();
        displayMedCon_.add(index, builderForValue.build());
        onChanged();
      } else {
        displayMedConBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public Builder addAllDisplayMedCon(
        java.lang.Iterable<? extends com.ywt.gapi.drug.DisplayMedCon> values) {
      if (displayMedConBuilder_ == null) {
        ensureDisplayMedConIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, displayMedCon_);
        onChanged();
      } else {
        displayMedConBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public Builder clearDisplayMedCon() {
      if (displayMedConBuilder_ == null) {
        displayMedCon_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000020);
        onChanged();
      } else {
        displayMedConBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public Builder removeDisplayMedCon(int index) {
      if (displayMedConBuilder_ == null) {
        ensureDisplayMedConIsMutable();
        displayMedCon_.remove(index);
        onChanged();
      } else {
        displayMedConBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public com.ywt.gapi.drug.DisplayMedCon.Builder getDisplayMedConBuilder(
        int index) {
      return getDisplayMedConFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public com.ywt.gapi.drug.DisplayMedConOrBuilder getDisplayMedConOrBuilder(
        int index) {
      if (displayMedConBuilder_ == null) {
        return displayMedCon_.get(index);  } else {
        return displayMedConBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public java.util.List<? extends com.ywt.gapi.drug.DisplayMedConOrBuilder> 
         getDisplayMedConOrBuilderList() {
      if (displayMedConBuilder_ != null) {
        return displayMedConBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(displayMedCon_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public com.ywt.gapi.drug.DisplayMedCon.Builder addDisplayMedConBuilder() {
      return getDisplayMedConFieldBuilder().addBuilder(
          com.ywt.gapi.drug.DisplayMedCon.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public com.ywt.gapi.drug.DisplayMedCon.Builder addDisplayMedConBuilder(
        int index) {
      return getDisplayMedConFieldBuilder().addBuilder(
          index, com.ywt.gapi.drug.DisplayMedCon.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.drug.DisplayMedCon displayMedCon = 6;</code>
     */
    public java.util.List<com.ywt.gapi.drug.DisplayMedCon.Builder> 
         getDisplayMedConBuilderList() {
      return getDisplayMedConFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.drug.DisplayMedCon, com.ywt.gapi.drug.DisplayMedCon.Builder, com.ywt.gapi.drug.DisplayMedConOrBuilder> 
        getDisplayMedConFieldBuilder() {
      if (displayMedConBuilder_ == null) {
        displayMedConBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.drug.DisplayMedCon, com.ywt.gapi.drug.DisplayMedCon.Builder, com.ywt.gapi.drug.DisplayMedConOrBuilder>(
                displayMedCon_,
                ((bitField0_ & 0x00000020) == 0x00000020),
                getParentForChildren(),
                isClean());
        displayMedCon_ = null;
      }
      return displayMedConBuilder_;
    }

    private java.lang.Object dept_ = "";
    /**
     * <code>string dept = 7;</code>
     */
    public java.lang.String getDept() {
      java.lang.Object ref = dept_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        dept_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string dept = 7;</code>
     */
    public com.google.protobuf.ByteString
        getDeptBytes() {
      java.lang.Object ref = dept_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dept_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string dept = 7;</code>
     */
    public Builder setDept(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      dept_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string dept = 7;</code>
     */
    public Builder clearDept() {
      
      dept_ = getDefaultInstance().getDept();
      onChanged();
      return this;
    }
    /**
     * <code>string dept = 7;</code>
     */
    public Builder setDeptBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      dept_ = 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.drug.GetDisplayMedConOrderResponse)
  }

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

  public static com.ywt.gapi.drug.GetDisplayMedConOrderResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.drug.GetDisplayMedConOrderResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

