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; }
/** * <code>optional .org.drools.marshalling.Timers.ActivationTimer activation = 3;</code> */ public Builder clearActivation() { if (activationBuilder_ == null) { activation_ = org.drools.marshalling.impl.ProtobufMessages.Timers.ActivationTimer.getDefaultInstance(); onChanged(); } else { activationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
/** * <code>optional .org.drools.marshalling.Timers.ActivationTimer activation = 3;</code> */ public Builder mergeActivation(org.drools.marshalling.impl.ProtobufMessages.Timers.ActivationTimer value) { if (activationBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && activation_ != org.drools.marshalling.impl.ProtobufMessages.Timers.ActivationTimer.getDefaultInstance()) { activation_ = org.drools.marshalling.impl.ProtobufMessages.Timers.ActivationTimer.newBuilder(activation_).mergeFrom(value).buildPartial(); } else { activation_ = value; } onChanged(); } else { activationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
public org.drools.marshalling.impl.ProtobufMessages.Timers.ActivationTimer getDefaultInstanceForType() { return org.drools.marshalling.impl.ProtobufMessages.Timers.ActivationTimer.getDefaultInstance(); }
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.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; }