bitField0_ = (bitField0_ & ~0x00000001); if (behaviorExpireBuilder_ == null) { behaviorExpire_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire.getDefaultInstance(); } else { behaviorExpireBuilder_.clear();
public BehaviorExpireWMAction(MarshallerReaderContext context, Action _action) { nodeId =_action.getBehaviorExpire().getNodeId(); WindowNode windowNode = (WindowNode) context.sinks.get( nodeId ); memory = (WindowMemory) context.wm.getNodeMemory( windowNode ); Object[] behaviorContext = ( Object[] ) memory.behaviorContext; int i = 0; // <==== this needs fixing this.behavior = (SlidingTimeWindow) windowNode.getBehaviors()[i]; this.context = ( SlidingTimeWindowContext ) behaviorContext[i]; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, nodeId_); } 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; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
/** * <code>optional .org.drools.marshalling.ActionQueue.BehaviorExpire behavior_expire = 2;</code> * * <pre> * should only contain one of the following messages * </pre> */ public Builder mergeBehaviorExpire(org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire value) { if (behaviorExpireBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && behaviorExpire_ != org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire.getDefaultInstance()) { behaviorExpire_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire.newBuilder(behaviorExpire_).mergeFrom(value).buildPartial(); } else { behaviorExpire_ = value; } onChanged(); } else { behaviorExpireBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
public Builder toBuilder() { return newBuilder(this); }
/** * <code>optional .org.drools.marshalling.ActionQueue.BehaviorExpire behavior_expire = 2;</code> * * <pre> * should only contain one of the following messages * </pre> */ public Builder clearBehaviorExpire() { if (behaviorExpireBuilder_ == null) { behaviorExpire_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire.getDefaultInstance(); onChanged(); } else { behaviorExpireBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /**
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire prototype) {
public static Builder newBuilder(org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire getDefaultInstanceForType() { return org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire.getDefaultInstance(); }
public org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire buildPartial() { org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire result = new org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire(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; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, nodeId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
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;
public org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire build() { org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public ProtobufMessages.ActionQueue.Action serialize(MarshallerWriteContext outputCtx) { SlidingTimeWindowContext slCtx = ( SlidingTimeWindowContext ) context; ProtobufMessages.ActionQueue.BehaviorExpire _be = ProtobufMessages.ActionQueue.BehaviorExpire.newBuilder() .setNodeId( nodeId ) .build(); return ProtobufMessages.ActionQueue.Action.newBuilder() .setType( ProtobufMessages.ActionQueue.ActionType.BEHAVIOR_EXPIRE ) .setBehaviorExpire( _be ) .build(); }
public Builder mergeFrom(org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire other) { if (other == org.drools.marshalling.impl.ProtobufMessages.ActionQueue.BehaviorExpire.getDefaultInstance()) return this; if (other.hasNodeId()) { setNodeId(other.getNodeId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }