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.InMasterBroadcastVariableMessage other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.InMasterBroadcastVariableMessage.getDefaultInstance()) return this; if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasVariable()) { setVariable(other.getVariable()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.InMasterBroadcastVariableMessage other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.InMasterBroadcastVariableMessage.getDefaultInstance()) return this; if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasVariable()) { setVariable(other.getVariable()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }