public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { timerInstanceId_ = java.util.Collections.unmodifiableList(timerInstanceId_); bitField0_ = (bitField0_ & ~0x00000001); } result.timerInstanceId_ = timerInstanceId_; if (mapEntryBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { mapEntry_ = java.util.Collections.unmodifiableList(mapEntry_); bitField0_ = (bitField0_ & ~0x00000002); } result.mapEntry_ = mapEntry_; } else { result.mapEntry_ = mapEntryBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } result.ruleFlowGroup_ = ruleFlowGroup_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.getDefaultInstance()) return this; if (!other.timerInstanceId_.isEmpty()) { if (timerInstanceId_.isEmpty()) { if (other.hasRuleFlowGroup()) { bitField0_ |= 0x00000004; ruleFlowGroup_ = other.ruleFlowGroup_;
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTimerInstanceIdCount() > 0) { hash = (37 * hash) + TIMER_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getTimerInstanceIdList().hashCode(); } if (getMapEntryCount() > 0) { hash = (37 * hash) + MAPENTRY_FIELD_NUMBER; hash = (53 * hash) + getMapEntryList().hashCode(); } if (hasRuleFlowGroup()) { hash = (37 * hash) + RULE_FLOW_GROUP_FIELD_NUMBER; hash = (53 * hash) + getRuleFlowGroup().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
case RULE_SET_NODE: nodeInstance = new RuleSetNodeInstance(); ((RuleSetNodeInstance) nodeInstance).setRuleFlowGroup(_content.getRuleSet().getRuleFlowGroup()); if ( _content.getRuleSet().getTimerInstanceIdCount() > 0 ) { List<Long> timerInstances = new ArrayList<Long>(); for ( Long _timerId : _content.getRuleSet().getTimerInstanceIdList() ) { timerInstances.add( _timerId ); if (_content.getRuleSet().getMapEntryCount() > 0) { Map<String, FactHandle> factInfo = new HashMap<String, FactHandle>(); for (TextMapEntry entry : _content.getRuleSet().getMapEntryList()) { factInfo.put(entry.getName(), DefaultFactHandle.createFromExternalFormat(entry.getValue()));
if (hasRuleSet()) { result = result && getRuleSet() .equals(other.getRuleSet());
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.getDefaultInstance()) return this; if (!other.timerInstanceId_.isEmpty()) { if (timerInstanceId_.isEmpty()) { if (other.hasRuleFlowGroup()) { bitField0_ |= 0x00000004; ruleFlowGroup_ = other.ruleFlowGroup_;
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { 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(); } for (int i = 0; i < mapEntry_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, mapEntry_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ruleFlowGroup_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { timerInstanceId_ = java.util.Collections.unmodifiableList(timerInstanceId_); bitField0_ = (bitField0_ & ~0x00000001); } result.timerInstanceId_ = timerInstanceId_; if (mapEntryBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { mapEntry_ = java.util.Collections.unmodifiableList(mapEntry_); bitField0_ = (bitField0_ & ~0x00000002); } result.mapEntry_ = mapEntry_; } else { result.mapEntry_ = mapEntryBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } result.ruleFlowGroup_ = ruleFlowGroup_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTimerInstanceIdCount() > 0) { hash = (37 * hash) + TIMER_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getTimerInstanceIdList().hashCode(); } if (getMapEntryCount() > 0) { hash = (37 * hash) + MAPENTRY_FIELD_NUMBER; hash = (53 * hash) + getMapEntryList().hashCode(); } if (hasRuleFlowGroup()) { hash = (37 * hash) + RULE_FLOW_GROUP_FIELD_NUMBER; hash = (53 * hash) + getRuleFlowGroup().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.RuleSetNode rule_set = 2;</code> */ public Builder mergeRuleSet(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode value) { if (ruleSetBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && ruleSet_ != null && ruleSet_ != org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.getDefaultInstance()) { ruleSet_ = org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.newBuilder(ruleSet_).mergeFrom(value).buildPartial(); } else { ruleSet_ = value; } onChanged(); } else { ruleSetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
@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.RuleSetNode)) { return super.equals(obj); } org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode other = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode) obj; boolean result = true; result = result && getTimerInstanceIdList() .equals(other.getTimerInstanceIdList()); result = result && getMapEntryList() .equals(other.getMapEntryList()); result = result && (hasRuleFlowGroup() == other.hasRuleFlowGroup()); if (hasRuleFlowGroup()) { result = result && getRuleFlowGroup() .equals(other.getRuleFlowGroup()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode getDefaultInstanceForType() { return org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.getDefaultInstance(); }
/** * <code>optional string rule_flow_group = 3;</code> */ public Builder clearRuleFlowGroup() { bitField0_ = (bitField0_ & ~0x00000004); ruleFlowGroup_ = getDefaultInstance().getRuleFlowGroup(); onChanged(); return this; } /**
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.RuleSetNode rule_set = 2;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode getRuleSet() { if (ruleSetBuilder_ == null) { return ruleSet_ == null ? org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.getDefaultInstance() : ruleSet_; } else { return ruleSetBuilder_.getMessage(); } } /**
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.RuleSetNode rule_set = 2;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNodeOrBuilder getRuleSetOrBuilder() { return ruleSet_ == null ? org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.getDefaultInstance() : ruleSet_; }
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.RuleSetNode rule_set = 2;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode getRuleSet() { return ruleSet_ == null ? org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.getDefaultInstance() : ruleSet_; } /**
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.RuleSetNode rule_set = 2;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNodeOrBuilder getRuleSetOrBuilder() { if (ruleSetBuilder_ != null) { return ruleSetBuilder_.getMessageOrBuilder(); } else { return ruleSet_ == null ? org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.getDefaultInstance() : ruleSet_; } } /**
case RULE_SET_NODE: nodeInstance = new RuleSetNodeInstance(); ((RuleSetNodeInstance) nodeInstance).setRuleFlowGroup(_content.getRuleSet().getRuleFlowGroup()); if ( _content.getRuleSet().getTimerInstanceIdCount() > 0 ) { List<Long> timerInstances = new ArrayList<Long>(); for ( Long _timerId : _content.getRuleSet().getTimerInstanceIdList() ) { timerInstances.add( _timerId ); if (_content.getRuleSet().getMapEntryCount() > 0) { Map<String, FactHandle> factInfo = new HashMap<String, FactHandle>(); for (TextMapEntry entry : _content.getRuleSet().getMapEntryList()) { factInfo.put(entry.getName(), DefaultFactHandle.createFromExternalFormat(entry.getValue()));
if (hasRuleSet()) { result = result && getRuleSet() .equals(other.getRuleSet());
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.RuleSetNode rule_set = 2;</code> */ public Builder mergeRuleSet(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode value) { if (ruleSetBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && ruleSet_ != null && ruleSet_ != org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.getDefaultInstance()) { ruleSet_ = org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.RuleSetNode.newBuilder(ruleSet_).mergeFrom(value).buildPartial(); } else { ruleSet_ = value; } onChanged(); } else { ruleSetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**