private void initFields() { multithread_ = false; time_ = 0L; ruleData_ = org.drools.marshalling.impl.ProtobufMessages.RuleData.getDefaultInstance(); processData_ = org.drools.marshalling.impl.ProtobufMessages.ProcessData.getDefaultInstance(); timers_ = org.drools.marshalling.impl.ProtobufMessages.Timers.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
private void initFields() { type_ = org.drools.marshalling.impl.ProtobufMessages.Trigger.TriggerType.CRON; cron_ = org.drools.marshalling.impl.ProtobufMessages.Trigger.CronTrigger.getDefaultInstance(); interval_ = org.drools.marshalling.impl.ProtobufMessages.Trigger.IntervalTrigger.getDefaultInstance(); pit_ = org.drools.marshalling.impl.ProtobufMessages.Trigger.PointInTimeTrigger.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
public static ProtobufMessages.Activation createActivation(final String packageName, final String ruleName, final LeftTuple tuple) { return ProtobufMessages.Activation.newBuilder() .setPackageName( packageName ) .setRuleName( ruleName ) .setTuple( createTuple( tuple ) ) .build(); }
public Builder mergeFrom(org.drools.marshalling.impl.ProtobufMessages.Timers.ActivationTimer other) { if (other == org.drools.marshalling.impl.ProtobufMessages.Timers.ActivationTimer.getDefaultInstance()) return this; if (other.hasActivation()) { mergeActivation(other.getActivation()); } if (other.hasTrigger()) { mergeTrigger(other.getTrigger()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private void initFields() { type_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.ActionType.BEHAVIOR_EXPIRE; behaviorExpire_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire.getDefaultInstance(); deactivateCallback_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.DeactivateCallback.getDefaultInstance(); logicalRetract_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.LogicalRetract.getDefaultInstance(); propagate_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.Propagate.getDefaultInstance(); assert_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.Assert.getDefaultInstance(); expire_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.Expire.getDefaultInstance(); signal_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.Signal.getDefaultInstance(); signalProcessInstance_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
private void initFields() { lastId_ = 0; lastRecency_ = 0L; initialFact_ = org.drools.marshalling.impl.ProtobufMessages.FactHandle.getDefaultInstance(); agenda_ = org.drools.marshalling.impl.ProtobufMessages.Agenda.getDefaultInstance(); nodeMemory_ = java.util.Collections.emptyList(); entryPoint_ = java.util.Collections.emptyList(); actionQueue_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.getDefaultInstance(); tms_ = org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
/** * <code>optional string name = 2;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public org.drools.marshalling.impl.ProtobufMessages.Agenda.FocusStack build() { org.drools.marshalling.impl.ProtobufMessages.Agenda.FocusStack result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.drools.marshalling.impl.ProtobufMessages.NodeMemory.RIANodeMemory build() { org.drools.marshalling.impl.ProtobufMessages.NodeMemory.RIANodeMemory result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>optional string entry_point_id = 1;</code> */ public Builder clearEntryPointId() { bitField0_ = (bitField0_ & ~0x00000001); entryPointId_ = getDefaultInstance().getEntryPointId(); onChanged(); return this; } /**
public org.drools.marshalling.impl.ProtobufMessages.Tuple build() { org.drools.marshalling.impl.ProtobufMessages.Tuple result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem build() { org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>optional string type = 1;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /**
public org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance build() { org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>optional string entry_point_id = 2;</code> */ public Builder clearEntryPointId() { bitField0_ = (bitField0_ & ~0x00000002); entryPointId_ = getDefaultInstance().getEntryPointId(); onChanged(); return this; } /**
public org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer build() { org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.drools.marshalling.impl.ProtobufMessages.Timers build() { org.drools.marshalling.impl.ProtobufMessages.Timers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public static void writeSession(MarshallerWriteContext context) throws IOException { ProtobufMessages.KnowledgeSession _session = serializeSession(context); PersisterHelper.writeToStreamWithHeader(context, _session); }
public org.drools.marshalling.impl.ProtobufMessages.ActionQueue.Propagate buildPartial() { org.drools.marshalling.impl.ProtobufMessages.ActionQueue.Propagate result = new org.drools.marshalling.impl.ProtobufMessages.ActionQueue.Propagate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.nodeId_ = nodeId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
private void initFields() { activation_ = org.drools.marshalling.impl.ProtobufMessages.Activation.getDefaultInstance(); trigger_ = org.drools.marshalling.impl.ProtobufMessages.Trigger.getDefaultInstance(); } private byte memoizedIsInitialized = -1;