for ( Map.Entry<String, String> entry : swimlaneActors.entrySet() ) { _instance.addSwimlaneContext( JBPMMessages.ProcessInstance.SwimlaneContextInstance.newBuilder() .setSwimlane( entry.getKey() ) .setActorId( entry.getValue() ) .build() );
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>optional string actor_id = 2;</code> */ public Builder setActorIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; actorId_ = value; onChanged(); return this; } public final Builder setUnknownFields(
for ( Map.Entry<String, String> entry : swimlaneActors.entrySet() ) { _instance.addSwimlaneContext( JBPMMessages.ProcessInstance.SwimlaneContextInstance.newBuilder() .setSwimlane( entry.getKey() ) .setActorId( entry.getValue() ) .build() );
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance result = new org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.swimlane_ = swimlane_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.actorId_ = actorId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.SwimlaneContextInstance swimlane_context = 6;</code> */ public Builder addSwimlaneContext( int index, org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.Builder builderForValue) { if (swimlaneContextBuilder_ == null) { ensureSwimlaneContextIsMutable(); swimlaneContext_.add(index, builderForValue.build()); onChanged(); } else { swimlaneContextBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.getDefaultInstance()) return this; if (other.hasSwimlane()) { bitField0_ |= 0x00000001; swimlane_ = other.swimlane_; onChanged(); } if (other.hasActorId()) { bitField0_ |= 0x00000002; actorId_ = other.actorId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.SwimlaneContextInstance swimlane_context = 6;</code> */ public Builder addSwimlaneContext( org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.Builder builderForValue) { if (swimlaneContextBuilder_ == null) { ensureSwimlaneContextIsMutable(); swimlaneContext_.add(builderForValue.build()); onChanged(); } else { swimlaneContextBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.SwimlaneContextInstance swimlane_context = 6;</code> */ public Builder setSwimlaneContext( int index, org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.Builder builderForValue) { if (swimlaneContextBuilder_ == null) { ensureSwimlaneContextIsMutable(); swimlaneContext_.set(index, builderForValue.build()); onChanged(); } else { swimlaneContextBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>optional string actor_id = 2;</code> */ public Builder setActorIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; actorId_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional string swimlane = 1;</code> */ public Builder setSwimlane( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; swimlane_ = value; onChanged(); return this; } /**
/** * <code>optional string actor_id = 2;</code> */ public Builder setActorId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; actorId_ = value; onChanged(); return this; } /**
/** * <code>optional string swimlane = 1;</code> */ public Builder setSwimlaneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; swimlane_ = value; onChanged(); return this; }
public static Builder newBuilder(org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
/** * <code>optional string swimlane = 1;</code> */ public Builder clearSwimlane() { bitField0_ = (bitField0_ & ~0x00000001); swimlane_ = getDefaultInstance().getSwimlane(); onChanged(); return this; } /**
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance build() { org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
private Builder() { maybeForceBuilderInitialization(); }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {