/** * <pre> * a list of deployed workflows * </pre> * * <code>repeated .gateway_protocol.WorkflowMetadata workflows = 2;</code> */ public Builder addWorkflows( int index, io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowMetadata.Builder builderForValue) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); workflows_.add(index, builderForValue.build()); onChanged(); } else { workflowsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * a list of deployed workflows matching the request criteria (if any) * </pre> * * <code>repeated .gateway_protocol.WorkflowMetadata workflows = 1;</code> */ public Builder addWorkflows( int index, io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowMetadata.Builder builderForValue) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); workflows_.add(index, builderForValue.build()); onChanged(); } else { workflowsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * a list of deployed workflows matching the request criteria (if any) * </pre> * * <code>repeated .gateway_protocol.WorkflowMetadata workflows = 1;</code> */ public Builder addWorkflows( io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowMetadata.Builder builderForValue) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); workflows_.add(builderForValue.build()); onChanged(); } else { workflowsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * a list of deployed workflows matching the request criteria (if any) * </pre> * * <code>repeated .gateway_protocol.WorkflowMetadata workflows = 1;</code> */ public Builder setWorkflows( int index, io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowMetadata.Builder builderForValue) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); workflows_.set(index, builderForValue.build()); onChanged(); } else { workflowsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * a list of deployed workflows * </pre> * * <code>repeated .gateway_protocol.WorkflowMetadata workflows = 2;</code> */ public Builder addWorkflows( io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowMetadata.Builder builderForValue) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); workflows_.add(builderForValue.build()); onChanged(); } else { workflowsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * a list of deployed workflows * </pre> * * <code>repeated .gateway_protocol.WorkflowMetadata workflows = 2;</code> */ public Builder setWorkflows( int index, io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowMetadata.Builder builderForValue) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); workflows_.set(index, builderForValue.build()); onChanged(); } else { workflowsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public static ListWorkflowsResponse toListWorkflowsResponse( long key, io.zeebe.protocol.impl.data.repository.ListWorkflowsResponse brokerResponse) { final ListWorkflowsResponse.Builder builder = ListWorkflowsResponse.newBuilder(); brokerResponse .getWorkflows() .forEach( workflowMetadata -> builder .addWorkflowsBuilder() .setBpmnProcessId(bufferAsString(workflowMetadata.getBpmnProcessId())) .setVersion(workflowMetadata.getVersion()) .setWorkflowKey(workflowMetadata.getWorkflowKey()) .setResourceName(bufferAsString(workflowMetadata.getResourceName())) .build()); return builder.build(); }