public org.drools.marshalling.impl.ProtobufMessages.EntryPoint buildPartial() { org.drools.marshalling.impl.ProtobufMessages.EntryPoint result = new org.drools.marshalling.impl.ProtobufMessages.EntryPoint(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.entryPointId_ = entryPointId_; if (handleBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { handle_ = java.util.Collections.unmodifiableList(handle_); bitField0_ = (bitField0_ & ~0x00000002); } result.handle_ = handle_; } else { result.handle_ = handleBuilder_.build(); } if (otcBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { otc_ = java.util.Collections.unmodifiableList(otc_); bitField0_ = (bitField0_ & ~0x00000004); } result.otc_ = otc_; } else { result.otc_ = otcBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(org.drools.marshalling.impl.ProtobufMessages.EntryPoint other) { if (other == org.drools.marshalling.impl.ProtobufMessages.EntryPoint.getDefaultInstance()) return this; if (other.hasEntryPointId()) { bitField0_ |= 0x00000001; entryPointId_ = other.entryPointId_; this.mergeUnknownFields(other.getUnknownFields()); return this;
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getEntryPointIdBytes()); } for (int i = 0; i < handle_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, handle_.get(i)); } for (int i = 0; i < otc_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, otc_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
WorkingMemoryEntryPoint wmep = context.wm.getEntryPoints().get( _ep.getEntryPointId() ); readFactHandles( context, _ep,
boolean wasOTCSerialized = _ep.getOtcCount() > 0; // if 0, then the OTC was not serialized (older versions of drools) Set<String> tmsEnabled = new HashSet<String>(); for( ObjectTypeConfiguration _otc : _ep.getOtcList() ) { if( _otc.getTmsEnabled() ) { tmsEnabled.add( _otc.getType() );
public static void readFactHandles(MarshallerReaderContext context, org.drools.marshalling.impl.ProtobufMessages.EntryPoint _ep, ObjectStore objectStore) throws IOException, ClassNotFoundException { InternalWorkingMemory wm = context.wm; WorkingMemoryEntryPoint entryPoint = context.wm.getEntryPoints().get( _ep.getEntryPointId() ); // load the handles for ( ProtobufMessages.FactHandle _handle : _ep.getHandleList() ) { InternalFactHandle handle = readFactHandle( context, entryPoint, _handle ); context.handles.put( handle.getId(), handle ); if ( handle.getObject() != null ) { objectStore.addHandle( handle, handle.getObject() ); } // add handle to object type node assertHandleIntoOTN( context, wm, handle ); } }
public org.drools.marshalling.impl.ProtobufMessages.EntryPoint getDefaultInstanceForType() { return org.drools.marshalling.impl.ProtobufMessages.EntryPoint.getDefaultInstance(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getEntryPointIdBytes()); } for (int i = 0; i < handle_.size(); i++) { output.writeMessage(2, handle_.get(i)); } for (int i = 0; i < otc_.size(); i++) { output.writeMessage(4, otc_.get(i)); } getUnknownFields().writeTo(output); }
/** * <code>repeated .org.drools.marshalling.EntryPoint entry_point = 10;</code> */ public org.drools.marshalling.impl.ProtobufMessages.EntryPoint.Builder addEntryPointBuilder( int index) { return getEntryPointFieldBuilder().addBuilder( index, org.drools.marshalling.impl.ProtobufMessages.EntryPoint.getDefaultInstance()); } /**
/** * <code>optional string entry_point_id = 1;</code> */ public Builder clearEntryPointId() { bitField0_ = (bitField0_ & ~0x00000001); entryPointId_ = getDefaultInstance().getEntryPointId(); onChanged(); return this; } /**
/** * <code>repeated .org.drools.marshalling.EntryPoint entry_point = 10;</code> */ public org.drools.marshalling.impl.ProtobufMessages.EntryPoint.Builder addEntryPointBuilder() { return getEntryPointFieldBuilder().addBuilder( org.drools.marshalling.impl.ProtobufMessages.EntryPoint.getDefaultInstance()); } /**