@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest other = (io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest) obj; boolean result = true; result = result && (getWorkflowKey() == other.getWorkflowKey()); result = result && getBpmnProcessId() .equals(other.getBpmnProcessId()); result = result && (getVersion() == other.getVersion()); result = result && getPayload() .equals(other.getPayload()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (workflowKey_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, workflowKey_); } if (!getBpmnProcessIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bpmnProcessId_); } if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, version_); } if (!getPayloadBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, payload_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WORKFLOWKEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkflowKey()); hash = (37 * hash) + BPMNPROCESSID_FIELD_NUMBER; hash = (53 * hash) + getBpmnProcessId().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@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; }
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; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (workflowKey_ != 0L) { output.writeInt64(1, workflowKey_); } if (!getBpmnProcessIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bpmnProcessId_); } if (version_ != 0) { output.writeInt32(3, version_); } if (!getPayloadBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, payload_); } unknownFields.writeTo(output); }
/** * <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(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public CreateWorkflowInstanceCommandImpl(GatewayStub asyncStub, ZeebeObjectMapper objectMapper) { super(objectMapper); this.asyncStub = asyncStub; this.builder = CreateWorkflowInstanceRequest.newBuilder(); }
/** * <pre> * the BPMN process ID of the workflow definition * </pre> * * <code>string bpmnProcessId = 2;</code> */ public Builder clearBpmnProcessId() { bpmnProcessId_ = getDefaultInstance().getBpmnProcessId(); onChanged(); return this; } /**
public static BrokerCreateWorkflowInstanceRequest toCreateWorkflowInstanceRequest( CreateWorkflowInstanceRequest grpcRequest) { final BrokerCreateWorkflowInstanceRequest brokerRequest = new BrokerCreateWorkflowInstanceRequest(); brokerRequest .setBpmnProcessId(grpcRequest.getBpmnProcessId()) .setWorkflowKey(grpcRequest.getWorkflowKey()) .setVersion(grpcRequest.getVersion()) .setPayload(ensureJsonSet(grpcRequest.getPayload())); return brokerRequest; }
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest buildPartial() { io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest result = new io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest(this); result.workflowKey_ = workflowKey_; result.bpmnProcessId_ = bpmnProcessId_; result.version_ = version_; result.payload_ = payload_; onBuilt(); return result; }
public CreateWorkflowInstanceCommandImpl(GatewayStub asyncStub, ZeebeObjectMapper objectMapper) { super(objectMapper); this.asyncStub = asyncStub; this.builder = CreateWorkflowInstanceRequest.newBuilder(); }