public org.drools.marshalling.impl.ProtobufMessages.Agenda buildPartial() { org.drools.marshalling.impl.ProtobufMessages.Agenda result = new org.drools.marshalling.impl.ProtobufMessages.Agenda(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
agenda_ = org.drools.marshalling.impl.ProtobufMessages.Agenda.getDefaultInstance(); } else { agendaBuilder_.clear();
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, dormantActivations_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, activeActivations_); } for (int i = 0; i < agendaGroup_.size(); i++) { output.writeMessage(3, agendaGroup_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, focusStack_); } for (int i = 0; i < ruleFlowGroup_.size(); i++) { output.writeMessage(5, ruleFlowGroup_.get(i)); } for (int i = 0; i < activation_.size(); i++) { output.writeMessage(6, activation_.get(i)); } getUnknownFields().writeTo(output); }
public Builder mergeFrom(org.drools.marshalling.impl.ProtobufMessages.Agenda other) { if (other == org.drools.marshalling.impl.ProtobufMessages.Agenda.getDefaultInstance()) return this; if (other.hasDormantActivations()) { setDormantActivations(other.getDormantActivations()); if (other.hasActiveActivations()) { setActiveActivations(other.getActiveActivations()); if (other.hasFocusStack()) { mergeFocusStack(other.getFocusStack()); this.mergeUnknownFields(other.getUnknownFields()); return this;
.computeMessageSize(6, activation_.get(i)); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
ProtobufMessages.Agenda _agenda = _ruleData.getAgenda(); for ( org.drools.marshalling.impl.ProtobufMessages.Agenda.AgendaGroup _agendaGroup : _agenda.getAgendaGroupList() ) { InternalAgendaGroup group = (InternalAgendaGroup) agenda.getAgendaGroup( _agendaGroup.getName(), context.ruleBase ); group.setActive( _agendaGroup.getIsActive() ); for ( String _groupName : _agenda.getFocusStack().getGroupNameList() ) { agenda.addAgendaGroupOnStack( agenda.getAgendaGroup( _groupName ) ); for ( ProtobufMessages.Agenda.RuleFlowGroup _ruleFlowGroup : _agenda.getRuleFlowGroupList() ) { RuleFlowGroupImpl rfgi = new RuleFlowGroupImpl( _ruleFlowGroup.getName(), _ruleFlowGroup.getIsActive(), _agenda.getActivationList() ); agenda.setActivationsFilter( context.filter );
/** * <code>optional .org.drools.marshalling.Agenda agenda = 8;</code> */ public Builder mergeAgenda(org.drools.marshalling.impl.ProtobufMessages.Agenda value) { if (agendaBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && agenda_ != org.drools.marshalling.impl.ProtobufMessages.Agenda.getDefaultInstance()) { agenda_ = org.drools.marshalling.impl.ProtobufMessages.Agenda.newBuilder(agenda_).mergeFrom(value).buildPartial(); } else { agenda_ = value; } onChanged(); } else { agendaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional .org.drools.marshalling.Agenda agenda = 8;</code> */ public Builder clearAgenda() { if (agendaBuilder_ == null) { agenda_ = org.drools.marshalling.impl.ProtobufMessages.Agenda.getDefaultInstance(); onChanged(); } else { agendaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /**
public org.drools.marshalling.impl.ProtobufMessages.Agenda getDefaultInstanceForType() { return org.drools.marshalling.impl.ProtobufMessages.Agenda.getDefaultInstance(); }
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;