switch (_trigger.getType() ) { case CRON: { ProtobufMessages.Trigger.CronTrigger _cron = _trigger.getCron(); CronTrigger trigger = new CronTrigger(); trigger.setStartTime( new Date( _cron.getStartTime() ) );
public Builder mergeFrom(org.drools.marshalling.impl.ProtobufMessages.Trigger other) { if (other == org.drools.marshalling.impl.ProtobufMessages.Trigger.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasCron()) { mergeCron(other.getCron()); } if (other.hasInterval()) { mergeInterval(other.getInterval()); } if (other.hasPit()) { mergePit(other.getPit()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }