public org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem buildPartial() { org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem result = new org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem(this); int from_bitField0_ = bitField0_; if (keyBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { key_ = java.util.Collections.unmodifiableList(key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (justificationBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { justification_ = java.util.Collections.unmodifiableList(justification_); bitField0_ = (bitField0_ & ~0x00000002); } result.justification_ = justification_; } else { result.justification_ = justificationBuilder_.build(); } onBuilt(); return result; }
tms_ = org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem.getDefaultInstance(); } else { tmsBuilder_.clear();
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < key_.size(); i++) { output.writeMessage(1, key_.get(i)); } for (int i = 0; i < justification_.size(); i++) { output.writeMessage(2, justification_.get(i)); } getUnknownFields().writeTo(output); }
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
EqualityKeySorter.instance); ProtobufMessages.TruthMaintenanceSystem.Builder _tms = ProtobufMessages.TruthMaintenanceSystem.newBuilder();
public Builder mergeFrom(org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem other) { if (other == org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem.getDefaultInstance()) return this; if (keyBuilder_ == null) { if (!other.key_.isEmpty()) { this.mergeUnknownFields(other.getUnknownFields()); return this;
for( ProtobufMessages.EqualityKey _key : _tms.getKeyList() ) { InternalFactHandle handle = (InternalFactHandle) context.handles.get( _key.getHandleId() ); for( ProtobufMessages.Justification _justification : _tms.getJustificationList() ) { InternalFactHandle handle = (InternalFactHandle) context.handles.get( _justification.getHandleId() );
/** * <code>optional .org.drools.marshalling.TruthMaintenanceSystem tms = 12;</code> */ public Builder mergeTms(org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem value) { if (tmsBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && tms_ != org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem.getDefaultInstance()) { tms_ = org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem.newBuilder(tms_).mergeFrom(value).buildPartial(); } else { tms_ = value; } onChanged(); } else { tmsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /**
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < key_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, key_.get(i)); } for (int i = 0; i < justification_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, justification_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem prototype) {
public Builder toBuilder() { return newBuilder(this); }
public org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem getDefaultInstanceForType() { return org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem.getDefaultInstance(); }
/** * <code>optional .org.drools.marshalling.TruthMaintenanceSystem tms = 12;</code> */ public Builder clearTms() { if (tmsBuilder_ == null) { tms_ = org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem.getDefaultInstance(); onChanged(); } else { tmsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /**
public static Builder newBuilder(org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
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;
public org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem build() { org.drools.marshalling.impl.ProtobufMessages.TruthMaintenanceSystem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }