/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.HumanTaskNode human_task = 3;</code> */ public Builder setHumanTask( org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.Builder builderForValue) { if (humanTaskBuilder_ == null) { humanTask_ = builderForValue.build(); onChanged(); } else { humanTaskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
subBuilder.mergeFrom(humanTask_); humanTask_ = subBuilder.buildPartial();
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; }
.setWorkItemId( ((HumanTaskNodeInstance) nodeInstance).getWorkItemId() ); List<Long> timerInstances = ((HumanTaskNodeInstance) nodeInstance).getTimerInstances(); if ( timerInstances != null ) { for ( Long id : timerInstances ) { _task.addTimerInstanceId( id ); _task.setErrorHandlingProcessInstanceId(((HumanTaskNodeInstance) nodeInstance).getExceptionHandlingProcessInstanceId()); _content = JBPMMessages.ProcessInstance.NodeInstanceContent.newBuilder() .setType( NodeInstanceType.HUMAN_TASK_NODE ) .setHumanTask( _task.build() ); } else if ( nodeInstance instanceof WorkItemNodeInstance ) { JBPMMessages.ProcessInstance.NodeInstanceContent.WorkItemNode.Builder _wi = JBPMMessages.ProcessInstance.NodeInstanceContent.WorkItemNode.newBuilder()
subBuilder.mergeFrom(humanTask_); humanTask_ = subBuilder.buildPartial();
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; }
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; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.HumanTaskNode human_task = 3;</code> */ public Builder setHumanTask( org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode.Builder builderForValue) { if (humanTaskBuilder_ == null) { humanTask_ = builderForValue.build(); onChanged(); } else { humanTaskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
public static Builder newBuilder(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
/** * <code>repeated int64 timer_instance_id = 2;</code> */ public Builder addTimerInstanceId(long value) { ensureTimerInstanceIdIsMutable(); timerInstanceId_.add(value); onChanged(); return this; } /**
/** * <code>repeated int64 timer_instance_id = 2;</code> */ public Builder addAllTimerInstanceId( java.lang.Iterable<? extends java.lang.Long> values) { ensureTimerInstanceIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, timerInstanceId_); onChanged(); return this; } /**
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode build() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>repeated int64 timer_instance_id = 2;</code> */ public Builder setTimerInstanceId( int index, long value) { ensureTimerInstanceIdIsMutable(); timerInstanceId_.set(index, value); onChanged(); return this; } /**
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode) { return mergeFrom((org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.HumanTaskNode)other); } else { super.mergeFrom(other); return this; } }
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**