CommandType commandType; if(response.hasType()) { BinaryMessages.ControlCommand.Type serializedType = response.getType(); if(serializedType.equals(BinaryMessages.ControlCommand.Type.VERSION)) { commandType = CommandType.VERSION; throw new UnrecognizedMessageTypeException( "Unrecognized command type in response: " + response.getType());
public Builder mergeFrom(com.openxc.BinaryMessages.CommandResponse other) { if (other == com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasMessage()) { bitField0_ |= 0x00000002; message_ = other.message_; onChanged(); } if (other.hasStatus()) { setStatus(other.getStatus()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }