private long getRequestId(final ControlMessage.Message controlMessage) { switch (controlMessage.getType()) { case BlockLocationInfo: return controlMessage.getBlockLocationInfoMsg().getRequestId(); case InMasterBroadcastVariable: return controlMessage.getBroadcastVariableMsg().getRequestId(); case PipeLocInfo: return controlMessage.getPipeLocInfoMsg().getRequestId(); default: throw new IllegalArgumentException(controlMessage.toString()); } } }
private long getRequestId(final ControlMessage.Message controlMessage) { switch (controlMessage.getType()) { case BlockLocationInfo: return controlMessage.getBlockLocationInfoMsg().getRequestId(); case InMasterBroadcastVariable: return controlMessage.getBroadcastVariableMsg().getRequestId(); case PipeLocInfo: return controlMessage.getPipeLocInfoMsg().getRequestId(); default: throw new IllegalArgumentException(controlMessage.toString()); } } }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg.getDefaultInstance()) return this; if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasBlockId()) { bitField0_ |= 0x00000002; blockId_ = other.blockId_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasOwnerExecutorId()) { bitField0_ |= 0x00000008; ownerExecutorId_ = other.ownerExecutorId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg.getDefaultInstance()) return this; if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasBlockId()) { bitField0_ |= 0x00000002; blockId_ = other.blockId_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasOwnerExecutorId()) { bitField0_ |= 0x00000008; ownerExecutorId_ = other.ownerExecutorId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }