/** * <code>optional .openxc.CommandResponse command_response = 6;</code> */ public Builder setCommandResponse(com.openxc.BinaryMessages.CommandResponse value) { if (commandResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commandResponse_ = value; onChanged(); } else { commandResponseBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /**
/** * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code> */ public com.openxc.BinaryMessages.DiagnosticResponse.Builder getDiagnosticResponseBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDiagnosticResponseFieldBuilder().getBuilder(); } /**
/** * <code>optional .openxc.CanMessage can_message = 2;</code> */ public com.openxc.BinaryMessages.CanMessage.Builder getCanMessageBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCanMessageFieldBuilder().getBuilder(); } /**
/** * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code> */ public Builder setDiagnosticResponse( com.openxc.BinaryMessages.DiagnosticResponse.Builder builderForValue) { if (diagnosticResponseBuilder_ == null) { diagnosticResponse_ = builderForValue.build(); onChanged(); } else { diagnosticResponseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional .openxc.ControlCommand control_command = 5;</code> */ public Builder setControlCommand( com.openxc.BinaryMessages.ControlCommand.Builder builderForValue) { if (controlCommandBuilder_ == null) { controlCommand_ = builderForValue.build(); onChanged(); } else { controlCommandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .openxc.CommandResponse command_response = 6;</code> */ public Builder setCommandResponse( com.openxc.BinaryMessages.CommandResponse.Builder builderForValue) { if (commandResponseBuilder_ == null) { commandResponse_ = builderForValue.build(); onChanged(); } else { commandResponseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /**
/** * <code>optional .openxc.CanMessage can_message = 2;</code> */ public Builder setCanMessage( com.openxc.BinaryMessages.CanMessage.Builder builderForValue) { if (canMessageBuilder_ == null) { canMessage_ = builderForValue.build(); onChanged(); } else { canMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional .openxc.CommandResponse command_response = 6;</code> */ public Builder clearCommandResponse() { if (commandResponseBuilder_ == null) { commandResponse_ = null; onChanged(); } else { commandResponseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /**
/** * <code>optional .openxc.DiagnosticResponse diagnostic_response = 4;</code> */ public Builder clearDiagnosticResponse() { if (diagnosticResponseBuilder_ == null) { diagnosticResponse_ = null; onChanged(); } else { diagnosticResponseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /**
/** * <code>optional .openxc.ControlCommand control_command = 5;</code> */ public Builder clearControlCommand() { if (controlCommandBuilder_ == null) { controlCommand_ = null; onChanged(); } else { controlCommandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /**
/** * <code>optional .openxc.CanMessage can_message = 2;</code> */ public Builder clearCanMessage() { if (canMessageBuilder_ == null) { canMessage_ = null; onChanged(); } else { canMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /**
/** * <code>optional .openxc.SimpleMessage simple_message = 3;</code> */ public Builder clearSimpleMessage() { if (simpleMessageBuilder_ == null) { simpleMessage_ = null; onChanged(); } else { simpleMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
/** * <code>optional .openxc.SimpleMessage simple_message = 3;</code> */ public Builder setSimpleMessage( com.openxc.BinaryMessages.SimpleMessage.Builder builderForValue) { if (simpleMessageBuilder_ == null) { simpleMessage_ = builderForValue.build(); onChanged(); } else { simpleMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>optional .openxc.VehicleMessage.Type type = 1;</code> */ public Builder setType(com.openxc.BinaryMessages.VehicleMessage.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional uint64 timestamp = 7;</code> */ public Builder setTimestamp(long value) { bitField0_ |= 0x00000040; timestamp_ = value; onChanged(); return this; } /**
/** * <code>optional .openxc.ControlCommand control_command = 5;</code> */ public com.openxc.BinaryMessages.ControlCommand.Builder getControlCommandBuilder() { bitField0_ |= 0x00000010; onChanged(); return getControlCommandFieldBuilder().getBuilder(); } /**
/** * <code>optional uint64 timestamp = 7;</code> */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000040); timestamp_ = 0L; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional .openxc.SimpleMessage simple_message = 3;</code> */ public com.openxc.BinaryMessages.SimpleMessage.Builder getSimpleMessageBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSimpleMessageFieldBuilder().getBuilder(); } /**
/** * <code>optional .openxc.CommandResponse command_response = 6;</code> */ public com.openxc.BinaryMessages.CommandResponse.Builder getCommandResponseBuilder() { bitField0_ |= 0x00000020; onChanged(); return getCommandResponseFieldBuilder().getBuilder(); } /**
/** * <code>optional .openxc.VehicleMessage.Type type = 1;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; onChanged(); return this; }