@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 int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (jobKey_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, jobKey_); } if (retries_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, retries_); } if (!getErrorMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorMessage_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@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; }
@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; }
/** * <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 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; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (jobKey_ != 0L) { output.writeInt64(1, jobKey_); } if (retries_ != 0) { output.writeInt32(2, retries_); } if (!getErrorMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorMessage_); } unknownFields.writeTo(output); }
public FailJobCommandImpl(GatewayStub asyncStub, long key) { this.asyncStub = asyncStub; builder = FailJobRequest.newBuilder(); builder.setJobKey(key); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public static BrokerFailJobRequest toFailJobRequest(FailJobRequest grpcRequest) { return new BrokerFailJobRequest(grpcRequest.getJobKey(), grpcRequest.getRetries()) .setErrorMessage(grpcRequest.getErrorMessage()); }
public FailJobCommandImpl(GatewayStub asyncStub, long key) { this.asyncStub = asyncStub; builder = FailJobRequest.newBuilder(); builder.setJobKey(key); }
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest getDefaultInstanceForType() { return io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest.getDefaultInstance(); }
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest buildPartial() { io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest result = new io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest(this); result.jobKey_ = jobKey_; result.retries_ = retries_; result.errorMessage_ = errorMessage_; onBuilt(); return result; }
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest build() { io.zeebe.gateway.protocol.GatewayOuterClass.FailJobRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }