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

package com.ywt.gapi.order;

/**
 * <pre>
 *安排转诊请求
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.order.ArrangeTransferRequest}
 */
public  final class ArrangeTransferRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.ArrangeTransferRequest)
    ArrangeTransferRequestOrBuilder {
  // Use ArrangeTransferRequest.newBuilder() to construct.
  private ArrangeTransferRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ArrangeTransferRequest() {
    doctorId_ = 0;
    orderId_ = 0;
    isArranged_ = 0;
    hospitalName_ = "";
    deptName_ = "";
    bedNumber_ = "";
    transferDate_ = 0L;
    transferPeriod_ = 0;
  }

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

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

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

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

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

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

            bedNumber_ = s;
            break;
          }
          case 56: {

            transferDate_ = input.readInt64();
            break;
          }
          case 64: {

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

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

  public static final int DOCTORID_FIELD_NUMBER = 1;
  private int doctorId_;
  /**
   * <code>int32 doctorId = 1;</code>
   */
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int ORDERID_FIELD_NUMBER = 2;
  private int orderId_;
  /**
   * <code>int32 orderId = 2;</code>
   */
  public int getOrderId() {
    return orderId_;
  }

  public static final int ISARRANGED_FIELD_NUMBER = 3;
  private int isArranged_;
  /**
   * <code>int32 isArranged = 3;</code>
   */
  public int getIsArranged() {
    return isArranged_;
  }

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

  public static final int DEPTNAME_FIELD_NUMBER = 5;
  private volatile java.lang.Object deptName_;
  /**
   * <code>string deptName = 5;</code>
   */
  public java.lang.String getDeptName() {
    java.lang.Object ref = deptName_;
    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();
      deptName_ = s;
      return s;
    }
  }
  /**
   * <code>string deptName = 5;</code>
   */
  public com.google.protobuf.ByteString
      getDeptNameBytes() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BEDNUMBER_FIELD_NUMBER = 6;
  private volatile java.lang.Object bedNumber_;
  /**
   * <code>string bedNumber = 6;</code>
   */
  public java.lang.String getBedNumber() {
    java.lang.Object ref = bedNumber_;
    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();
      bedNumber_ = s;
      return s;
    }
  }
  /**
   * <code>string bedNumber = 6;</code>
   */
  public com.google.protobuf.ByteString
      getBedNumberBytes() {
    java.lang.Object ref = bedNumber_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      bedNumber_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TRANSFERDATE_FIELD_NUMBER = 7;
  private long transferDate_;
  /**
   * <code>int64 transferDate = 7;</code>
   */
  public long getTransferDate() {
    return transferDate_;
  }

  public static final int TRANSFERPERIOD_FIELD_NUMBER = 8;
  private int transferPeriod_;
  /**
   * <code>int32 transferPeriod = 8;</code>
   */
  public int getTransferPeriod() {
    return transferPeriod_;
  }

  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 (doctorId_ != 0) {
      output.writeInt32(1, doctorId_);
    }
    if (orderId_ != 0) {
      output.writeInt32(2, orderId_);
    }
    if (isArranged_ != 0) {
      output.writeInt32(3, isArranged_);
    }
    if (!getHospitalNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hospitalName_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deptName_);
    }
    if (!getBedNumberBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, bedNumber_);
    }
    if (transferDate_ != 0L) {
      output.writeInt64(7, transferDate_);
    }
    if (transferPeriod_ != 0) {
      output.writeInt32(8, transferPeriod_);
    }
  }

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

    size = 0;
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, doctorId_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, orderId_);
    }
    if (isArranged_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, isArranged_);
    }
    if (!getHospitalNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hospitalName_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deptName_);
    }
    if (!getBedNumberBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, bedNumber_);
    }
    if (transferDate_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(7, transferDate_);
    }
    if (transferPeriod_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, transferPeriod_);
    }
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && (getDoctorId()
        == other.getDoctorId());
    result = result && (getOrderId()
        == other.getOrderId());
    result = result && (getIsArranged()
        == other.getIsArranged());
    result = result && getHospitalName()
        .equals(other.getHospitalName());
    result = result && getDeptName()
        .equals(other.getDeptName());
    result = result && getBedNumber()
        .equals(other.getBedNumber());
    result = result && (getTransferDate()
        == other.getTransferDate());
    result = result && (getTransferPeriod()
        == other.getTransferPeriod());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + ISARRANGED_FIELD_NUMBER;
    hash = (53 * hash) + getIsArranged();
    hash = (37 * hash) + HOSPITALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalName().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + BEDNUMBER_FIELD_NUMBER;
    hash = (53 * hash) + getBedNumber().hashCode();
    hash = (37 * hash) + TRANSFERDATE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getTransferDate());
    hash = (37 * hash) + TRANSFERPERIOD_FIELD_NUMBER;
    hash = (53 * hash) + getTransferPeriod();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.order.ArrangeTransferRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.ArrangeTransferRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.order.ArrangeTransferRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *安排转诊请求
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.order.ArrangeTransferRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.order.ArrangeTransferRequest)
      com.ywt.gapi.order.ArrangeTransferRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_ArrangeTransferRequest_descriptor;
    }

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

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

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

      orderId_ = 0;

      isArranged_ = 0;

      hospitalName_ = "";

      deptName_ = "";

      bedNumber_ = "";

      transferDate_ = 0L;

      transferPeriod_ = 0;

      return this;
    }

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

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

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

    public com.ywt.gapi.order.ArrangeTransferRequest buildPartial() {
      com.ywt.gapi.order.ArrangeTransferRequest result = new com.ywt.gapi.order.ArrangeTransferRequest(this);
      result.doctorId_ = doctorId_;
      result.orderId_ = orderId_;
      result.isArranged_ = isArranged_;
      result.hospitalName_ = hospitalName_;
      result.deptName_ = deptName_;
      result.bedNumber_ = bedNumber_;
      result.transferDate_ = transferDate_;
      result.transferPeriod_ = transferPeriod_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.order.ArrangeTransferRequest other) {
      if (other == com.ywt.gapi.order.ArrangeTransferRequest.getDefaultInstance()) return this;
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (other.getIsArranged() != 0) {
        setIsArranged(other.getIsArranged());
      }
      if (!other.getHospitalName().isEmpty()) {
        hospitalName_ = other.hospitalName_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getBedNumber().isEmpty()) {
        bedNumber_ = other.bedNumber_;
        onChanged();
      }
      if (other.getTransferDate() != 0L) {
        setTransferDate(other.getTransferDate());
      }
      if (other.getTransferPeriod() != 0) {
        setTransferPeriod(other.getTransferPeriod());
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

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

    private int orderId_ ;
    /**
     * <code>int32 orderId = 2;</code>
     */
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <code>int32 orderId = 2;</code>
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderId = 2;</code>
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private int isArranged_ ;
    /**
     * <code>int32 isArranged = 3;</code>
     */
    public int getIsArranged() {
      return isArranged_;
    }
    /**
     * <code>int32 isArranged = 3;</code>
     */
    public Builder setIsArranged(int value) {
      
      isArranged_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 isArranged = 3;</code>
     */
    public Builder clearIsArranged() {
      
      isArranged_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hospitalName_ = "";
    /**
     * <code>string hospitalName = 4;</code>
     */
    public java.lang.String getHospitalName() {
      java.lang.Object ref = hospitalName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hospitalName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hospitalName = 4;</code>
     */
    public com.google.protobuf.ByteString
        getHospitalNameBytes() {
      java.lang.Object ref = hospitalName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hospitalName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hospitalName = 4;</code>
     */
    public Builder setHospitalName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hospitalName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hospitalName = 4;</code>
     */
    public Builder clearHospitalName() {
      
      hospitalName_ = getDefaultInstance().getHospitalName();
      onChanged();
      return this;
    }
    /**
     * <code>string hospitalName = 4;</code>
     */
    public Builder setHospitalNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hospitalName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptName_ = "";
    /**
     * <code>string deptName = 5;</code>
     */
    public java.lang.String getDeptName() {
      java.lang.Object ref = deptName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string deptName = 5;</code>
     */
    public com.google.protobuf.ByteString
        getDeptNameBytes() {
      java.lang.Object ref = deptName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string deptName = 5;</code>
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 5;</code>
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 5;</code>
     */
    public Builder setDeptNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object bedNumber_ = "";
    /**
     * <code>string bedNumber = 6;</code>
     */
    public java.lang.String getBedNumber() {
      java.lang.Object ref = bedNumber_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        bedNumber_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string bedNumber = 6;</code>
     */
    public com.google.protobuf.ByteString
        getBedNumberBytes() {
      java.lang.Object ref = bedNumber_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        bedNumber_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string bedNumber = 6;</code>
     */
    public Builder setBedNumber(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      bedNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string bedNumber = 6;</code>
     */
    public Builder clearBedNumber() {
      
      bedNumber_ = getDefaultInstance().getBedNumber();
      onChanged();
      return this;
    }
    /**
     * <code>string bedNumber = 6;</code>
     */
    public Builder setBedNumberBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      bedNumber_ = value;
      onChanged();
      return this;
    }

    private long transferDate_ ;
    /**
     * <code>int64 transferDate = 7;</code>
     */
    public long getTransferDate() {
      return transferDate_;
    }
    /**
     * <code>int64 transferDate = 7;</code>
     */
    public Builder setTransferDate(long value) {
      
      transferDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 transferDate = 7;</code>
     */
    public Builder clearTransferDate() {
      
      transferDate_ = 0L;
      onChanged();
      return this;
    }

    private int transferPeriod_ ;
    /**
     * <code>int32 transferPeriod = 8;</code>
     */
    public int getTransferPeriod() {
      return transferPeriod_;
    }
    /**
     * <code>int32 transferPeriod = 8;</code>
     */
    public Builder setTransferPeriod(int value) {
      
      transferPeriod_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 transferPeriod = 8;</code>
     */
    public Builder clearTransferPeriod() {
      
      transferPeriod_ = 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.order.ArrangeTransferRequest)
  }

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

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

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

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

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

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

}

