@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.SwimlaneContextInstance)) { return super.equals(obj); } org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance other = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance) obj; boolean result = true; result = result && (hasSwimlane() == other.hasSwimlane()); if (hasSwimlane()) { result = result && getSwimlane() .equals(other.getSwimlane()); } result = result && (hasActorId() == other.hasActorId()); if (hasActorId()) { result = result && getActorId() .equals(other.getActorId()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.SwimlaneContextInstance swimlane_context = 6;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.Builder addSwimlaneContextBuilder( int index) { return getSwimlaneContextFieldBuilder().addBuilder( index, org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.getDefaultInstance()); } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSwimlane()) { hash = (37 * hash) + SWIMLANE_FIELD_NUMBER; hash = (53 * hash) + getSwimlane().hashCode(); } if (hasActorId()) { hash = (37 * hash) + ACTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getActorId().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
Map<String, String> swimlaneActors = swimlaneContextInstance.getSwimlaneActors(); for ( Map.Entry<String, String> entry : swimlaneActors.entrySet() ) { _instance.addSwimlaneContext( JBPMMessages.ProcessInstance.SwimlaneContextInstance.newBuilder() .setSwimlane( entry.getKey() ) .setActorId( entry.getValue() )
SwimlaneContextInstance swimlaneContextInstance = (SwimlaneContextInstance) processInstance.getContextInstance( swimlaneContext ); for ( JBPMMessages.ProcessInstance.SwimlaneContextInstance _swimlane : _instance.getSwimlaneContextList() ) { swimlaneContextInstance.setActorId( _swimlane.getSwimlane(), _swimlane.getActorId() );
break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@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.SwimlaneContextInstance)) { return super.equals(obj); } org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance other = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance) obj; boolean result = true; result = result && (hasSwimlane() == other.hasSwimlane()); if (hasSwimlane()) { result = result && getSwimlane() .equals(other.getSwimlane()); } result = result && (hasActorId() == other.hasActorId()); if (hasActorId()) { result = result && getActorId() .equals(other.getActorId()); } 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 (hasSwimlane()) { hash = (37 * hash) + SWIMLANE_FIELD_NUMBER; hash = (53 * hash) + getSwimlane().hashCode(); } if (hasActorId()) { hash = (37 * hash) + ACTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getActorId().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
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; }
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; }
public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance getDefaultInstanceForType() { return org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.getDefaultInstance(); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
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; }
/** * <code>optional string swimlane = 1;</code> */ public Builder clearSwimlane() { bitField0_ = (bitField0_ & ~0x00000001); swimlane_ = getDefaultInstance().getSwimlane(); onChanged(); return this; } /**
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.SwimlaneContextInstance swimlane_context = 6;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.Builder addSwimlaneContextBuilder( int index) { return getSwimlaneContextFieldBuilder().addBuilder( index, org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.getDefaultInstance()); } /**
/** * <code>repeated .org.jbpm.marshalling.ProcessInstance.SwimlaneContextInstance swimlane_context = 6;</code> */ public org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.Builder addSwimlaneContextBuilder() { return getSwimlaneContextFieldBuilder().addBuilder( org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance.SwimlaneContextInstance.getDefaultInstance()); } /**
/** * <code>optional string actor_id = 2;</code> */ public Builder clearActorId() { bitField0_ = (bitField0_ & ~0x00000002); actorId_ = getDefaultInstance().getActorId(); onChanged(); return this; } /**
Map<String, String> swimlaneActors = swimlaneContextInstance.getSwimlaneActors(); for ( Map.Entry<String, String> entry : swimlaneActors.entrySet() ) { _instance.addSwimlaneContext( JBPMMessages.ProcessInstance.SwimlaneContextInstance.newBuilder() .setSwimlane( entry.getKey() ) .setActorId( entry.getValue() )
SwimlaneContextInstance swimlaneContextInstance = (SwimlaneContextInstance) processInstance.getContextInstance( swimlaneContext ); for ( JBPMMessages.ProcessInstance.SwimlaneContextInstance _swimlane : _instance.getSwimlaneContextList() ) { swimlaneContextInstance.setActorId( _swimlane.getSwimlane(), _swimlane.getActorId() );
break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();