public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest.getDefaultInstance()) return this; if (other.getWorkflowKey() != 0L) { setWorkflowKey(other.getWorkflowKey()); } if (!other.getBpmnProcessId().isEmpty()) { bpmnProcessId_ = other.bpmnProcessId_; onChanged(); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (!other.getPayload().isEmpty()) { payload_ = other.payload_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateWorkflowInstance", requestType = io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest.class, responseType = io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest, io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceResponse> getCreateWorkflowInstanceMethod() { io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest, io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceResponse> getCreateWorkflowInstanceMethod; if ((getCreateWorkflowInstanceMethod = GatewayGrpc.getCreateWorkflowInstanceMethod) == null) { synchronized (GatewayGrpc.class) { if ((getCreateWorkflowInstanceMethod = GatewayGrpc.getCreateWorkflowInstanceMethod) == null) { GatewayGrpc.getCreateWorkflowInstanceMethod = getCreateWorkflowInstanceMethod = io.grpc.MethodDescriptor.<io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest, io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "gateway_protocol.Gateway", "CreateWorkflowInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceResponse.getDefaultInstance())) .setSchemaDescriptor(new GatewayMethodDescriptorSupplier("CreateWorkflowInstance")) .build(); } } } return getCreateWorkflowInstanceMethod; }
/** * <pre> * JSON document that will instantiate the variables for the root variable scope of the * workflow instance; it must be a JSON object, as variables will be mapped in a * key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and * "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a * valid payload, as the root of the JSON document is an array and not an object. * </pre> * * <code>string payload = 4;</code> */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } /**
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest getDefaultInstanceForType() { return io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest.getDefaultInstance(); }
/** * <pre> * the BPMN process ID of the workflow definition * </pre> * * <code>string bpmnProcessId = 2;</code> */ public Builder clearBpmnProcessId() { bpmnProcessId_ = getDefaultInstance().getBpmnProcessId(); onChanged(); return this; } /**