public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { groupNodeInstanceId_ = java.util.Collections.unmodifiableList(groupNodeInstanceId_); bitField0_ = (bitField0_ & ~0x00000001); } result.groupNodeInstanceId_ = groupNodeInstanceId_; onBuilt(); return result; }
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance.getDefaultInstance()) return this; if (!other.groupNodeInstanceId_.isEmpty()) { if (groupNodeInstanceId_.isEmpty()) { groupNodeInstanceId_ = other.groupNodeInstanceId_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureGroupNodeInstanceIdIsMutable(); groupNodeInstanceId_.addAll(other.groupNodeInstanceId_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getGroupNodeInstanceIdCount() > 0) { hash = (37 * hash) + GROUP_NODE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getGroupNodeInstanceIdList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if ( exclusiveGroupInstances != null ) { for ( ContextInstance contextInstance : exclusiveGroupInstances ) { JBPMMessages.ProcessInstance.ExclusiveGroupInstance.Builder _excl = JBPMMessages.ProcessInstance.ExclusiveGroupInstance.newBuilder(); ExclusiveGroupInstance exclusiveGroupInstance = (ExclusiveGroupInstance) contextInstance; Collection<NodeInstance> groupNodeInstances = exclusiveGroupInstance.getNodeInstances();
ExclusiveGroupInstance exclusiveGroupInstance = new ExclusiveGroupInstance(); ((CompositeContextNodeInstance) nodeInstance).addContextInstance( ExclusiveGroup.EXCLUSIVE_GROUP, exclusiveGroupInstance ); for ( Long nodeInstanceId : _excl.getGroupNodeInstanceIdList() ) { NodeInstance groupNodeInstance = ((org.jbpm.workflow.instance.NodeInstanceContainer)processInstance).getNodeInstance( nodeInstanceId, true ); if ( groupNodeInstance == null ) {
ExclusiveGroupInstance exclusiveGroupInstance = new ExclusiveGroupInstance(); processInstance.addContextInstance( ExclusiveGroup.EXCLUSIVE_GROUP, exclusiveGroupInstance ); for ( Long nodeInstanceId : _excl.getGroupNodeInstanceIdList() ) { NodeInstance nodeInstance = ((org.jbpm.workflow.instance.NodeInstanceContainer)processInstance).getNodeInstance( nodeInstanceId, true ); if ( nodeInstance == null ) {
if ( exclusiveGroupInstances != null ) { for ( ContextInstance contextInstance : exclusiveGroupInstances ) { JBPMMessages.ProcessInstance.ExclusiveGroupInstance.Builder _exclusive = JBPMMessages.ProcessInstance.ExclusiveGroupInstance.newBuilder(); ExclusiveGroupInstance exclusiveGroupInstance = (ExclusiveGroupInstance) contextInstance; Collection<NodeInstance> groupNodeInstances = exclusiveGroupInstance.getNodeInstances();
break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance.getDefaultInstance()) return this; if (!other.groupNodeInstanceId_.isEmpty()) { if (groupNodeInstanceId_.isEmpty()) { groupNodeInstanceId_ = other.groupNodeInstanceId_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureGroupNodeInstanceIdIsMutable(); groupNodeInstanceId_.addAll(other.groupNodeInstanceId_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < groupNodeInstanceId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(groupNodeInstanceId_.get(i)); } size += dataSize; size += 1 * getGroupNodeInstanceIdList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@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.ExclusiveGroupInstance)) { return super.equals(obj); } org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance other = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance) obj; boolean result = true; result = result && getGroupNodeInstanceIdList() .equals(other.getGroupNodeInstanceIdList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getGroupNodeInstanceIdCount() > 0) { hash = (37 * hash) + GROUP_NODE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getGroupNodeInstanceIdList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance prototype) {
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance getDefaultInstanceForType() { return org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance.getDefaultInstance(); }
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance build() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public static Builder newBuilder(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.ExclusiveGroupInstance exclusive_group = 10;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance.Builder addExclusiveGroupBuilder( int index) { return getExclusiveGroupFieldBuilder().addBuilder( index, org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance.getDefaultInstance()); } /**
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { groupNodeInstanceId_ = java.util.Collections.unmodifiableList(groupNodeInstanceId_); bitField0_ = (bitField0_ & ~0x00000001); } result.groupNodeInstanceId_ = groupNodeInstanceId_; onBuilt(); return result; }
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.ExclusiveGroupInstance exclusive_group = 5;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance.Builder addExclusiveGroupBuilder( int index) { return getExclusiveGroupFieldBuilder().addBuilder( index, org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.ExclusiveGroupInstance.getDefaultInstance()); } /**