@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Vtrpc.RPCError)) { return super.equals(obj); } io.vitess.proto.Vtrpc.RPCError other = (io.vitess.proto.Vtrpc.RPCError) obj; boolean result = true; result = result && legacyCode_ == other.legacyCode_; result = result && getMessage() .equals(other.getMessage()); result = result && code_ == other.code_; result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Vtrpc.RPCError)) { return super.equals(obj); } io.vitess.proto.Vtrpc.RPCError other = (io.vitess.proto.Vtrpc.RPCError) obj; boolean result = true; result = result && legacyCode_ == other.legacyCode_; result = result && getMessage() .equals(other.getMessage()); result = result && code_ == other.code_; 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) + LEGACY_CODE_FIELD_NUMBER; hash = (53 * hash) + legacyCode_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
int errno = Proto.getErrno(rpcError.getMessage()); String sqlState = Proto.getSQLState(rpcError.getMessage()); throw new BatchUpdateException(rpcError.toString(), sqlState, errno, updateCounts);
int errno = getErrno(error.getMessage()); String sqlState = getSQLState(error.getMessage());
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LEGACY_CODE_FIELD_NUMBER; hash = (53 * hash) + legacyCode_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(io.vitess.proto.Vtrpc.RPCError other) { if (other == io.vitess.proto.Vtrpc.RPCError.getDefaultInstance()) return this; if (other.legacyCode_ != 0) { setLegacyCodeValue(other.getLegacyCodeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(io.vitess.proto.Vtrpc.RPCError other) { if (other == io.vitess.proto.Vtrpc.RPCError.getDefaultInstance()) return this; if (other.legacyCode_ != 0) { setLegacyCodeValue(other.getLegacyCodeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>string message = 2;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
/** * <code>string message = 2;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**