/** * <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 setErrorMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } errorMessage_ = value; 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 setErrorMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMessage_ = value; onChanged(); return this; } @java.lang.Override
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; } /**
/** * <pre> * the unique job identifier, as obtained when activating the job * </pre> * * <code>int64 jobKey = 1;</code> */ public Builder setJobKey(long value) { jobKey_ = value; onChanged(); return this; } /**
/** * <pre> * the amount of retries the job should have left * </pre> * * <code>int32 retries = 2;</code> */ public Builder clearRetries() { retries_ = 0; onChanged(); return this; }
/** * <pre> * the unique job identifier, as obtained when activating the job * </pre> * * <code>int64 jobKey = 1;</code> */ public Builder clearJobKey() { jobKey_ = 0L; onChanged(); return this; }
/** * <pre> * the amount of retries the job should have left * </pre> * * <code>int32 retries = 2;</code> */ public Builder setRetries(int value) { retries_ = value; onChanged(); return this; } /**