// 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.CancelOEORIInfoRequest}
 */
public  final class CancelOEORIInfoRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.CancelOEORIInfoRequest)
    CancelOEORIInfoRequestOrBuilder {
  // Use CancelOEORIInfoRequest.newBuilder() to construct.
  private CancelOEORIInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CancelOEORIInfoRequest() {
    patientId_ = "";
    orderId_ = "";
    doctorCode_ = "";
    hisOEORIList_ = java.util.Collections.emptyList();
    hospitalId_ = 0;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private CancelOEORIInfoRequest(
      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 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

            hospitalId_ = input.readInt32();
            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_ & 0x00000008) == 0x00000008)) {
        hisOEORIList_ = java.util.Collections.unmodifiableList(hisOEORIList_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_CancelOEORIInfoRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_CancelOEORIInfoRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.CancelOEORIInfoRequest.class, com.ywt.gapi.third.taihe.CancelOEORIInfoRequest.Builder.class);
  }

  private int bitField0_;
  public static final int PATIENTID_FIELD_NUMBER = 1;
  private volatile java.lang.Object patientId_;
  /**
   * <code>string patientId = 1;</code>
   */
  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>
   */
  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 ORDERID_FIELD_NUMBER = 2;
  private volatile java.lang.Object orderId_;
  /**
   * <code>string orderId = 2;</code>
   */
  public java.lang.String getOrderId() {
    java.lang.Object ref = orderId_;
    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();
      orderId_ = s;
      return s;
    }
  }
  /**
   * <code>string orderId = 2;</code>
   */
  public com.google.protobuf.ByteString
      getOrderIdBytes() {
    java.lang.Object ref = orderId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderId_ = 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>
   */
  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>
   */
  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.HisOEORIListItem> hisOEORIList_;
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
   */
  public java.util.List<com.ywt.gapi.third.taihe.HisOEORIListItem> getHisOEORIListList() {
    return hisOEORIList_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
   */
  public java.util.List<? extends com.ywt.gapi.third.taihe.HisOEORIListItemOrBuilder> 
      getHisOEORIListOrBuilderList() {
    return hisOEORIList_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
   */
  public int getHisOEORIListCount() {
    return hisOEORIList_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
   */
  public com.ywt.gapi.third.taihe.HisOEORIListItem getHisOEORIList(int index) {
    return hisOEORIList_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
   */
  public com.ywt.gapi.third.taihe.HisOEORIListItemOrBuilder getHisOEORIListOrBuilder(
      int index) {
    return hisOEORIList_.get(index);
  }

  public static final int HOSPITALID_FIELD_NUMBER = 5;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 5;</code>
   */
  public int getHospitalId() {
    return hospitalId_;
  }

  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 (!getPatientIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, patientId_);
    }
    if (!getOrderIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderId_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      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_);
    }
  }

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

    size = 0;
    if (!getPatientIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, patientId_);
    }
    if (!getOrderIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderId_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      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_);
    }
    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.third.taihe.CancelOEORIInfoRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.CancelOEORIInfoRequest other = (com.ywt.gapi.third.taihe.CancelOEORIInfoRequest) obj;

    boolean result = true;
    result = result && getPatientId()
        .equals(other.getPatientId());
    result = result && getOrderId()
        .equals(other.getOrderId());
    result = result && getDoctorCode()
        .equals(other.getDoctorCode());
    result = result && getHisOEORIListList()
        .equals(other.getHisOEORIListList());
    result = result && (getHospitalId()
        == other.getHospitalId());
    return result;
  }

  @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) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId().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.CancelOEORIInfoRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.CancelOEORIInfoRequest 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.CancelOEORIInfoRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.CancelOEORIInfoRequest 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.CancelOEORIInfoRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.CancelOEORIInfoRequest 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.CancelOEORIInfoRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.CancelOEORIInfoRequest 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.CancelOEORIInfoRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.CancelOEORIInfoRequest 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.CancelOEORIInfoRequest 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.CancelOEORIInfoRequest 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.third.taihe.CancelOEORIInfoRequest 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.third.taihe.CancelOEORIInfoRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.CancelOEORIInfoRequest)
      com.ywt.gapi.third.taihe.CancelOEORIInfoRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_CancelOEORIInfoRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_CancelOEORIInfoRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.CancelOEORIInfoRequest.class, com.ywt.gapi.third.taihe.CancelOEORIInfoRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.third.taihe.CancelOEORIInfoRequest.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();
      }
    }
    public Builder clear() {
      super.clear();
      patientId_ = "";

      orderId_ = "";

      doctorCode_ = "";

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

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_CancelOEORIInfoRequest_descriptor;
    }

    public com.ywt.gapi.third.taihe.CancelOEORIInfoRequest getDefaultInstanceForType() {
      return com.ywt.gapi.third.taihe.CancelOEORIInfoRequest.getDefaultInstance();
    }

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

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

    public Builder mergeFrom(com.ywt.gapi.third.taihe.CancelOEORIInfoRequest other) {
      if (other == com.ywt.gapi.third.taihe.CancelOEORIInfoRequest.getDefaultInstance()) return this;
      if (!other.getPatientId().isEmpty()) {
        patientId_ = other.patientId_;
        onChanged();
      }
      if (!other.getOrderId().isEmpty()) {
        orderId_ = other.orderId_;
        onChanged();
      }
      if (!other.getDoctorCode().isEmpty()) {
        doctorCode_ = other.doctorCode_;
        onChanged();
      }
      if (hisOEORIListBuilder_ == null) {
        if (!other.hisOEORIList_.isEmpty()) {
          if (hisOEORIList_.isEmpty()) {
            hisOEORIList_ = other.hisOEORIList_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureHisOEORIListIsMutable();
            hisOEORIList_.addAll(other.hisOEORIList_);
          }
          onChanged();
        }
      } else {
        if (!other.hisOEORIList_.isEmpty()) {
          if (hisOEORIListBuilder_.isEmpty()) {
            hisOEORIListBuilder_.dispose();
            hisOEORIListBuilder_ = null;
            hisOEORIList_ = other.hisOEORIList_;
            bitField0_ = (bitField0_ & ~0x00000008);
            hisOEORIListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getHisOEORIListFieldBuilder() : null;
          } else {
            hisOEORIListBuilder_.addAllMessages(other.hisOEORIList_);
          }
        }
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      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.third.taihe.CancelOEORIInfoRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.CancelOEORIInfoRequest) 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>
     */
    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>
     */
    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>
     */
    public Builder setPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientId = 1;</code>
     */
    public Builder clearPatientId() {
      
      patientId_ = getDefaultInstance().getPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string patientId = 1;</code>
     */
    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 orderId_ = "";
    /**
     * <code>string orderId = 2;</code>
     */
    public java.lang.String getOrderId() {
      java.lang.Object ref = orderId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orderId = 2;</code>
     */
    public com.google.protobuf.ByteString
        getOrderIdBytes() {
      java.lang.Object ref = orderId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderId = 2;</code>
     */
    public Builder setOrderId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderId = 2;</code>
     */
    public Builder clearOrderId() {
      
      orderId_ = getDefaultInstance().getOrderId();
      onChanged();
      return this;
    }
    /**
     * <code>string orderId = 2;</code>
     */
    public Builder setOrderIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorCode_ = "";
    /**
     * <code>string doctorCode = 3;</code>
     */
    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>
     */
    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>
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 3;</code>
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 3;</code>
     */
    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.HisOEORIListItem> hisOEORIList_ =
      java.util.Collections.emptyList();
    private void ensureHisOEORIListIsMutable() {
      if (!((bitField0_ & 0x00000008) == 0x00000008)) {
        hisOEORIList_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.HisOEORIListItem>(hisOEORIList_);
        bitField0_ |= 0x00000008;
       }
    }

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

    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.HisOEORIListItem> getHisOEORIListList() {
      if (hisOEORIListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(hisOEORIList_);
      } else {
        return hisOEORIListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public int getHisOEORIListCount() {
      if (hisOEORIListBuilder_ == null) {
        return hisOEORIList_.size();
      } else {
        return hisOEORIListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public com.ywt.gapi.third.taihe.HisOEORIListItem getHisOEORIList(int index) {
      if (hisOEORIListBuilder_ == null) {
        return hisOEORIList_.get(index);
      } else {
        return hisOEORIListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public Builder setHisOEORIList(
        int index, com.ywt.gapi.third.taihe.HisOEORIListItem 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.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public Builder setHisOEORIList(
        int index, com.ywt.gapi.third.taihe.HisOEORIListItem.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.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public Builder addHisOEORIList(com.ywt.gapi.third.taihe.HisOEORIListItem 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.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public Builder addHisOEORIList(
        int index, com.ywt.gapi.third.taihe.HisOEORIListItem 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.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public Builder addHisOEORIList(
        com.ywt.gapi.third.taihe.HisOEORIListItem.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.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public Builder addHisOEORIList(
        int index, com.ywt.gapi.third.taihe.HisOEORIListItem.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.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public Builder addAllHisOEORIList(
        java.lang.Iterable<? extends com.ywt.gapi.third.taihe.HisOEORIListItem> 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.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public Builder clearHisOEORIList() {
      if (hisOEORIListBuilder_ == null) {
        hisOEORIList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        hisOEORIListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem 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.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public com.ywt.gapi.third.taihe.HisOEORIListItem.Builder getHisOEORIListBuilder(
        int index) {
      return getHisOEORIListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public com.ywt.gapi.third.taihe.HisOEORIListItemOrBuilder getHisOEORIListOrBuilder(
        int index) {
      if (hisOEORIListBuilder_ == null) {
        return hisOEORIList_.get(index);  } else {
        return hisOEORIListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public java.util.List<? extends com.ywt.gapi.third.taihe.HisOEORIListItemOrBuilder> 
         getHisOEORIListOrBuilderList() {
      if (hisOEORIListBuilder_ != null) {
        return hisOEORIListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(hisOEORIList_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public com.ywt.gapi.third.taihe.HisOEORIListItem.Builder addHisOEORIListBuilder() {
      return getHisOEORIListFieldBuilder().addBuilder(
          com.ywt.gapi.third.taihe.HisOEORIListItem.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public com.ywt.gapi.third.taihe.HisOEORIListItem.Builder addHisOEORIListBuilder(
        int index) {
      return getHisOEORIListFieldBuilder().addBuilder(
          index, com.ywt.gapi.third.taihe.HisOEORIListItem.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.HisOEORIListItem hisOEORIList = 4;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.HisOEORIListItem.Builder> 
         getHisOEORIListBuilderList() {
      return getHisOEORIListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.HisOEORIListItem, com.ywt.gapi.third.taihe.HisOEORIListItem.Builder, com.ywt.gapi.third.taihe.HisOEORIListItemOrBuilder> 
        getHisOEORIListFieldBuilder() {
      if (hisOEORIListBuilder_ == null) {
        hisOEORIListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.third.taihe.HisOEORIListItem, com.ywt.gapi.third.taihe.HisOEORIListItem.Builder, com.ywt.gapi.third.taihe.HisOEORIListItemOrBuilder>(
                hisOEORIList_,
                ((bitField0_ & 0x00000008) == 0x00000008),
                getParentForChildren(),
                isClean());
        hisOEORIList_ = null;
      }
      return hisOEORIListBuilder_;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 5;</code>
     */
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 5;</code>
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 5;</code>
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      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.third.taihe.CancelOEORIInfoRequest)
  }

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

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

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

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

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

  public com.ywt.gapi.third.taihe.CancelOEORIInfoRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

