hash = (53 * hash) + type_; if (hasDiagnosticRequest()) { hash = (37 * hash) + DIAGNOSTIC_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getDiagnosticRequest().hashCode();
result = result && type_ == other.type_; result = result && (hasDiagnosticRequest() == other.hasDiagnosticRequest()); if (hasDiagnosticRequest()) { result = result && getDiagnosticRequest() .equals(other.getDiagnosticRequest());
private static Command deserializeDiagnosticCommand( BinaryMessages.ControlCommand command) throws UnrecognizedMessageTypeException { if(!command.hasDiagnosticRequest()) { throw new UnrecognizedMessageTypeException( "Diagnostic command missing request details");
public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) { if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasDiagnosticRequest()) { mergeDiagnosticRequest(other.getDiagnosticRequest()); } if (other.hasPassthroughModeRequest()) { mergePassthroughModeRequest(other.getPassthroughModeRequest()); } if (other.hasAcceptanceFilterBypassCommand()) { mergeAcceptanceFilterBypassCommand(other.getAcceptanceFilterBypassCommand()); } if (other.hasPayloadFormatCommand()) { mergePayloadFormatCommand(other.getPayloadFormatCommand()); } if (other.hasPredefinedObd2RequestsCommand()) { mergePredefinedObd2RequestsCommand(other.getPredefinedObd2RequestsCommand()); } if (other.hasModemConfigurationCommand()) { mergeModemConfigurationCommand(other.getModemConfigurationCommand()); } if (other.hasRtcConfigurationCommand()) { mergeRtcConfigurationCommand(other.getRtcConfigurationCommand()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }