public com.openxc.BinaryMessages.ControlCommand buildPartial() { com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
.computeMessageSize(2, getDiagnosticRequest()); .computeMessageSize(3, getPassthroughModeRequest()); .computeMessageSize(4, getAcceptanceFilterBypassCommand()); .computeMessageSize(5, getPayloadFormatCommand()); .computeMessageSize(6, getPredefinedObd2RequestsCommand()); .computeMessageSize(7, getModemConfigurationCommand()); .computeMessageSize(8, getRtcConfigurationCommand());
/** * <code>optional .openxc.ControlCommand control_command = 5;</code> */ public com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder() { if (controlCommandBuilder_ != null) { return controlCommandBuilder_.getMessageOrBuilder(); } else { return controlCommand_ == null ? com.openxc.BinaryMessages.ControlCommand.getDefaultInstance() : controlCommand_; } } /**
result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; result = result && (hasDiagnosticRequest() == other.hasDiagnosticRequest()); if (hasDiagnosticRequest()) { result = result && getDiagnosticRequest() .equals(other.getDiagnosticRequest()); result = result && (hasPassthroughModeRequest() == other.hasPassthroughModeRequest()); if (hasPassthroughModeRequest()) { result = result && getPassthroughModeRequest() .equals(other.getPassthroughModeRequest()); result = result && (hasAcceptanceFilterBypassCommand() == other.hasAcceptanceFilterBypassCommand()); if (hasAcceptanceFilterBypassCommand()) { result = result && getAcceptanceFilterBypassCommand() .equals(other.getAcceptanceFilterBypassCommand()); result = result && (hasPayloadFormatCommand() == other.hasPayloadFormatCommand()); if (hasPayloadFormatCommand()) { result = result && getPayloadFormatCommand() .equals(other.getPayloadFormatCommand()); result = result && (hasPredefinedObd2RequestsCommand() == other.hasPredefinedObd2RequestsCommand()); if (hasPredefinedObd2RequestsCommand()) { result = result && getPredefinedObd2RequestsCommand() .equals(other.getPredefinedObd2RequestsCommand());
private static Command deserializeDiagnosticCommand( BinaryMessages.ControlCommand command) throws UnrecognizedMessageTypeException { if(!command.hasDiagnosticRequest()) { throw new UnrecognizedMessageTypeException( "Diagnostic command missing request details"); command.getDiagnosticRequest(); String action; if(!diagnosticCommand.hasAction()) {
if (hasControlCommand()) { result = result && getControlCommand() .equals(other.getControlCommand());
hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasDiagnosticRequest()) { hash = (37 * hash) + DIAGNOSTIC_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getDiagnosticRequest().hashCode(); if (hasPassthroughModeRequest()) { hash = (37 * hash) + PASSTHROUGH_MODE_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getPassthroughModeRequest().hashCode(); if (hasAcceptanceFilterBypassCommand()) { hash = (37 * hash) + ACCEPTANCE_FILTER_BYPASS_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getAcceptanceFilterBypassCommand().hashCode(); if (hasPayloadFormatCommand()) { hash = (37 * hash) + PAYLOAD_FORMAT_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getPayloadFormatCommand().hashCode(); if (hasPredefinedObd2RequestsCommand()) { hash = (37 * hash) + PREDEFINED_OBD2_REQUESTS_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getPredefinedObd2RequestsCommand().hashCode(); if (hasModemConfigurationCommand()) { hash = (37 * hash) + MODEM_CONFIGURATION_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getModemConfigurationCommand().hashCode();
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; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getDiagnosticRequest()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getPassthroughModeRequest()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getAcceptanceFilterBypassCommand()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getPayloadFormatCommand()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, getPredefinedObd2RequestsCommand()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, getModemConfigurationCommand()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, getRtcConfigurationCommand()); } unknownFields.writeTo(output); }
/** * <code>optional .openxc.ControlCommand control_command = 5;</code> */ public Builder mergeControlCommand(com.openxc.BinaryMessages.ControlCommand value) { if (controlCommandBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && controlCommand_ != null && controlCommand_ != com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) { controlCommand_ = com.openxc.BinaryMessages.ControlCommand.newBuilder(controlCommand_).mergeFrom(value).buildPartial(); } else { controlCommand_ = value; } onChanged(); } else { controlCommandBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0); }
public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() { return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance(); }
/** * <code>optional .openxc.ControlCommand control_command = 5;</code> */ public com.openxc.BinaryMessages.ControlCommand getControlCommand() { if (controlCommandBuilder_ == null) { return controlCommand_ == null ? com.openxc.BinaryMessages.ControlCommand.getDefaultInstance() : controlCommand_; } else { return controlCommandBuilder_.getMessage(); } } /**
/** * <code>optional .openxc.ControlCommand control_command = 5;</code> */ public com.openxc.BinaryMessages.ControlCommand getControlCommand() { return controlCommand_ == null ? com.openxc.BinaryMessages.ControlCommand.getDefaultInstance() : controlCommand_; } /**
/** * <code>optional .openxc.ControlCommand control_command = 5;</code> */ public com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder() { return controlCommand_ == null ? com.openxc.BinaryMessages.ControlCommand.getDefaultInstance() : controlCommand_; }