hash = (53 * hash) + getCanMessage().hashCode(); if (hasSimpleMessage()) { hash = (37 * hash) + SIMPLE_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getSimpleMessage().hashCode();
.equals(other.getCanMessage()); result = result && (hasSimpleMessage() == other.hasSimpleMessage()); if (hasSimpleMessage()) { result = result && getSimpleMessage() .equals(other.getSimpleMessage());
public Builder mergeFrom(com.openxc.BinaryMessages.VehicleMessage other) { if (other == com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasCanMessage()) { mergeCanMessage(other.getCanMessage()); } if (other.hasSimpleMessage()) { mergeSimpleMessage(other.getSimpleMessage()); } if (other.hasDiagnosticResponse()) { mergeDiagnosticResponse(other.getDiagnosticResponse()); } if (other.hasControlCommand()) { mergeControlCommand(other.getControlCommand()); } if (other.hasCommandResponse()) { mergeCommandResponse(other.getCommandResponse()); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private static VehicleMessage deserialize( BinaryMessages.VehicleMessage binaryMessage) throws UnrecognizedMessageTypeException { if(binaryMessage.hasSimpleMessage()) { return deserializeNamedMessage(binaryMessage); } else if(binaryMessage.hasCanMessage()) { return deserializeCanMessage(binaryMessage); } else if(binaryMessage.hasCommandResponse()) { return deserializeCommandResponse(binaryMessage); } else if(binaryMessage.hasControlCommand()) { return deserializeCommand(binaryMessage); } else if(binaryMessage.hasDiagnosticResponse()) { return deserializeDiagnosticResponse(binaryMessage); } else { throw new UnrecognizedMessageTypeException( "Binary message type not recognized"); } } }