@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + JOBKEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getJobKey()); hash = (37 * hash) + RETRIES_FIELD_NUMBER; hash = (53 * hash) + getRetries(); hash = (37 * hash) + ERRORMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getErrorMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest other = (io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest) obj; boolean result = true; result = result && (getJobKey() == other.getJobKey()); result = result && (getRetries() == other.getRetries()); result = result && getErrorMessage() .equals(other.getErrorMessage()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest.getDefaultInstance()) return this; if (other.getJobKey() != 0L) { setJobKey(other.getJobKey()); } if (other.getRetries() != 0) { setRetries(other.getRetries()); } if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * an optional message describing why the job failed * this is particularly useful if a job runs out of retries and an incident is raised, * as it this message can help explain why an incident was raised * </pre> * * <code>string errorMessage = 3;</code> */ public Builder clearErrorMessage() { errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /**
public static BrokerFailJobRequest toFailJobRequest(FailJobRequest grpcRequest) { return new BrokerFailJobRequest(grpcRequest.getJobKey(), grpcRequest.getRetries()) .setErrorMessage(grpcRequest.getErrorMessage()); }