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

package com.ywt.gapi.user;

/**
 * <pre>
 *根据用户名和密码登录Response
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.user.LoginWithUserAndPsdResponse}
 */
public  final class LoginWithUserAndPsdResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.LoginWithUserAndPsdResponse)
    LoginWithUserAndPsdResponseOrBuilder {
  // Use LoginWithUserAndPsdResponse.newBuilder() to construct.
  private LoginWithUserAndPsdResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private LoginWithUserAndPsdResponse() {
    doctorId_ = 0;
    doctorName_ = "";
    deptIds_ = "";
    deptName_ = "";
    checkSign_ = 0;
    signUrl_ = "";
    doctorSignId_ = 0;
    doctorAvatar_ = "";
    isFirstLogin_ = 0;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private LoginWithUserAndPsdResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            com.ywt.gapi.Result.Builder subBuilder = null;
            if (result_ != null) {
              subBuilder = result_.toBuilder();
            }
            result_ = input.readMessage(com.ywt.gapi.Result.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(result_);
              result_ = subBuilder.buildPartial();
            }

            break;
          }
          case 16: {

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

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

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

            deptName_ = s;
            break;
          }
          case 48: {

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

            signUrl_ = s;
            break;
          }
          case 64: {

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

            doctorAvatar_ = s;
            break;
          }
          case 80: {

            isFirstLogin_ = 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.user.UserOuterClass.internal_static_com_ywt_gapi_user_LoginWithUserAndPsdResponse_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.user.UserOuterClass.internal_static_com_ywt_gapi_user_LoginWithUserAndPsdResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.user.LoginWithUserAndPsdResponse.class, com.ywt.gapi.user.LoginWithUserAndPsdResponse.Builder.class);
  }

  public static final int RESULT_FIELD_NUMBER = 1;
  private com.ywt.gapi.Result result_;
  /**
   * <code>.com.ywt.gapi.Result result = 1;</code>
   */
  public boolean hasResult() {
    return result_ != null;
  }
  /**
   * <code>.com.ywt.gapi.Result result = 1;</code>
   */
  public com.ywt.gapi.Result getResult() {
    return result_ == null ? com.ywt.gapi.Result.getDefaultInstance() : result_;
  }
  /**
   * <code>.com.ywt.gapi.Result result = 1;</code>
   */
  public com.ywt.gapi.ResultOrBuilder getResultOrBuilder() {
    return getResult();
  }

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

  public static final int DOCTORNAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object doctorName_;
  /**
   * <code>string doctorName = 3;</code>
   */
  public java.lang.String getDoctorName() {
    java.lang.Object ref = doctorName_;
    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();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorName = 3;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTIDS_FIELD_NUMBER = 4;
  private volatile java.lang.Object deptIds_;
  /**
   * <code>string deptIds = 4;</code>
   */
  public java.lang.String getDeptIds() {
    java.lang.Object ref = deptIds_;
    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();
      deptIds_ = s;
      return s;
    }
  }
  /**
   * <code>string deptIds = 4;</code>
   */
  public com.google.protobuf.ByteString
      getDeptIdsBytes() {
    java.lang.Object ref = deptIds_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptIds_ = 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 CHECKSIGN_FIELD_NUMBER = 6;
  private int checkSign_;
  /**
   * <code>int32 checkSign = 6;</code>
   */
  public int getCheckSign() {
    return checkSign_;
  }

  public static final int SIGNURL_FIELD_NUMBER = 7;
  private volatile java.lang.Object signUrl_;
  /**
   * <code>string signUrl = 7;</code>
   */
  public java.lang.String getSignUrl() {
    java.lang.Object ref = signUrl_;
    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();
      signUrl_ = s;
      return s;
    }
  }
  /**
   * <code>string signUrl = 7;</code>
   */
  public com.google.protobuf.ByteString
      getSignUrlBytes() {
    java.lang.Object ref = signUrl_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      signUrl_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORSIGNID_FIELD_NUMBER = 8;
  private int doctorSignId_;
  /**
   * <code>int32 doctorSignId = 8;</code>
   */
  public int getDoctorSignId() {
    return doctorSignId_;
  }

  public static final int DOCTORAVATAR_FIELD_NUMBER = 9;
  private volatile java.lang.Object doctorAvatar_;
  /**
   * <code>string doctorAvatar = 9;</code>
   */
  public java.lang.String getDoctorAvatar() {
    java.lang.Object ref = doctorAvatar_;
    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();
      doctorAvatar_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorAvatar = 9;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorAvatarBytes() {
    java.lang.Object ref = doctorAvatar_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorAvatar_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ISFIRSTLOGIN_FIELD_NUMBER = 10;
  private int isFirstLogin_;
  /**
   * <pre>
   *判断在这个平台是否是首次登录
   * </pre>
   *
   * <code>int32 isFirstLogin = 10;</code>
   */
  public int getIsFirstLogin() {
    return isFirstLogin_;
  }

  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 (result_ != null) {
      output.writeMessage(1, getResult());
    }
    if (doctorId_ != 0) {
      output.writeInt32(2, doctorId_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, doctorName_);
    }
    if (!getDeptIdsBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deptIds_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deptName_);
    }
    if (checkSign_ != 0) {
      output.writeInt32(6, checkSign_);
    }
    if (!getSignUrlBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, signUrl_);
    }
    if (doctorSignId_ != 0) {
      output.writeInt32(8, doctorSignId_);
    }
    if (!getDoctorAvatarBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, doctorAvatar_);
    }
    if (isFirstLogin_ != 0) {
      output.writeInt32(10, isFirstLogin_);
    }
  }

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

    size = 0;
    if (result_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getResult());
    }
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, doctorId_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, doctorName_);
    }
    if (!getDeptIdsBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, deptIds_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deptName_);
    }
    if (checkSign_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, checkSign_);
    }
    if (!getSignUrlBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, signUrl_);
    }
    if (doctorSignId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, doctorSignId_);
    }
    if (!getDoctorAvatarBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, doctorAvatar_);
    }
    if (isFirstLogin_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, isFirstLogin_);
    }
    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.user.LoginWithUserAndPsdResponse)) {
      return super.equals(obj);
    }
    com.ywt.gapi.user.LoginWithUserAndPsdResponse other = (com.ywt.gapi.user.LoginWithUserAndPsdResponse) obj;

    boolean result = true;
    result = result && (hasResult() == other.hasResult());
    if (hasResult()) {
      result = result && getResult()
          .equals(other.getResult());
    }
    result = result && (getDoctorId()
        == other.getDoctorId());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && getDeptIds()
        .equals(other.getDeptIds());
    result = result && getDeptName()
        .equals(other.getDeptName());
    result = result && (getCheckSign()
        == other.getCheckSign());
    result = result && getSignUrl()
        .equals(other.getSignUrl());
    result = result && (getDoctorSignId()
        == other.getDoctorSignId());
    result = result && getDoctorAvatar()
        .equals(other.getDoctorAvatar());
    result = result && (getIsFirstLogin()
        == other.getIsFirstLogin());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasResult()) {
      hash = (37 * hash) + RESULT_FIELD_NUMBER;
      hash = (53 * hash) + getResult().hashCode();
    }
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + DEPTIDS_FIELD_NUMBER;
    hash = (53 * hash) + getDeptIds().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + CHECKSIGN_FIELD_NUMBER;
    hash = (53 * hash) + getCheckSign();
    hash = (37 * hash) + SIGNURL_FIELD_NUMBER;
    hash = (53 * hash) + getSignUrl().hashCode();
    hash = (37 * hash) + DOCTORSIGNID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorSignId();
    hash = (37 * hash) + DOCTORAVATAR_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorAvatar().hashCode();
    hash = (37 * hash) + ISFIRSTLOGIN_FIELD_NUMBER;
    hash = (53 * hash) + getIsFirstLogin();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.user.LoginWithUserAndPsdResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.LoginWithUserAndPsdResponse 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.user.LoginWithUserAndPsdResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.LoginWithUserAndPsdResponse 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.user.LoginWithUserAndPsdResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.LoginWithUserAndPsdResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.user.LoginWithUserAndPsdResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.LoginWithUserAndPsdResponse 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.user.LoginWithUserAndPsdResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.LoginWithUserAndPsdResponse 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.user.LoginWithUserAndPsdResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.LoginWithUserAndPsdResponse 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.user.LoginWithUserAndPsdResponse 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>
   *根据用户名和密码登录Response
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.user.LoginWithUserAndPsdResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.user.LoginWithUserAndPsdResponse)
      com.ywt.gapi.user.LoginWithUserAndPsdResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.user.UserOuterClass.internal_static_com_ywt_gapi_user_LoginWithUserAndPsdResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.user.UserOuterClass.internal_static_com_ywt_gapi_user_LoginWithUserAndPsdResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.user.LoginWithUserAndPsdResponse.class, com.ywt.gapi.user.LoginWithUserAndPsdResponse.Builder.class);
    }

    // Construct using com.ywt.gapi.user.LoginWithUserAndPsdResponse.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();
      if (resultBuilder_ == null) {
        result_ = null;
      } else {
        result_ = null;
        resultBuilder_ = null;
      }
      doctorId_ = 0;

      doctorName_ = "";

      deptIds_ = "";

      deptName_ = "";

      checkSign_ = 0;

      signUrl_ = "";

      doctorSignId_ = 0;

      doctorAvatar_ = "";

      isFirstLogin_ = 0;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.user.UserOuterClass.internal_static_com_ywt_gapi_user_LoginWithUserAndPsdResponse_descriptor;
    }

    public com.ywt.gapi.user.LoginWithUserAndPsdResponse getDefaultInstanceForType() {
      return com.ywt.gapi.user.LoginWithUserAndPsdResponse.getDefaultInstance();
    }

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

    public com.ywt.gapi.user.LoginWithUserAndPsdResponse buildPartial() {
      com.ywt.gapi.user.LoginWithUserAndPsdResponse result = new com.ywt.gapi.user.LoginWithUserAndPsdResponse(this);
      if (resultBuilder_ == null) {
        result.result_ = result_;
      } else {
        result.result_ = resultBuilder_.build();
      }
      result.doctorId_ = doctorId_;
      result.doctorName_ = doctorName_;
      result.deptIds_ = deptIds_;
      result.deptName_ = deptName_;
      result.checkSign_ = checkSign_;
      result.signUrl_ = signUrl_;
      result.doctorSignId_ = doctorSignId_;
      result.doctorAvatar_ = doctorAvatar_;
      result.isFirstLogin_ = isFirstLogin_;
      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.user.LoginWithUserAndPsdResponse) {
        return mergeFrom((com.ywt.gapi.user.LoginWithUserAndPsdResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.user.LoginWithUserAndPsdResponse other) {
      if (other == com.ywt.gapi.user.LoginWithUserAndPsdResponse.getDefaultInstance()) return this;
      if (other.hasResult()) {
        mergeResult(other.getResult());
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (!other.getDeptIds().isEmpty()) {
        deptIds_ = other.deptIds_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (other.getCheckSign() != 0) {
        setCheckSign(other.getCheckSign());
      }
      if (!other.getSignUrl().isEmpty()) {
        signUrl_ = other.signUrl_;
        onChanged();
      }
      if (other.getDoctorSignId() != 0) {
        setDoctorSignId(other.getDoctorSignId());
      }
      if (!other.getDoctorAvatar().isEmpty()) {
        doctorAvatar_ = other.doctorAvatar_;
        onChanged();
      }
      if (other.getIsFirstLogin() != 0) {
        setIsFirstLogin(other.getIsFirstLogin());
      }
      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.user.LoginWithUserAndPsdResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.user.LoginWithUserAndPsdResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private com.ywt.gapi.Result result_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.Result, com.ywt.gapi.Result.Builder, com.ywt.gapi.ResultOrBuilder> resultBuilder_;
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public boolean hasResult() {
      return resultBuilder_ != null || result_ != null;
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public com.ywt.gapi.Result getResult() {
      if (resultBuilder_ == null) {
        return result_ == null ? com.ywt.gapi.Result.getDefaultInstance() : result_;
      } else {
        return resultBuilder_.getMessage();
      }
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public Builder setResult(com.ywt.gapi.Result value) {
      if (resultBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
        onChanged();
      } else {
        resultBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public Builder setResult(
        com.ywt.gapi.Result.Builder builderForValue) {
      if (resultBuilder_ == null) {
        result_ = builderForValue.build();
        onChanged();
      } else {
        resultBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public Builder mergeResult(com.ywt.gapi.Result value) {
      if (resultBuilder_ == null) {
        if (result_ != null) {
          result_ =
            com.ywt.gapi.Result.newBuilder(result_).mergeFrom(value).buildPartial();
        } else {
          result_ = value;
        }
        onChanged();
      } else {
        resultBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public Builder clearResult() {
      if (resultBuilder_ == null) {
        result_ = null;
        onChanged();
      } else {
        result_ = null;
        resultBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public com.ywt.gapi.Result.Builder getResultBuilder() {
      
      onChanged();
      return getResultFieldBuilder().getBuilder();
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    public com.ywt.gapi.ResultOrBuilder getResultOrBuilder() {
      if (resultBuilder_ != null) {
        return resultBuilder_.getMessageOrBuilder();
      } else {
        return result_ == null ?
            com.ywt.gapi.Result.getDefaultInstance() : result_;
      }
    }
    /**
     * <code>.com.ywt.gapi.Result result = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.Result, com.ywt.gapi.Result.Builder, com.ywt.gapi.ResultOrBuilder> 
        getResultFieldBuilder() {
      if (resultBuilder_ == null) {
        resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ywt.gapi.Result, com.ywt.gapi.Result.Builder, com.ywt.gapi.ResultOrBuilder>(
                getResult(),
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      return resultBuilder_;
    }

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

    private java.lang.Object doctorName_ = "";
    /**
     * <code>string doctorName = 3;</code>
     */
    public java.lang.String getDoctorName() {
      java.lang.Object ref = doctorName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorName = 3;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorNameBytes() {
      java.lang.Object ref = doctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorName = 3;</code>
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 3;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 3;</code>
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptIds_ = "";
    /**
     * <code>string deptIds = 4;</code>
     */
    public java.lang.String getDeptIds() {
      java.lang.Object ref = deptIds_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptIds_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string deptIds = 4;</code>
     */
    public com.google.protobuf.ByteString
        getDeptIdsBytes() {
      java.lang.Object ref = deptIds_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptIds_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string deptIds = 4;</code>
     */
    public Builder setDeptIds(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptIds_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptIds = 4;</code>
     */
    public Builder clearDeptIds() {
      
      deptIds_ = getDefaultInstance().getDeptIds();
      onChanged();
      return this;
    }
    /**
     * <code>string deptIds = 4;</code>
     */
    public Builder setDeptIdsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptIds_ = 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 int checkSign_ ;
    /**
     * <code>int32 checkSign = 6;</code>
     */
    public int getCheckSign() {
      return checkSign_;
    }
    /**
     * <code>int32 checkSign = 6;</code>
     */
    public Builder setCheckSign(int value) {
      
      checkSign_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 checkSign = 6;</code>
     */
    public Builder clearCheckSign() {
      
      checkSign_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object signUrl_ = "";
    /**
     * <code>string signUrl = 7;</code>
     */
    public java.lang.String getSignUrl() {
      java.lang.Object ref = signUrl_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        signUrl_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string signUrl = 7;</code>
     */
    public com.google.protobuf.ByteString
        getSignUrlBytes() {
      java.lang.Object ref = signUrl_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        signUrl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string signUrl = 7;</code>
     */
    public Builder setSignUrl(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      signUrl_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string signUrl = 7;</code>
     */
    public Builder clearSignUrl() {
      
      signUrl_ = getDefaultInstance().getSignUrl();
      onChanged();
      return this;
    }
    /**
     * <code>string signUrl = 7;</code>
     */
    public Builder setSignUrlBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      signUrl_ = value;
      onChanged();
      return this;
    }

    private int doctorSignId_ ;
    /**
     * <code>int32 doctorSignId = 8;</code>
     */
    public int getDoctorSignId() {
      return doctorSignId_;
    }
    /**
     * <code>int32 doctorSignId = 8;</code>
     */
    public Builder setDoctorSignId(int value) {
      
      doctorSignId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 doctorSignId = 8;</code>
     */
    public Builder clearDoctorSignId() {
      
      doctorSignId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object doctorAvatar_ = "";
    /**
     * <code>string doctorAvatar = 9;</code>
     */
    public java.lang.String getDoctorAvatar() {
      java.lang.Object ref = doctorAvatar_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorAvatar_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorAvatar = 9;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorAvatarBytes() {
      java.lang.Object ref = doctorAvatar_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorAvatar_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorAvatar = 9;</code>
     */
    public Builder setDoctorAvatar(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorAvatar_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorAvatar = 9;</code>
     */
    public Builder clearDoctorAvatar() {
      
      doctorAvatar_ = getDefaultInstance().getDoctorAvatar();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorAvatar = 9;</code>
     */
    public Builder setDoctorAvatarBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorAvatar_ = value;
      onChanged();
      return this;
    }

    private int isFirstLogin_ ;
    /**
     * <pre>
     *判断在这个平台是否是首次登录
     * </pre>
     *
     * <code>int32 isFirstLogin = 10;</code>
     */
    public int getIsFirstLogin() {
      return isFirstLogin_;
    }
    /**
     * <pre>
     *判断在这个平台是否是首次登录
     * </pre>
     *
     * <code>int32 isFirstLogin = 10;</code>
     */
    public Builder setIsFirstLogin(int value) {
      
      isFirstLogin_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *判断在这个平台是否是首次登录
     * </pre>
     *
     * <code>int32 isFirstLogin = 10;</code>
     */
    public Builder clearIsFirstLogin() {
      
      isFirstLogin_ = 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.user.LoginWithUserAndPsdResponse)
  }

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

  public static com.ywt.gapi.user.LoginWithUserAndPsdResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.user.LoginWithUserAndPsdResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

