public Builder clear() { super.clear(); type_ = org.drools.marshalling.impl.ProtobufMessages.Timers.TimerType.EXPIRE; bitField0_ = (bitField0_ & ~0x00000001); if (expireBuilder_ == null) { expire_ = org.drools.marshalling.impl.ProtobufMessages.Timers.ExpireTimer.getDefaultInstance(); } else { expireBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (activationBuilder_ == null) { activation_ = org.drools.marshalling.impl.ProtobufMessages.Timers.ActivationTimer.getDefaultInstance(); } else { activationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (behaviorBuilder_ == null) { behavior_ = org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer.getDefaultInstance(); } else { behaviorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, dEPRECATEDNodeId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, dEPRECATEDBehaviorIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, handleId_); } getUnknownFields().writeTo(output); }
/** * <code>optional .org.drools.marshalling.Timers.BehaviorTimer behavior = 4;</code> */ public Builder mergeBehavior(org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer value) { if (behaviorBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && behavior_ != org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer.getDefaultInstance()) { behavior_ = org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer.newBuilder(behavior_).mergeFrom(value).buildPartial(); } else { behavior_ = value; } onChanged(); } else { behaviorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /**
public org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer buildPartial() { org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer result = new org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.dEPRECATEDNodeId_ = dEPRECATEDNodeId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.dEPRECATEDBehaviorIndex_ = dEPRECATEDBehaviorIndex_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.handleId_ = handleId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, dEPRECATEDNodeId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, dEPRECATEDBehaviorIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, handleId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer getDefaultInstanceForType() { return org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer.getDefaultInstance(); }
/** * <code>optional .org.drools.marshalling.Timers.BehaviorTimer behavior = 4;</code> */ public Builder clearBehavior() { if (behaviorBuilder_ == null) { behavior_ = org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer.getDefaultInstance(); onChanged(); } else { behaviorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /**
private void initFields() { type_ = org.drools.marshalling.impl.ProtobufMessages.Timers.TimerType.EXPIRE; expire_ = org.drools.marshalling.impl.ProtobufMessages.Timers.ExpireTimer.getDefaultInstance(); activation_ = org.drools.marshalling.impl.ProtobufMessages.Timers.ActivationTimer.getDefaultInstance(); behavior_ = org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
public Builder mergeFrom(org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer other) { if (other == org.drools.marshalling.impl.ProtobufMessages.Timers.BehaviorTimer.getDefaultInstance()) return this; if (other.hasDEPRECATEDNodeId()) { setDEPRECATEDNodeId(other.getDEPRECATEDNodeId()); } if (other.hasDEPRECATEDBehaviorIndex()) { setDEPRECATEDBehaviorIndex(other.getDEPRECATEDBehaviorIndex()); } if (other.hasHandleId()) { setHandleId(other.getHandleId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void deserialize(MarshallerReaderContext inCtx, Timer _timer) throws ClassNotFoundException { int i = _timer.getBehavior().getHandleId(); // this should probably be doing something... // updateNextExpiration( ( RightTuple) stwCtx.queue.peek(), // inCtx.wm, // (SlidingTimeWindow) betaNode.getBehaviors()[i], // stwCtx ); } }