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

package com.ywt.gapi.third.sinopharm;

/**
 * <pre>
 *患者信息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.third.sinopharm.PatInfo}
 */
public final class PatInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.sinopharm.PatInfo)
    PatInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PatInfo.newBuilder() to construct.
  private PatInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PatInfo() {
    patName_ = "";
    patIdCardNo_ = "";
    patInsCardNo_ = "";
  }

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

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

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

            patIdCardNo_ = s;
            break;
          }
          case 24: {

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

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

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

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PatInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.sinopharm.PatInfo.class, com.ywt.gapi.third.sinopharm.PatInfo.Builder.class);
  }

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

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

  public static final int PATAGE_FIELD_NUMBER = 3;
  private int patAge_;
  /**
   * <code>int32 patAge = 3;</code>
   * @return The patAge.
   */
  @java.lang.Override
  public int getPatAge() {
    return patAge_;
  }

  public static final int PATSEX_FIELD_NUMBER = 4;
  private int patSex_;
  /**
   * <pre>
   *患者性别,0-男，1-女
   * </pre>
   *
   * <code>int32 patSex = 4;</code>
   * @return The patSex.
   */
  @java.lang.Override
  public int getPatSex() {
    return patSex_;
  }

  public static final int PATINSCARDNO_FIELD_NUMBER = 5;
  private volatile java.lang.Object patInsCardNo_;
  /**
   * <code>string patInsCardNo = 5;</code>
   * @return The patInsCardNo.
   */
  @java.lang.Override
  public java.lang.String getPatInsCardNo() {
    java.lang.Object ref = patInsCardNo_;
    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();
      patInsCardNo_ = s;
      return s;
    }
  }
  /**
   * <code>string patInsCardNo = 5;</code>
   * @return The bytes for patInsCardNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatInsCardNoBytes() {
    java.lang.Object ref = patInsCardNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patInsCardNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, patName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patIdCardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, patIdCardNo_);
    }
    if (patAge_ != 0) {
      output.writeInt32(3, patAge_);
    }
    if (patSex_ != 0) {
      output.writeInt32(4, patSex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patInsCardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, patInsCardNo_);
    }
    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(patName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, patName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patIdCardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, patIdCardNo_);
    }
    if (patAge_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, patAge_);
    }
    if (patSex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, patSex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patInsCardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, patInsCardNo_);
    }
    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.sinopharm.PatInfo)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.sinopharm.PatInfo other = (com.ywt.gapi.third.sinopharm.PatInfo) obj;

    if (!getPatName()
        .equals(other.getPatName())) return false;
    if (!getPatIdCardNo()
        .equals(other.getPatIdCardNo())) return false;
    if (getPatAge()
        != other.getPatAge()) return false;
    if (getPatSex()
        != other.getPatSex()) return false;
    if (!getPatInsCardNo()
        .equals(other.getPatInsCardNo())) 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) + PATNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatName().hashCode();
    hash = (37 * hash) + PATIDCARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getPatIdCardNo().hashCode();
    hash = (37 * hash) + PATAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPatAge();
    hash = (37 * hash) + PATSEX_FIELD_NUMBER;
    hash = (53 * hash) + getPatSex();
    hash = (37 * hash) + PATINSCARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getPatInsCardNo().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.sinopharm.PatInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.sinopharm.PatInfo 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.sinopharm.PatInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.sinopharm.PatInfo 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.sinopharm.PatInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.sinopharm.PatInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.third.sinopharm.PatInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.sinopharm.PatInfo 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.sinopharm.PatInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.sinopharm.PatInfo 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.sinopharm.PatInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.sinopharm.PatInfo 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.sinopharm.PatInfo prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *患者信息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.sinopharm.PatInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.sinopharm.PatInfo)
      com.ywt.gapi.third.sinopharm.PatInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PatInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PatInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.sinopharm.PatInfo.class, com.ywt.gapi.third.sinopharm.PatInfo.Builder.class);
    }

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

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

      patIdCardNo_ = "";

      patAge_ = 0;

      patSex_ = 0;

      patInsCardNo_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.sinopharm.SinopharmProto.internal_static_com_ywt_gapi_third_sinopharm_PatInfo_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.third.sinopharm.PatInfo buildPartial() {
      com.ywt.gapi.third.sinopharm.PatInfo result = new com.ywt.gapi.third.sinopharm.PatInfo(this);
      result.patName_ = patName_;
      result.patIdCardNo_ = patIdCardNo_;
      result.patAge_ = patAge_;
      result.patSex_ = patSex_;
      result.patInsCardNo_ = patInsCardNo_;
      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.sinopharm.PatInfo) {
        return mergeFrom((com.ywt.gapi.third.sinopharm.PatInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.sinopharm.PatInfo other) {
      if (other == com.ywt.gapi.third.sinopharm.PatInfo.getDefaultInstance()) return this;
      if (!other.getPatName().isEmpty()) {
        patName_ = other.patName_;
        onChanged();
      }
      if (!other.getPatIdCardNo().isEmpty()) {
        patIdCardNo_ = other.patIdCardNo_;
        onChanged();
      }
      if (other.getPatAge() != 0) {
        setPatAge(other.getPatAge());
      }
      if (other.getPatSex() != 0) {
        setPatSex(other.getPatSex());
      }
      if (!other.getPatInsCardNo().isEmpty()) {
        patInsCardNo_ = other.patInsCardNo_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

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

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

    private int patAge_ ;
    /**
     * <code>int32 patAge = 3;</code>
     * @return The patAge.
     */
    @java.lang.Override
    public int getPatAge() {
      return patAge_;
    }
    /**
     * <code>int32 patAge = 3;</code>
     * @param value The patAge to set.
     * @return This builder for chaining.
     */
    public Builder setPatAge(int value) {
      
      patAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patAge = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatAge() {
      
      patAge_ = 0;
      onChanged();
      return this;
    }

    private int patSex_ ;
    /**
     * <pre>
     *患者性别,0-男，1-女
     * </pre>
     *
     * <code>int32 patSex = 4;</code>
     * @return The patSex.
     */
    @java.lang.Override
    public int getPatSex() {
      return patSex_;
    }
    /**
     * <pre>
     *患者性别,0-男，1-女
     * </pre>
     *
     * <code>int32 patSex = 4;</code>
     * @param value The patSex to set.
     * @return This builder for chaining.
     */
    public Builder setPatSex(int value) {
      
      patSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者性别,0-男，1-女
     * </pre>
     *
     * <code>int32 patSex = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatSex() {
      
      patSex_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object patInsCardNo_ = "";
    /**
     * <code>string patInsCardNo = 5;</code>
     * @return The patInsCardNo.
     */
    public java.lang.String getPatInsCardNo() {
      java.lang.Object ref = patInsCardNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patInsCardNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patInsCardNo = 5;</code>
     * @return The bytes for patInsCardNo.
     */
    public com.google.protobuf.ByteString
        getPatInsCardNoBytes() {
      java.lang.Object ref = patInsCardNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patInsCardNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patInsCardNo = 5;</code>
     * @param value The patInsCardNo to set.
     * @return This builder for chaining.
     */
    public Builder setPatInsCardNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patInsCardNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patInsCardNo = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatInsCardNo() {
      
      patInsCardNo_ = getDefaultInstance().getPatInsCardNo();
      onChanged();
      return this;
    }
    /**
     * <code>string patInsCardNo = 5;</code>
     * @param value The bytes for patInsCardNo to set.
     * @return This builder for chaining.
     */
    public Builder setPatInsCardNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patInsCardNo_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.third.sinopharm.PatInfo)
  }

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

  public static com.ywt.gapi.third.sinopharm.PatInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

