@Override public void onMessage(final ControlMessage.Message message) { try { switch (message.getType()) { case BlockStateChanged: final ControlMessage.BlockStateChangedMsg blockStateChangedMsg = message.getBlockStateChangedMsg(); final String blockId = blockStateChangedMsg.getBlockId(); onBlockStateChanged(blockId, convertBlockState(blockStateChangedMsg.getState()), blockStateChangedMsg.getLocation()); break; default: throw new IllegalMessageException( new Exception("This message should not be received by " + BlockManagerMaster.class.getName() + ":" + message.getType())); } } catch (final Exception e) { throw new RuntimeException(e); } }
@Override public void onMessage(final ControlMessage.Message message) { try { switch (message.getType()) { case BlockStateChanged: final ControlMessage.BlockStateChangedMsg blockStateChangedMsg = message.getBlockStateChangedMsg(); final String blockId = blockStateChangedMsg.getBlockId(); onBlockStateChanged(blockId, convertBlockState(blockStateChangedMsg.getState()), blockStateChangedMsg.getLocation()); break; default: throw new IllegalMessageException( new Exception("This message should not be received by " + BlockManagerMaster.class.getName() + ":" + message.getType())); } } catch (final Exception e) { throw new RuntimeException(e); } }
/** * <code>required string blockId = 2;</code> */ public Builder clearBlockId() { bitField0_ = (bitField0_ & ~0x00000002); blockId_ = getDefaultInstance().getBlockId(); onChanged(); return this; } /**
/** * <code>required string blockId = 2;</code> */ public Builder clearBlockId() { bitField0_ = (bitField0_ & ~0x00000002); blockId_ = getDefaultInstance().getBlockId(); onChanged(); return this; } /**