/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.StateNode state = 10;</code> */ public Builder setState( org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); } else { stateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /**
subBuilder.mergeFrom(state_); state_ = subBuilder.buildPartial();
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode.getDefaultInstance()) return this; if (!other.timerInstanceId_.isEmpty()) { if (timerInstanceId_.isEmpty()) { timerInstanceId_ = other.timerInstanceId_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTimerInstanceIdIsMutable(); timerInstanceId_.addAll(other.timerInstanceId_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
if ( timerInstances != null ) { for ( Long id : timerInstances ) { _state.addTimerInstanceId( id ); .setState( _state.build() ); } else if ( nodeInstance instanceof ForEachNodeInstance ) { JBPMMessages.ProcessInstance.NodeInstanceContent.ForEachNode.Builder _foreach = JBPMMessages.ProcessInstance.NodeInstanceContent.ForEachNode.newBuilder();
subBuilder.mergeFrom(state_); state_ = subBuilder.buildPartial();
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.StateNode state = 10;</code> */ public Builder mergeState(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode value) { if (stateBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && state_ != null && state_ != org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode.getDefaultInstance()) { state_ = org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } onChanged(); } else { stateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; 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.StateNode parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>optional .org.jbpm.marshalling.ProcessInstance.NodeInstanceContent.StateNode state = 10;</code> */ public Builder setState( org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); } else { stateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /**
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode.getDefaultInstance()) return this; if (!other.timerInstanceId_.isEmpty()) { if (timerInstanceId_.isEmpty()) { timerInstanceId_ = other.timerInstanceId_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTimerInstanceIdIsMutable(); timerInstanceId_.addAll(other.timerInstanceId_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private Builder() { maybeForceBuilderInitialization(); }
public static Builder newBuilder(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
/** * <code>repeated int64 timer_instance_id = 1;</code> */ public Builder addAllTimerInstanceId( java.lang.Iterable<? extends java.lang.Long> values) { ensureTimerInstanceIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, timerInstanceId_); onChanged(); return this; } /**
/** * <code>repeated int64 timer_instance_id = 1;</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.StateNode) { return mergeFrom((org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode)other); } else { super.mergeFrom(other); return this; } }
/** * <code>repeated int64 timer_instance_id = 1;</code> */ public Builder addTimerInstanceId(long value) { ensureTimerInstanceIdIsMutable(); timerInstanceId_.add(value); onChanged(); return this; } /**
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { timerInstanceId_ = java.util.Collections.unmodifiableList(timerInstanceId_); bitField0_ = (bitField0_ & ~0x00000001); } result.timerInstanceId_ = timerInstanceId_; onBuilt(); return result; }
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; } /**
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode build() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstanceContent.StateNode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }