public org.jbpm.marshalling.impl.JBPMMessages.WorkItem buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.WorkItem result = new org.jbpm.marshalling.impl.JBPMMessages.WorkItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.WorkItem other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.WorkItem.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); if (other.hasProcessInstancesId()) { setProcessInstancesId(other.getProcessInstancesId()); if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); if (other.hasState()) { setState(other.getState()); if (other.hasDeploymentId()) { bitField0_ |= 0x00000020; deploymentId_ = other.deploymentId_; onChanged(); if (other.hasNodeInstanceId()) { setNodeInstanceId(other.getNodeInstanceId()); if (other.hasNodeId()) { setNodeId(other.getNodeId());
hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); if (hasProcessInstancesId()) { hash = (37 * hash) + PROCESS_INSTANCES_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProcessInstancesId()); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState(); if (getVariableCount() > 0) { hash = (37 * hash) + VARIABLE_FIELD_NUMBER; hash = (53 * hash) + getVariableList().hashCode(); if (hasDeploymentId()) { hash = (37 * hash) + DEPLOYMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getDeploymentId().hashCode(); if (hasNodeInstanceId()) { hash = (37 * hash) + NODE_INSTANCE_ID_FIELD_NUMBER;
public org.jbpm.marshalling.impl.JBPMMessages.WorkItem buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.WorkItem result = new org.jbpm.marshalling.impl.JBPMMessages.WorkItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.WorkItem other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.WorkItem.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); if (other.hasProcessInstancesId()) { setProcessInstancesId(other.getProcessInstancesId()); if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); if (other.hasState()) { setState(other.getState()); if (other.hasDeploymentId()) { bitField0_ |= 0x00000020; deploymentId_ = other.deploymentId_; onChanged(); if (other.hasNodeInstanceId()) { setNodeInstanceId(other.getNodeInstanceId()); if (other.hasNodeId()) { setNodeId(other.getNodeId());
hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); if (hasProcessInstancesId()) { hash = (37 * hash) + PROCESS_INSTANCES_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProcessInstancesId()); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState(); if (getVariableCount() > 0) { hash = (37 * hash) + VARIABLE_FIELD_NUMBER; hash = (53 * hash) + getVariableList().hashCode(); if (hasDeploymentId()) { hash = (37 * hash) + DEPLOYMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getDeploymentId().hashCode(); if (hasNodeInstanceId()) { hash = (37 * hash) + NODE_INSTANCE_ID_FIELD_NUMBER;
result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); result = result && (hasProcessInstancesId() == other.hasProcessInstancesId()); if (hasProcessInstancesId()) { result = result && (getProcessInstancesId() == other.getProcessInstancesId()); result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); result = result && (hasState() == other.hasState()); if (hasState()) { result = result && (getState() == other.getState()); result = result && getVariableList() .equals(other.getVariableList()); result = result && (hasDeploymentId() == other.hasDeploymentId()); if (hasDeploymentId()) { result = result && getDeploymentId() .equals(other.getDeploymentId()); result = result && (hasNodeInstanceId() == other.hasNodeInstanceId()); if (hasNodeInstanceId()) {
public static WorkItem readWorkItem(MarshallerReaderContext context, JBPMMessages.WorkItem _workItem, boolean includeVariables) throws IOException { WorkItemImpl workItem = new WorkItemImpl(); workItem.setId( _workItem.getId() ); workItem.setProcessInstanceId( _workItem.getProcessInstancesId() ); workItem.setName( _workItem.getName() ); workItem.setState( _workItem.getState() ); workItem.setDeploymentId(_workItem.getDeploymentId()); workItem.setNodeId(_workItem.getNodeId()); workItem.setNodeInstanceId(_workItem.getNodeInstanceId()); if ( includeVariables ) { for ( JBPMMessages.Variable _variable : _workItem.getVariableList() ) { try { Object value = unmarshallVariableValue( context, _variable ); workItem.setParameter( _variable.getName(), value ); } catch ( ClassNotFoundException e ) { throw new IllegalArgumentException( "Could not reload parameter " + _variable.getName() + " for work item " + _workItem ); } } } return workItem; }
public org.jbpm.marshalling.impl.JBPMMessages.WorkItem getDefaultInstanceForType() { return org.jbpm.marshalling.impl.JBPMMessages.WorkItem.getDefaultInstance(); }
/** * <code>optional string deployment_id = 6;</code> */ public Builder clearDeploymentId() { bitField0_ = (bitField0_ & ~0x00000020); deploymentId_ = getDefaultInstance().getDeploymentId(); onChanged(); return this; } /**
/** * <code>optional string name = 3;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); result = result && (hasProcessInstancesId() == other.hasProcessInstancesId()); if (hasProcessInstancesId()) { result = result && (getProcessInstancesId() == other.getProcessInstancesId()); result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); result = result && (hasState() == other.hasState()); if (hasState()) { result = result && (getState() == other.getState()); result = result && getVariableList() .equals(other.getVariableList()); result = result && (hasDeploymentId() == other.hasDeploymentId()); if (hasDeploymentId()) { result = result && getDeploymentId() .equals(other.getDeploymentId()); result = result && (hasNodeInstanceId() == other.hasNodeInstanceId()); if (hasNodeInstanceId()) {
public static WorkItem readWorkItem(MarshallerReaderContext context, JBPMMessages.WorkItem _workItem, boolean includeVariables) throws IOException { WorkItemImpl workItem = new WorkItemImpl(); workItem.setId( _workItem.getId() ); workItem.setProcessInstanceId( _workItem.getProcessInstancesId() ); workItem.setName( _workItem.getName() ); workItem.setState( _workItem.getState() ); workItem.setDeploymentId(_workItem.getDeploymentId()); workItem.setNodeId(_workItem.getNodeId()); workItem.setNodeInstanceId(_workItem.getNodeInstanceId()); if ( includeVariables ) { for ( JBPMMessages.Variable _variable : _workItem.getVariableList() ) { try { Object value = unmarshallVariableValue( context, _variable ); workItem.setParameter( _variable.getName(), value ); } catch ( ClassNotFoundException e ) { throw new IllegalArgumentException( "Could not reload parameter " + _variable.getName() + " for work item " + _workItem ); } } } return workItem; }
public org.jbpm.marshalling.impl.JBPMMessages.WorkItem getDefaultInstanceForType() { return org.jbpm.marshalling.impl.JBPMMessages.WorkItem.getDefaultInstance(); }
/** * <code>optional string deployment_id = 6;</code> */ public Builder clearDeploymentId() { bitField0_ = (bitField0_ & ~0x00000020); deploymentId_ = getDefaultInstance().getDeploymentId(); onChanged(); return this; } /**
/** * <code>optional string name = 3;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**