throw new UnrecognizedMessageTypeException( "Diagnostic command missing action"); } else if(diagnosticCommand.getAction() == BinaryMessages.DiagnosticControlCommand.Action.ADD) { action = DiagnosticRequest.ADD_ACTION_KEY; } else if(diagnosticCommand.getAction() == BinaryMessages.DiagnosticControlCommand.Action.CANCEL) { action = DiagnosticRequest.CANCEL_ACTION_KEY; } else { throw new UnrecognizedMessageTypeException( "Unrecognized action: " + diagnosticCommand.getAction());
public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticControlCommand other) { if (other == com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) return this; if (other.hasRequest()) { mergeRequest(other.getRequest()); } if (other.hasAction()) { setAction(other.getAction()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }