@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <pre> * the workflow instance key (as, for example, obtained from * CreateWorkflowInstanceResponse) * </pre> * * <code>int64 workflowInstanceKey = 1;</code> */ public Builder clearWorkflowInstanceKey() { workflowInstanceKey_ = 0L; onChanged(); return this; } @java.lang.Override
private Builder() { maybeForceBuilderInitialization(); }
/** * <pre> * the workflow instance key (as, for example, obtained from * CreateWorkflowInstanceResponse) * </pre> * * <code>int64 workflowInstanceKey = 1;</code> */ public Builder setWorkflowInstanceKey(long value) { workflowInstanceKey_ = value; onChanged(); return this; } /**
public static Builder newBuilder(io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
public CancelWorkflowInstanceCommandImpl(GatewayStub asyncStub, long workflowInstanceKey) { this.asyncStub = asyncStub; this.builder = CancelWorkflowInstanceRequest.newBuilder(); builder.setWorkflowInstanceKey(workflowInstanceKey); }
@Override public ZeebeFuture<Void> send() { final CancelWorkflowInstanceRequest request = builder.build(); final ZeebeClientFutureImpl<Void, CancelWorkflowInstanceResponse> future = new ZeebeClientFutureImpl<>(); asyncStub.cancelWorkflowInstance(request, future); return future; } }
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest buildPartial() { io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest result = new io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest(this); result.workflowInstanceKey_ = workflowInstanceKey_; onBuilt(); return result; }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest build() { io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest) { return mergeFrom((io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest)other); } else { super.mergeFrom(other); return this; } }
public CancelWorkflowInstanceCommandImpl(GatewayStub asyncStub, long workflowInstanceKey) { this.asyncStub = asyncStub; this.builder = CancelWorkflowInstanceRequest.newBuilder(); builder.setWorkflowInstanceKey(workflowInstanceKey); }
public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.CancelWorkflowInstanceRequest.getDefaultInstance()) return this; if (other.getWorkflowInstanceKey() != 0L) { setWorkflowInstanceKey(other.getWorkflowInstanceKey()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Override public ZeebeFuture<Void> send() { final CancelWorkflowInstanceRequest request = builder.build(); final ZeebeClientFutureImpl<Void, CancelWorkflowInstanceResponse> future = new ZeebeClientFutureImpl<>(); asyncStub.cancelWorkflowInstance(request, future); return future; } }