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

package com.ywt.gapi.order;

/**
 * Protobuf type {@code com.ywt.gapi.order.CreateReportRequest}
 */
public  final class CreateReportRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.CreateReportRequest)
    CreateReportRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CreateReportRequest.newBuilder() to construct.
  private CreateReportRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CreateReportRequest() {
    sessionId_ = "";
    orderId_ = 0;
    orderNo_ = "";
    userId_ = 0;
    fromDoctorId_ = 0;
    toDoctorId_ = 0;
    createTime_ = 0L;
    fileKey_ = "";
    fileSaveMode_ = 0;
    suggestion_ = "";
    total_ = 0;
    pages_ = 0;
  }

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

            sessionId_ = s;
            break;
          }
          case 16: {

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

            orderNo_ = s;
            break;
          }
          case 32: {

            userId_ = input.readInt32();
            break;
          }
          case 40: {

            fromDoctorId_ = input.readInt32();
            break;
          }
          case 48: {

            toDoctorId_ = input.readInt32();
            break;
          }
          case 56: {

            createTime_ = input.readInt64();
            break;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();

            fileKey_ = s;
            break;
          }
          case 72: {

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

            suggestion_ = s;
            break;
          }
          case 88: {

            total_ = input.readInt32();
            break;
          }
          case 96: {

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

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

  public static final int SESSIONID_FIELD_NUMBER = 1;
  private volatile java.lang.Object sessionId_;
  /**
   * <code>string sessionId = 1;</code>
   */
  public java.lang.String getSessionId() {
    java.lang.Object ref = sessionId_;
    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();
      sessionId_ = s;
      return s;
    }
  }
  /**
   * <code>string sessionId = 1;</code>
   */
  public com.google.protobuf.ByteString
      getSessionIdBytes() {
    java.lang.Object ref = sessionId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      sessionId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 ORDERNO_FIELD_NUMBER = 3;
  private volatile java.lang.Object orderNo_;
  /**
   * <code>string orderNo = 3;</code>
   */
  public java.lang.String getOrderNo() {
    java.lang.Object ref = orderNo_;
    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();
      orderNo_ = s;
      return s;
    }
  }
  /**
   * <code>string orderNo = 3;</code>
   */
  public com.google.protobuf.ByteString
      getOrderNoBytes() {
    java.lang.Object ref = orderNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int USERID_FIELD_NUMBER = 4;
  private int userId_;
  /**
   * <code>int32 userId = 4;</code>
   */
  public int getUserId() {
    return userId_;
  }

  public static final int FROMDOCTORID_FIELD_NUMBER = 5;
  private int fromDoctorId_;
  /**
   * <code>int32 fromDoctorId = 5;</code>
   */
  public int getFromDoctorId() {
    return fromDoctorId_;
  }

  public static final int TODOCTORID_FIELD_NUMBER = 6;
  private int toDoctorId_;
  /**
   * <code>int32 toDoctorId = 6;</code>
   */
  public int getToDoctorId() {
    return toDoctorId_;
  }

  public static final int CREATETIME_FIELD_NUMBER = 7;
  private long createTime_;
  /**
   * <code>int64 createTime = 7;</code>
   */
  public long getCreateTime() {
    return createTime_;
  }

  public static final int FILEKEY_FIELD_NUMBER = 8;
  private volatile java.lang.Object fileKey_;
  /**
   * <code>string fileKey = 8;</code>
   */
  public java.lang.String getFileKey() {
    java.lang.Object ref = fileKey_;
    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();
      fileKey_ = s;
      return s;
    }
  }
  /**
   * <code>string fileKey = 8;</code>
   */
  public com.google.protobuf.ByteString
      getFileKeyBytes() {
    java.lang.Object ref = fileKey_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fileKey_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FILESAVEMODE_FIELD_NUMBER = 9;
  private int fileSaveMode_;
  /**
   * <code>int32 fileSaveMode = 9;</code>
   */
  public int getFileSaveMode() {
    return fileSaveMode_;
  }

  public static final int SUGGESTION_FIELD_NUMBER = 10;
  private volatile java.lang.Object suggestion_;
  /**
   * <code>string suggestion = 10;</code>
   */
  public java.lang.String getSuggestion() {
    java.lang.Object ref = suggestion_;
    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();
      suggestion_ = s;
      return s;
    }
  }
  /**
   * <code>string suggestion = 10;</code>
   */
  public com.google.protobuf.ByteString
      getSuggestionBytes() {
    java.lang.Object ref = suggestion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      suggestion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTAL_FIELD_NUMBER = 11;
  private int total_;
  /**
   * <code>int32 total = 11;</code>
   */
  public int getTotal() {
    return total_;
  }

  public static final int PAGES_FIELD_NUMBER = 12;
  private int pages_;
  /**
   * <code>int32 pages = 12;</code>
   */
  public int getPages() {
    return pages_;
  }

  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 (!getSessionIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
    }
    if (orderId_ != 0) {
      output.writeInt32(2, orderId_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, orderNo_);
    }
    if (userId_ != 0) {
      output.writeInt32(4, userId_);
    }
    if (fromDoctorId_ != 0) {
      output.writeInt32(5, fromDoctorId_);
    }
    if (toDoctorId_ != 0) {
      output.writeInt32(6, toDoctorId_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(7, createTime_);
    }
    if (!getFileKeyBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, fileKey_);
    }
    if (fileSaveMode_ != 0) {
      output.writeInt32(9, fileSaveMode_);
    }
    if (!getSuggestionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, suggestion_);
    }
    if (total_ != 0) {
      output.writeInt32(11, total_);
    }
    if (pages_ != 0) {
      output.writeInt32(12, pages_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getSessionIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, orderId_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderNo_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, userId_);
    }
    if (fromDoctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, fromDoctorId_);
    }
    if (toDoctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, toDoctorId_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(7, createTime_);
    }
    if (!getFileKeyBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, fileKey_);
    }
    if (fileSaveMode_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, fileSaveMode_);
    }
    if (!getSuggestionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, suggestion_);
    }
    if (total_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, total_);
    }
    if (pages_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, pages_);
    }
    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.order.CreateReportRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.CreateReportRequest other = (com.ywt.gapi.order.CreateReportRequest) obj;

    boolean result = true;
    result = result && getSessionId()
        .equals(other.getSessionId());
    result = result && (getOrderId()
        == other.getOrderId());
    result = result && getOrderNo()
        .equals(other.getOrderNo());
    result = result && (getUserId()
        == other.getUserId());
    result = result && (getFromDoctorId()
        == other.getFromDoctorId());
    result = result && (getToDoctorId()
        == other.getToDoctorId());
    result = result && (getCreateTime()
        == other.getCreateTime());
    result = result && getFileKey()
        .equals(other.getFileKey());
    result = result && (getFileSaveMode()
        == other.getFileSaveMode());
    result = result && getSuggestion()
        .equals(other.getSuggestion());
    result = result && (getTotal()
        == other.getTotal());
    result = result && (getPages()
        == other.getPages());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + SESSIONID_FIELD_NUMBER;
    hash = (53 * hash) + getSessionId().hashCode();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getOrderNo().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + FROMDOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getFromDoctorId();
    hash = (37 * hash) + TODOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getToDoctorId();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + FILEKEY_FIELD_NUMBER;
    hash = (53 * hash) + getFileKey().hashCode();
    hash = (37 * hash) + FILESAVEMODE_FIELD_NUMBER;
    hash = (53 * hash) + getFileSaveMode();
    hash = (37 * hash) + SUGGESTION_FIELD_NUMBER;
    hash = (53 * hash) + getSuggestion().hashCode();
    hash = (37 * hash) + TOTAL_FIELD_NUMBER;
    hash = (53 * hash) + getTotal();
    hash = (37 * hash) + PAGES_FIELD_NUMBER;
    hash = (53 * hash) + getPages();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using com.ywt.gapi.order.CreateReportRequest.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();
      sessionId_ = "";

      orderId_ = 0;

      orderNo_ = "";

      userId_ = 0;

      fromDoctorId_ = 0;

      toDoctorId_ = 0;

      createTime_ = 0L;

      fileKey_ = "";

      fileSaveMode_ = 0;

      suggestion_ = "";

      total_ = 0;

      pages_ = 0;

      return this;
    }

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

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

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

    public com.ywt.gapi.order.CreateReportRequest buildPartial() {
      com.ywt.gapi.order.CreateReportRequest result = new com.ywt.gapi.order.CreateReportRequest(this);
      result.sessionId_ = sessionId_;
      result.orderId_ = orderId_;
      result.orderNo_ = orderNo_;
      result.userId_ = userId_;
      result.fromDoctorId_ = fromDoctorId_;
      result.toDoctorId_ = toDoctorId_;
      result.createTime_ = createTime_;
      result.fileKey_ = fileKey_;
      result.fileSaveMode_ = fileSaveMode_;
      result.suggestion_ = suggestion_;
      result.total_ = total_;
      result.pages_ = pages_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.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, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.ywt.gapi.order.CreateReportRequest) {
        return mergeFrom((com.ywt.gapi.order.CreateReportRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.order.CreateReportRequest other) {
      if (other == com.ywt.gapi.order.CreateReportRequest.getDefaultInstance()) return this;
      if (!other.getSessionId().isEmpty()) {
        sessionId_ = other.sessionId_;
        onChanged();
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (other.getFromDoctorId() != 0) {
        setFromDoctorId(other.getFromDoctorId());
      }
      if (other.getToDoctorId() != 0) {
        setToDoctorId(other.getToDoctorId());
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (!other.getFileKey().isEmpty()) {
        fileKey_ = other.fileKey_;
        onChanged();
      }
      if (other.getFileSaveMode() != 0) {
        setFileSaveMode(other.getFileSaveMode());
      }
      if (!other.getSuggestion().isEmpty()) {
        suggestion_ = other.suggestion_;
        onChanged();
      }
      if (other.getTotal() != 0) {
        setTotal(other.getTotal());
      }
      if (other.getPages() != 0) {
        setPages(other.getPages());
      }
      this.mergeUnknownFields(other.unknownFields);
      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.CreateReportRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.order.CreateReportRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object sessionId_ = "";
    /**
     * <code>string sessionId = 1;</code>
     */
    public java.lang.String getSessionId() {
      java.lang.Object ref = sessionId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sessionId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string sessionId = 1;</code>
     */
    public com.google.protobuf.ByteString
        getSessionIdBytes() {
      java.lang.Object ref = sessionId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        sessionId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string sessionId = 1;</code>
     */
    public Builder setSessionId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      sessionId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string sessionId = 1;</code>
     */
    public Builder clearSessionId() {
      
      sessionId_ = getDefaultInstance().getSessionId();
      onChanged();
      return this;
    }
    /**
     * <code>string sessionId = 1;</code>
     */
    public Builder setSessionIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      sessionId_ = value;
      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 java.lang.Object orderNo_ = "";
    /**
     * <code>string orderNo = 3;</code>
     */
    public java.lang.String getOrderNo() {
      java.lang.Object ref = orderNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orderNo = 3;</code>
     */
    public com.google.protobuf.ByteString
        getOrderNoBytes() {
      java.lang.Object ref = orderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderNo = 3;</code>
     */
    public Builder setOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 3;</code>
     */
    public Builder clearOrderNo() {
      
      orderNo_ = getDefaultInstance().getOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 3;</code>
     */
    public Builder setOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderNo_ = value;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <code>int32 userId = 4;</code>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 4;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 4;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private int fromDoctorId_ ;
    /**
     * <code>int32 fromDoctorId = 5;</code>
     */
    public int getFromDoctorId() {
      return fromDoctorId_;
    }
    /**
     * <code>int32 fromDoctorId = 5;</code>
     */
    public Builder setFromDoctorId(int value) {
      
      fromDoctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 fromDoctorId = 5;</code>
     */
    public Builder clearFromDoctorId() {
      
      fromDoctorId_ = 0;
      onChanged();
      return this;
    }

    private int toDoctorId_ ;
    /**
     * <code>int32 toDoctorId = 6;</code>
     */
    public int getToDoctorId() {
      return toDoctorId_;
    }
    /**
     * <code>int32 toDoctorId = 6;</code>
     */
    public Builder setToDoctorId(int value) {
      
      toDoctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 toDoctorId = 6;</code>
     */
    public Builder clearToDoctorId() {
      
      toDoctorId_ = 0;
      onChanged();
      return this;
    }

    private long createTime_ ;
    /**
     * <code>int64 createTime = 7;</code>
     */
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <code>int64 createTime = 7;</code>
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 createTime = 7;</code>
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object fileKey_ = "";
    /**
     * <code>string fileKey = 8;</code>
     */
    public java.lang.String getFileKey() {
      java.lang.Object ref = fileKey_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fileKey_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string fileKey = 8;</code>
     */
    public com.google.protobuf.ByteString
        getFileKeyBytes() {
      java.lang.Object ref = fileKey_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fileKey_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string fileKey = 8;</code>
     */
    public Builder setFileKey(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fileKey_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string fileKey = 8;</code>
     */
    public Builder clearFileKey() {
      
      fileKey_ = getDefaultInstance().getFileKey();
      onChanged();
      return this;
    }
    /**
     * <code>string fileKey = 8;</code>
     */
    public Builder setFileKeyBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fileKey_ = value;
      onChanged();
      return this;
    }

    private int fileSaveMode_ ;
    /**
     * <code>int32 fileSaveMode = 9;</code>
     */
    public int getFileSaveMode() {
      return fileSaveMode_;
    }
    /**
     * <code>int32 fileSaveMode = 9;</code>
     */
    public Builder setFileSaveMode(int value) {
      
      fileSaveMode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 fileSaveMode = 9;</code>
     */
    public Builder clearFileSaveMode() {
      
      fileSaveMode_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object suggestion_ = "";
    /**
     * <code>string suggestion = 10;</code>
     */
    public java.lang.String getSuggestion() {
      java.lang.Object ref = suggestion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        suggestion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string suggestion = 10;</code>
     */
    public com.google.protobuf.ByteString
        getSuggestionBytes() {
      java.lang.Object ref = suggestion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        suggestion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string suggestion = 10;</code>
     */
    public Builder setSuggestion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      suggestion_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string suggestion = 10;</code>
     */
    public Builder clearSuggestion() {
      
      suggestion_ = getDefaultInstance().getSuggestion();
      onChanged();
      return this;
    }
    /**
     * <code>string suggestion = 10;</code>
     */
    public Builder setSuggestionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      suggestion_ = value;
      onChanged();
      return this;
    }

    private int total_ ;
    /**
     * <code>int32 total = 11;</code>
     */
    public int getTotal() {
      return total_;
    }
    /**
     * <code>int32 total = 11;</code>
     */
    public Builder setTotal(int value) {
      
      total_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 total = 11;</code>
     */
    public Builder clearTotal() {
      
      total_ = 0;
      onChanged();
      return this;
    }

    private int pages_ ;
    /**
     * <code>int32 pages = 12;</code>
     */
    public int getPages() {
      return pages_;
    }
    /**
     * <code>int32 pages = 12;</code>
     */
    public Builder setPages(int value) {
      
      pages_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 pages = 12;</code>
     */
    public Builder clearPages() {
      
      pages_ = 0;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.order.CreateReportRequest)
  }

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

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

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

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

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

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

}

