/** * <pre> * the BPMN process ID of the workflow definition * </pre> * * <code>string bpmnProcessId = 2;</code> */ public Builder setBpmnProcessIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bpmnProcessId_ = value; onChanged(); return this; }
/** * <pre> * the BPMN process ID of the workflow definition * </pre> * * <code>string bpmnProcessId = 2;</code> */ public Builder setBpmnProcessId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bpmnProcessId_ = value; onChanged(); return this; } /**
/** * <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 setPayload( java.lang.String value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /**
/** * <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 setPayloadBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); payload_ = value; onChanged(); return this; } @java.lang.Override
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; }
/** * <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; } /**
/** * <pre> * the unique key identifying the workflow definition (e.g. returned from a workflow * in the DeployWorkflowResponse message) * </pre> * * <code>int64 workflowKey = 1;</code> */ public Builder setWorkflowKey(long value) { workflowKey_ = value; onChanged(); return this; } /**
/** * <pre> * the BPMN process ID of the workflow definition * </pre> * * <code>string bpmnProcessId = 2;</code> */ public Builder clearBpmnProcessId() { bpmnProcessId_ = getDefaultInstance().getBpmnProcessId(); onChanged(); return this; } /**
/** * <pre> * the unique key identifying the workflow definition (e.g. returned from a workflow * in the DeployWorkflowResponse message) * </pre> * * <code>int64 workflowKey = 1;</code> */ public Builder clearWorkflowKey() { workflowKey_ = 0L; onChanged(); return this; }
/** * <pre> * the version of the process; set to -1 to use the latest version * </pre> * * <code>int32 version = 3;</code> */ public Builder setVersion(int value) { version_ = value; onChanged(); return this; } /**
/** * <pre> * the version of the process; set to -1 to use the latest version * </pre> * * <code>int32 version = 3;</code> */ public Builder clearVersion() { version_ = 0; onChanged(); return this; }