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; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "FailJob", requestType = io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest.class, responseType = io.zeebe.gateway.protocol.GatewayOuterClass.FailJobResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest, io.zeebe.gateway.protocol.GatewayOuterClass.FailJobResponse> getFailJobMethod() { io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest, io.zeebe.gateway.protocol.GatewayOuterClass.FailJobResponse> getFailJobMethod; if ((getFailJobMethod = GatewayGrpc.getFailJobMethod) == null) { synchronized (GatewayGrpc.class) { if ((getFailJobMethod = GatewayGrpc.getFailJobMethod) == null) { GatewayGrpc.getFailJobMethod = getFailJobMethod = io.grpc.MethodDescriptor.<io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest, io.zeebe.gateway.protocol.GatewayOuterClass.FailJobResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "gateway_protocol.Gateway", "FailJob")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.zeebe.gateway.protocol.GatewayOuterClass.FailJobResponse.getDefaultInstance())) .setSchemaDescriptor(new GatewayMethodDescriptorSupplier("FailJob")) .build(); } } } return getFailJobMethod; }
/** * <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; } /**
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest getDefaultInstanceForType() { return io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest.getDefaultInstance(); }