public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.workItemId_ = workItemId_; if (((bitField0_ & 0x00000002) == 0x00000002)) { timerInstanceId_ = java.util.Collections.unmodifiableList(timerInstanceId_); bitField0_ = (bitField0_ & ~0x00000002); } result.timerInstanceId_ = timerInstanceId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.errorHandlingProcessInstanceId_ = errorHandlingProcessInstanceId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.HumanTaskNode human_task = 3;</code> */ public Builder mergeHumanTask(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode value) { if (humanTaskBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && humanTask_ != null && humanTask_ != org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.getDefaultInstance()) { humanTask_ = org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.newBuilder(humanTask_).mergeFrom(value).buildPartial(); } else { humanTask_ = value; } onChanged(); } else { humanTaskBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasWorkItemId()) { hash = (37 * hash) + WORK_ITEM_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkItemId()); } if (getTimerInstanceIdCount() > 0) { hash = (37 * hash) + TIMER_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getTimerInstanceIdList().hashCode(); } if (hasErrorHandlingProcessInstanceId()) { hash = (37 * hash) + ERROR_HANDLING_PROCESS_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getErrorHandlingProcessInstanceId()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
case HUMAN_TASK_NODE : nodeInstance = new HumanTaskNodeInstance(); ((HumanTaskNodeInstance) nodeInstance).internalSetWorkItemId( _content.getHumanTask().getWorkItemId() ); if ( _content.getHumanTask().getTimerInstanceIdCount() > 0 ) { List<Long> timerInstances = new ArrayList<Long>(); for ( Long _timerId : _content.getHumanTask().getTimerInstanceIdList() ) { timerInstances.add( _timerId ); ((WorkItemNodeInstance) nodeInstance).internalSetProcessInstanceId( _content.getHumanTask().getErrorHandlingProcessInstanceId() ); break; case WORK_ITEM_NODE :
if (hasHumanTask()) { result = result && getHumanTask() .equals(other.getHumanTask());
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, workItemId_); } { int dataSize = 0; for (int i = 0; i < timerInstanceId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(timerInstanceId_.get(i)); } size += dataSize; size += 1 * getTimerInstanceIdList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, errorHandlingProcessInstanceId_); } 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(); if (hasWorkItemId()) { hash = (37 * hash) + WORK_ITEM_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkItemId()); } if (getTimerInstanceIdCount() > 0) { hash = (37 * hash) + TIMER_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getTimerInstanceIdList().hashCode(); } if (hasErrorHandlingProcessInstanceId()) { hash = (37 * hash) + ERROR_HANDLING_PROCESS_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getErrorHandlingProcessInstanceId()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode)) { return super.equals(obj); } org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode other = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode) obj; boolean result = true; result = result && (hasWorkItemId() == other.hasWorkItemId()); if (hasWorkItemId()) { result = result && (getWorkItemId() == other.getWorkItemId()); } result = result && getTimerInstanceIdList() .equals(other.getTimerInstanceIdList()); result = result && (hasErrorHandlingProcessInstanceId() == other.hasErrorHandlingProcessInstanceId()); if (hasErrorHandlingProcessInstanceId()) { result = result && (getErrorHandlingProcessInstanceId() == other.getErrorHandlingProcessInstanceId()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.HumanTaskNode human_task = 3;</code> */ public Builder mergeHumanTask(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode value) { if (humanTaskBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && humanTask_ != null && humanTask_ != org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.getDefaultInstance()) { humanTask_ = org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.newBuilder(humanTask_).mergeFrom(value).buildPartial(); } else { humanTask_ = value; } onChanged(); } else { humanTaskBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.workItemId_ = workItemId_; if (((bitField0_ & 0x00000002) == 0x00000002)) { timerInstanceId_ = java.util.Collections.unmodifiableList(timerInstanceId_); bitField0_ = (bitField0_ & ~0x00000002); } result.timerInstanceId_ = timerInstanceId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.errorHandlingProcessInstanceId_ = errorHandlingProcessInstanceId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.getDefaultInstance()) return this; if (other.hasWorkItemId()) { setWorkItemId(other.getWorkItemId()); } if (!other.timerInstanceId_.isEmpty()) { if (timerInstanceId_.isEmpty()) { timerInstanceId_ = other.timerInstanceId_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTimerInstanceIdIsMutable(); timerInstanceId_.addAll(other.timerInstanceId_); } onChanged(); } if (other.hasErrorHandlingProcessInstanceId()) { setErrorHandlingProcessInstanceId(other.getErrorHandlingProcessInstanceId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.HumanTaskNode human_task = 3;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode getHumanTask() { if (humanTaskBuilder_ == null) { return humanTask_ == null ? org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.getDefaultInstance() : humanTask_; } else { return humanTaskBuilder_.getMessage(); } } /**
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.HumanTaskNode human_task = 3;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode getHumanTask() { return humanTask_ == null ? org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.getDefaultInstance() : humanTask_; } /**
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode getDefaultInstanceForType() { return org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.getDefaultInstance(); }
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.HumanTaskNode human_task = 3;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNodeOrBuilder getHumanTaskOrBuilder() { if (humanTaskBuilder_ != null) { return humanTaskBuilder_.getMessageOrBuilder(); } else { return humanTask_ == null ? org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.getDefaultInstance() : humanTask_; } } /**
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.HumanTaskNode human_task = 3;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNodeOrBuilder getHumanTaskOrBuilder() { return humanTask_ == null ? org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.getDefaultInstance() : humanTask_; }
case HUMAN_TASK_NODE : nodeInstance = new HumanTaskNodeInstance(); ((HumanTaskNodeInstance) nodeInstance).internalSetWorkItemId( _content.getHumanTask().getWorkItemId() ); if ( _content.getHumanTask().getTimerInstanceIdCount() > 0 ) { List<Long> timerInstances = new ArrayList<Long>(); for ( Long _timerId : _content.getHumanTask().getTimerInstanceIdList() ) { timerInstances.add( _timerId ); ((WorkItemNodeInstance) nodeInstance).internalSetProcessInstanceId( _content.getHumanTask().getErrorHandlingProcessInstanceId() ); break; case WORK_ITEM_NODE :
if (hasHumanTask()) { result = result && getHumanTask() .equals(other.getHumanTask());
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, workItemId_); } { int dataSize = 0; for (int i = 0; i < timerInstanceId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(timerInstanceId_.get(i)); } size += dataSize; size += 1 * getTimerInstanceIdList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, errorHandlingProcessInstanceId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode)) { return super.equals(obj); } org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode other = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode) obj; boolean result = true; result = result && (hasWorkItemId() == other.hasWorkItemId()); if (hasWorkItemId()) { result = result && (getWorkItemId() == other.getWorkItemId()); } result = result && getTimerInstanceIdList() .equals(other.getTimerInstanceIdList()); result = result && (hasErrorHandlingProcessInstanceId() == other.hasErrorHandlingProcessInstanceId()); if (hasErrorHandlingProcessInstanceId()) { result = result && (getErrorHandlingProcessInstanceId() == other.getErrorHandlingProcessInstanceId()); } result = result && unknownFields.equals(other.unknownFields); return result; }