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

package com.ywt.gapi.third.taihe;

/**
 * Protobuf type {@code com.ywt.gapi.third.taihe.AddOEORIInfoRequest}
 */
public final class AddOEORIInfoRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.AddOEORIInfoRequest)
    AddOEORIInfoRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use AddOEORIInfoRequest.newBuilder() to construct.
  private AddOEORIInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private AddOEORIInfoRequest() {
    patientId_ = "";
    clinicCode_ = "";
    doctorCode_ = "";
    hisOEORIList_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private AddOEORIInfoRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

            doctorCode_ = s;
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              hisOEORIList_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.HisOEORI>();
              mutable_bitField0_ |= 0x00000001;
            }
            hisOEORIList_.add(
                input.readMessage(com.ywt.gapi.third.taihe.HisOEORI.parser(), extensionRegistry));
            break;
          }
          case 40: {

            hospitalId_ = input.readInt32();
            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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        hisOEORIList_ = java.util.Collections.unmodifiableList(hisOEORIList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_AddOEORIInfoRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_AddOEORIInfoRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.AddOEORIInfoRequest.class, com.ywt.gapi.third.taihe.AddOEORIInfoRequest.Builder.class);
  }

  public static final int PATIENTID_FIELD_NUMBER = 1;
  private volatile java.lang.Object patientId_;
  /**
   * <code>string patientId = 1;</code>
   * @return The patientId.
   */
  @java.lang.Override
  public java.lang.String getPatientId() {
    java.lang.Object ref = patientId_;
    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();
      patientId_ = s;
      return s;
    }
  }
  /**
   * <code>string patientId = 1;</code>
   * @return The bytes for patientId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientIdBytes() {
    java.lang.Object ref = patientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CLINICCODE_FIELD_NUMBER = 2;
  private volatile java.lang.Object clinicCode_;
  /**
   * <code>string clinicCode = 2;</code>
   * @return The clinicCode.
   */
  @java.lang.Override
  public java.lang.String getClinicCode() {
    java.lang.Object ref = clinicCode_;
    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();
      clinicCode_ = s;
      return s;
    }
  }
  /**
   * <code>string clinicCode = 2;</code>
   * @return The bytes for clinicCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getClinicCodeBytes() {
    java.lang.Object ref = clinicCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clinicCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORCODE_FIELD_NUMBER = 3;
  private volatile java.lang.Object doctorCode_;
  /**
   * <code>string doctorCode = 3;</code>
   * @return The doctorCode.
   */
  @java.lang.Override
  public java.lang.String getDoctorCode() {
    java.lang.Object ref = doctorCode_;
    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();
      doctorCode_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorCode = 3;</code>
   * @return The bytes for doctorCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorCodeBytes() {
    java.lang.Object ref = doctorCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISOEORILIST_FIELD_NUMBER = 4;
  private java.util.List<com.ywt.gapi.third.taihe.HisOEORI> hisOEORIList_;
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.third.taihe.HisOEORI> getHisOEORIListList() {
    return hisOEORIList_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.third.taihe.HisOEORIOrBuilder> 
      getHisOEORIListOrBuilderList() {
    return hisOEORIList_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
   */
  @java.lang.Override
  public int getHisOEORIListCount() {
    return hisOEORIList_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.taihe.HisOEORI getHisOEORIList(int index) {
    return hisOEORIList_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.taihe.HisOEORIOrBuilder getHisOEORIListOrBuilder(
      int index) {
    return hisOEORIList_.get(index);
  }

  public static final int HOSPITALID_FIELD_NUMBER = 5;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 5;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, patientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clinicCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, doctorCode_);
    }
    for (int i = 0; i < hisOEORIList_.size(); i++) {
      output.writeMessage(4, hisOEORIList_.get(i));
    }
    if (hospitalId_ != 0) {
      output.writeInt32(5, hospitalId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, patientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clinicCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, doctorCode_);
    }
    for (int i = 0; i < hisOEORIList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, hisOEORIList_.get(i));
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, hospitalId_);
    }
    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.third.taihe.AddOEORIInfoRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.AddOEORIInfoRequest other = (com.ywt.gapi.third.taihe.AddOEORIInfoRequest) obj;

    if (!getPatientId()
        .equals(other.getPatientId())) return false;
    if (!getClinicCode()
        .equals(other.getClinicCode())) return false;
    if (!getDoctorCode()
        .equals(other.getDoctorCode())) return false;
    if (!getHisOEORIListList()
        .equals(other.getHisOEORIListList())) return false;
    if (getHospitalId()
        != other.getHospitalId()) 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) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId().hashCode();
    hash = (37 * hash) + CLINICCODE_FIELD_NUMBER;
    hash = (53 * hash) + getClinicCode().hashCode();
    hash = (37 * hash) + DOCTORCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorCode().hashCode();
    if (getHisOEORIListCount() > 0) {
      hash = (37 * hash) + HISOEORILIST_FIELD_NUMBER;
      hash = (53 * hash) + getHisOEORIListList().hashCode();
    }
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_AddOEORIInfoRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.AddOEORIInfoRequest.class, com.ywt.gapi.third.taihe.AddOEORIInfoRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.third.taihe.AddOEORIInfoRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

      clinicCode_ = "";

      doctorCode_ = "";

      if (hisOEORIListBuilder_ == null) {
        hisOEORIList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        hisOEORIListBuilder_.clear();
      }
      hospitalId_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_AddOEORIInfoRequest_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.third.taihe.AddOEORIInfoRequest getDefaultInstanceForType() {
      return com.ywt.gapi.third.taihe.AddOEORIInfoRequest.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.ywt.gapi.third.taihe.AddOEORIInfoRequest buildPartial() {
      com.ywt.gapi.third.taihe.AddOEORIInfoRequest result = new com.ywt.gapi.third.taihe.AddOEORIInfoRequest(this);
      int from_bitField0_ = bitField0_;
      result.patientId_ = patientId_;
      result.clinicCode_ = clinicCode_;
      result.doctorCode_ = doctorCode_;
      if (hisOEORIListBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          hisOEORIList_ = java.util.Collections.unmodifiableList(hisOEORIList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.hisOEORIList_ = hisOEORIList_;
      } else {
        result.hisOEORIList_ = hisOEORIListBuilder_.build();
      }
      result.hospitalId_ = hospitalId_;
      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.third.taihe.AddOEORIInfoRequest) {
        return mergeFrom((com.ywt.gapi.third.taihe.AddOEORIInfoRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.AddOEORIInfoRequest other) {
      if (other == com.ywt.gapi.third.taihe.AddOEORIInfoRequest.getDefaultInstance()) return this;
      if (!other.getPatientId().isEmpty()) {
        patientId_ = other.patientId_;
        onChanged();
      }
      if (!other.getClinicCode().isEmpty()) {
        clinicCode_ = other.clinicCode_;
        onChanged();
      }
      if (!other.getDoctorCode().isEmpty()) {
        doctorCode_ = other.doctorCode_;
        onChanged();
      }
      if (hisOEORIListBuilder_ == null) {
        if (!other.hisOEORIList_.isEmpty()) {
          if (hisOEORIList_.isEmpty()) {
            hisOEORIList_ = other.hisOEORIList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureHisOEORIListIsMutable();
            hisOEORIList_.addAll(other.hisOEORIList_);
          }
          onChanged();
        }
      } else {
        if (!other.hisOEORIList_.isEmpty()) {
          if (hisOEORIListBuilder_.isEmpty()) {
            hisOEORIListBuilder_.dispose();
            hisOEORIListBuilder_ = null;
            hisOEORIList_ = other.hisOEORIList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            hisOEORIListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getHisOEORIListFieldBuilder() : null;
          } else {
            hisOEORIListBuilder_.addAllMessages(other.hisOEORIList_);
          }
        }
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      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.third.taihe.AddOEORIInfoRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.AddOEORIInfoRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object patientId_ = "";
    /**
     * <code>string patientId = 1;</code>
     * @return The patientId.
     */
    public java.lang.String getPatientId() {
      java.lang.Object ref = patientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientId = 1;</code>
     * @return The bytes for patientId.
     */
    public com.google.protobuf.ByteString
        getPatientIdBytes() {
      java.lang.Object ref = patientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientId = 1;</code>
     * @param value The patientId to set.
     * @return This builder for chaining.
     */
    public Builder setPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientId() {
      
      patientId_ = getDefaultInstance().getPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string patientId = 1;</code>
     * @param value The bytes for patientId to set.
     * @return This builder for chaining.
     */
    public Builder setPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientId_ = value;
      onChanged();
      return this;
    }

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

    private java.lang.Object doctorCode_ = "";
    /**
     * <code>string doctorCode = 3;</code>
     * @return The doctorCode.
     */
    public java.lang.String getDoctorCode() {
      java.lang.Object ref = doctorCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorCode = 3;</code>
     * @return The bytes for doctorCode.
     */
    public com.google.protobuf.ByteString
        getDoctorCodeBytes() {
      java.lang.Object ref = doctorCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorCode = 3;</code>
     * @param value The doctorCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 3;</code>
     * @param value The bytes for doctorCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorCode_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.third.taihe.HisOEORI> hisOEORIList_ =
      java.util.Collections.emptyList();
    private void ensureHisOEORIListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        hisOEORIList_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.HisOEORI>(hisOEORIList_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.HisOEORI, com.ywt.gapi.third.taihe.HisOEORI.Builder, com.ywt.gapi.third.taihe.HisOEORIOrBuilder> hisOEORIListBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.HisOEORI> getHisOEORIListList() {
      if (hisOEORIListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(hisOEORIList_);
      } else {
        return hisOEORIListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public int getHisOEORIListCount() {
      if (hisOEORIListBuilder_ == null) {
        return hisOEORIList_.size();
      } else {
        return hisOEORIListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public com.ywt.gapi.third.taihe.HisOEORI getHisOEORIList(int index) {
      if (hisOEORIListBuilder_ == null) {
        return hisOEORIList_.get(index);
      } else {
        return hisOEORIListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public Builder setHisOEORIList(
        int index, com.ywt.gapi.third.taihe.HisOEORI value) {
      if (hisOEORIListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHisOEORIListIsMutable();
        hisOEORIList_.set(index, value);
        onChanged();
      } else {
        hisOEORIListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public Builder setHisOEORIList(
        int index, com.ywt.gapi.third.taihe.HisOEORI.Builder builderForValue) {
      if (hisOEORIListBuilder_ == null) {
        ensureHisOEORIListIsMutable();
        hisOEORIList_.set(index, builderForValue.build());
        onChanged();
      } else {
        hisOEORIListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public Builder addHisOEORIList(com.ywt.gapi.third.taihe.HisOEORI value) {
      if (hisOEORIListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHisOEORIListIsMutable();
        hisOEORIList_.add(value);
        onChanged();
      } else {
        hisOEORIListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public Builder addHisOEORIList(
        int index, com.ywt.gapi.third.taihe.HisOEORI value) {
      if (hisOEORIListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHisOEORIListIsMutable();
        hisOEORIList_.add(index, value);
        onChanged();
      } else {
        hisOEORIListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public Builder addHisOEORIList(
        com.ywt.gapi.third.taihe.HisOEORI.Builder builderForValue) {
      if (hisOEORIListBuilder_ == null) {
        ensureHisOEORIListIsMutable();
        hisOEORIList_.add(builderForValue.build());
        onChanged();
      } else {
        hisOEORIListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public Builder addHisOEORIList(
        int index, com.ywt.gapi.third.taihe.HisOEORI.Builder builderForValue) {
      if (hisOEORIListBuilder_ == null) {
        ensureHisOEORIListIsMutable();
        hisOEORIList_.add(index, builderForValue.build());
        onChanged();
      } else {
        hisOEORIListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public Builder addAllHisOEORIList(
        java.lang.Iterable<? extends com.ywt.gapi.third.taihe.HisOEORI> values) {
      if (hisOEORIListBuilder_ == null) {
        ensureHisOEORIListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, hisOEORIList_);
        onChanged();
      } else {
        hisOEORIListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public Builder clearHisOEORIList() {
      if (hisOEORIListBuilder_ == null) {
        hisOEORIList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        hisOEORIListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public Builder removeHisOEORIList(int index) {
      if (hisOEORIListBuilder_ == null) {
        ensureHisOEORIListIsMutable();
        hisOEORIList_.remove(index);
        onChanged();
      } else {
        hisOEORIListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public com.ywt.gapi.third.taihe.HisOEORI.Builder getHisOEORIListBuilder(
        int index) {
      return getHisOEORIListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public com.ywt.gapi.third.taihe.HisOEORIOrBuilder getHisOEORIListOrBuilder(
        int index) {
      if (hisOEORIListBuilder_ == null) {
        return hisOEORIList_.get(index);  } else {
        return hisOEORIListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public java.util.List<? extends com.ywt.gapi.third.taihe.HisOEORIOrBuilder> 
         getHisOEORIListOrBuilderList() {
      if (hisOEORIListBuilder_ != null) {
        return hisOEORIListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(hisOEORIList_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public com.ywt.gapi.third.taihe.HisOEORI.Builder addHisOEORIListBuilder() {
      return getHisOEORIListFieldBuilder().addBuilder(
          com.ywt.gapi.third.taihe.HisOEORI.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public com.ywt.gapi.third.taihe.HisOEORI.Builder addHisOEORIListBuilder(
        int index) {
      return getHisOEORIListFieldBuilder().addBuilder(
          index, com.ywt.gapi.third.taihe.HisOEORI.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORI hisOEORIList = 4;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.HisOEORI.Builder> 
         getHisOEORIListBuilderList() {
      return getHisOEORIListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.HisOEORI, com.ywt.gapi.third.taihe.HisOEORI.Builder, com.ywt.gapi.third.taihe.HisOEORIOrBuilder> 
        getHisOEORIListFieldBuilder() {
      if (hisOEORIListBuilder_ == null) {
        hisOEORIListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.third.taihe.HisOEORI, com.ywt.gapi.third.taihe.HisOEORI.Builder, com.ywt.gapi.third.taihe.HisOEORIOrBuilder>(
                hisOEORIList_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        hisOEORIList_ = null;
      }
      return hisOEORIListBuilder_;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 5;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 5;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      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.third.taihe.AddOEORIInfoRequest)
  }

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

  public static com.ywt.gapi.third.taihe.AddOEORIInfoRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.third.taihe.AddOEORIInfoRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

