From d3498e017878c32f65354797c5f734af8b9a41cb Mon Sep 17 00:00:00 2001 From: lixiaolong <702156524@qq.com> Date: Mon, 17 Aug 2026 16:58:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(test):=20=E5=AE=8C=E5=96=84=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BB=BB=E5=8A=A1=E6=8E=A7=E5=88=B6=E4=B8=8EAI?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在AimaTestLog中添加caseName字段并实现获取方法 - 扩展grpc协议定义包括CommandReasonCode和CommandExecutionState枚举 - 在系统命令中添加安全状态相关字段和操作接口 - 将AGV导航命令改为同步执行模式以提高可靠性 - 添加摄像头和麦克风服务的录像录音中止功能 - 实现测试任务终止时先清理媒体会话再停止设备的安全流程 - 为LLM媒体分析操作添加视频分析模式验证和调优参数支持 - 增加视频分析参数范围校验和测试用例覆盖 --- .../listener/AimaFlowExecutionListener.java | 4 +- .../cmvr/aima/service/IAimaTaskService.java | 2 + .../service/impl/AimaTaskServiceImpl.java | 7 + .../client/service/EdgeCameraService.java | 3 + .../client/service/EdgeMicrophoneService.java | 3 + .../service/impl/EdgeAgvServiceImpl.java | 2 +- .../service/impl/EdgeCameraServiceImpl.java | 12 + .../impl/EdgeMicrophoneServiceImpl.java | 16 + .../src/main/java/cmvr/api/Common.java | 1807 +- .../src/main/java/cmvr/api/SafetyCommand.java | 16884 ++++++++++++++++ .../src/main/java/cmvr/api/SystemCommand.java | 2301 ++- .../main/java/cmvr/api/SystemServiceGrpc.java | 148 + .../cmvr/api/SystemServiceOuterClass.java | 42 +- .../src/main/proto/cmvr/api/common.proto | 63 + .../main/proto/cmvr/api/safety_command.proto | 186 + .../main/proto/cmvr/api/system_command.proto | 19 + .../main/proto/cmvr/api/system_service.proto | 4 + .../test/flow/control/FlowControlService.java | 41 +- .../llm/LLMMediaAnalysisOperateService.java | 40 +- .../flow/control/FlowControlServiceTest.java | 74 +- .../LLMMediaAnalysisOperateServiceTest.java | 25 + 21 files changed, 21538 insertions(+), 145 deletions(-) create mode 100644 cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SafetyCommand.java create mode 100644 cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/safety_command.proto diff --git a/cmvr-iot-aima/src/main/java/com/cmvr/aima/listener/AimaFlowExecutionListener.java b/cmvr-iot-aima/src/main/java/com/cmvr/aima/listener/AimaFlowExecutionListener.java index 20796d7..c0a63f7 100644 --- a/cmvr-iot-aima/src/main/java/com/cmvr/aima/listener/AimaFlowExecutionListener.java +++ b/cmvr-iot-aima/src/main/java/com/cmvr/aima/listener/AimaFlowExecutionListener.java @@ -151,13 +151,15 @@ public class AimaFlowExecutionListener implements FlowExecutionListener { String imageUrl = FlowMediaParamResolver.lastUrl(outputParams, "imageUrl"); String videoUrl = FlowMediaParamResolver.lastUrl(outputParams, "videoUrl"); String testCaseId = resolveTestCaseId(instId, taskInstance.getTaskId(), event); - + // 获取casename + String casename = aimaTaskService.getCaseName(testCaseId); // 保存日志到数据库 AimaTestLog testLog = AimaTestLog.builder() .id(logId) .taskInstanceId(taskInstance.getId()) .taskId(taskInstance.getTaskId()) .testCaseId(testCaseId) + .caseName(casename) .itemId(itemId) .itemOrder(event.getItemOrder()) .itemOccurrence(event.getItemOccurrence()) diff --git a/cmvr-iot-aima/src/main/java/com/cmvr/aima/service/IAimaTaskService.java b/cmvr-iot-aima/src/main/java/com/cmvr/aima/service/IAimaTaskService.java index f816588..5fbf8ff 100644 --- a/cmvr-iot-aima/src/main/java/com/cmvr/aima/service/IAimaTaskService.java +++ b/cmvr-iot-aima/src/main/java/com/cmvr/aima/service/IAimaTaskService.java @@ -36,4 +36,6 @@ public interface IAimaTaskService { * @return 测试用例ID列表 */ List getTestCaseIds(String taskId); + + String getCaseName(String testCaseId); } diff --git a/cmvr-iot-aima/src/main/java/com/cmvr/aima/service/impl/AimaTaskServiceImpl.java b/cmvr-iot-aima/src/main/java/com/cmvr/aima/service/impl/AimaTaskServiceImpl.java index 5b02469..962f758 100644 --- a/cmvr-iot-aima/src/main/java/com/cmvr/aima/service/impl/AimaTaskServiceImpl.java +++ b/cmvr-iot-aima/src/main/java/com/cmvr/aima/service/impl/AimaTaskServiceImpl.java @@ -204,4 +204,11 @@ public class AimaTaskServiceImpl extends ServiceImpl i public List getTestCaseIds(String taskId) { return aimaTaskTestCaseMapper.selectTestCasesByTaskId(taskId); } + + @Override + public String getCaseName(String testCaseId) { + AimaTestCase aimaTestCase = aimaTestCaseMapper.selectAimaTestCaseById(testCaseId); + + return aimaTestCase != null ? aimaTestCase.getCaseName() : null; + } } diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/EdgeCameraService.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/EdgeCameraService.java index 02919b7..7a48300 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/EdgeCameraService.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/EdgeCameraService.java @@ -56,6 +56,9 @@ public interface EdgeCameraService { /** Stops and finalizes a backend-local workflow recording. */ File stopWorkflowRecording(EdgeCommonVO edgeCommonVO, String recordingId); + /** Aborts every backend-local workflow recording owned by the robot. */ + void abortWorkflowRecordings(String robotId); + /** * 获取相机图片组 */ diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/EdgeMicrophoneService.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/EdgeMicrophoneService.java index 75beeb6..4034121 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/EdgeMicrophoneService.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/EdgeMicrophoneService.java @@ -33,6 +33,9 @@ public interface EdgeMicrophoneService { /** Stops and finalizes a backend-local workflow recording. */ File stopWorkflowRecording(EdgeCommonVO edgeCommonVO, String recordingId); + /** Aborts every backend-local workflow recording owned by the robot. */ + void abortWorkflowRecordings(String robotId); + /** * 暂停录音 */ diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeAgvServiceImpl.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeAgvServiceImpl.java index 0eaecb4..4541263 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeAgvServiceImpl.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeAgvServiceImpl.java @@ -91,7 +91,7 @@ public class EdgeAgvServiceImpl implements EdgeAgvService { AgvCommand.AgvNavigateToStationCommand.Request request = AgvCommand.AgvNavigateToStationCommand.Request.newBuilder() .setHeader(EdgeCommonUtil.buildRequest(edgeCommonVO.getDeviceId())) .setOptions(AgvUtils.AgvMotionOptions.newBuilder() - .setAsynchronous(true) + .setAsynchronous(false) .build()) .setStationId(stationId) .build(); diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeCameraServiceImpl.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeCameraServiceImpl.java index b72cba1..885aa70 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeCameraServiceImpl.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeCameraServiceImpl.java @@ -254,6 +254,18 @@ public class EdgeCameraServiceImpl implements EdgeCameraService, EdgeStreamServi }); } + @Override + public void abortWorkflowRecordings(String robotId) { + workflowRecordings.forEach((recordingId, session) -> { + if (StrUtil.equals(robotId, session.robotId) + && workflowRecordings.remove(recordingId, session)) { + log.info("终止机器人关联的工作流录像: recordingId={}, robotId={}, deviceId={}", + recordingId, session.robotId, session.deviceId); + session.abort(); + } + }); + } + @Scheduled(fixedDelay = 60_000L) public void cleanExpiredWorkflowRecordings() { workflowRecordings.forEach((recordingId, session) -> { diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeMicrophoneServiceImpl.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeMicrophoneServiceImpl.java index 797e3fa..326a7d6 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeMicrophoneServiceImpl.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeMicrophoneServiceImpl.java @@ -184,6 +184,22 @@ public class EdgeMicrophoneServiceImpl implements EdgeMicrophoneService { }); } + @Override + public void abortWorkflowRecordings(String robotId) { + workflowRecordings.forEach((recordingId, session) -> { + if (StrUtil.equals(robotId, session.robotId) + && workflowRecordings.remove(recordingId, session)) { + workflowRecordingTargets.remove(session.targetKey(), recordingId); + logger.info("终止机器人关联的工作流录音: recordingId={}, robotId={}, deviceId={}", + recordingId, session.robotId, session.deviceId); + session.abort(); + } + }); + // 会话创建失败或异常退出时也不能遗留目标占用记录。 + String targetPrefix = String.valueOf(robotId) + '\0'; + workflowRecordingTargets.keySet().removeIf(key -> key.startsWith(targetPrefix)); + } + @Scheduled(fixedDelay = 60_000L) public void cleanExpiredWorkflowRecordings() { workflowRecordings.forEach((recordingId, session) -> { diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/Common.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/Common.java index 16a8d76..8ad240b 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/Common.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/Common.java @@ -14,6 +14,609 @@ public final class Common { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + /** + * Protobuf enum {@code cmvr.api.CommandReasonCode} + */ + public enum CommandReasonCode + implements com.google.protobuf.ProtocolMessageEnum { + /** + * COMMAND_REASON_CODE_UNSPECIFIED = 0; + */ + COMMAND_REASON_CODE_UNSPECIFIED(0), + /** + * COMMAND_REASON_CODE_NONE = 1; + */ + COMMAND_REASON_CODE_NONE(1), + /** + * COMMAND_REASON_CODE_INVALID_ARGUMENT = 2; + */ + COMMAND_REASON_CODE_INVALID_ARGUMENT(2), + /** + * COMMAND_REASON_CODE_UNAUTHENTICATED = 3; + */ + COMMAND_REASON_CODE_UNAUTHENTICATED(3), + /** + * COMMAND_REASON_CODE_PERMISSION_DENIED = 4; + */ + COMMAND_REASON_CODE_PERMISSION_DENIED(4), + /** + * COMMAND_REASON_CODE_RECOVERY_RPC_DISABLED = 5; + */ + COMMAND_REASON_CODE_RECOVERY_RPC_DISABLED(5), + /** + * COMMAND_REASON_CODE_DEVICE_NOT_FOUND = 6; + */ + COMMAND_REASON_CODE_DEVICE_NOT_FOUND(6), + /** + * COMMAND_REASON_CODE_DEVICE_UNAVAILABLE = 7; + */ + COMMAND_REASON_CODE_DEVICE_UNAVAILABLE(7), + /** + * COMMAND_REASON_CODE_UNSUPPORTED_COMMAND = 8; + */ + COMMAND_REASON_CODE_UNSUPPORTED_COMMAND(8), + /** + * COMMAND_REASON_CODE_SYSTEM_STARTING = 9; + */ + COMMAND_REASON_CODE_SYSTEM_STARTING(9), + /** + * COMMAND_REASON_CODE_SYSTEM_STOPPING = 10; + */ + COMMAND_REASON_CODE_SYSTEM_STOPPING(10), + /** + * COMMAND_REASON_CODE_SAFETY_LATCHED = 11; + */ + COMMAND_REASON_CODE_SAFETY_LATCHED(11), + /** + * COMMAND_REASON_CODE_SAFETY_STATE_MISSING = 12; + */ + COMMAND_REASON_CODE_SAFETY_STATE_MISSING(12), + /** + * COMMAND_REASON_CODE_SAFETY_STATE_STALE = 13; + */ + COMMAND_REASON_CODE_SAFETY_STATE_STALE(13), + /** + * COMMAND_REASON_CODE_HARDWARE_UNSAFE = 14; + */ + COMMAND_REASON_CODE_HARDWARE_UNSAFE(14), + /** + * COMMAND_REASON_CODE_EMERGENCY_STOP_ACTIVE = 15; + */ + COMMAND_REASON_CODE_EMERGENCY_STOP_ACTIVE(15), + /** + * COMMAND_REASON_CODE_PROTECTIVE_STOP_ACTIVE = 16; + */ + COMMAND_REASON_CODE_PROTECTIVE_STOP_ACTIVE(16), + /** + * COMMAND_REASON_CODE_DEVICE_DISCONNECTED = 17; + */ + COMMAND_REASON_CODE_DEVICE_DISCONNECTED(17), + /** + * COMMAND_REASON_CODE_DEVICE_FAULT = 18; + */ + COMMAND_REASON_CODE_DEVICE_FAULT(18), + /** + * COMMAND_REASON_CODE_DEVICE_NOT_READY = 19; + */ + COMMAND_REASON_CODE_DEVICE_NOT_READY(19), + /** + * COMMAND_REASON_CODE_DEVICE_STILL_MOVING = 20; + */ + COMMAND_REASON_CODE_DEVICE_STILL_MOVING(20), + /** + * COMMAND_REASON_CODE_CONTROL_BUSY = 21; + */ + COMMAND_REASON_CODE_CONTROL_BUSY(21), + /** + * COMMAND_REASON_CODE_GENERATION_MISMATCH = 22; + */ + COMMAND_REASON_CODE_GENERATION_MISMATCH(22), + /** + * COMMAND_REASON_CODE_COMMAND_ID_REQUIRED = 23; + */ + COMMAND_REASON_CODE_COMMAND_ID_REQUIRED(23), + /** + * COMMAND_REASON_CODE_COMMAND_ID_CONFLICT = 24; + */ + COMMAND_REASON_CODE_COMMAND_ID_CONFLICT(24), + /** + * COMMAND_REASON_CODE_RESULT_EVICTED = 25; + */ + COMMAND_REASON_CODE_RESULT_EVICTED(25), + /** + * COMMAND_REASON_CODE_LEDGER_EXHAUSTED = 26; + */ + COMMAND_REASON_CODE_LEDGER_EXHAUSTED(26), + /** + * COMMAND_REASON_CODE_BACKPRESSURE = 27; + */ + COMMAND_REASON_CODE_BACKPRESSURE(27), + /** + * COMMAND_REASON_CODE_DEADLINE_EXCEEDED_BEFORE_DISPATCH = 28; + */ + COMMAND_REASON_CODE_DEADLINE_EXCEEDED_BEFORE_DISPATCH(28), + /** + * COMMAND_REASON_CODE_OUTCOME_UNKNOWN = 29; + */ + COMMAND_REASON_CODE_OUTCOME_UNKNOWN(29), + /** + * COMMAND_REASON_CODE_PARTICIPANT_TIMEOUT = 30; + */ + COMMAND_REASON_CODE_PARTICIPANT_TIMEOUT(30), + /** + * COMMAND_REASON_CODE_STOP_UNCONFIRMED = 31; + */ + COMMAND_REASON_CODE_STOP_UNCONFIRMED(31), + /** + * COMMAND_REASON_CODE_RECOVERY_EPOCH_MISMATCH = 32; + */ + COMMAND_REASON_CODE_RECOVERY_EPOCH_MISMATCH(32), + /** + * COMMAND_REASON_CODE_RECOVERY_REASON_REQUIRED = 33; + */ + COMMAND_REASON_CODE_RECOVERY_REASON_REQUIRED(33), + /** + * COMMAND_REASON_CODE_RECOVERY_AUDIT_FAILED = 34; + */ + COMMAND_REASON_CODE_RECOVERY_AUDIT_FAILED(34), + /** + * COMMAND_REASON_CODE_INTERNAL_ERROR = 35; + */ + COMMAND_REASON_CODE_INTERNAL_ERROR(35), + UNRECOGNIZED(-1), + ; + + /** + * COMMAND_REASON_CODE_UNSPECIFIED = 0; + */ + public static final int COMMAND_REASON_CODE_UNSPECIFIED_VALUE = 0; + /** + * COMMAND_REASON_CODE_NONE = 1; + */ + public static final int COMMAND_REASON_CODE_NONE_VALUE = 1; + /** + * COMMAND_REASON_CODE_INVALID_ARGUMENT = 2; + */ + public static final int COMMAND_REASON_CODE_INVALID_ARGUMENT_VALUE = 2; + /** + * COMMAND_REASON_CODE_UNAUTHENTICATED = 3; + */ + public static final int COMMAND_REASON_CODE_UNAUTHENTICATED_VALUE = 3; + /** + * COMMAND_REASON_CODE_PERMISSION_DENIED = 4; + */ + public static final int COMMAND_REASON_CODE_PERMISSION_DENIED_VALUE = 4; + /** + * COMMAND_REASON_CODE_RECOVERY_RPC_DISABLED = 5; + */ + public static final int COMMAND_REASON_CODE_RECOVERY_RPC_DISABLED_VALUE = 5; + /** + * COMMAND_REASON_CODE_DEVICE_NOT_FOUND = 6; + */ + public static final int COMMAND_REASON_CODE_DEVICE_NOT_FOUND_VALUE = 6; + /** + * COMMAND_REASON_CODE_DEVICE_UNAVAILABLE = 7; + */ + public static final int COMMAND_REASON_CODE_DEVICE_UNAVAILABLE_VALUE = 7; + /** + * COMMAND_REASON_CODE_UNSUPPORTED_COMMAND = 8; + */ + public static final int COMMAND_REASON_CODE_UNSUPPORTED_COMMAND_VALUE = 8; + /** + * COMMAND_REASON_CODE_SYSTEM_STARTING = 9; + */ + public static final int COMMAND_REASON_CODE_SYSTEM_STARTING_VALUE = 9; + /** + * COMMAND_REASON_CODE_SYSTEM_STOPPING = 10; + */ + public static final int COMMAND_REASON_CODE_SYSTEM_STOPPING_VALUE = 10; + /** + * COMMAND_REASON_CODE_SAFETY_LATCHED = 11; + */ + public static final int COMMAND_REASON_CODE_SAFETY_LATCHED_VALUE = 11; + /** + * COMMAND_REASON_CODE_SAFETY_STATE_MISSING = 12; + */ + public static final int COMMAND_REASON_CODE_SAFETY_STATE_MISSING_VALUE = 12; + /** + * COMMAND_REASON_CODE_SAFETY_STATE_STALE = 13; + */ + public static final int COMMAND_REASON_CODE_SAFETY_STATE_STALE_VALUE = 13; + /** + * COMMAND_REASON_CODE_HARDWARE_UNSAFE = 14; + */ + public static final int COMMAND_REASON_CODE_HARDWARE_UNSAFE_VALUE = 14; + /** + * COMMAND_REASON_CODE_EMERGENCY_STOP_ACTIVE = 15; + */ + public static final int COMMAND_REASON_CODE_EMERGENCY_STOP_ACTIVE_VALUE = 15; + /** + * COMMAND_REASON_CODE_PROTECTIVE_STOP_ACTIVE = 16; + */ + public static final int COMMAND_REASON_CODE_PROTECTIVE_STOP_ACTIVE_VALUE = 16; + /** + * COMMAND_REASON_CODE_DEVICE_DISCONNECTED = 17; + */ + public static final int COMMAND_REASON_CODE_DEVICE_DISCONNECTED_VALUE = 17; + /** + * COMMAND_REASON_CODE_DEVICE_FAULT = 18; + */ + public static final int COMMAND_REASON_CODE_DEVICE_FAULT_VALUE = 18; + /** + * COMMAND_REASON_CODE_DEVICE_NOT_READY = 19; + */ + public static final int COMMAND_REASON_CODE_DEVICE_NOT_READY_VALUE = 19; + /** + * COMMAND_REASON_CODE_DEVICE_STILL_MOVING = 20; + */ + public static final int COMMAND_REASON_CODE_DEVICE_STILL_MOVING_VALUE = 20; + /** + * COMMAND_REASON_CODE_CONTROL_BUSY = 21; + */ + public static final int COMMAND_REASON_CODE_CONTROL_BUSY_VALUE = 21; + /** + * COMMAND_REASON_CODE_GENERATION_MISMATCH = 22; + */ + public static final int COMMAND_REASON_CODE_GENERATION_MISMATCH_VALUE = 22; + /** + * COMMAND_REASON_CODE_COMMAND_ID_REQUIRED = 23; + */ + public static final int COMMAND_REASON_CODE_COMMAND_ID_REQUIRED_VALUE = 23; + /** + * COMMAND_REASON_CODE_COMMAND_ID_CONFLICT = 24; + */ + public static final int COMMAND_REASON_CODE_COMMAND_ID_CONFLICT_VALUE = 24; + /** + * COMMAND_REASON_CODE_RESULT_EVICTED = 25; + */ + public static final int COMMAND_REASON_CODE_RESULT_EVICTED_VALUE = 25; + /** + * COMMAND_REASON_CODE_LEDGER_EXHAUSTED = 26; + */ + public static final int COMMAND_REASON_CODE_LEDGER_EXHAUSTED_VALUE = 26; + /** + * COMMAND_REASON_CODE_BACKPRESSURE = 27; + */ + public static final int COMMAND_REASON_CODE_BACKPRESSURE_VALUE = 27; + /** + * COMMAND_REASON_CODE_DEADLINE_EXCEEDED_BEFORE_DISPATCH = 28; + */ + public static final int COMMAND_REASON_CODE_DEADLINE_EXCEEDED_BEFORE_DISPATCH_VALUE = 28; + /** + * COMMAND_REASON_CODE_OUTCOME_UNKNOWN = 29; + */ + public static final int COMMAND_REASON_CODE_OUTCOME_UNKNOWN_VALUE = 29; + /** + * COMMAND_REASON_CODE_PARTICIPANT_TIMEOUT = 30; + */ + public static final int COMMAND_REASON_CODE_PARTICIPANT_TIMEOUT_VALUE = 30; + /** + * COMMAND_REASON_CODE_STOP_UNCONFIRMED = 31; + */ + public static final int COMMAND_REASON_CODE_STOP_UNCONFIRMED_VALUE = 31; + /** + * COMMAND_REASON_CODE_RECOVERY_EPOCH_MISMATCH = 32; + */ + public static final int COMMAND_REASON_CODE_RECOVERY_EPOCH_MISMATCH_VALUE = 32; + /** + * COMMAND_REASON_CODE_RECOVERY_REASON_REQUIRED = 33; + */ + public static final int COMMAND_REASON_CODE_RECOVERY_REASON_REQUIRED_VALUE = 33; + /** + * COMMAND_REASON_CODE_RECOVERY_AUDIT_FAILED = 34; + */ + public static final int COMMAND_REASON_CODE_RECOVERY_AUDIT_FAILED_VALUE = 34; + /** + * COMMAND_REASON_CODE_INTERNAL_ERROR = 35; + */ + public static final int COMMAND_REASON_CODE_INTERNAL_ERROR_VALUE = 35; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CommandReasonCode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CommandReasonCode forNumber(int value) { + switch (value) { + case 0: return COMMAND_REASON_CODE_UNSPECIFIED; + case 1: return COMMAND_REASON_CODE_NONE; + case 2: return COMMAND_REASON_CODE_INVALID_ARGUMENT; + case 3: return COMMAND_REASON_CODE_UNAUTHENTICATED; + case 4: return COMMAND_REASON_CODE_PERMISSION_DENIED; + case 5: return COMMAND_REASON_CODE_RECOVERY_RPC_DISABLED; + case 6: return COMMAND_REASON_CODE_DEVICE_NOT_FOUND; + case 7: return COMMAND_REASON_CODE_DEVICE_UNAVAILABLE; + case 8: return COMMAND_REASON_CODE_UNSUPPORTED_COMMAND; + case 9: return COMMAND_REASON_CODE_SYSTEM_STARTING; + case 10: return COMMAND_REASON_CODE_SYSTEM_STOPPING; + case 11: return COMMAND_REASON_CODE_SAFETY_LATCHED; + case 12: return COMMAND_REASON_CODE_SAFETY_STATE_MISSING; + case 13: return COMMAND_REASON_CODE_SAFETY_STATE_STALE; + case 14: return COMMAND_REASON_CODE_HARDWARE_UNSAFE; + case 15: return COMMAND_REASON_CODE_EMERGENCY_STOP_ACTIVE; + case 16: return COMMAND_REASON_CODE_PROTECTIVE_STOP_ACTIVE; + case 17: return COMMAND_REASON_CODE_DEVICE_DISCONNECTED; + case 18: return COMMAND_REASON_CODE_DEVICE_FAULT; + case 19: return COMMAND_REASON_CODE_DEVICE_NOT_READY; + case 20: return COMMAND_REASON_CODE_DEVICE_STILL_MOVING; + case 21: return COMMAND_REASON_CODE_CONTROL_BUSY; + case 22: return COMMAND_REASON_CODE_GENERATION_MISMATCH; + case 23: return COMMAND_REASON_CODE_COMMAND_ID_REQUIRED; + case 24: return COMMAND_REASON_CODE_COMMAND_ID_CONFLICT; + case 25: return COMMAND_REASON_CODE_RESULT_EVICTED; + case 26: return COMMAND_REASON_CODE_LEDGER_EXHAUSTED; + case 27: return COMMAND_REASON_CODE_BACKPRESSURE; + case 28: return COMMAND_REASON_CODE_DEADLINE_EXCEEDED_BEFORE_DISPATCH; + case 29: return COMMAND_REASON_CODE_OUTCOME_UNKNOWN; + case 30: return COMMAND_REASON_CODE_PARTICIPANT_TIMEOUT; + case 31: return COMMAND_REASON_CODE_STOP_UNCONFIRMED; + case 32: return COMMAND_REASON_CODE_RECOVERY_EPOCH_MISMATCH; + case 33: return COMMAND_REASON_CODE_RECOVERY_REASON_REQUIRED; + case 34: return COMMAND_REASON_CODE_RECOVERY_AUDIT_FAILED; + case 35: return COMMAND_REASON_CODE_INTERNAL_ERROR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CommandReasonCode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CommandReasonCode findValueByNumber(int number) { + return CommandReasonCode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return cmvr.api.Common.getDescriptor().getEnumTypes().get(0); + } + + private static final CommandReasonCode[] VALUES = values(); + + public static CommandReasonCode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CommandReasonCode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.CommandReasonCode) + } + + /** + * Protobuf enum {@code cmvr.api.CommandExecutionState} + */ + public enum CommandExecutionState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * COMMAND_EXECUTION_STATE_UNSPECIFIED = 0; + */ + COMMAND_EXECUTION_STATE_UNSPECIFIED(0), + /** + * COMMAND_EXECUTION_STATE_RECEIVED = 1; + */ + COMMAND_EXECUTION_STATE_RECEIVED(1), + /** + * COMMAND_EXECUTION_STATE_RESERVED = 2; + */ + COMMAND_EXECUTION_STATE_RESERVED(2), + /** + * COMMAND_EXECUTION_STATE_REJECTED_BEFORE_DISPATCH = 3; + */ + COMMAND_EXECUTION_STATE_REJECTED_BEFORE_DISPATCH(3), + /** + * COMMAND_EXECUTION_STATE_ADMITTED = 4; + */ + COMMAND_EXECUTION_STATE_ADMITTED(4), + /** + * COMMAND_EXECUTION_STATE_DISPATCHING = 5; + */ + COMMAND_EXECUTION_STATE_DISPATCHING(5), + /** + * COMMAND_EXECUTION_STATE_ACCEPTED_BY_HARDWARE = 6; + */ + COMMAND_EXECUTION_STATE_ACCEPTED_BY_HARDWARE(6), + /** + * COMMAND_EXECUTION_STATE_COMPLETED = 7; + */ + COMMAND_EXECUTION_STATE_COMPLETED(7), + /** + * COMMAND_EXECUTION_STATE_FAILED = 8; + */ + COMMAND_EXECUTION_STATE_FAILED(8), + /** + * COMMAND_EXECUTION_STATE_CANCELED_BEFORE_DISPATCH = 9; + */ + COMMAND_EXECUTION_STATE_CANCELED_BEFORE_DISPATCH(9), + /** + * COMMAND_EXECUTION_STATE_OUTCOME_UNKNOWN = 10; + */ + COMMAND_EXECUTION_STATE_OUTCOME_UNKNOWN(10), + UNRECOGNIZED(-1), + ; + + /** + * COMMAND_EXECUTION_STATE_UNSPECIFIED = 0; + */ + public static final int COMMAND_EXECUTION_STATE_UNSPECIFIED_VALUE = 0; + /** + * COMMAND_EXECUTION_STATE_RECEIVED = 1; + */ + public static final int COMMAND_EXECUTION_STATE_RECEIVED_VALUE = 1; + /** + * COMMAND_EXECUTION_STATE_RESERVED = 2; + */ + public static final int COMMAND_EXECUTION_STATE_RESERVED_VALUE = 2; + /** + * COMMAND_EXECUTION_STATE_REJECTED_BEFORE_DISPATCH = 3; + */ + public static final int COMMAND_EXECUTION_STATE_REJECTED_BEFORE_DISPATCH_VALUE = 3; + /** + * COMMAND_EXECUTION_STATE_ADMITTED = 4; + */ + public static final int COMMAND_EXECUTION_STATE_ADMITTED_VALUE = 4; + /** + * COMMAND_EXECUTION_STATE_DISPATCHING = 5; + */ + public static final int COMMAND_EXECUTION_STATE_DISPATCHING_VALUE = 5; + /** + * COMMAND_EXECUTION_STATE_ACCEPTED_BY_HARDWARE = 6; + */ + public static final int COMMAND_EXECUTION_STATE_ACCEPTED_BY_HARDWARE_VALUE = 6; + /** + * COMMAND_EXECUTION_STATE_COMPLETED = 7; + */ + public static final int COMMAND_EXECUTION_STATE_COMPLETED_VALUE = 7; + /** + * COMMAND_EXECUTION_STATE_FAILED = 8; + */ + public static final int COMMAND_EXECUTION_STATE_FAILED_VALUE = 8; + /** + * COMMAND_EXECUTION_STATE_CANCELED_BEFORE_DISPATCH = 9; + */ + public static final int COMMAND_EXECUTION_STATE_CANCELED_BEFORE_DISPATCH_VALUE = 9; + /** + * COMMAND_EXECUTION_STATE_OUTCOME_UNKNOWN = 10; + */ + public static final int COMMAND_EXECUTION_STATE_OUTCOME_UNKNOWN_VALUE = 10; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CommandExecutionState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CommandExecutionState forNumber(int value) { + switch (value) { + case 0: return COMMAND_EXECUTION_STATE_UNSPECIFIED; + case 1: return COMMAND_EXECUTION_STATE_RECEIVED; + case 2: return COMMAND_EXECUTION_STATE_RESERVED; + case 3: return COMMAND_EXECUTION_STATE_REJECTED_BEFORE_DISPATCH; + case 4: return COMMAND_EXECUTION_STATE_ADMITTED; + case 5: return COMMAND_EXECUTION_STATE_DISPATCHING; + case 6: return COMMAND_EXECUTION_STATE_ACCEPTED_BY_HARDWARE; + case 7: return COMMAND_EXECUTION_STATE_COMPLETED; + case 8: return COMMAND_EXECUTION_STATE_FAILED; + case 9: return COMMAND_EXECUTION_STATE_CANCELED_BEFORE_DISPATCH; + case 10: return COMMAND_EXECUTION_STATE_OUTCOME_UNKNOWN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CommandExecutionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CommandExecutionState findValueByNumber(int number) { + return CommandExecutionState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return cmvr.api.Common.getDescriptor().getEnumTypes().get(1); + } + + private static final CommandExecutionState[] VALUES = values(); + + public static CommandExecutionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CommandExecutionState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.CommandExecutionState) + } + public interface DeviceLifecycleOrBuilder extends // @@protoc_insertion_point(interface_extends:cmvr.api.DeviceLifecycle) com.google.protobuf.MessageOrBuilder { @@ -758,6 +1361,47 @@ public final class Common { * .google.protobuf.Timestamp timestamp = 2; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); + + /** + * string command_id = 3; + * @return The commandId. + */ + java.lang.String getCommandId(); + /** + * string command_id = 3; + * @return The bytes for commandId. + */ + com.google.protobuf.ByteString + getCommandIdBytes(); + + /** + * string expected_service_instance_id = 4; + * @return The expectedServiceInstanceId. + */ + java.lang.String getExpectedServiceInstanceId(); + /** + * string expected_service_instance_id = 4; + * @return The bytes for expectedServiceInstanceId. + */ + com.google.protobuf.ByteString + getExpectedServiceInstanceIdBytes(); + + /** + * optional uint64 expected_device_generation = 5; + * @return Whether the expectedDeviceGeneration field is set. + */ + boolean hasExpectedDeviceGeneration(); + /** + * optional uint64 expected_device_generation = 5; + * @return The expectedDeviceGeneration. + */ + long getExpectedDeviceGeneration(); + + /** + * uint32 valid_for_ms = 6; + * @return The validForMs. + */ + int getValidForMs(); } /** * Protobuf type {@code cmvr.api.CommandHeader.Request} @@ -773,6 +1417,8 @@ public final class Common { } private Request() { deviceId_ = ""; + commandId_ = ""; + expectedServiceInstanceId_ = ""; } @java.lang.Override @@ -800,6 +1446,7 @@ public final class Common { cmvr.api.Common.CommandHeader.Request.class, cmvr.api.Common.CommandHeader.Request.Builder.class); } + private int bitField0_; public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** @@ -884,6 +1531,112 @@ public final class Common { return getTimestamp(); } + public static final int COMMAND_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object commandId_; + /** + * string command_id = 3; + * @return The commandId. + */ + @java.lang.Override + public java.lang.String getCommandId() { + java.lang.Object ref = commandId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commandId_ = s; + return s; + } + } + /** + * string command_id = 3; + * @return The bytes for commandId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommandIdBytes() { + java.lang.Object ref = commandId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commandId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_SERVICE_INSTANCE_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object expectedServiceInstanceId_; + /** + * string expected_service_instance_id = 4; + * @return The expectedServiceInstanceId. + */ + @java.lang.Override + public java.lang.String getExpectedServiceInstanceId() { + java.lang.Object ref = expectedServiceInstanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expectedServiceInstanceId_ = s; + return s; + } + } + /** + * string expected_service_instance_id = 4; + * @return The bytes for expectedServiceInstanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getExpectedServiceInstanceIdBytes() { + java.lang.Object ref = expectedServiceInstanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expectedServiceInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_DEVICE_GENERATION_FIELD_NUMBER = 5; + private long expectedDeviceGeneration_; + /** + * optional uint64 expected_device_generation = 5; + * @return Whether the expectedDeviceGeneration field is set. + */ + @java.lang.Override + public boolean hasExpectedDeviceGeneration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional uint64 expected_device_generation = 5; + * @return The expectedDeviceGeneration. + */ + @java.lang.Override + public long getExpectedDeviceGeneration() { + return expectedDeviceGeneration_; + } + + public static final int VALID_FOR_MS_FIELD_NUMBER = 6; + private int validForMs_; + /** + * uint32 valid_for_ms = 6; + * @return The validForMs. + */ + @java.lang.Override + public int getValidForMs() { + return validForMs_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -904,6 +1657,18 @@ public final class Common { if (timestamp_ != null) { output.writeMessage(2, getTimestamp()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, commandId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expectedServiceInstanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expectedServiceInstanceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt64(5, expectedDeviceGeneration_); + } + if (validForMs_ != 0) { + output.writeUInt32(6, validForMs_); + } getUnknownFields().writeTo(output); } @@ -920,6 +1685,20 @@ public final class Common { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTimestamp()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, commandId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expectedServiceInstanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expectedServiceInstanceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, expectedDeviceGeneration_); + } + if (validForMs_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, validForMs_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -942,6 +1721,17 @@ public final class Common { if (!getTimestamp() .equals(other.getTimestamp())) return false; } + if (!getCommandId() + .equals(other.getCommandId())) return false; + if (!getExpectedServiceInstanceId() + .equals(other.getExpectedServiceInstanceId())) return false; + if (hasExpectedDeviceGeneration() != other.hasExpectedDeviceGeneration()) return false; + if (hasExpectedDeviceGeneration()) { + if (getExpectedDeviceGeneration() + != other.getExpectedDeviceGeneration()) return false; + } + if (getValidForMs() + != other.getValidForMs()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -959,6 +1749,17 @@ public final class Common { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } + hash = (37 * hash) + COMMAND_ID_FIELD_NUMBER; + hash = (53 * hash) + getCommandId().hashCode(); + hash = (37 * hash) + EXPECTED_SERVICE_INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getExpectedServiceInstanceId().hashCode(); + if (hasExpectedDeviceGeneration()) { + hash = (37 * hash) + EXPECTED_DEVICE_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getExpectedDeviceGeneration()); + } + hash = (37 * hash) + VALID_FOR_MS_FIELD_NUMBER; + hash = (53 * hash) + getValidForMs(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1095,6 +1896,14 @@ public final class Common { timestamp_ = null; timestampBuilder_ = null; } + commandId_ = ""; + + expectedServiceInstanceId_ = ""; + + expectedDeviceGeneration_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + validForMs_ = 0; + return this; } @@ -1121,12 +1930,22 @@ public final class Common { @java.lang.Override public cmvr.api.Common.CommandHeader.Request buildPartial() { cmvr.api.Common.CommandHeader.Request result = new cmvr.api.Common.CommandHeader.Request(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; result.deviceId_ = deviceId_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } + result.commandId_ = commandId_; + result.expectedServiceInstanceId_ = expectedServiceInstanceId_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expectedDeviceGeneration_ = expectedDeviceGeneration_; + to_bitField0_ |= 0x00000001; + } + result.validForMs_ = validForMs_; + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1182,6 +2001,20 @@ public final class Common { if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } + if (!other.getCommandId().isEmpty()) { + commandId_ = other.commandId_; + onChanged(); + } + if (!other.getExpectedServiceInstanceId().isEmpty()) { + expectedServiceInstanceId_ = other.expectedServiceInstanceId_; + onChanged(); + } + if (other.hasExpectedDeviceGeneration()) { + setExpectedDeviceGeneration(other.getExpectedDeviceGeneration()); + } + if (other.getValidForMs() != 0) { + setValidForMs(other.getValidForMs()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1220,6 +2053,26 @@ public final class Common { break; } // case 18 + case 26: { + commandId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + expectedServiceInstanceId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: { + expectedDeviceGeneration_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 40 + case 48: { + validForMs_ = input.readUInt32(); + + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1235,6 +2088,7 @@ public final class Common { } // finally return this; } + private int bitField0_; private java.lang.Object deviceId_ = ""; /** @@ -1486,6 +2340,228 @@ public final class Common { } return timestampBuilder_; } + + private java.lang.Object commandId_ = ""; + /** + * string command_id = 3; + * @return The commandId. + */ + public java.lang.String getCommandId() { + java.lang.Object ref = commandId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commandId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string command_id = 3; + * @return The bytes for commandId. + */ + public com.google.protobuf.ByteString + getCommandIdBytes() { + java.lang.Object ref = commandId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commandId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string command_id = 3; + * @param value The commandId to set. + * @return This builder for chaining. + */ + public Builder setCommandId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + commandId_ = value; + onChanged(); + return this; + } + /** + * string command_id = 3; + * @return This builder for chaining. + */ + public Builder clearCommandId() { + + commandId_ = getDefaultInstance().getCommandId(); + onChanged(); + return this; + } + /** + * string command_id = 3; + * @param value The bytes for commandId to set. + * @return This builder for chaining. + */ + public Builder setCommandIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + commandId_ = value; + onChanged(); + return this; + } + + private java.lang.Object expectedServiceInstanceId_ = ""; + /** + * string expected_service_instance_id = 4; + * @return The expectedServiceInstanceId. + */ + public java.lang.String getExpectedServiceInstanceId() { + java.lang.Object ref = expectedServiceInstanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expectedServiceInstanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string expected_service_instance_id = 4; + * @return The bytes for expectedServiceInstanceId. + */ + public com.google.protobuf.ByteString + getExpectedServiceInstanceIdBytes() { + java.lang.Object ref = expectedServiceInstanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expectedServiceInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string expected_service_instance_id = 4; + * @param value The expectedServiceInstanceId to set. + * @return This builder for chaining. + */ + public Builder setExpectedServiceInstanceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expectedServiceInstanceId_ = value; + onChanged(); + return this; + } + /** + * string expected_service_instance_id = 4; + * @return This builder for chaining. + */ + public Builder clearExpectedServiceInstanceId() { + + expectedServiceInstanceId_ = getDefaultInstance().getExpectedServiceInstanceId(); + onChanged(); + return this; + } + /** + * string expected_service_instance_id = 4; + * @param value The bytes for expectedServiceInstanceId to set. + * @return This builder for chaining. + */ + public Builder setExpectedServiceInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expectedServiceInstanceId_ = value; + onChanged(); + return this; + } + + private long expectedDeviceGeneration_ ; + /** + * optional uint64 expected_device_generation = 5; + * @return Whether the expectedDeviceGeneration field is set. + */ + @java.lang.Override + public boolean hasExpectedDeviceGeneration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional uint64 expected_device_generation = 5; + * @return The expectedDeviceGeneration. + */ + @java.lang.Override + public long getExpectedDeviceGeneration() { + return expectedDeviceGeneration_; + } + /** + * optional uint64 expected_device_generation = 5; + * @param value The expectedDeviceGeneration to set. + * @return This builder for chaining. + */ + public Builder setExpectedDeviceGeneration(long value) { + bitField0_ |= 0x00000001; + expectedDeviceGeneration_ = value; + onChanged(); + return this; + } + /** + * optional uint64 expected_device_generation = 5; + * @return This builder for chaining. + */ + public Builder clearExpectedDeviceGeneration() { + bitField0_ = (bitField0_ & ~0x00000001); + expectedDeviceGeneration_ = 0L; + onChanged(); + return this; + } + + private int validForMs_ ; + /** + * uint32 valid_for_ms = 6; + * @return The validForMs. + */ + @java.lang.Override + public int getValidForMs() { + return validForMs_; + } + /** + * uint32 valid_for_ms = 6; + * @param value The validForMs to set. + * @return This builder for chaining. + */ + public Builder setValidForMs(int value) { + + validForMs_ = value; + onChanged(); + return this; + } + /** + * uint32 valid_for_ms = 6; + * @return This builder for chaining. + */ + public Builder clearValidForMs() { + + validForMs_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1610,6 +2686,64 @@ public final class Common { * .google.protobuf.Timestamp timestamp = 3; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); + + /** + * .cmvr.api.CommandReasonCode reason_code = 4; + * @return The enum numeric value on the wire for reasonCode. + */ + int getReasonCodeValue(); + /** + * .cmvr.api.CommandReasonCode reason_code = 4; + * @return The reasonCode. + */ + cmvr.api.Common.CommandReasonCode getReasonCode(); + + /** + * string command_id = 5; + * @return The commandId. + */ + java.lang.String getCommandId(); + /** + * string command_id = 5; + * @return The bytes for commandId. + */ + com.google.protobuf.ByteString + getCommandIdBytes(); + + /** + * string service_instance_id = 6; + * @return The serviceInstanceId. + */ + java.lang.String getServiceInstanceId(); + /** + * string service_instance_id = 6; + * @return The bytes for serviceInstanceId. + */ + com.google.protobuf.ByteString + getServiceInstanceIdBytes(); + + /** + * uint64 safety_epoch = 7; + * @return The safetyEpoch. + */ + long getSafetyEpoch(); + + /** + * uint64 device_generation = 8; + * @return The deviceGeneration. + */ + long getDeviceGeneration(); + + /** + * .cmvr.api.CommandExecutionState execution_state = 9; + * @return The enum numeric value on the wire for executionState. + */ + int getExecutionStateValue(); + /** + * .cmvr.api.CommandExecutionState execution_state = 9; + * @return The executionState. + */ + cmvr.api.Common.CommandExecutionState getExecutionState(); } /** * Protobuf type {@code cmvr.api.CommandHeader.Feedback} @@ -1625,6 +2759,10 @@ public final class Common { } private Feedback() { errorMessage_ = ""; + reasonCode_ = 0; + commandId_ = ""; + serviceInstanceId_ = ""; + executionState_ = 0; } @java.lang.Override @@ -1751,6 +2889,142 @@ public final class Common { return getTimestamp(); } + public static final int REASON_CODE_FIELD_NUMBER = 4; + private int reasonCode_; + /** + * .cmvr.api.CommandReasonCode reason_code = 4; + * @return The enum numeric value on the wire for reasonCode. + */ + @java.lang.Override public int getReasonCodeValue() { + return reasonCode_; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 4; + * @return The reasonCode. + */ + @java.lang.Override public cmvr.api.Common.CommandReasonCode getReasonCode() { + @SuppressWarnings("deprecation") + cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_); + return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result; + } + + public static final int COMMAND_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object commandId_; + /** + * string command_id = 5; + * @return The commandId. + */ + @java.lang.Override + public java.lang.String getCommandId() { + java.lang.Object ref = commandId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commandId_ = s; + return s; + } + } + /** + * string command_id = 5; + * @return The bytes for commandId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommandIdBytes() { + java.lang.Object ref = commandId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commandId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_INSTANCE_ID_FIELD_NUMBER = 6; + private volatile java.lang.Object serviceInstanceId_; + /** + * string service_instance_id = 6; + * @return The serviceInstanceId. + */ + @java.lang.Override + public java.lang.String getServiceInstanceId() { + java.lang.Object ref = serviceInstanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceInstanceId_ = s; + return s; + } + } + /** + * string service_instance_id = 6; + * @return The bytes for serviceInstanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceInstanceIdBytes() { + java.lang.Object ref = serviceInstanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAFETY_EPOCH_FIELD_NUMBER = 7; + private long safetyEpoch_; + /** + * uint64 safety_epoch = 7; + * @return The safetyEpoch. + */ + @java.lang.Override + public long getSafetyEpoch() { + return safetyEpoch_; + } + + public static final int DEVICE_GENERATION_FIELD_NUMBER = 8; + private long deviceGeneration_; + /** + * uint64 device_generation = 8; + * @return The deviceGeneration. + */ + @java.lang.Override + public long getDeviceGeneration() { + return deviceGeneration_; + } + + public static final int EXECUTION_STATE_FIELD_NUMBER = 9; + private int executionState_; + /** + * .cmvr.api.CommandExecutionState execution_state = 9; + * @return The enum numeric value on the wire for executionState. + */ + @java.lang.Override public int getExecutionStateValue() { + return executionState_; + } + /** + * .cmvr.api.CommandExecutionState execution_state = 9; + * @return The executionState. + */ + @java.lang.Override public cmvr.api.Common.CommandExecutionState getExecutionState() { + @SuppressWarnings("deprecation") + cmvr.api.Common.CommandExecutionState result = cmvr.api.Common.CommandExecutionState.valueOf(executionState_); + return result == null ? cmvr.api.Common.CommandExecutionState.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1774,6 +3048,24 @@ public final class Common { if (timestamp_ != null) { output.writeMessage(3, getTimestamp()); } + if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, reasonCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, commandId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceInstanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceInstanceId_); + } + if (safetyEpoch_ != 0L) { + output.writeUInt64(7, safetyEpoch_); + } + if (deviceGeneration_ != 0L) { + output.writeUInt64(8, deviceGeneration_); + } + if (executionState_ != cmvr.api.Common.CommandExecutionState.COMMAND_EXECUTION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, executionState_); + } getUnknownFields().writeTo(output); } @@ -1794,6 +3086,28 @@ public final class Common { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTimestamp()); } + if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, reasonCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, commandId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceInstanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceInstanceId_); + } + if (safetyEpoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(7, safetyEpoch_); + } + if (deviceGeneration_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(8, deviceGeneration_); + } + if (executionState_ != cmvr.api.Common.CommandExecutionState.COMMAND_EXECUTION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, executionState_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1818,6 +3132,16 @@ public final class Common { if (!getTimestamp() .equals(other.getTimestamp())) return false; } + if (reasonCode_ != other.reasonCode_) return false; + if (!getCommandId() + .equals(other.getCommandId())) return false; + if (!getServiceInstanceId() + .equals(other.getServiceInstanceId())) return false; + if (getSafetyEpoch() + != other.getSafetyEpoch()) return false; + if (getDeviceGeneration() + != other.getDeviceGeneration()) return false; + if (executionState_ != other.executionState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1838,6 +3162,20 @@ public final class Common { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } + hash = (37 * hash) + REASON_CODE_FIELD_NUMBER; + hash = (53 * hash) + reasonCode_; + hash = (37 * hash) + COMMAND_ID_FIELD_NUMBER; + hash = (53 * hash) + getCommandId().hashCode(); + hash = (37 * hash) + SERVICE_INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getServiceInstanceId().hashCode(); + hash = (37 * hash) + SAFETY_EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSafetyEpoch()); + hash = (37 * hash) + DEVICE_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeviceGeneration()); + hash = (37 * hash) + EXECUTION_STATE_FIELD_NUMBER; + hash = (53 * hash) + executionState_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1976,6 +3314,18 @@ public final class Common { timestamp_ = null; timestampBuilder_ = null; } + reasonCode_ = 0; + + commandId_ = ""; + + serviceInstanceId_ = ""; + + safetyEpoch_ = 0L; + + deviceGeneration_ = 0L; + + executionState_ = 0; + return this; } @@ -2009,6 +3359,12 @@ public final class Common { } else { result.timestamp_ = timestampBuilder_.build(); } + result.reasonCode_ = reasonCode_; + result.commandId_ = commandId_; + result.serviceInstanceId_ = serviceInstanceId_; + result.safetyEpoch_ = safetyEpoch_; + result.deviceGeneration_ = deviceGeneration_; + result.executionState_ = executionState_; onBuilt(); return result; } @@ -2067,6 +3423,26 @@ public final class Common { if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } + if (other.reasonCode_ != 0) { + setReasonCodeValue(other.getReasonCodeValue()); + } + if (!other.getCommandId().isEmpty()) { + commandId_ = other.commandId_; + onChanged(); + } + if (!other.getServiceInstanceId().isEmpty()) { + serviceInstanceId_ = other.serviceInstanceId_; + onChanged(); + } + if (other.getSafetyEpoch() != 0L) { + setSafetyEpoch(other.getSafetyEpoch()); + } + if (other.getDeviceGeneration() != 0L) { + setDeviceGeneration(other.getDeviceGeneration()); + } + if (other.executionState_ != 0) { + setExecutionStateValue(other.getExecutionStateValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2110,6 +3486,36 @@ public final class Common { break; } // case 26 + case 32: { + reasonCode_ = input.readEnum(); + + break; + } // case 32 + case 42: { + commandId_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + serviceInstanceId_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: { + safetyEpoch_ = input.readUInt64(); + + break; + } // case 56 + case 64: { + deviceGeneration_ = input.readUInt64(); + + break; + } // case 64 + case 72: { + executionState_ = input.readEnum(); + + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -2419,6 +3825,328 @@ public final class Common { } return timestampBuilder_; } + + private int reasonCode_ = 0; + /** + * .cmvr.api.CommandReasonCode reason_code = 4; + * @return The enum numeric value on the wire for reasonCode. + */ + @java.lang.Override public int getReasonCodeValue() { + return reasonCode_; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 4; + * @param value The enum numeric value on the wire for reasonCode to set. + * @return This builder for chaining. + */ + public Builder setReasonCodeValue(int value) { + + reasonCode_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 4; + * @return The reasonCode. + */ + @java.lang.Override + public cmvr.api.Common.CommandReasonCode getReasonCode() { + @SuppressWarnings("deprecation") + cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_); + return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 4; + * @param value The reasonCode to set. + * @return This builder for chaining. + */ + public Builder setReasonCode(cmvr.api.Common.CommandReasonCode value) { + if (value == null) { + throw new NullPointerException(); + } + + reasonCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 4; + * @return This builder for chaining. + */ + public Builder clearReasonCode() { + + reasonCode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object commandId_ = ""; + /** + * string command_id = 5; + * @return The commandId. + */ + public java.lang.String getCommandId() { + java.lang.Object ref = commandId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commandId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string command_id = 5; + * @return The bytes for commandId. + */ + public com.google.protobuf.ByteString + getCommandIdBytes() { + java.lang.Object ref = commandId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commandId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string command_id = 5; + * @param value The commandId to set. + * @return This builder for chaining. + */ + public Builder setCommandId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + commandId_ = value; + onChanged(); + return this; + } + /** + * string command_id = 5; + * @return This builder for chaining. + */ + public Builder clearCommandId() { + + commandId_ = getDefaultInstance().getCommandId(); + onChanged(); + return this; + } + /** + * string command_id = 5; + * @param value The bytes for commandId to set. + * @return This builder for chaining. + */ + public Builder setCommandIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + commandId_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceInstanceId_ = ""; + /** + * string service_instance_id = 6; + * @return The serviceInstanceId. + */ + public java.lang.String getServiceInstanceId() { + java.lang.Object ref = serviceInstanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceInstanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string service_instance_id = 6; + * @return The bytes for serviceInstanceId. + */ + public com.google.protobuf.ByteString + getServiceInstanceIdBytes() { + java.lang.Object ref = serviceInstanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string service_instance_id = 6; + * @param value The serviceInstanceId to set. + * @return This builder for chaining. + */ + public Builder setServiceInstanceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceInstanceId_ = value; + onChanged(); + return this; + } + /** + * string service_instance_id = 6; + * @return This builder for chaining. + */ + public Builder clearServiceInstanceId() { + + serviceInstanceId_ = getDefaultInstance().getServiceInstanceId(); + onChanged(); + return this; + } + /** + * string service_instance_id = 6; + * @param value The bytes for serviceInstanceId to set. + * @return This builder for chaining. + */ + public Builder setServiceInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceInstanceId_ = value; + onChanged(); + return this; + } + + private long safetyEpoch_ ; + /** + * uint64 safety_epoch = 7; + * @return The safetyEpoch. + */ + @java.lang.Override + public long getSafetyEpoch() { + return safetyEpoch_; + } + /** + * uint64 safety_epoch = 7; + * @param value The safetyEpoch to set. + * @return This builder for chaining. + */ + public Builder setSafetyEpoch(long value) { + + safetyEpoch_ = value; + onChanged(); + return this; + } + /** + * uint64 safety_epoch = 7; + * @return This builder for chaining. + */ + public Builder clearSafetyEpoch() { + + safetyEpoch_ = 0L; + onChanged(); + return this; + } + + private long deviceGeneration_ ; + /** + * uint64 device_generation = 8; + * @return The deviceGeneration. + */ + @java.lang.Override + public long getDeviceGeneration() { + return deviceGeneration_; + } + /** + * uint64 device_generation = 8; + * @param value The deviceGeneration to set. + * @return This builder for chaining. + */ + public Builder setDeviceGeneration(long value) { + + deviceGeneration_ = value; + onChanged(); + return this; + } + /** + * uint64 device_generation = 8; + * @return This builder for chaining. + */ + public Builder clearDeviceGeneration() { + + deviceGeneration_ = 0L; + onChanged(); + return this; + } + + private int executionState_ = 0; + /** + * .cmvr.api.CommandExecutionState execution_state = 9; + * @return The enum numeric value on the wire for executionState. + */ + @java.lang.Override public int getExecutionStateValue() { + return executionState_; + } + /** + * .cmvr.api.CommandExecutionState execution_state = 9; + * @param value The enum numeric value on the wire for executionState to set. + * @return This builder for chaining. + */ + public Builder setExecutionStateValue(int value) { + + executionState_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.CommandExecutionState execution_state = 9; + * @return The executionState. + */ + @java.lang.Override + public cmvr.api.Common.CommandExecutionState getExecutionState() { + @SuppressWarnings("deprecation") + cmvr.api.Common.CommandExecutionState result = cmvr.api.Common.CommandExecutionState.valueOf(executionState_); + return result == null ? cmvr.api.Common.CommandExecutionState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.CommandExecutionState execution_state = 9; + * @param value The executionState to set. + * @return This builder for chaining. + */ + public Builder setExecutionState(cmvr.api.Common.CommandExecutionState value) { + if (value == null) { + throw new NullPointerException(); + } + + executionState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.CommandExecutionState execution_state = 9; + * @return This builder for chaining. + */ + public Builder clearExecutionState() { + + executionState_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7351,12 +9079,21 @@ public final class Common { "ifecycle.Lifecycle\"q\n\tLifecycle\022\016\n\nSTATE" + "_INIT\020\000\022\017\n\013STATE_READY\020\001\022\021\n\rSTATE_RUNNIN" + "G\020\002\022\017\n\013STATE_ERROR\020\003\022\017\n\013STATE_ESTOP\020\004\022\016\n" + - "\nSTATE_STOP\020\005\"\277\001\n\rCommandHeader\032K\n\007Reque" + - "st\022\021\n\tdevice_id\030\001 \001(\t\022-\n\ttimestamp\030\002 \001(\013" + - "2\032.google.protobuf.Timestamp\032a\n\010Feedback" + - "\022\017\n\007success\030\001 \001(\010\022\025\n\rerror_message\030\002 \001(\t" + - "\022-\n\ttimestamp\030\003 \001(\0132\032.google.protobuf.Ti" + - "mestamp\"\336\001\n\tAudioData\022\014\n\004data\030\001 \001(\014\022\023\n\013s" + + "\nSTATE_STOP\020\005\"\247\004\n\rCommandHeader\032\343\001\n\007Requ" + + "est\022\021\n\tdevice_id\030\001 \001(\t\022-\n\ttimestamp\030\002 \001(" + + "\0132\032.google.protobuf.Timestamp\022\022\n\ncommand" + + "_id\030\003 \001(\t\022$\n\034expected_service_instance_i" + + "d\030\004 \001(\t\022\'\n\032expected_device_generation\030\005 " + + "\001(\004H\000\210\001\001\022\024\n\014valid_for_ms\030\006 \001(\rB\035\n\033_expec" + + "ted_device_generation\032\257\002\n\010Feedback\022\017\n\007su" + + "ccess\030\001 \001(\010\022\025\n\rerror_message\030\002 \001(\t\022-\n\tti" + + "mestamp\030\003 \001(\0132\032.google.protobuf.Timestam" + + "p\0220\n\013reason_code\030\004 \001(\0162\033.cmvr.api.Comman" + + "dReasonCode\022\022\n\ncommand_id\030\005 \001(\t\022\033\n\023servi" + + "ce_instance_id\030\006 \001(\t\022\024\n\014safety_epoch\030\007 \001" + + "(\004\022\031\n\021device_generation\030\010 \001(\004\0228\n\017executi" + + "on_state\030\t \001(\0162\037.cmvr.api.CommandExecuti" + + "onState\"\336\001\n\tAudioData\022\014\n\004data\030\001 \001(\014\022\023\n\013s" + "ample_rate\030\002 \001(\005\022\020\n\010channels\030\003 \001(\005\022/\n\006fo" + "rmat\030\004 \001(\0162\037.cmvr.api.AudioData.AudioFor" + "mat\022\r\n\005codec\030\005 \001(\t\022\013\n\003pts\030\006 \001(\003\022\022\n\nnb_sa" + @@ -7370,7 +9107,59 @@ public final class Common { "\030\001 \001(\0132\037.cmvr.api.CommandHeader.Request\022" + "\024\n\014request_json\030\002 \001(\t\032S\n\010Feedback\0220\n\006hea" + "der\030\001 \001(\0132 .cmvr.api.CommandHeader.Feedb" + - "ack\022\025\n\rresponse_json\030\002 \001(\tb\006proto3" + "ack\022\025\n\rresponse_json\030\002 \001(\t*\246\014\n\021CommandRe" + + "asonCode\022#\n\037COMMAND_REASON_CODE_UNSPECIF" + + "IED\020\000\022\034\n\030COMMAND_REASON_CODE_NONE\020\001\022(\n$C" + + "OMMAND_REASON_CODE_INVALID_ARGUMENT\020\002\022\'\n" + + "#COMMAND_REASON_CODE_UNAUTHENTICATED\020\003\022)" + + "\n%COMMAND_REASON_CODE_PERMISSION_DENIED\020" + + "\004\022-\n)COMMAND_REASON_CODE_RECOVERY_RPC_DI" + + "SABLED\020\005\022(\n$COMMAND_REASON_CODE_DEVICE_N" + + "OT_FOUND\020\006\022*\n&COMMAND_REASON_CODE_DEVICE" + + "_UNAVAILABLE\020\007\022+\n\'COMMAND_REASON_CODE_UN" + + "SUPPORTED_COMMAND\020\010\022\'\n#COMMAND_REASON_CO" + + "DE_SYSTEM_STARTING\020\t\022\'\n#COMMAND_REASON_C" + + "ODE_SYSTEM_STOPPING\020\n\022&\n\"COMMAND_REASON_" + + "CODE_SAFETY_LATCHED\020\013\022,\n(COMMAND_REASON_" + + "CODE_SAFETY_STATE_MISSING\020\014\022*\n&COMMAND_R" + + "EASON_CODE_SAFETY_STATE_STALE\020\r\022\'\n#COMMA" + + "ND_REASON_CODE_HARDWARE_UNSAFE\020\016\022-\n)COMM" + + "AND_REASON_CODE_EMERGENCY_STOP_ACTIVE\020\017\022" + + ".\n*COMMAND_REASON_CODE_PROTECTIVE_STOP_A" + + "CTIVE\020\020\022+\n\'COMMAND_REASON_CODE_DEVICE_DI" + + "SCONNECTED\020\021\022$\n COMMAND_REASON_CODE_DEVI" + + "CE_FAULT\020\022\022(\n$COMMAND_REASON_CODE_DEVICE" + + "_NOT_READY\020\023\022+\n\'COMMAND_REASON_CODE_DEVI" + + "CE_STILL_MOVING\020\024\022$\n COMMAND_REASON_CODE" + + "_CONTROL_BUSY\020\025\022+\n\'COMMAND_REASON_CODE_G" + + "ENERATION_MISMATCH\020\026\022+\n\'COMMAND_REASON_C" + + "ODE_COMMAND_ID_REQUIRED\020\027\022+\n\'COMMAND_REA" + + "SON_CODE_COMMAND_ID_CONFLICT\020\030\022&\n\"COMMAN" + + "D_REASON_CODE_RESULT_EVICTED\020\031\022(\n$COMMAN" + + "D_REASON_CODE_LEDGER_EXHAUSTED\020\032\022$\n COMM" + + "AND_REASON_CODE_BACKPRESSURE\020\033\0229\n5COMMAN" + + "D_REASON_CODE_DEADLINE_EXCEEDED_BEFORE_D" + + "ISPATCH\020\034\022\'\n#COMMAND_REASON_CODE_OUTCOME" + + "_UNKNOWN\020\035\022+\n\'COMMAND_REASON_CODE_PARTIC" + + "IPANT_TIMEOUT\020\036\022(\n$COMMAND_REASON_CODE_S" + + "TOP_UNCONFIRMED\020\037\022/\n+COMMAND_REASON_CODE" + + "_RECOVERY_EPOCH_MISMATCH\020 \0220\n,COMMAND_RE" + + "ASON_CODE_RECOVERY_REASON_REQUIRED\020!\022-\n)" + + "COMMAND_REASON_CODE_RECOVERY_AUDIT_FAILE" + + "D\020\"\022&\n\"COMMAND_REASON_CODE_INTERNAL_ERRO" + + "R\020#*\361\003\n\025CommandExecutionState\022\'\n#COMMAND" + + "_EXECUTION_STATE_UNSPECIFIED\020\000\022$\n COMMAN" + + "D_EXECUTION_STATE_RECEIVED\020\001\022$\n COMMAND_" + + "EXECUTION_STATE_RESERVED\020\002\0224\n0COMMAND_EX" + + "ECUTION_STATE_REJECTED_BEFORE_DISPATCH\020\003" + + "\022$\n COMMAND_EXECUTION_STATE_ADMITTED\020\004\022\'" + + "\n#COMMAND_EXECUTION_STATE_DISPATCHING\020\005\022" + + "0\n,COMMAND_EXECUTION_STATE_ACCEPTED_BY_H" + + "ARDWARE\020\006\022%\n!COMMAND_EXECUTION_STATE_COM" + + "PLETED\020\007\022\"\n\036COMMAND_EXECUTION_STATE_FAIL" + + "ED\020\010\0224\n0COMMAND_EXECUTION_STATE_CANCELED" + + "_BEFORE_DISPATCH\020\t\022+\n\'COMMAND_EXECUTION_" + + "STATE_OUTCOME_UNKNOWN\020\nb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -7394,13 +9183,13 @@ public final class Common { internal_static_cmvr_api_CommandHeader_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cmvr_api_CommandHeader_Request_descriptor, - new java.lang.String[] { "DeviceId", "Timestamp", }); + new java.lang.String[] { "DeviceId", "Timestamp", "CommandId", "ExpectedServiceInstanceId", "ExpectedDeviceGeneration", "ValidForMs", "ExpectedDeviceGeneration", }); internal_static_cmvr_api_CommandHeader_Feedback_descriptor = internal_static_cmvr_api_CommandHeader_descriptor.getNestedTypes().get(1); internal_static_cmvr_api_CommandHeader_Feedback_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cmvr_api_CommandHeader_Feedback_descriptor, - new java.lang.String[] { "Success", "ErrorMessage", "Timestamp", }); + new java.lang.String[] { "Success", "ErrorMessage", "Timestamp", "ReasonCode", "CommandId", "ServiceInstanceId", "SafetyEpoch", "DeviceGeneration", "ExecutionState", }); internal_static_cmvr_api_AudioData_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_cmvr_api_AudioData_fieldAccessorTable = new diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SafetyCommand.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SafetyCommand.java new file mode 100644 index 0000000..3de90c0 --- /dev/null +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SafetyCommand.java @@ -0,0 +1,16884 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: cmvr/api/safety_command.proto + +package cmvr.api; + +public final class SafetyCommand { + private SafetyCommand() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code cmvr.api.SafetyTriState} + */ + public enum SafetyTriState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SAFETY_TRI_STATE_UNKNOWN = 0; + */ + SAFETY_TRI_STATE_UNKNOWN(0), + /** + * SAFETY_TRI_STATE_FALSE = 1; + */ + SAFETY_TRI_STATE_FALSE(1), + /** + * SAFETY_TRI_STATE_TRUE = 2; + */ + SAFETY_TRI_STATE_TRUE(2), + UNRECOGNIZED(-1), + ; + + /** + * SAFETY_TRI_STATE_UNKNOWN = 0; + */ + public static final int SAFETY_TRI_STATE_UNKNOWN_VALUE = 0; + /** + * SAFETY_TRI_STATE_FALSE = 1; + */ + public static final int SAFETY_TRI_STATE_FALSE_VALUE = 1; + /** + * SAFETY_TRI_STATE_TRUE = 2; + */ + public static final int SAFETY_TRI_STATE_TRUE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SafetyTriState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SafetyTriState forNumber(int value) { + switch (value) { + case 0: return SAFETY_TRI_STATE_UNKNOWN; + case 1: return SAFETY_TRI_STATE_FALSE; + case 2: return SAFETY_TRI_STATE_TRUE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SafetyTriState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SafetyTriState findValueByNumber(int number) { + return SafetyTriState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(0); + } + + private static final SafetyTriState[] VALUES = values(); + + public static SafetyTriState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SafetyTriState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.SafetyTriState) + } + + /** + * Protobuf enum {@code cmvr.api.SafetyCondition} + */ + public enum SafetyCondition + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SAFETY_CONDITION_UNKNOWN = 0; + */ + SAFETY_CONDITION_UNKNOWN(0), + /** + * SAFETY_CONDITION_NOMINAL = 1; + */ + SAFETY_CONDITION_NOMINAL(1), + /** + * SAFETY_CONDITION_RESTRICTED = 2; + */ + SAFETY_CONDITION_RESTRICTED(2), + /** + * SAFETY_CONDITION_UNSAFE = 3; + */ + SAFETY_CONDITION_UNSAFE(3), + UNRECOGNIZED(-1), + ; + + /** + * SAFETY_CONDITION_UNKNOWN = 0; + */ + public static final int SAFETY_CONDITION_UNKNOWN_VALUE = 0; + /** + * SAFETY_CONDITION_NOMINAL = 1; + */ + public static final int SAFETY_CONDITION_NOMINAL_VALUE = 1; + /** + * SAFETY_CONDITION_RESTRICTED = 2; + */ + public static final int SAFETY_CONDITION_RESTRICTED_VALUE = 2; + /** + * SAFETY_CONDITION_UNSAFE = 3; + */ + public static final int SAFETY_CONDITION_UNSAFE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SafetyCondition valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SafetyCondition forNumber(int value) { + switch (value) { + case 0: return SAFETY_CONDITION_UNKNOWN; + case 1: return SAFETY_CONDITION_NOMINAL; + case 2: return SAFETY_CONDITION_RESTRICTED; + case 3: return SAFETY_CONDITION_UNSAFE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SafetyCondition> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SafetyCondition findValueByNumber(int number) { + return SafetyCondition.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(1); + } + + private static final SafetyCondition[] VALUES = values(); + + public static SafetyCondition valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SafetyCondition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.SafetyCondition) + } + + /** + * Protobuf enum {@code cmvr.api.SystemAdmissionState} + */ + public enum SystemAdmissionState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SYSTEM_ADMISSION_STATE_UNSPECIFIED = 0; + */ + SYSTEM_ADMISSION_STATE_UNSPECIFIED(0), + /** + * SYSTEM_ADMISSION_STATE_STARTING = 1; + */ + SYSTEM_ADMISSION_STATE_STARTING(1), + /** + * SYSTEM_ADMISSION_STATE_OPEN = 2; + */ + SYSTEM_ADMISSION_STATE_OPEN(2), + /** + * SYSTEM_ADMISSION_STATE_STOPPING = 3; + */ + SYSTEM_ADMISSION_STATE_STOPPING(3), + /** + * SYSTEM_ADMISSION_STATE_LATCHED = 4; + */ + SYSTEM_ADMISSION_STATE_LATCHED(4), + /** + * SYSTEM_ADMISSION_STATE_RECOVERING = 5; + */ + SYSTEM_ADMISSION_STATE_RECOVERING(5), + /** + * SYSTEM_ADMISSION_STATE_SHUTTING_DOWN = 6; + */ + SYSTEM_ADMISSION_STATE_SHUTTING_DOWN(6), + UNRECOGNIZED(-1), + ; + + /** + * SYSTEM_ADMISSION_STATE_UNSPECIFIED = 0; + */ + public static final int SYSTEM_ADMISSION_STATE_UNSPECIFIED_VALUE = 0; + /** + * SYSTEM_ADMISSION_STATE_STARTING = 1; + */ + public static final int SYSTEM_ADMISSION_STATE_STARTING_VALUE = 1; + /** + * SYSTEM_ADMISSION_STATE_OPEN = 2; + */ + public static final int SYSTEM_ADMISSION_STATE_OPEN_VALUE = 2; + /** + * SYSTEM_ADMISSION_STATE_STOPPING = 3; + */ + public static final int SYSTEM_ADMISSION_STATE_STOPPING_VALUE = 3; + /** + * SYSTEM_ADMISSION_STATE_LATCHED = 4; + */ + public static final int SYSTEM_ADMISSION_STATE_LATCHED_VALUE = 4; + /** + * SYSTEM_ADMISSION_STATE_RECOVERING = 5; + */ + public static final int SYSTEM_ADMISSION_STATE_RECOVERING_VALUE = 5; + /** + * SYSTEM_ADMISSION_STATE_SHUTTING_DOWN = 6; + */ + public static final int SYSTEM_ADMISSION_STATE_SHUTTING_DOWN_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SystemAdmissionState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SystemAdmissionState forNumber(int value) { + switch (value) { + case 0: return SYSTEM_ADMISSION_STATE_UNSPECIFIED; + case 1: return SYSTEM_ADMISSION_STATE_STARTING; + case 2: return SYSTEM_ADMISSION_STATE_OPEN; + case 3: return SYSTEM_ADMISSION_STATE_STOPPING; + case 4: return SYSTEM_ADMISSION_STATE_LATCHED; + case 5: return SYSTEM_ADMISSION_STATE_RECOVERING; + case 6: return SYSTEM_ADMISSION_STATE_SHUTTING_DOWN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SystemAdmissionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SystemAdmissionState findValueByNumber(int number) { + return SystemAdmissionState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(2); + } + + private static final SystemAdmissionState[] VALUES = values(); + + public static SystemAdmissionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SystemAdmissionState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.SystemAdmissionState) + } + + /** + * Protobuf enum {@code cmvr.api.DeviceAdmissionState} + */ + public enum DeviceAdmissionState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DEVICE_ADMISSION_STATE_UNSPECIFIED = 0; + */ + DEVICE_ADMISSION_STATE_UNSPECIFIED(0), + /** + * DEVICE_ADMISSION_STATE_OBSERVING = 1; + */ + DEVICE_ADMISSION_STATE_OBSERVING(1), + /** + * DEVICE_ADMISSION_STATE_OPEN = 2; + */ + DEVICE_ADMISSION_STATE_OPEN(2), + /** + * DEVICE_ADMISSION_STATE_BLOCKED = 3; + */ + DEVICE_ADMISSION_STATE_BLOCKED(3), + /** + * DEVICE_ADMISSION_STATE_QUARANTINED = 4; + */ + DEVICE_ADMISSION_STATE_QUARANTINED(4), + /** + * DEVICE_ADMISSION_STATE_RECOVERING = 5; + */ + DEVICE_ADMISSION_STATE_RECOVERING(5), + /** + * DEVICE_ADMISSION_STATE_REMOVED = 6; + */ + DEVICE_ADMISSION_STATE_REMOVED(6), + UNRECOGNIZED(-1), + ; + + /** + * DEVICE_ADMISSION_STATE_UNSPECIFIED = 0; + */ + public static final int DEVICE_ADMISSION_STATE_UNSPECIFIED_VALUE = 0; + /** + * DEVICE_ADMISSION_STATE_OBSERVING = 1; + */ + public static final int DEVICE_ADMISSION_STATE_OBSERVING_VALUE = 1; + /** + * DEVICE_ADMISSION_STATE_OPEN = 2; + */ + public static final int DEVICE_ADMISSION_STATE_OPEN_VALUE = 2; + /** + * DEVICE_ADMISSION_STATE_BLOCKED = 3; + */ + public static final int DEVICE_ADMISSION_STATE_BLOCKED_VALUE = 3; + /** + * DEVICE_ADMISSION_STATE_QUARANTINED = 4; + */ + public static final int DEVICE_ADMISSION_STATE_QUARANTINED_VALUE = 4; + /** + * DEVICE_ADMISSION_STATE_RECOVERING = 5; + */ + public static final int DEVICE_ADMISSION_STATE_RECOVERING_VALUE = 5; + /** + * DEVICE_ADMISSION_STATE_REMOVED = 6; + */ + public static final int DEVICE_ADMISSION_STATE_REMOVED_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DeviceAdmissionState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DeviceAdmissionState forNumber(int value) { + switch (value) { + case 0: return DEVICE_ADMISSION_STATE_UNSPECIFIED; + case 1: return DEVICE_ADMISSION_STATE_OBSERVING; + case 2: return DEVICE_ADMISSION_STATE_OPEN; + case 3: return DEVICE_ADMISSION_STATE_BLOCKED; + case 4: return DEVICE_ADMISSION_STATE_QUARANTINED; + case 5: return DEVICE_ADMISSION_STATE_RECOVERING; + case 6: return DEVICE_ADMISSION_STATE_REMOVED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DeviceAdmissionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeviceAdmissionState findValueByNumber(int number) { + return DeviceAdmissionState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(3); + } + + private static final DeviceAdmissionState[] VALUES = values(); + + public static DeviceAdmissionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DeviceAdmissionState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.DeviceAdmissionState) + } + + /** + * Protobuf enum {@code cmvr.api.SafetyBlockerScope} + */ + public enum SafetyBlockerScope + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SAFETY_BLOCKER_SCOPE_UNSPECIFIED = 0; + */ + SAFETY_BLOCKER_SCOPE_UNSPECIFIED(0), + /** + * SAFETY_BLOCKER_SCOPE_DEVICE = 1; + */ + SAFETY_BLOCKER_SCOPE_DEVICE(1), + /** + * SAFETY_BLOCKER_SCOPE_SYSTEM = 2; + */ + SAFETY_BLOCKER_SCOPE_SYSTEM(2), + UNRECOGNIZED(-1), + ; + + /** + * SAFETY_BLOCKER_SCOPE_UNSPECIFIED = 0; + */ + public static final int SAFETY_BLOCKER_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * SAFETY_BLOCKER_SCOPE_DEVICE = 1; + */ + public static final int SAFETY_BLOCKER_SCOPE_DEVICE_VALUE = 1; + /** + * SAFETY_BLOCKER_SCOPE_SYSTEM = 2; + */ + public static final int SAFETY_BLOCKER_SCOPE_SYSTEM_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SafetyBlockerScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SafetyBlockerScope forNumber(int value) { + switch (value) { + case 0: return SAFETY_BLOCKER_SCOPE_UNSPECIFIED; + case 1: return SAFETY_BLOCKER_SCOPE_DEVICE; + case 2: return SAFETY_BLOCKER_SCOPE_SYSTEM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SafetyBlockerScope> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SafetyBlockerScope findValueByNumber(int number) { + return SafetyBlockerScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(4); + } + + private static final SafetyBlockerScope[] VALUES = values(); + + public static SafetyBlockerScope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SafetyBlockerScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.SafetyBlockerScope) + } + + /** + * Protobuf enum {@code cmvr.api.SafetyRecoveryRequirement} + */ + public enum SafetyRecoveryRequirement + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED = 0; + */ + SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED(0), + /** + * SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY = 1; + */ + SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY(1), + /** + * SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH = 2; + */ + SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH(2), + /** + * SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED = 3; + */ + SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED(3), + /** + * SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED = 4; + */ + SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED(4), + UNRECOGNIZED(-1), + ; + + /** + * SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED = 0; + */ + public static final int SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED_VALUE = 0; + /** + * SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY = 1; + */ + public static final int SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY_VALUE = 1; + /** + * SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH = 2; + */ + public static final int SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH_VALUE = 2; + /** + * SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED = 3; + */ + public static final int SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED_VALUE = 3; + /** + * SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED = 4; + */ + public static final int SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SafetyRecoveryRequirement valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SafetyRecoveryRequirement forNumber(int value) { + switch (value) { + case 0: return SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED; + case 1: return SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY; + case 2: return SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH; + case 3: return SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED; + case 4: return SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SafetyRecoveryRequirement> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SafetyRecoveryRequirement findValueByNumber(int number) { + return SafetyRecoveryRequirement.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(5); + } + + private static final SafetyRecoveryRequirement[] VALUES = values(); + + public static SafetyRecoveryRequirement valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SafetyRecoveryRequirement(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.SafetyRecoveryRequirement) + } + + /** + * Protobuf enum {@code cmvr.api.SafetyOperationResult} + */ + public enum SafetyOperationResult + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SAFETY_OPERATION_RESULT_UNSPECIFIED = 0; + */ + SAFETY_OPERATION_RESULT_UNSPECIFIED(0), + /** + * SAFETY_OPERATION_RESULT_SUCCEEDED = 1; + */ + SAFETY_OPERATION_RESULT_SUCCEEDED(1), + /** + * SAFETY_OPERATION_RESULT_RECOVERED = 2; + */ + SAFETY_OPERATION_RESULT_RECOVERED(2), + /** + * SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED = 3; + */ + SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED(3), + /** + * SAFETY_OPERATION_RESULT_BLOCKER_REMAINS = 4; + */ + SAFETY_OPERATION_RESULT_BLOCKER_REMAINS(4), + /** + * SAFETY_OPERATION_RESULT_EPOCH_MISMATCH = 5; + */ + SAFETY_OPERATION_RESULT_EPOCH_MISMATCH(5), + /** + * SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER = 6; + */ + SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER(6), + /** + * SAFETY_OPERATION_RESULT_TIMED_OUT = 7; + */ + SAFETY_OPERATION_RESULT_TIMED_OUT(7), + /** + * SAFETY_OPERATION_RESULT_FAILED = 8; + */ + SAFETY_OPERATION_RESULT_FAILED(8), + UNRECOGNIZED(-1), + ; + + /** + * SAFETY_OPERATION_RESULT_UNSPECIFIED = 0; + */ + public static final int SAFETY_OPERATION_RESULT_UNSPECIFIED_VALUE = 0; + /** + * SAFETY_OPERATION_RESULT_SUCCEEDED = 1; + */ + public static final int SAFETY_OPERATION_RESULT_SUCCEEDED_VALUE = 1; + /** + * SAFETY_OPERATION_RESULT_RECOVERED = 2; + */ + public static final int SAFETY_OPERATION_RESULT_RECOVERED_VALUE = 2; + /** + * SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED = 3; + */ + public static final int SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED_VALUE = 3; + /** + * SAFETY_OPERATION_RESULT_BLOCKER_REMAINS = 4; + */ + public static final int SAFETY_OPERATION_RESULT_BLOCKER_REMAINS_VALUE = 4; + /** + * SAFETY_OPERATION_RESULT_EPOCH_MISMATCH = 5; + */ + public static final int SAFETY_OPERATION_RESULT_EPOCH_MISMATCH_VALUE = 5; + /** + * SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER = 6; + */ + public static final int SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER_VALUE = 6; + /** + * SAFETY_OPERATION_RESULT_TIMED_OUT = 7; + */ + public static final int SAFETY_OPERATION_RESULT_TIMED_OUT_VALUE = 7; + /** + * SAFETY_OPERATION_RESULT_FAILED = 8; + */ + public static final int SAFETY_OPERATION_RESULT_FAILED_VALUE = 8; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SafetyOperationResult valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SafetyOperationResult forNumber(int value) { + switch (value) { + case 0: return SAFETY_OPERATION_RESULT_UNSPECIFIED; + case 1: return SAFETY_OPERATION_RESULT_SUCCEEDED; + case 2: return SAFETY_OPERATION_RESULT_RECOVERED; + case 3: return SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED; + case 4: return SAFETY_OPERATION_RESULT_BLOCKER_REMAINS; + case 5: return SAFETY_OPERATION_RESULT_EPOCH_MISMATCH; + case 6: return SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER; + case 7: return SAFETY_OPERATION_RESULT_TIMED_OUT; + case 8: return SAFETY_OPERATION_RESULT_FAILED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SafetyOperationResult> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SafetyOperationResult findValueByNumber(int number) { + return SafetyOperationResult.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(6); + } + + private static final SafetyOperationResult[] VALUES = values(); + + public static SafetyOperationResult valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SafetyOperationResult(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.SafetyOperationResult) + } + + public interface DeviceIdListOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.DeviceIdList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string device_ids = 1; + * @return A list containing the deviceIds. + */ + java.util.List + getDeviceIdsList(); + /** + * repeated string device_ids = 1; + * @return The count of deviceIds. + */ + int getDeviceIdsCount(); + /** + * repeated string device_ids = 1; + * @param index The index of the element to return. + * @return The deviceIds at the given index. + */ + java.lang.String getDeviceIds(int index); + /** + * repeated string device_ids = 1; + * @param index The index of the value to return. + * @return The bytes of the deviceIds at the given index. + */ + com.google.protobuf.ByteString + getDeviceIdsBytes(int index); + } + /** + * Protobuf type {@code cmvr.api.DeviceIdList} + */ + public static final class DeviceIdList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.DeviceIdList) + DeviceIdListOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceIdList.newBuilder() to construct. + private DeviceIdList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceIdList() { + deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeviceIdList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceIdList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceIdList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.DeviceIdList.class, cmvr.api.SafetyCommand.DeviceIdList.Builder.class); + } + + public static final int DEVICE_IDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList deviceIds_; + /** + * repeated string device_ids = 1; + * @return A list containing the deviceIds. + */ + public com.google.protobuf.ProtocolStringList + getDeviceIdsList() { + return deviceIds_; + } + /** + * repeated string device_ids = 1; + * @return The count of deviceIds. + */ + public int getDeviceIdsCount() { + return deviceIds_.size(); + } + /** + * repeated string device_ids = 1; + * @param index The index of the element to return. + * @return The deviceIds at the given index. + */ + public java.lang.String getDeviceIds(int index) { + return deviceIds_.get(index); + } + /** + * repeated string device_ids = 1; + * @param index The index of the value to return. + * @return The bytes of the deviceIds at the given index. + */ + public com.google.protobuf.ByteString + getDeviceIdsBytes(int index) { + return deviceIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < deviceIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < deviceIds_.size(); i++) { + dataSize += computeStringSizeNoTag(deviceIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getDeviceIdsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.DeviceIdList)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.DeviceIdList other = (cmvr.api.SafetyCommand.DeviceIdList) obj; + + if (!getDeviceIdsList() + .equals(other.getDeviceIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDeviceIdsCount() > 0) { + hash = (37 * hash) + DEVICE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getDeviceIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.DeviceIdList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.DeviceIdList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.DeviceIdList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.DeviceIdList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.DeviceIdList) + cmvr.api.SafetyCommand.DeviceIdListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceIdList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceIdList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.DeviceIdList.class, cmvr.api.SafetyCommand.DeviceIdList.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.DeviceIdList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceIdList_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceIdList getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceIdList build() { + cmvr.api.SafetyCommand.DeviceIdList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceIdList buildPartial() { + cmvr.api.SafetyCommand.DeviceIdList result = new cmvr.api.SafetyCommand.DeviceIdList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + deviceIds_ = deviceIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deviceIds_ = deviceIds_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.DeviceIdList) { + return mergeFrom((cmvr.api.SafetyCommand.DeviceIdList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.DeviceIdList other) { + if (other == cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance()) return this; + if (!other.deviceIds_.isEmpty()) { + if (deviceIds_.isEmpty()) { + deviceIds_ = other.deviceIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeviceIdsIsMutable(); + deviceIds_.addAll(other.deviceIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeviceIdsIsMutable(); + deviceIds_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDeviceIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deviceIds_ = new com.google.protobuf.LazyStringArrayList(deviceIds_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string device_ids = 1; + * @return A list containing the deviceIds. + */ + public com.google.protobuf.ProtocolStringList + getDeviceIdsList() { + return deviceIds_.getUnmodifiableView(); + } + /** + * repeated string device_ids = 1; + * @return The count of deviceIds. + */ + public int getDeviceIdsCount() { + return deviceIds_.size(); + } + /** + * repeated string device_ids = 1; + * @param index The index of the element to return. + * @return The deviceIds at the given index. + */ + public java.lang.String getDeviceIds(int index) { + return deviceIds_.get(index); + } + /** + * repeated string device_ids = 1; + * @param index The index of the value to return. + * @return The bytes of the deviceIds at the given index. + */ + public com.google.protobuf.ByteString + getDeviceIdsBytes(int index) { + return deviceIds_.getByteString(index); + } + /** + * repeated string device_ids = 1; + * @param index The index to set the value at. + * @param value The deviceIds to set. + * @return This builder for chaining. + */ + public Builder setDeviceIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceIdsIsMutable(); + deviceIds_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string device_ids = 1; + * @param value The deviceIds to add. + * @return This builder for chaining. + */ + public Builder addDeviceIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceIdsIsMutable(); + deviceIds_.add(value); + onChanged(); + return this; + } + /** + * repeated string device_ids = 1; + * @param values The deviceIds to add. + * @return This builder for chaining. + */ + public Builder addAllDeviceIds( + java.lang.Iterable values) { + ensureDeviceIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deviceIds_); + onChanged(); + return this; + } + /** + * repeated string device_ids = 1; + * @return This builder for chaining. + */ + public Builder clearDeviceIds() { + deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string device_ids = 1; + * @param value The bytes of the deviceIds to add. + * @return This builder for chaining. + */ + public Builder addDeviceIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDeviceIdsIsMutable(); + deviceIds_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.DeviceIdList) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.DeviceIdList) + private static final cmvr.api.SafetyCommand.DeviceIdList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.DeviceIdList(); + } + + public static cmvr.api.SafetyCommand.DeviceIdList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceIdList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceIdList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SafetyScopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.SafetyScope) + com.google.protobuf.MessageOrBuilder { + + /** + * bool all_devices = 1; + * @return Whether the allDevices field is set. + */ + boolean hasAllDevices(); + /** + * bool all_devices = 1; + * @return The allDevices. + */ + boolean getAllDevices(); + + /** + * .cmvr.api.DeviceIdList devices = 2; + * @return Whether the devices field is set. + */ + boolean hasDevices(); + /** + * .cmvr.api.DeviceIdList devices = 2; + * @return The devices. + */ + cmvr.api.SafetyCommand.DeviceIdList getDevices(); + /** + * .cmvr.api.DeviceIdList devices = 2; + */ + cmvr.api.SafetyCommand.DeviceIdListOrBuilder getDevicesOrBuilder(); + + public cmvr.api.SafetyCommand.SafetyScope.TargetCase getTargetCase(); + } + /** + * Protobuf type {@code cmvr.api.SafetyScope} + */ + public static final class SafetyScope extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.SafetyScope) + SafetyScopeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SafetyScope.newBuilder() to construct. + private SafetyScope(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SafetyScope() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SafetyScope(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.SafetyScope.class, cmvr.api.SafetyCommand.SafetyScope.Builder.class); + } + + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ALL_DEVICES(1), + DEVICES(2), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 1: return ALL_DEVICES; + case 2: return DEVICES; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int ALL_DEVICES_FIELD_NUMBER = 1; + /** + * bool all_devices = 1; + * @return Whether the allDevices field is set. + */ + @java.lang.Override + public boolean hasAllDevices() { + return targetCase_ == 1; + } + /** + * bool all_devices = 1; + * @return The allDevices. + */ + @java.lang.Override + public boolean getAllDevices() { + if (targetCase_ == 1) { + return (java.lang.Boolean) target_; + } + return false; + } + + public static final int DEVICES_FIELD_NUMBER = 2; + /** + * .cmvr.api.DeviceIdList devices = 2; + * @return Whether the devices field is set. + */ + @java.lang.Override + public boolean hasDevices() { + return targetCase_ == 2; + } + /** + * .cmvr.api.DeviceIdList devices = 2; + * @return The devices. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceIdList getDevices() { + if (targetCase_ == 2) { + return (cmvr.api.SafetyCommand.DeviceIdList) target_; + } + return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance(); + } + /** + * .cmvr.api.DeviceIdList devices = 2; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceIdListOrBuilder getDevicesOrBuilder() { + if (targetCase_ == 2) { + return (cmvr.api.SafetyCommand.DeviceIdList) target_; + } + return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (targetCase_ == 1) { + output.writeBool( + 1, (boolean)((java.lang.Boolean) target_)); + } + if (targetCase_ == 2) { + output.writeMessage(2, (cmvr.api.SafetyCommand.DeviceIdList) target_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 1, (boolean)((java.lang.Boolean) target_)); + } + if (targetCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (cmvr.api.SafetyCommand.DeviceIdList) target_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.SafetyScope)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.SafetyScope other = (cmvr.api.SafetyCommand.SafetyScope) obj; + + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 1: + if (getAllDevices() + != other.getAllDevices()) return false; + break; + case 2: + if (!getDevices() + .equals(other.getDevices())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (targetCase_) { + case 1: + hash = (37 * hash) + ALL_DEVICES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllDevices()); + break; + case 2: + hash = (37 * hash) + DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getDevices().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.SafetyScope parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyScope parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyScope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyScope parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyScope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyScope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyScope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyScope parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyScope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyScope parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyScope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyScope parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.SafetyScope prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.SafetyScope} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.SafetyScope) + cmvr.api.SafetyCommand.SafetyScopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.SafetyScope.class, cmvr.api.SafetyCommand.SafetyScope.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.SafetyScope.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (devicesBuilder_ != null) { + devicesBuilder_.clear(); + } + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyScope_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyScope getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyScope build() { + cmvr.api.SafetyCommand.SafetyScope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyScope buildPartial() { + cmvr.api.SafetyCommand.SafetyScope result = new cmvr.api.SafetyCommand.SafetyScope(this); + if (targetCase_ == 1) { + result.target_ = target_; + } + if (targetCase_ == 2) { + if (devicesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = devicesBuilder_.build(); + } + } + result.targetCase_ = targetCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.SafetyScope) { + return mergeFrom((cmvr.api.SafetyCommand.SafetyScope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.SafetyScope other) { + if (other == cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance()) return this; + switch (other.getTargetCase()) { + case ALL_DEVICES: { + setAllDevices(other.getAllDevices()); + break; + } + case DEVICES: { + mergeDevices(other.getDevices()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + target_ = input.readBool(); + targetCase_ = 1; + break; + } // case 8 + case 18: { + input.readMessage( + getDevicesFieldBuilder().getBuilder(), + extensionRegistry); + targetCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + + /** + * bool all_devices = 1; + * @return Whether the allDevices field is set. + */ + public boolean hasAllDevices() { + return targetCase_ == 1; + } + /** + * bool all_devices = 1; + * @return The allDevices. + */ + public boolean getAllDevices() { + if (targetCase_ == 1) { + return (java.lang.Boolean) target_; + } + return false; + } + /** + * bool all_devices = 1; + * @param value The allDevices to set. + * @return This builder for chaining. + */ + public Builder setAllDevices(boolean value) { + targetCase_ = 1; + target_ = value; + onChanged(); + return this; + } + /** + * bool all_devices = 1; + * @return This builder for chaining. + */ + public Builder clearAllDevices() { + if (targetCase_ == 1) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.DeviceIdList, cmvr.api.SafetyCommand.DeviceIdList.Builder, cmvr.api.SafetyCommand.DeviceIdListOrBuilder> devicesBuilder_; + /** + * .cmvr.api.DeviceIdList devices = 2; + * @return Whether the devices field is set. + */ + @java.lang.Override + public boolean hasDevices() { + return targetCase_ == 2; + } + /** + * .cmvr.api.DeviceIdList devices = 2; + * @return The devices. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceIdList getDevices() { + if (devicesBuilder_ == null) { + if (targetCase_ == 2) { + return (cmvr.api.SafetyCommand.DeviceIdList) target_; + } + return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance(); + } else { + if (targetCase_ == 2) { + return devicesBuilder_.getMessage(); + } + return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance(); + } + } + /** + * .cmvr.api.DeviceIdList devices = 2; + */ + public Builder setDevices(cmvr.api.SafetyCommand.DeviceIdList value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + devicesBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + * .cmvr.api.DeviceIdList devices = 2; + */ + public Builder setDevices( + cmvr.api.SafetyCommand.DeviceIdList.Builder builderForValue) { + if (devicesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + devicesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 2; + return this; + } + /** + * .cmvr.api.DeviceIdList devices = 2; + */ + public Builder mergeDevices(cmvr.api.SafetyCommand.DeviceIdList value) { + if (devicesBuilder_ == null) { + if (targetCase_ == 2 && + target_ != cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance()) { + target_ = cmvr.api.SafetyCommand.DeviceIdList.newBuilder((cmvr.api.SafetyCommand.DeviceIdList) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 2) { + devicesBuilder_.mergeFrom(value); + } else { + devicesBuilder_.setMessage(value); + } + } + targetCase_ = 2; + return this; + } + /** + * .cmvr.api.DeviceIdList devices = 2; + */ + public Builder clearDevices() { + if (devicesBuilder_ == null) { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + } + devicesBuilder_.clear(); + } + return this; + } + /** + * .cmvr.api.DeviceIdList devices = 2; + */ + public cmvr.api.SafetyCommand.DeviceIdList.Builder getDevicesBuilder() { + return getDevicesFieldBuilder().getBuilder(); + } + /** + * .cmvr.api.DeviceIdList devices = 2; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceIdListOrBuilder getDevicesOrBuilder() { + if ((targetCase_ == 2) && (devicesBuilder_ != null)) { + return devicesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 2) { + return (cmvr.api.SafetyCommand.DeviceIdList) target_; + } + return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance(); + } + } + /** + * .cmvr.api.DeviceIdList devices = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.DeviceIdList, cmvr.api.SafetyCommand.DeviceIdList.Builder, cmvr.api.SafetyCommand.DeviceIdListOrBuilder> + getDevicesFieldBuilder() { + if (devicesBuilder_ == null) { + if (!(targetCase_ == 2)) { + target_ = cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance(); + } + devicesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.DeviceIdList, cmvr.api.SafetyCommand.DeviceIdList.Builder, cmvr.api.SafetyCommand.DeviceIdListOrBuilder>( + (cmvr.api.SafetyCommand.DeviceIdList) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 2; + onChanged();; + return devicesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.SafetyScope) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.SafetyScope) + private static final cmvr.api.SafetyCommand.SafetyScope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.SafetyScope(); + } + + public static cmvr.api.SafetyCommand.SafetyScope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetyScope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyScope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SafetyBlockerInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.SafetyBlockerInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * .cmvr.api.CommandReasonCode reason_code = 1; + * @return The enum numeric value on the wire for reasonCode. + */ + int getReasonCodeValue(); + /** + * .cmvr.api.CommandReasonCode reason_code = 1; + * @return The reasonCode. + */ + cmvr.api.Common.CommandReasonCode getReasonCode(); + + /** + * .cmvr.api.SafetyBlockerScope scope = 2; + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * .cmvr.api.SafetyBlockerScope scope = 2; + * @return The scope. + */ + cmvr.api.SafetyCommand.SafetyBlockerScope getScope(); + + /** + * .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3; + * @return The enum numeric value on the wire for recoveryRequirement. + */ + int getRecoveryRequirementValue(); + /** + * .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3; + * @return The recoveryRequirement. + */ + cmvr.api.SafetyCommand.SafetyRecoveryRequirement getRecoveryRequirement(); + + /** + * string source_id = 4; + * @return The sourceId. + */ + java.lang.String getSourceId(); + /** + * string source_id = 4; + * @return The bytes for sourceId. + */ + com.google.protobuf.ByteString + getSourceIdBytes(); + + /** + * string operation_id = 5; + * @return The operationId. + */ + java.lang.String getOperationId(); + /** + * string operation_id = 5; + * @return The bytes for operationId. + */ + com.google.protobuf.ByteString + getOperationIdBytes(); + + /** + * uint64 first_observed_at_unix_ms = 6; + * @return The firstObservedAtUnixMs. + */ + long getFirstObservedAtUnixMs(); + + /** + * uint64 last_observed_at_unix_ms = 7; + * @return The lastObservedAtUnixMs. + */ + long getLastObservedAtUnixMs(); + } + /** + * Protobuf type {@code cmvr.api.SafetyBlockerInfo} + */ + public static final class SafetyBlockerInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.SafetyBlockerInfo) + SafetyBlockerInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use SafetyBlockerInfo.newBuilder() to construct. + private SafetyBlockerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SafetyBlockerInfo() { + reasonCode_ = 0; + scope_ = 0; + recoveryRequirement_ = 0; + sourceId_ = ""; + operationId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SafetyBlockerInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyBlockerInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyBlockerInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.SafetyBlockerInfo.class, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder.class); + } + + public static final int REASON_CODE_FIELD_NUMBER = 1; + private int reasonCode_; + /** + * .cmvr.api.CommandReasonCode reason_code = 1; + * @return The enum numeric value on the wire for reasonCode. + */ + @java.lang.Override public int getReasonCodeValue() { + return reasonCode_; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 1; + * @return The reasonCode. + */ + @java.lang.Override public cmvr.api.Common.CommandReasonCode getReasonCode() { + @SuppressWarnings("deprecation") + cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_); + return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result; + } + + public static final int SCOPE_FIELD_NUMBER = 2; + private int scope_; + /** + * .cmvr.api.SafetyBlockerScope scope = 2; + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override public int getScopeValue() { + return scope_; + } + /** + * .cmvr.api.SafetyBlockerScope scope = 2; + * @return The scope. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyBlockerScope getScope() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyBlockerScope result = cmvr.api.SafetyCommand.SafetyBlockerScope.valueOf(scope_); + return result == null ? cmvr.api.SafetyCommand.SafetyBlockerScope.UNRECOGNIZED : result; + } + + public static final int RECOVERY_REQUIREMENT_FIELD_NUMBER = 3; + private int recoveryRequirement_; + /** + * .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3; + * @return The enum numeric value on the wire for recoveryRequirement. + */ + @java.lang.Override public int getRecoveryRequirementValue() { + return recoveryRequirement_; + } + /** + * .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3; + * @return The recoveryRequirement. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyRecoveryRequirement getRecoveryRequirement() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyRecoveryRequirement result = cmvr.api.SafetyCommand.SafetyRecoveryRequirement.valueOf(recoveryRequirement_); + return result == null ? cmvr.api.SafetyCommand.SafetyRecoveryRequirement.UNRECOGNIZED : result; + } + + public static final int SOURCE_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object sourceId_; + /** + * string source_id = 4; + * @return The sourceId. + */ + @java.lang.Override + public java.lang.String getSourceId() { + java.lang.Object ref = sourceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceId_ = s; + return s; + } + } + /** + * string source_id = 4; + * @return The bytes for sourceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSourceIdBytes() { + java.lang.Object ref = sourceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object operationId_; + /** + * string operation_id = 5; + * @return The operationId. + */ + @java.lang.Override + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + /** + * string operation_id = 5; + * @return The bytes for operationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIRST_OBSERVED_AT_UNIX_MS_FIELD_NUMBER = 6; + private long firstObservedAtUnixMs_; + /** + * uint64 first_observed_at_unix_ms = 6; + * @return The firstObservedAtUnixMs. + */ + @java.lang.Override + public long getFirstObservedAtUnixMs() { + return firstObservedAtUnixMs_; + } + + public static final int LAST_OBSERVED_AT_UNIX_MS_FIELD_NUMBER = 7; + private long lastObservedAtUnixMs_; + /** + * uint64 last_observed_at_unix_ms = 7; + * @return The lastObservedAtUnixMs. + */ + @java.lang.Override + public long getLastObservedAtUnixMs() { + return lastObservedAtUnixMs_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, reasonCode_); + } + if (scope_ != cmvr.api.SafetyCommand.SafetyBlockerScope.SAFETY_BLOCKER_SCOPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, scope_); + } + if (recoveryRequirement_ != cmvr.api.SafetyCommand.SafetyRecoveryRequirement.SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED.getNumber()) { + output.writeEnum(3, recoveryRequirement_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, operationId_); + } + if (firstObservedAtUnixMs_ != 0L) { + output.writeUInt64(6, firstObservedAtUnixMs_); + } + if (lastObservedAtUnixMs_ != 0L) { + output.writeUInt64(7, lastObservedAtUnixMs_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, reasonCode_); + } + if (scope_ != cmvr.api.SafetyCommand.SafetyBlockerScope.SAFETY_BLOCKER_SCOPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, scope_); + } + if (recoveryRequirement_ != cmvr.api.SafetyCommand.SafetyRecoveryRequirement.SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, recoveryRequirement_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, operationId_); + } + if (firstObservedAtUnixMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, firstObservedAtUnixMs_); + } + if (lastObservedAtUnixMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(7, lastObservedAtUnixMs_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.SafetyBlockerInfo)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.SafetyBlockerInfo other = (cmvr.api.SafetyCommand.SafetyBlockerInfo) obj; + + if (reasonCode_ != other.reasonCode_) return false; + if (scope_ != other.scope_) return false; + if (recoveryRequirement_ != other.recoveryRequirement_) return false; + if (!getSourceId() + .equals(other.getSourceId())) return false; + if (!getOperationId() + .equals(other.getOperationId())) return false; + if (getFirstObservedAtUnixMs() + != other.getFirstObservedAtUnixMs()) return false; + if (getLastObservedAtUnixMs() + != other.getLastObservedAtUnixMs()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REASON_CODE_FIELD_NUMBER; + hash = (53 * hash) + reasonCode_; + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (37 * hash) + RECOVERY_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + recoveryRequirement_; + hash = (37 * hash) + SOURCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSourceId().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + FIRST_OBSERVED_AT_UNIX_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFirstObservedAtUnixMs()); + hash = (37 * hash) + LAST_OBSERVED_AT_UNIX_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastObservedAtUnixMs()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.SafetyBlockerInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.SafetyBlockerInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.SafetyBlockerInfo) + cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyBlockerInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyBlockerInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.SafetyBlockerInfo.class, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.SafetyBlockerInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + reasonCode_ = 0; + + scope_ = 0; + + recoveryRequirement_ = 0; + + sourceId_ = ""; + + operationId_ = ""; + + firstObservedAtUnixMs_ = 0L; + + lastObservedAtUnixMs_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyBlockerInfo_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyBlockerInfo getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.SafetyBlockerInfo.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyBlockerInfo build() { + cmvr.api.SafetyCommand.SafetyBlockerInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyBlockerInfo buildPartial() { + cmvr.api.SafetyCommand.SafetyBlockerInfo result = new cmvr.api.SafetyCommand.SafetyBlockerInfo(this); + result.reasonCode_ = reasonCode_; + result.scope_ = scope_; + result.recoveryRequirement_ = recoveryRequirement_; + result.sourceId_ = sourceId_; + result.operationId_ = operationId_; + result.firstObservedAtUnixMs_ = firstObservedAtUnixMs_; + result.lastObservedAtUnixMs_ = lastObservedAtUnixMs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.SafetyBlockerInfo) { + return mergeFrom((cmvr.api.SafetyCommand.SafetyBlockerInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.SafetyBlockerInfo other) { + if (other == cmvr.api.SafetyCommand.SafetyBlockerInfo.getDefaultInstance()) return this; + if (other.reasonCode_ != 0) { + setReasonCodeValue(other.getReasonCodeValue()); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.recoveryRequirement_ != 0) { + setRecoveryRequirementValue(other.getRecoveryRequirementValue()); + } + if (!other.getSourceId().isEmpty()) { + sourceId_ = other.sourceId_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (other.getFirstObservedAtUnixMs() != 0L) { + setFirstObservedAtUnixMs(other.getFirstObservedAtUnixMs()); + } + if (other.getLastObservedAtUnixMs() != 0L) { + setLastObservedAtUnixMs(other.getLastObservedAtUnixMs()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + reasonCode_ = input.readEnum(); + + break; + } // case 8 + case 16: { + scope_ = input.readEnum(); + + break; + } // case 16 + case 24: { + recoveryRequirement_ = input.readEnum(); + + break; + } // case 24 + case 34: { + sourceId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + firstObservedAtUnixMs_ = input.readUInt64(); + + break; + } // case 48 + case 56: { + lastObservedAtUnixMs_ = input.readUInt64(); + + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCode_ = 0; + /** + * .cmvr.api.CommandReasonCode reason_code = 1; + * @return The enum numeric value on the wire for reasonCode. + */ + @java.lang.Override public int getReasonCodeValue() { + return reasonCode_; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 1; + * @param value The enum numeric value on the wire for reasonCode to set. + * @return This builder for chaining. + */ + public Builder setReasonCodeValue(int value) { + + reasonCode_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 1; + * @return The reasonCode. + */ + @java.lang.Override + public cmvr.api.Common.CommandReasonCode getReasonCode() { + @SuppressWarnings("deprecation") + cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_); + return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 1; + * @param value The reasonCode to set. + * @return This builder for chaining. + */ + public Builder setReasonCode(cmvr.api.Common.CommandReasonCode value) { + if (value == null) { + throw new NullPointerException(); + } + + reasonCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 1; + * @return This builder for chaining. + */ + public Builder clearReasonCode() { + + reasonCode_ = 0; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * .cmvr.api.SafetyBlockerScope scope = 2; + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override public int getScopeValue() { + return scope_; + } + /** + * .cmvr.api.SafetyBlockerScope scope = 2; + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + + scope_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyBlockerScope scope = 2; + * @return The scope. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyBlockerScope getScope() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyBlockerScope result = cmvr.api.SafetyCommand.SafetyBlockerScope.valueOf(scope_); + return result == null ? cmvr.api.SafetyCommand.SafetyBlockerScope.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyBlockerScope scope = 2; + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(cmvr.api.SafetyCommand.SafetyBlockerScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyBlockerScope scope = 2; + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + private int recoveryRequirement_ = 0; + /** + * .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3; + * @return The enum numeric value on the wire for recoveryRequirement. + */ + @java.lang.Override public int getRecoveryRequirementValue() { + return recoveryRequirement_; + } + /** + * .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3; + * @param value The enum numeric value on the wire for recoveryRequirement to set. + * @return This builder for chaining. + */ + public Builder setRecoveryRequirementValue(int value) { + + recoveryRequirement_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3; + * @return The recoveryRequirement. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyRecoveryRequirement getRecoveryRequirement() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyRecoveryRequirement result = cmvr.api.SafetyCommand.SafetyRecoveryRequirement.valueOf(recoveryRequirement_); + return result == null ? cmvr.api.SafetyCommand.SafetyRecoveryRequirement.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3; + * @param value The recoveryRequirement to set. + * @return This builder for chaining. + */ + public Builder setRecoveryRequirement(cmvr.api.SafetyCommand.SafetyRecoveryRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + + recoveryRequirement_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3; + * @return This builder for chaining. + */ + public Builder clearRecoveryRequirement() { + + recoveryRequirement_ = 0; + onChanged(); + return this; + } + + private java.lang.Object sourceId_ = ""; + /** + * string source_id = 4; + * @return The sourceId. + */ + public java.lang.String getSourceId() { + java.lang.Object ref = sourceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string source_id = 4; + * @return The bytes for sourceId. + */ + public com.google.protobuf.ByteString + getSourceIdBytes() { + java.lang.Object ref = sourceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string source_id = 4; + * @param value The sourceId to set. + * @return This builder for chaining. + */ + public Builder setSourceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sourceId_ = value; + onChanged(); + return this; + } + /** + * string source_id = 4; + * @return This builder for chaining. + */ + public Builder clearSourceId() { + + sourceId_ = getDefaultInstance().getSourceId(); + onChanged(); + return this; + } + /** + * string source_id = 4; + * @param value The bytes for sourceId to set. + * @return This builder for chaining. + */ + public Builder setSourceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourceId_ = value; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + * string operation_id = 5; + * @return The operationId. + */ + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string operation_id = 5; + * @return The bytes for operationId. + */ + public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string operation_id = 5; + * @param value The operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + * string operation_id = 5; + * @return This builder for chaining. + */ + public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + * string operation_id = 5; + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private long firstObservedAtUnixMs_ ; + /** + * uint64 first_observed_at_unix_ms = 6; + * @return The firstObservedAtUnixMs. + */ + @java.lang.Override + public long getFirstObservedAtUnixMs() { + return firstObservedAtUnixMs_; + } + /** + * uint64 first_observed_at_unix_ms = 6; + * @param value The firstObservedAtUnixMs to set. + * @return This builder for chaining. + */ + public Builder setFirstObservedAtUnixMs(long value) { + + firstObservedAtUnixMs_ = value; + onChanged(); + return this; + } + /** + * uint64 first_observed_at_unix_ms = 6; + * @return This builder for chaining. + */ + public Builder clearFirstObservedAtUnixMs() { + + firstObservedAtUnixMs_ = 0L; + onChanged(); + return this; + } + + private long lastObservedAtUnixMs_ ; + /** + * uint64 last_observed_at_unix_ms = 7; + * @return The lastObservedAtUnixMs. + */ + @java.lang.Override + public long getLastObservedAtUnixMs() { + return lastObservedAtUnixMs_; + } + /** + * uint64 last_observed_at_unix_ms = 7; + * @param value The lastObservedAtUnixMs to set. + * @return This builder for chaining. + */ + public Builder setLastObservedAtUnixMs(long value) { + + lastObservedAtUnixMs_ = value; + onChanged(); + return this; + } + /** + * uint64 last_observed_at_unix_ms = 7; + * @return This builder for chaining. + */ + public Builder clearLastObservedAtUnixMs() { + + lastObservedAtUnixMs_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.SafetyBlockerInfo) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.SafetyBlockerInfo) + private static final cmvr.api.SafetyCommand.SafetyBlockerInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.SafetyBlockerInfo(); + } + + public static cmvr.api.SafetyCommand.SafetyBlockerInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetyBlockerInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyBlockerInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceSafetyStateInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.DeviceSafetyStateInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string device_id = 1; + * @return The deviceId. + */ + java.lang.String getDeviceId(); + /** + * string device_id = 1; + * @return The bytes for deviceId. + */ + com.google.protobuf.ByteString + getDeviceIdBytes(); + + /** + * string device_kind = 2; + * @return The deviceKind. + */ + java.lang.String getDeviceKind(); + /** + * string device_kind = 2; + * @return The bytes for deviceKind. + */ + com.google.protobuf.ByteString + getDeviceKindBytes(); + + /** + * string policy_family = 3; + * @return The policyFamily. + */ + java.lang.String getPolicyFamily(); + /** + * string policy_family = 3; + * @return The bytes for policyFamily. + */ + com.google.protobuf.ByteString + getPolicyFamilyBytes(); + + /** + * string lifecycle_state = 4; + * @return The lifecycleState. + */ + java.lang.String getLifecycleState(); + /** + * string lifecycle_state = 4; + * @return The bytes for lifecycleState. + */ + com.google.protobuf.ByteString + getLifecycleStateBytes(); + + /** + * string health_state = 5; + * @return The healthState. + */ + java.lang.String getHealthState(); + /** + * string health_state = 5; + * @return The bytes for healthState. + */ + com.google.protobuf.ByteString + getHealthStateBytes(); + + /** + * .cmvr.api.DeviceAdmissionState admission_state = 6; + * @return The enum numeric value on the wire for admissionState. + */ + int getAdmissionStateValue(); + /** + * .cmvr.api.DeviceAdmissionState admission_state = 6; + * @return The admissionState. + */ + cmvr.api.SafetyCommand.DeviceAdmissionState getAdmissionState(); + + /** + * .cmvr.api.SafetyCondition condition = 7; + * @return The enum numeric value on the wire for condition. + */ + int getConditionValue(); + /** + * .cmvr.api.SafetyCondition condition = 7; + * @return The condition. + */ + cmvr.api.SafetyCommand.SafetyCondition getCondition(); + + /** + * bool has_sample = 8; + * @return The hasSample. + */ + boolean getHasSample(); + + /** + * bool snapshot_fresh = 9; + * @return The snapshotFresh. + */ + boolean getSnapshotFresh(); + + /** + * uint64 sample_age_ms = 10; + * @return The sampleAgeMs. + */ + long getSampleAgeMs(); + + /** + * uint64 sample_sequence = 11; + * @return The sampleSequence. + */ + long getSampleSequence(); + + /** + * uint64 observed_at_unix_ms = 12; + * @return The observedAtUnixMs. + */ + long getObservedAtUnixMs(); + + /** + * uint64 device_generation = 13; + * @return The deviceGeneration. + */ + long getDeviceGeneration(); + + /** + * .cmvr.api.SafetyTriState connected = 14; + * @return The enum numeric value on the wire for connected. + */ + int getConnectedValue(); + /** + * .cmvr.api.SafetyTriState connected = 14; + * @return The connected. + */ + cmvr.api.SafetyCommand.SafetyTriState getConnected(); + + /** + * .cmvr.api.SafetyTriState operational_ready = 15; + * @return The enum numeric value on the wire for operationalReady. + */ + int getOperationalReadyValue(); + /** + * .cmvr.api.SafetyTriState operational_ready = 15; + * @return The operationalReady. + */ + cmvr.api.SafetyCommand.SafetyTriState getOperationalReady(); + + /** + * .cmvr.api.SafetyTriState quiescent = 16; + * @return The enum numeric value on the wire for quiescent. + */ + int getQuiescentValue(); + /** + * .cmvr.api.SafetyTriState quiescent = 16; + * @return The quiescent. + */ + cmvr.api.SafetyCommand.SafetyTriState getQuiescent(); + + /** + * .cmvr.api.SafetyTriState motion_active = 17; + * @return The enum numeric value on the wire for motionActive. + */ + int getMotionActiveValue(); + /** + * .cmvr.api.SafetyTriState motion_active = 17; + * @return The motionActive. + */ + cmvr.api.SafetyCommand.SafetyTriState getMotionActive(); + + /** + * .cmvr.api.SafetyTriState actuator_enabled = 18; + * @return The enum numeric value on the wire for actuatorEnabled. + */ + int getActuatorEnabledValue(); + /** + * .cmvr.api.SafetyTriState actuator_enabled = 18; + * @return The actuatorEnabled. + */ + cmvr.api.SafetyCommand.SafetyTriState getActuatorEnabled(); + + /** + * .cmvr.api.SafetyTriState emergency_stop_active = 19; + * @return The enum numeric value on the wire for emergencyStopActive. + */ + int getEmergencyStopActiveValue(); + /** + * .cmvr.api.SafetyTriState emergency_stop_active = 19; + * @return The emergencyStopActive. + */ + cmvr.api.SafetyCommand.SafetyTriState getEmergencyStopActive(); + + /** + * .cmvr.api.SafetyTriState protective_stop_active = 20; + * @return The enum numeric value on the wire for protectiveStopActive. + */ + int getProtectiveStopActiveValue(); + /** + * .cmvr.api.SafetyTriState protective_stop_active = 20; + * @return The protectiveStopActive. + */ + cmvr.api.SafetyCommand.SafetyTriState getProtectiveStopActive(); + + /** + * .cmvr.api.SafetyTriState fault_active = 21; + * @return The enum numeric value on the wire for faultActive. + */ + int getFaultActiveValue(); + /** + * .cmvr.api.SafetyTriState fault_active = 21; + * @return The faultActive. + */ + cmvr.api.SafetyCommand.SafetyTriState getFaultActive(); + + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + java.util.List + getBlockersList(); + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + cmvr.api.SafetyCommand.SafetyBlockerInfo getBlockers(int index); + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + int getBlockersCount(); + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + java.util.List + getBlockersOrBuilderList(); + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder getBlockersOrBuilder( + int index); + } + /** + * Protobuf type {@code cmvr.api.DeviceSafetyStateInfo} + */ + public static final class DeviceSafetyStateInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.DeviceSafetyStateInfo) + DeviceSafetyStateInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceSafetyStateInfo.newBuilder() to construct. + private DeviceSafetyStateInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceSafetyStateInfo() { + deviceId_ = ""; + deviceKind_ = ""; + policyFamily_ = ""; + lifecycleState_ = ""; + healthState_ = ""; + admissionState_ = 0; + condition_ = 0; + connected_ = 0; + operationalReady_ = 0; + quiescent_ = 0; + motionActive_ = 0; + actuatorEnabled_ = 0; + emergencyStopActive_ = 0; + protectiveStopActive_ = 0; + faultActive_ = 0; + blockers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeviceSafetyStateInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceSafetyStateInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.DeviceSafetyStateInfo.class, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder.class); + } + + public static final int DEVICE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object deviceId_; + /** + * string device_id = 1; + * @return The deviceId. + */ + @java.lang.Override + public java.lang.String getDeviceId() { + java.lang.Object ref = deviceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceId_ = s; + return s; + } + } + /** + * string device_id = 1; + * @return The bytes for deviceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceIdBytes() { + java.lang.Object ref = deviceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_KIND_FIELD_NUMBER = 2; + private volatile java.lang.Object deviceKind_; + /** + * string device_kind = 2; + * @return The deviceKind. + */ + @java.lang.Override + public java.lang.String getDeviceKind() { + java.lang.Object ref = deviceKind_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceKind_ = s; + return s; + } + } + /** + * string device_kind = 2; + * @return The bytes for deviceKind. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceKindBytes() { + java.lang.Object ref = deviceKind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_FAMILY_FIELD_NUMBER = 3; + private volatile java.lang.Object policyFamily_; + /** + * string policy_family = 3; + * @return The policyFamily. + */ + @java.lang.Override + public java.lang.String getPolicyFamily() { + java.lang.Object ref = policyFamily_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyFamily_ = s; + return s; + } + } + /** + * string policy_family = 3; + * @return The bytes for policyFamily. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPolicyFamilyBytes() { + java.lang.Object ref = policyFamily_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyFamily_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIFECYCLE_STATE_FIELD_NUMBER = 4; + private volatile java.lang.Object lifecycleState_; + /** + * string lifecycle_state = 4; + * @return The lifecycleState. + */ + @java.lang.Override + public java.lang.String getLifecycleState() { + java.lang.Object ref = lifecycleState_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lifecycleState_ = s; + return s; + } + } + /** + * string lifecycle_state = 4; + * @return The bytes for lifecycleState. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLifecycleStateBytes() { + java.lang.Object ref = lifecycleState_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lifecycleState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEALTH_STATE_FIELD_NUMBER = 5; + private volatile java.lang.Object healthState_; + /** + * string health_state = 5; + * @return The healthState. + */ + @java.lang.Override + public java.lang.String getHealthState() { + java.lang.Object ref = healthState_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + healthState_ = s; + return s; + } + } + /** + * string health_state = 5; + * @return The bytes for healthState. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHealthStateBytes() { + java.lang.Object ref = healthState_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + healthState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADMISSION_STATE_FIELD_NUMBER = 6; + private int admissionState_; + /** + * .cmvr.api.DeviceAdmissionState admission_state = 6; + * @return The enum numeric value on the wire for admissionState. + */ + @java.lang.Override public int getAdmissionStateValue() { + return admissionState_; + } + /** + * .cmvr.api.DeviceAdmissionState admission_state = 6; + * @return The admissionState. + */ + @java.lang.Override public cmvr.api.SafetyCommand.DeviceAdmissionState getAdmissionState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(admissionState_); + return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result; + } + + public static final int CONDITION_FIELD_NUMBER = 7; + private int condition_; + /** + * .cmvr.api.SafetyCondition condition = 7; + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override public int getConditionValue() { + return condition_; + } + /** + * .cmvr.api.SafetyCondition condition = 7; + * @return The condition. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyCondition getCondition() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyCondition result = cmvr.api.SafetyCommand.SafetyCondition.valueOf(condition_); + return result == null ? cmvr.api.SafetyCommand.SafetyCondition.UNRECOGNIZED : result; + } + + public static final int HAS_SAMPLE_FIELD_NUMBER = 8; + private boolean hasSample_; + /** + * bool has_sample = 8; + * @return The hasSample. + */ + @java.lang.Override + public boolean getHasSample() { + return hasSample_; + } + + public static final int SNAPSHOT_FRESH_FIELD_NUMBER = 9; + private boolean snapshotFresh_; + /** + * bool snapshot_fresh = 9; + * @return The snapshotFresh. + */ + @java.lang.Override + public boolean getSnapshotFresh() { + return snapshotFresh_; + } + + public static final int SAMPLE_AGE_MS_FIELD_NUMBER = 10; + private long sampleAgeMs_; + /** + * uint64 sample_age_ms = 10; + * @return The sampleAgeMs. + */ + @java.lang.Override + public long getSampleAgeMs() { + return sampleAgeMs_; + } + + public static final int SAMPLE_SEQUENCE_FIELD_NUMBER = 11; + private long sampleSequence_; + /** + * uint64 sample_sequence = 11; + * @return The sampleSequence. + */ + @java.lang.Override + public long getSampleSequence() { + return sampleSequence_; + } + + public static final int OBSERVED_AT_UNIX_MS_FIELD_NUMBER = 12; + private long observedAtUnixMs_; + /** + * uint64 observed_at_unix_ms = 12; + * @return The observedAtUnixMs. + */ + @java.lang.Override + public long getObservedAtUnixMs() { + return observedAtUnixMs_; + } + + public static final int DEVICE_GENERATION_FIELD_NUMBER = 13; + private long deviceGeneration_; + /** + * uint64 device_generation = 13; + * @return The deviceGeneration. + */ + @java.lang.Override + public long getDeviceGeneration() { + return deviceGeneration_; + } + + public static final int CONNECTED_FIELD_NUMBER = 14; + private int connected_; + /** + * .cmvr.api.SafetyTriState connected = 14; + * @return The enum numeric value on the wire for connected. + */ + @java.lang.Override public int getConnectedValue() { + return connected_; + } + /** + * .cmvr.api.SafetyTriState connected = 14; + * @return The connected. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getConnected() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(connected_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + + public static final int OPERATIONAL_READY_FIELD_NUMBER = 15; + private int operationalReady_; + /** + * .cmvr.api.SafetyTriState operational_ready = 15; + * @return The enum numeric value on the wire for operationalReady. + */ + @java.lang.Override public int getOperationalReadyValue() { + return operationalReady_; + } + /** + * .cmvr.api.SafetyTriState operational_ready = 15; + * @return The operationalReady. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getOperationalReady() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(operationalReady_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + + public static final int QUIESCENT_FIELD_NUMBER = 16; + private int quiescent_; + /** + * .cmvr.api.SafetyTriState quiescent = 16; + * @return The enum numeric value on the wire for quiescent. + */ + @java.lang.Override public int getQuiescentValue() { + return quiescent_; + } + /** + * .cmvr.api.SafetyTriState quiescent = 16; + * @return The quiescent. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getQuiescent() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(quiescent_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + + public static final int MOTION_ACTIVE_FIELD_NUMBER = 17; + private int motionActive_; + /** + * .cmvr.api.SafetyTriState motion_active = 17; + * @return The enum numeric value on the wire for motionActive. + */ + @java.lang.Override public int getMotionActiveValue() { + return motionActive_; + } + /** + * .cmvr.api.SafetyTriState motion_active = 17; + * @return The motionActive. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getMotionActive() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(motionActive_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + + public static final int ACTUATOR_ENABLED_FIELD_NUMBER = 18; + private int actuatorEnabled_; + /** + * .cmvr.api.SafetyTriState actuator_enabled = 18; + * @return The enum numeric value on the wire for actuatorEnabled. + */ + @java.lang.Override public int getActuatorEnabledValue() { + return actuatorEnabled_; + } + /** + * .cmvr.api.SafetyTriState actuator_enabled = 18; + * @return The actuatorEnabled. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getActuatorEnabled() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(actuatorEnabled_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + + public static final int EMERGENCY_STOP_ACTIVE_FIELD_NUMBER = 19; + private int emergencyStopActive_; + /** + * .cmvr.api.SafetyTriState emergency_stop_active = 19; + * @return The enum numeric value on the wire for emergencyStopActive. + */ + @java.lang.Override public int getEmergencyStopActiveValue() { + return emergencyStopActive_; + } + /** + * .cmvr.api.SafetyTriState emergency_stop_active = 19; + * @return The emergencyStopActive. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getEmergencyStopActive() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(emergencyStopActive_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + + public static final int PROTECTIVE_STOP_ACTIVE_FIELD_NUMBER = 20; + private int protectiveStopActive_; + /** + * .cmvr.api.SafetyTriState protective_stop_active = 20; + * @return The enum numeric value on the wire for protectiveStopActive. + */ + @java.lang.Override public int getProtectiveStopActiveValue() { + return protectiveStopActive_; + } + /** + * .cmvr.api.SafetyTriState protective_stop_active = 20; + * @return The protectiveStopActive. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getProtectiveStopActive() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(protectiveStopActive_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + + public static final int FAULT_ACTIVE_FIELD_NUMBER = 21; + private int faultActive_; + /** + * .cmvr.api.SafetyTriState fault_active = 21; + * @return The enum numeric value on the wire for faultActive. + */ + @java.lang.Override public int getFaultActiveValue() { + return faultActive_; + } + /** + * .cmvr.api.SafetyTriState fault_active = 21; + * @return The faultActive. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getFaultActive() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(faultActive_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + + public static final int BLOCKERS_FIELD_NUMBER = 22; + private java.util.List blockers_; + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + @java.lang.Override + public java.util.List getBlockersList() { + return blockers_; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + @java.lang.Override + public java.util.List + getBlockersOrBuilderList() { + return blockers_; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + @java.lang.Override + public int getBlockersCount() { + return blockers_.size(); + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyBlockerInfo getBlockers(int index) { + return blockers_.get(index); + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder getBlockersOrBuilder( + int index) { + return blockers_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceKind_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceKind_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyFamily_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, policyFamily_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleState_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lifecycleState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthState_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, healthState_); + } + if (admissionState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, admissionState_); + } + if (condition_ != cmvr.api.SafetyCommand.SafetyCondition.SAFETY_CONDITION_UNKNOWN.getNumber()) { + output.writeEnum(7, condition_); + } + if (hasSample_ != false) { + output.writeBool(8, hasSample_); + } + if (snapshotFresh_ != false) { + output.writeBool(9, snapshotFresh_); + } + if (sampleAgeMs_ != 0L) { + output.writeUInt64(10, sampleAgeMs_); + } + if (sampleSequence_ != 0L) { + output.writeUInt64(11, sampleSequence_); + } + if (observedAtUnixMs_ != 0L) { + output.writeUInt64(12, observedAtUnixMs_); + } + if (deviceGeneration_ != 0L) { + output.writeUInt64(13, deviceGeneration_); + } + if (connected_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + output.writeEnum(14, connected_); + } + if (operationalReady_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + output.writeEnum(15, operationalReady_); + } + if (quiescent_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + output.writeEnum(16, quiescent_); + } + if (motionActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + output.writeEnum(17, motionActive_); + } + if (actuatorEnabled_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + output.writeEnum(18, actuatorEnabled_); + } + if (emergencyStopActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + output.writeEnum(19, emergencyStopActive_); + } + if (protectiveStopActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + output.writeEnum(20, protectiveStopActive_); + } + if (faultActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + output.writeEnum(21, faultActive_); + } + for (int i = 0; i < blockers_.size(); i++) { + output.writeMessage(22, blockers_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceKind_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceKind_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyFamily_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyFamily_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleState_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lifecycleState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthState_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, healthState_); + } + if (admissionState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, admissionState_); + } + if (condition_ != cmvr.api.SafetyCommand.SafetyCondition.SAFETY_CONDITION_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, condition_); + } + if (hasSample_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, hasSample_); + } + if (snapshotFresh_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, snapshotFresh_); + } + if (sampleAgeMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(10, sampleAgeMs_); + } + if (sampleSequence_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(11, sampleSequence_); + } + if (observedAtUnixMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(12, observedAtUnixMs_); + } + if (deviceGeneration_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(13, deviceGeneration_); + } + if (connected_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, connected_); + } + if (operationalReady_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, operationalReady_); + } + if (quiescent_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(16, quiescent_); + } + if (motionActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, motionActive_); + } + if (actuatorEnabled_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(18, actuatorEnabled_); + } + if (emergencyStopActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(19, emergencyStopActive_); + } + if (protectiveStopActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(20, protectiveStopActive_); + } + if (faultActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(21, faultActive_); + } + for (int i = 0; i < blockers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, blockers_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.DeviceSafetyStateInfo)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.DeviceSafetyStateInfo other = (cmvr.api.SafetyCommand.DeviceSafetyStateInfo) obj; + + if (!getDeviceId() + .equals(other.getDeviceId())) return false; + if (!getDeviceKind() + .equals(other.getDeviceKind())) return false; + if (!getPolicyFamily() + .equals(other.getPolicyFamily())) return false; + if (!getLifecycleState() + .equals(other.getLifecycleState())) return false; + if (!getHealthState() + .equals(other.getHealthState())) return false; + if (admissionState_ != other.admissionState_) return false; + if (condition_ != other.condition_) return false; + if (getHasSample() + != other.getHasSample()) return false; + if (getSnapshotFresh() + != other.getSnapshotFresh()) return false; + if (getSampleAgeMs() + != other.getSampleAgeMs()) return false; + if (getSampleSequence() + != other.getSampleSequence()) return false; + if (getObservedAtUnixMs() + != other.getObservedAtUnixMs()) return false; + if (getDeviceGeneration() + != other.getDeviceGeneration()) return false; + if (connected_ != other.connected_) return false; + if (operationalReady_ != other.operationalReady_) return false; + if (quiescent_ != other.quiescent_) return false; + if (motionActive_ != other.motionActive_) return false; + if (actuatorEnabled_ != other.actuatorEnabled_) return false; + if (emergencyStopActive_ != other.emergencyStopActive_) return false; + if (protectiveStopActive_ != other.protectiveStopActive_) return false; + if (faultActive_ != other.faultActive_) return false; + if (!getBlockersList() + .equals(other.getBlockersList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEVICE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeviceId().hashCode(); + hash = (37 * hash) + DEVICE_KIND_FIELD_NUMBER; + hash = (53 * hash) + getDeviceKind().hashCode(); + hash = (37 * hash) + POLICY_FAMILY_FIELD_NUMBER; + hash = (53 * hash) + getPolicyFamily().hashCode(); + hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; + hash = (53 * hash) + getLifecycleState().hashCode(); + hash = (37 * hash) + HEALTH_STATE_FIELD_NUMBER; + hash = (53 * hash) + getHealthState().hashCode(); + hash = (37 * hash) + ADMISSION_STATE_FIELD_NUMBER; + hash = (53 * hash) + admissionState_; + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + condition_; + hash = (37 * hash) + HAS_SAMPLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasSample()); + hash = (37 * hash) + SNAPSHOT_FRESH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSnapshotFresh()); + hash = (37 * hash) + SAMPLE_AGE_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSampleAgeMs()); + hash = (37 * hash) + SAMPLE_SEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSampleSequence()); + hash = (37 * hash) + OBSERVED_AT_UNIX_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObservedAtUnixMs()); + hash = (37 * hash) + DEVICE_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeviceGeneration()); + hash = (37 * hash) + CONNECTED_FIELD_NUMBER; + hash = (53 * hash) + connected_; + hash = (37 * hash) + OPERATIONAL_READY_FIELD_NUMBER; + hash = (53 * hash) + operationalReady_; + hash = (37 * hash) + QUIESCENT_FIELD_NUMBER; + hash = (53 * hash) + quiescent_; + hash = (37 * hash) + MOTION_ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + motionActive_; + hash = (37 * hash) + ACTUATOR_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + actuatorEnabled_; + hash = (37 * hash) + EMERGENCY_STOP_ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + emergencyStopActive_; + hash = (37 * hash) + PROTECTIVE_STOP_ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + protectiveStopActive_; + hash = (37 * hash) + FAULT_ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + faultActive_; + if (getBlockersCount() > 0) { + hash = (37 * hash) + BLOCKERS_FIELD_NUMBER; + hash = (53 * hash) + getBlockersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.DeviceSafetyStateInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.DeviceSafetyStateInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.DeviceSafetyStateInfo) + cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceSafetyStateInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.DeviceSafetyStateInfo.class, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.DeviceSafetyStateInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + deviceId_ = ""; + + deviceKind_ = ""; + + policyFamily_ = ""; + + lifecycleState_ = ""; + + healthState_ = ""; + + admissionState_ = 0; + + condition_ = 0; + + hasSample_ = false; + + snapshotFresh_ = false; + + sampleAgeMs_ = 0L; + + sampleSequence_ = 0L; + + observedAtUnixMs_ = 0L; + + deviceGeneration_ = 0L; + + connected_ = 0; + + operationalReady_ = 0; + + quiescent_ = 0; + + motionActive_ = 0; + + actuatorEnabled_ = 0; + + emergencyStopActive_ = 0; + + protectiveStopActive_ = 0; + + faultActive_ = 0; + + if (blockersBuilder_ == null) { + blockers_ = java.util.Collections.emptyList(); + } else { + blockers_ = null; + blockersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.DeviceSafetyStateInfo.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceSafetyStateInfo build() { + cmvr.api.SafetyCommand.DeviceSafetyStateInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceSafetyStateInfo buildPartial() { + cmvr.api.SafetyCommand.DeviceSafetyStateInfo result = new cmvr.api.SafetyCommand.DeviceSafetyStateInfo(this); + int from_bitField0_ = bitField0_; + result.deviceId_ = deviceId_; + result.deviceKind_ = deviceKind_; + result.policyFamily_ = policyFamily_; + result.lifecycleState_ = lifecycleState_; + result.healthState_ = healthState_; + result.admissionState_ = admissionState_; + result.condition_ = condition_; + result.hasSample_ = hasSample_; + result.snapshotFresh_ = snapshotFresh_; + result.sampleAgeMs_ = sampleAgeMs_; + result.sampleSequence_ = sampleSequence_; + result.observedAtUnixMs_ = observedAtUnixMs_; + result.deviceGeneration_ = deviceGeneration_; + result.connected_ = connected_; + result.operationalReady_ = operationalReady_; + result.quiescent_ = quiescent_; + result.motionActive_ = motionActive_; + result.actuatorEnabled_ = actuatorEnabled_; + result.emergencyStopActive_ = emergencyStopActive_; + result.protectiveStopActive_ = protectiveStopActive_; + result.faultActive_ = faultActive_; + if (blockersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blockers_ = java.util.Collections.unmodifiableList(blockers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blockers_ = blockers_; + } else { + result.blockers_ = blockersBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.DeviceSafetyStateInfo) { + return mergeFrom((cmvr.api.SafetyCommand.DeviceSafetyStateInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.DeviceSafetyStateInfo other) { + if (other == cmvr.api.SafetyCommand.DeviceSafetyStateInfo.getDefaultInstance()) return this; + if (!other.getDeviceId().isEmpty()) { + deviceId_ = other.deviceId_; + onChanged(); + } + if (!other.getDeviceKind().isEmpty()) { + deviceKind_ = other.deviceKind_; + onChanged(); + } + if (!other.getPolicyFamily().isEmpty()) { + policyFamily_ = other.policyFamily_; + onChanged(); + } + if (!other.getLifecycleState().isEmpty()) { + lifecycleState_ = other.lifecycleState_; + onChanged(); + } + if (!other.getHealthState().isEmpty()) { + healthState_ = other.healthState_; + onChanged(); + } + if (other.admissionState_ != 0) { + setAdmissionStateValue(other.getAdmissionStateValue()); + } + if (other.condition_ != 0) { + setConditionValue(other.getConditionValue()); + } + if (other.getHasSample() != false) { + setHasSample(other.getHasSample()); + } + if (other.getSnapshotFresh() != false) { + setSnapshotFresh(other.getSnapshotFresh()); + } + if (other.getSampleAgeMs() != 0L) { + setSampleAgeMs(other.getSampleAgeMs()); + } + if (other.getSampleSequence() != 0L) { + setSampleSequence(other.getSampleSequence()); + } + if (other.getObservedAtUnixMs() != 0L) { + setObservedAtUnixMs(other.getObservedAtUnixMs()); + } + if (other.getDeviceGeneration() != 0L) { + setDeviceGeneration(other.getDeviceGeneration()); + } + if (other.connected_ != 0) { + setConnectedValue(other.getConnectedValue()); + } + if (other.operationalReady_ != 0) { + setOperationalReadyValue(other.getOperationalReadyValue()); + } + if (other.quiescent_ != 0) { + setQuiescentValue(other.getQuiescentValue()); + } + if (other.motionActive_ != 0) { + setMotionActiveValue(other.getMotionActiveValue()); + } + if (other.actuatorEnabled_ != 0) { + setActuatorEnabledValue(other.getActuatorEnabledValue()); + } + if (other.emergencyStopActive_ != 0) { + setEmergencyStopActiveValue(other.getEmergencyStopActiveValue()); + } + if (other.protectiveStopActive_ != 0) { + setProtectiveStopActiveValue(other.getProtectiveStopActiveValue()); + } + if (other.faultActive_ != 0) { + setFaultActiveValue(other.getFaultActiveValue()); + } + if (blockersBuilder_ == null) { + if (!other.blockers_.isEmpty()) { + if (blockers_.isEmpty()) { + blockers_ = other.blockers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlockersIsMutable(); + blockers_.addAll(other.blockers_); + } + onChanged(); + } + } else { + if (!other.blockers_.isEmpty()) { + if (blockersBuilder_.isEmpty()) { + blockersBuilder_.dispose(); + blockersBuilder_ = null; + blockers_ = other.blockers_; + bitField0_ = (bitField0_ & ~0x00000001); + blockersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlockersFieldBuilder() : null; + } else { + blockersBuilder_.addAllMessages(other.blockers_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + deviceId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + deviceKind_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + policyFamily_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + lifecycleState_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + healthState_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + admissionState_ = input.readEnum(); + + break; + } // case 48 + case 56: { + condition_ = input.readEnum(); + + break; + } // case 56 + case 64: { + hasSample_ = input.readBool(); + + break; + } // case 64 + case 72: { + snapshotFresh_ = input.readBool(); + + break; + } // case 72 + case 80: { + sampleAgeMs_ = input.readUInt64(); + + break; + } // case 80 + case 88: { + sampleSequence_ = input.readUInt64(); + + break; + } // case 88 + case 96: { + observedAtUnixMs_ = input.readUInt64(); + + break; + } // case 96 + case 104: { + deviceGeneration_ = input.readUInt64(); + + break; + } // case 104 + case 112: { + connected_ = input.readEnum(); + + break; + } // case 112 + case 120: { + operationalReady_ = input.readEnum(); + + break; + } // case 120 + case 128: { + quiescent_ = input.readEnum(); + + break; + } // case 128 + case 136: { + motionActive_ = input.readEnum(); + + break; + } // case 136 + case 144: { + actuatorEnabled_ = input.readEnum(); + + break; + } // case 144 + case 152: { + emergencyStopActive_ = input.readEnum(); + + break; + } // case 152 + case 160: { + protectiveStopActive_ = input.readEnum(); + + break; + } // case 160 + case 168: { + faultActive_ = input.readEnum(); + + break; + } // case 168 + case 178: { + cmvr.api.SafetyCommand.SafetyBlockerInfo m = + input.readMessage( + cmvr.api.SafetyCommand.SafetyBlockerInfo.parser(), + extensionRegistry); + if (blockersBuilder_ == null) { + ensureBlockersIsMutable(); + blockers_.add(m); + } else { + blockersBuilder_.addMessage(m); + } + break; + } // case 178 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object deviceId_ = ""; + /** + * string device_id = 1; + * @return The deviceId. + */ + public java.lang.String getDeviceId() { + java.lang.Object ref = deviceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string device_id = 1; + * @return The bytes for deviceId. + */ + public com.google.protobuf.ByteString + getDeviceIdBytes() { + java.lang.Object ref = deviceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string device_id = 1; + * @param value The deviceId to set. + * @return This builder for chaining. + */ + public Builder setDeviceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceId_ = value; + onChanged(); + return this; + } + /** + * string device_id = 1; + * @return This builder for chaining. + */ + public Builder clearDeviceId() { + + deviceId_ = getDefaultInstance().getDeviceId(); + onChanged(); + return this; + } + /** + * string device_id = 1; + * @param value The bytes for deviceId to set. + * @return This builder for chaining. + */ + public Builder setDeviceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceId_ = value; + onChanged(); + return this; + } + + private java.lang.Object deviceKind_ = ""; + /** + * string device_kind = 2; + * @return The deviceKind. + */ + public java.lang.String getDeviceKind() { + java.lang.Object ref = deviceKind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceKind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string device_kind = 2; + * @return The bytes for deviceKind. + */ + public com.google.protobuf.ByteString + getDeviceKindBytes() { + java.lang.Object ref = deviceKind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string device_kind = 2; + * @param value The deviceKind to set. + * @return This builder for chaining. + */ + public Builder setDeviceKind( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceKind_ = value; + onChanged(); + return this; + } + /** + * string device_kind = 2; + * @return This builder for chaining. + */ + public Builder clearDeviceKind() { + + deviceKind_ = getDefaultInstance().getDeviceKind(); + onChanged(); + return this; + } + /** + * string device_kind = 2; + * @param value The bytes for deviceKind to set. + * @return This builder for chaining. + */ + public Builder setDeviceKindBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceKind_ = value; + onChanged(); + return this; + } + + private java.lang.Object policyFamily_ = ""; + /** + * string policy_family = 3; + * @return The policyFamily. + */ + public java.lang.String getPolicyFamily() { + java.lang.Object ref = policyFamily_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyFamily_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string policy_family = 3; + * @return The bytes for policyFamily. + */ + public com.google.protobuf.ByteString + getPolicyFamilyBytes() { + java.lang.Object ref = policyFamily_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyFamily_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string policy_family = 3; + * @param value The policyFamily to set. + * @return This builder for chaining. + */ + public Builder setPolicyFamily( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + policyFamily_ = value; + onChanged(); + return this; + } + /** + * string policy_family = 3; + * @return This builder for chaining. + */ + public Builder clearPolicyFamily() { + + policyFamily_ = getDefaultInstance().getPolicyFamily(); + onChanged(); + return this; + } + /** + * string policy_family = 3; + * @param value The bytes for policyFamily to set. + * @return This builder for chaining. + */ + public Builder setPolicyFamilyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + policyFamily_ = value; + onChanged(); + return this; + } + + private java.lang.Object lifecycleState_ = ""; + /** + * string lifecycle_state = 4; + * @return The lifecycleState. + */ + public java.lang.String getLifecycleState() { + java.lang.Object ref = lifecycleState_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lifecycleState_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string lifecycle_state = 4; + * @return The bytes for lifecycleState. + */ + public com.google.protobuf.ByteString + getLifecycleStateBytes() { + java.lang.Object ref = lifecycleState_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lifecycleState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string lifecycle_state = 4; + * @param value The lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleState( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lifecycleState_ = value; + onChanged(); + return this; + } + /** + * string lifecycle_state = 4; + * @return This builder for chaining. + */ + public Builder clearLifecycleState() { + + lifecycleState_ = getDefaultInstance().getLifecycleState(); + onChanged(); + return this; + } + /** + * string lifecycle_state = 4; + * @param value The bytes for lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleStateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lifecycleState_ = value; + onChanged(); + return this; + } + + private java.lang.Object healthState_ = ""; + /** + * string health_state = 5; + * @return The healthState. + */ + public java.lang.String getHealthState() { + java.lang.Object ref = healthState_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + healthState_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string health_state = 5; + * @return The bytes for healthState. + */ + public com.google.protobuf.ByteString + getHealthStateBytes() { + java.lang.Object ref = healthState_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + healthState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string health_state = 5; + * @param value The healthState to set. + * @return This builder for chaining. + */ + public Builder setHealthState( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + healthState_ = value; + onChanged(); + return this; + } + /** + * string health_state = 5; + * @return This builder for chaining. + */ + public Builder clearHealthState() { + + healthState_ = getDefaultInstance().getHealthState(); + onChanged(); + return this; + } + /** + * string health_state = 5; + * @param value The bytes for healthState to set. + * @return This builder for chaining. + */ + public Builder setHealthStateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + healthState_ = value; + onChanged(); + return this; + } + + private int admissionState_ = 0; + /** + * .cmvr.api.DeviceAdmissionState admission_state = 6; + * @return The enum numeric value on the wire for admissionState. + */ + @java.lang.Override public int getAdmissionStateValue() { + return admissionState_; + } + /** + * .cmvr.api.DeviceAdmissionState admission_state = 6; + * @param value The enum numeric value on the wire for admissionState to set. + * @return This builder for chaining. + */ + public Builder setAdmissionStateValue(int value) { + + admissionState_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.DeviceAdmissionState admission_state = 6; + * @return The admissionState. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceAdmissionState getAdmissionState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(admissionState_); + return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.DeviceAdmissionState admission_state = 6; + * @param value The admissionState to set. + * @return This builder for chaining. + */ + public Builder setAdmissionState(cmvr.api.SafetyCommand.DeviceAdmissionState value) { + if (value == null) { + throw new NullPointerException(); + } + + admissionState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.DeviceAdmissionState admission_state = 6; + * @return This builder for chaining. + */ + public Builder clearAdmissionState() { + + admissionState_ = 0; + onChanged(); + return this; + } + + private int condition_ = 0; + /** + * .cmvr.api.SafetyCondition condition = 7; + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override public int getConditionValue() { + return condition_; + } + /** + * .cmvr.api.SafetyCondition condition = 7; + * @param value The enum numeric value on the wire for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionValue(int value) { + + condition_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyCondition condition = 7; + * @return The condition. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyCondition getCondition() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyCondition result = cmvr.api.SafetyCommand.SafetyCondition.valueOf(condition_); + return result == null ? cmvr.api.SafetyCommand.SafetyCondition.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyCondition condition = 7; + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition(cmvr.api.SafetyCommand.SafetyCondition value) { + if (value == null) { + throw new NullPointerException(); + } + + condition_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyCondition condition = 7; + * @return This builder for chaining. + */ + public Builder clearCondition() { + + condition_ = 0; + onChanged(); + return this; + } + + private boolean hasSample_ ; + /** + * bool has_sample = 8; + * @return The hasSample. + */ + @java.lang.Override + public boolean getHasSample() { + return hasSample_; + } + /** + * bool has_sample = 8; + * @param value The hasSample to set. + * @return This builder for chaining. + */ + public Builder setHasSample(boolean value) { + + hasSample_ = value; + onChanged(); + return this; + } + /** + * bool has_sample = 8; + * @return This builder for chaining. + */ + public Builder clearHasSample() { + + hasSample_ = false; + onChanged(); + return this; + } + + private boolean snapshotFresh_ ; + /** + * bool snapshot_fresh = 9; + * @return The snapshotFresh. + */ + @java.lang.Override + public boolean getSnapshotFresh() { + return snapshotFresh_; + } + /** + * bool snapshot_fresh = 9; + * @param value The snapshotFresh to set. + * @return This builder for chaining. + */ + public Builder setSnapshotFresh(boolean value) { + + snapshotFresh_ = value; + onChanged(); + return this; + } + /** + * bool snapshot_fresh = 9; + * @return This builder for chaining. + */ + public Builder clearSnapshotFresh() { + + snapshotFresh_ = false; + onChanged(); + return this; + } + + private long sampleAgeMs_ ; + /** + * uint64 sample_age_ms = 10; + * @return The sampleAgeMs. + */ + @java.lang.Override + public long getSampleAgeMs() { + return sampleAgeMs_; + } + /** + * uint64 sample_age_ms = 10; + * @param value The sampleAgeMs to set. + * @return This builder for chaining. + */ + public Builder setSampleAgeMs(long value) { + + sampleAgeMs_ = value; + onChanged(); + return this; + } + /** + * uint64 sample_age_ms = 10; + * @return This builder for chaining. + */ + public Builder clearSampleAgeMs() { + + sampleAgeMs_ = 0L; + onChanged(); + return this; + } + + private long sampleSequence_ ; + /** + * uint64 sample_sequence = 11; + * @return The sampleSequence. + */ + @java.lang.Override + public long getSampleSequence() { + return sampleSequence_; + } + /** + * uint64 sample_sequence = 11; + * @param value The sampleSequence to set. + * @return This builder for chaining. + */ + public Builder setSampleSequence(long value) { + + sampleSequence_ = value; + onChanged(); + return this; + } + /** + * uint64 sample_sequence = 11; + * @return This builder for chaining. + */ + public Builder clearSampleSequence() { + + sampleSequence_ = 0L; + onChanged(); + return this; + } + + private long observedAtUnixMs_ ; + /** + * uint64 observed_at_unix_ms = 12; + * @return The observedAtUnixMs. + */ + @java.lang.Override + public long getObservedAtUnixMs() { + return observedAtUnixMs_; + } + /** + * uint64 observed_at_unix_ms = 12; + * @param value The observedAtUnixMs to set. + * @return This builder for chaining. + */ + public Builder setObservedAtUnixMs(long value) { + + observedAtUnixMs_ = value; + onChanged(); + return this; + } + /** + * uint64 observed_at_unix_ms = 12; + * @return This builder for chaining. + */ + public Builder clearObservedAtUnixMs() { + + observedAtUnixMs_ = 0L; + onChanged(); + return this; + } + + private long deviceGeneration_ ; + /** + * uint64 device_generation = 13; + * @return The deviceGeneration. + */ + @java.lang.Override + public long getDeviceGeneration() { + return deviceGeneration_; + } + /** + * uint64 device_generation = 13; + * @param value The deviceGeneration to set. + * @return This builder for chaining. + */ + public Builder setDeviceGeneration(long value) { + + deviceGeneration_ = value; + onChanged(); + return this; + } + /** + * uint64 device_generation = 13; + * @return This builder for chaining. + */ + public Builder clearDeviceGeneration() { + + deviceGeneration_ = 0L; + onChanged(); + return this; + } + + private int connected_ = 0; + /** + * .cmvr.api.SafetyTriState connected = 14; + * @return The enum numeric value on the wire for connected. + */ + @java.lang.Override public int getConnectedValue() { + return connected_; + } + /** + * .cmvr.api.SafetyTriState connected = 14; + * @param value The enum numeric value on the wire for connected to set. + * @return This builder for chaining. + */ + public Builder setConnectedValue(int value) { + + connected_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState connected = 14; + * @return The connected. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyTriState getConnected() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(connected_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyTriState connected = 14; + * @param value The connected to set. + * @return This builder for chaining. + */ + public Builder setConnected(cmvr.api.SafetyCommand.SafetyTriState value) { + if (value == null) { + throw new NullPointerException(); + } + + connected_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState connected = 14; + * @return This builder for chaining. + */ + public Builder clearConnected() { + + connected_ = 0; + onChanged(); + return this; + } + + private int operationalReady_ = 0; + /** + * .cmvr.api.SafetyTriState operational_ready = 15; + * @return The enum numeric value on the wire for operationalReady. + */ + @java.lang.Override public int getOperationalReadyValue() { + return operationalReady_; + } + /** + * .cmvr.api.SafetyTriState operational_ready = 15; + * @param value The enum numeric value on the wire for operationalReady to set. + * @return This builder for chaining. + */ + public Builder setOperationalReadyValue(int value) { + + operationalReady_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState operational_ready = 15; + * @return The operationalReady. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyTriState getOperationalReady() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(operationalReady_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyTriState operational_ready = 15; + * @param value The operationalReady to set. + * @return This builder for chaining. + */ + public Builder setOperationalReady(cmvr.api.SafetyCommand.SafetyTriState value) { + if (value == null) { + throw new NullPointerException(); + } + + operationalReady_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState operational_ready = 15; + * @return This builder for chaining. + */ + public Builder clearOperationalReady() { + + operationalReady_ = 0; + onChanged(); + return this; + } + + private int quiescent_ = 0; + /** + * .cmvr.api.SafetyTriState quiescent = 16; + * @return The enum numeric value on the wire for quiescent. + */ + @java.lang.Override public int getQuiescentValue() { + return quiescent_; + } + /** + * .cmvr.api.SafetyTriState quiescent = 16; + * @param value The enum numeric value on the wire for quiescent to set. + * @return This builder for chaining. + */ + public Builder setQuiescentValue(int value) { + + quiescent_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState quiescent = 16; + * @return The quiescent. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyTriState getQuiescent() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(quiescent_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyTriState quiescent = 16; + * @param value The quiescent to set. + * @return This builder for chaining. + */ + public Builder setQuiescent(cmvr.api.SafetyCommand.SafetyTriState value) { + if (value == null) { + throw new NullPointerException(); + } + + quiescent_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState quiescent = 16; + * @return This builder for chaining. + */ + public Builder clearQuiescent() { + + quiescent_ = 0; + onChanged(); + return this; + } + + private int motionActive_ = 0; + /** + * .cmvr.api.SafetyTriState motion_active = 17; + * @return The enum numeric value on the wire for motionActive. + */ + @java.lang.Override public int getMotionActiveValue() { + return motionActive_; + } + /** + * .cmvr.api.SafetyTriState motion_active = 17; + * @param value The enum numeric value on the wire for motionActive to set. + * @return This builder for chaining. + */ + public Builder setMotionActiveValue(int value) { + + motionActive_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState motion_active = 17; + * @return The motionActive. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyTriState getMotionActive() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(motionActive_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyTriState motion_active = 17; + * @param value The motionActive to set. + * @return This builder for chaining. + */ + public Builder setMotionActive(cmvr.api.SafetyCommand.SafetyTriState value) { + if (value == null) { + throw new NullPointerException(); + } + + motionActive_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState motion_active = 17; + * @return This builder for chaining. + */ + public Builder clearMotionActive() { + + motionActive_ = 0; + onChanged(); + return this; + } + + private int actuatorEnabled_ = 0; + /** + * .cmvr.api.SafetyTriState actuator_enabled = 18; + * @return The enum numeric value on the wire for actuatorEnabled. + */ + @java.lang.Override public int getActuatorEnabledValue() { + return actuatorEnabled_; + } + /** + * .cmvr.api.SafetyTriState actuator_enabled = 18; + * @param value The enum numeric value on the wire for actuatorEnabled to set. + * @return This builder for chaining. + */ + public Builder setActuatorEnabledValue(int value) { + + actuatorEnabled_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState actuator_enabled = 18; + * @return The actuatorEnabled. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyTriState getActuatorEnabled() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(actuatorEnabled_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyTriState actuator_enabled = 18; + * @param value The actuatorEnabled to set. + * @return This builder for chaining. + */ + public Builder setActuatorEnabled(cmvr.api.SafetyCommand.SafetyTriState value) { + if (value == null) { + throw new NullPointerException(); + } + + actuatorEnabled_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState actuator_enabled = 18; + * @return This builder for chaining. + */ + public Builder clearActuatorEnabled() { + + actuatorEnabled_ = 0; + onChanged(); + return this; + } + + private int emergencyStopActive_ = 0; + /** + * .cmvr.api.SafetyTriState emergency_stop_active = 19; + * @return The enum numeric value on the wire for emergencyStopActive. + */ + @java.lang.Override public int getEmergencyStopActiveValue() { + return emergencyStopActive_; + } + /** + * .cmvr.api.SafetyTriState emergency_stop_active = 19; + * @param value The enum numeric value on the wire for emergencyStopActive to set. + * @return This builder for chaining. + */ + public Builder setEmergencyStopActiveValue(int value) { + + emergencyStopActive_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState emergency_stop_active = 19; + * @return The emergencyStopActive. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyTriState getEmergencyStopActive() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(emergencyStopActive_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyTriState emergency_stop_active = 19; + * @param value The emergencyStopActive to set. + * @return This builder for chaining. + */ + public Builder setEmergencyStopActive(cmvr.api.SafetyCommand.SafetyTriState value) { + if (value == null) { + throw new NullPointerException(); + } + + emergencyStopActive_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState emergency_stop_active = 19; + * @return This builder for chaining. + */ + public Builder clearEmergencyStopActive() { + + emergencyStopActive_ = 0; + onChanged(); + return this; + } + + private int protectiveStopActive_ = 0; + /** + * .cmvr.api.SafetyTriState protective_stop_active = 20; + * @return The enum numeric value on the wire for protectiveStopActive. + */ + @java.lang.Override public int getProtectiveStopActiveValue() { + return protectiveStopActive_; + } + /** + * .cmvr.api.SafetyTriState protective_stop_active = 20; + * @param value The enum numeric value on the wire for protectiveStopActive to set. + * @return This builder for chaining. + */ + public Builder setProtectiveStopActiveValue(int value) { + + protectiveStopActive_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState protective_stop_active = 20; + * @return The protectiveStopActive. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyTriState getProtectiveStopActive() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(protectiveStopActive_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyTriState protective_stop_active = 20; + * @param value The protectiveStopActive to set. + * @return This builder for chaining. + */ + public Builder setProtectiveStopActive(cmvr.api.SafetyCommand.SafetyTriState value) { + if (value == null) { + throw new NullPointerException(); + } + + protectiveStopActive_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState protective_stop_active = 20; + * @return This builder for chaining. + */ + public Builder clearProtectiveStopActive() { + + protectiveStopActive_ = 0; + onChanged(); + return this; + } + + private int faultActive_ = 0; + /** + * .cmvr.api.SafetyTriState fault_active = 21; + * @return The enum numeric value on the wire for faultActive. + */ + @java.lang.Override public int getFaultActiveValue() { + return faultActive_; + } + /** + * .cmvr.api.SafetyTriState fault_active = 21; + * @param value The enum numeric value on the wire for faultActive to set. + * @return This builder for chaining. + */ + public Builder setFaultActiveValue(int value) { + + faultActive_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState fault_active = 21; + * @return The faultActive. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyTriState getFaultActive() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(faultActive_); + return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyTriState fault_active = 21; + * @param value The faultActive to set. + * @return This builder for chaining. + */ + public Builder setFaultActive(cmvr.api.SafetyCommand.SafetyTriState value) { + if (value == null) { + throw new NullPointerException(); + } + + faultActive_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyTriState fault_active = 21; + * @return This builder for chaining. + */ + public Builder clearFaultActive() { + + faultActive_ = 0; + onChanged(); + return this; + } + + private java.util.List blockers_ = + java.util.Collections.emptyList(); + private void ensureBlockersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blockers_ = new java.util.ArrayList(blockers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyBlockerInfo, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder, cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder> blockersBuilder_; + + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public java.util.List getBlockersList() { + if (blockersBuilder_ == null) { + return java.util.Collections.unmodifiableList(blockers_); + } else { + return blockersBuilder_.getMessageList(); + } + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public int getBlockersCount() { + if (blockersBuilder_ == null) { + return blockers_.size(); + } else { + return blockersBuilder_.getCount(); + } + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public cmvr.api.SafetyCommand.SafetyBlockerInfo getBlockers(int index) { + if (blockersBuilder_ == null) { + return blockers_.get(index); + } else { + return blockersBuilder_.getMessage(index); + } + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public Builder setBlockers( + int index, cmvr.api.SafetyCommand.SafetyBlockerInfo value) { + if (blockersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockersIsMutable(); + blockers_.set(index, value); + onChanged(); + } else { + blockersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public Builder setBlockers( + int index, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder builderForValue) { + if (blockersBuilder_ == null) { + ensureBlockersIsMutable(); + blockers_.set(index, builderForValue.build()); + onChanged(); + } else { + blockersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public Builder addBlockers(cmvr.api.SafetyCommand.SafetyBlockerInfo value) { + if (blockersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockersIsMutable(); + blockers_.add(value); + onChanged(); + } else { + blockersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public Builder addBlockers( + int index, cmvr.api.SafetyCommand.SafetyBlockerInfo value) { + if (blockersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockersIsMutable(); + blockers_.add(index, value); + onChanged(); + } else { + blockersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public Builder addBlockers( + cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder builderForValue) { + if (blockersBuilder_ == null) { + ensureBlockersIsMutable(); + blockers_.add(builderForValue.build()); + onChanged(); + } else { + blockersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public Builder addBlockers( + int index, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder builderForValue) { + if (blockersBuilder_ == null) { + ensureBlockersIsMutable(); + blockers_.add(index, builderForValue.build()); + onChanged(); + } else { + blockersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public Builder addAllBlockers( + java.lang.Iterable values) { + if (blockersBuilder_ == null) { + ensureBlockersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blockers_); + onChanged(); + } else { + blockersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public Builder clearBlockers() { + if (blockersBuilder_ == null) { + blockers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blockersBuilder_.clear(); + } + return this; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public Builder removeBlockers(int index) { + if (blockersBuilder_ == null) { + ensureBlockersIsMutable(); + blockers_.remove(index); + onChanged(); + } else { + blockersBuilder_.remove(index); + } + return this; + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder getBlockersBuilder( + int index) { + return getBlockersFieldBuilder().getBuilder(index); + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder getBlockersOrBuilder( + int index) { + if (blockersBuilder_ == null) { + return blockers_.get(index); } else { + return blockersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public java.util.List + getBlockersOrBuilderList() { + if (blockersBuilder_ != null) { + return blockersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blockers_); + } + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder addBlockersBuilder() { + return getBlockersFieldBuilder().addBuilder( + cmvr.api.SafetyCommand.SafetyBlockerInfo.getDefaultInstance()); + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder addBlockersBuilder( + int index) { + return getBlockersFieldBuilder().addBuilder( + index, cmvr.api.SafetyCommand.SafetyBlockerInfo.getDefaultInstance()); + } + /** + * repeated .cmvr.api.SafetyBlockerInfo blockers = 22; + */ + public java.util.List + getBlockersBuilderList() { + return getBlockersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyBlockerInfo, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder, cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder> + getBlockersFieldBuilder() { + if (blockersBuilder_ == null) { + blockersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyBlockerInfo, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder, cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder>( + blockers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + blockers_ = null; + } + return blockersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.DeviceSafetyStateInfo) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.DeviceSafetyStateInfo) + private static final cmvr.api.SafetyCommand.DeviceSafetyStateInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.DeviceSafetyStateInfo(); + } + + public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceSafetyStateInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SafetyOperationTargetResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.SafetyOperationTargetResult) + com.google.protobuf.MessageOrBuilder { + + /** + * string target_id = 1; + * @return The targetId. + */ + java.lang.String getTargetId(); + /** + * string target_id = 1; + * @return The bytes for targetId. + */ + com.google.protobuf.ByteString + getTargetIdBytes(); + + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The enum numeric value on the wire for result. + */ + int getResultValue(); + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The result. + */ + cmvr.api.SafetyCommand.SafetyOperationResult getResult(); + + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The enum numeric value on the wire for reasonCode. + */ + int getReasonCodeValue(); + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The reasonCode. + */ + cmvr.api.Common.CommandReasonCode getReasonCode(); + + /** + * string detail = 4; + * @return The detail. + */ + java.lang.String getDetail(); + /** + * string detail = 4; + * @return The bytes for detail. + */ + com.google.protobuf.ByteString + getDetailBytes(); + + /** + * .cmvr.api.DeviceAdmissionState before_state = 5; + * @return The enum numeric value on the wire for beforeState. + */ + int getBeforeStateValue(); + /** + * .cmvr.api.DeviceAdmissionState before_state = 5; + * @return The beforeState. + */ + cmvr.api.SafetyCommand.DeviceAdmissionState getBeforeState(); + + /** + * .cmvr.api.DeviceAdmissionState after_state = 6; + * @return The enum numeric value on the wire for afterState. + */ + int getAfterStateValue(); + /** + * .cmvr.api.DeviceAdmissionState after_state = 6; + * @return The afterState. + */ + cmvr.api.SafetyCommand.DeviceAdmissionState getAfterState(); + } + /** + * Protobuf type {@code cmvr.api.SafetyOperationTargetResult} + */ + public static final class SafetyOperationTargetResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.SafetyOperationTargetResult) + SafetyOperationTargetResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use SafetyOperationTargetResult.newBuilder() to construct. + private SafetyOperationTargetResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SafetyOperationTargetResult() { + targetId_ = ""; + result_ = 0; + reasonCode_ = 0; + detail_ = ""; + beforeState_ = 0; + afterState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SafetyOperationTargetResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyOperationTargetResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyOperationTargetResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.SafetyOperationTargetResult.class, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder.class); + } + + public static final int TARGET_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object targetId_; + /** + * string target_id = 1; + * @return The targetId. + */ + @java.lang.Override + public java.lang.String getTargetId() { + java.lang.Object ref = targetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetId_ = s; + return s; + } + } + /** + * string target_id = 1; + * @return The bytes for targetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetIdBytes() { + java.lang.Object ref = targetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESULT_FIELD_NUMBER = 2; + private int result_; + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override public int getResultValue() { + return result_; + } + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The result. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyOperationResult getResult() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyOperationResult result = cmvr.api.SafetyCommand.SafetyOperationResult.valueOf(result_); + return result == null ? cmvr.api.SafetyCommand.SafetyOperationResult.UNRECOGNIZED : result; + } + + public static final int REASON_CODE_FIELD_NUMBER = 3; + private int reasonCode_; + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The enum numeric value on the wire for reasonCode. + */ + @java.lang.Override public int getReasonCodeValue() { + return reasonCode_; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The reasonCode. + */ + @java.lang.Override public cmvr.api.Common.CommandReasonCode getReasonCode() { + @SuppressWarnings("deprecation") + cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_); + return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result; + } + + public static final int DETAIL_FIELD_NUMBER = 4; + private volatile java.lang.Object detail_; + /** + * string detail = 4; + * @return The detail. + */ + @java.lang.Override + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } + } + /** + * string detail = 4; + * @return The bytes for detail. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BEFORE_STATE_FIELD_NUMBER = 5; + private int beforeState_; + /** + * .cmvr.api.DeviceAdmissionState before_state = 5; + * @return The enum numeric value on the wire for beforeState. + */ + @java.lang.Override public int getBeforeStateValue() { + return beforeState_; + } + /** + * .cmvr.api.DeviceAdmissionState before_state = 5; + * @return The beforeState. + */ + @java.lang.Override public cmvr.api.SafetyCommand.DeviceAdmissionState getBeforeState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(beforeState_); + return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result; + } + + public static final int AFTER_STATE_FIELD_NUMBER = 6; + private int afterState_; + /** + * .cmvr.api.DeviceAdmissionState after_state = 6; + * @return The enum numeric value on the wire for afterState. + */ + @java.lang.Override public int getAfterStateValue() { + return afterState_; + } + /** + * .cmvr.api.DeviceAdmissionState after_state = 6; + * @return The afterState. + */ + @java.lang.Override public cmvr.api.SafetyCommand.DeviceAdmissionState getAfterState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(afterState_); + return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetId_); + } + if (result_ != cmvr.api.SafetyCommand.SafetyOperationResult.SAFETY_OPERATION_RESULT_UNSPECIFIED.getNumber()) { + output.writeEnum(2, result_); + } + if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, reasonCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, detail_); + } + if (beforeState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, beforeState_); + } + if (afterState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, afterState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetId_); + } + if (result_ != cmvr.api.SafetyCommand.SafetyOperationResult.SAFETY_OPERATION_RESULT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, result_); + } + if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, reasonCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detail_); + } + if (beforeState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, beforeState_); + } + if (afterState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, afterState_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.SafetyOperationTargetResult)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.SafetyOperationTargetResult other = (cmvr.api.SafetyCommand.SafetyOperationTargetResult) obj; + + if (!getTargetId() + .equals(other.getTargetId())) return false; + if (result_ != other.result_) return false; + if (reasonCode_ != other.reasonCode_) return false; + if (!getDetail() + .equals(other.getDetail())) return false; + if (beforeState_ != other.beforeState_) return false; + if (afterState_ != other.afterState_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TARGET_ID_FIELD_NUMBER; + hash = (53 * hash) + getTargetId().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + result_; + hash = (37 * hash) + REASON_CODE_FIELD_NUMBER; + hash = (53 * hash) + reasonCode_; + hash = (37 * hash) + DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getDetail().hashCode(); + hash = (37 * hash) + BEFORE_STATE_FIELD_NUMBER; + hash = (53 * hash) + beforeState_; + hash = (37 * hash) + AFTER_STATE_FIELD_NUMBER; + hash = (53 * hash) + afterState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.SafetyOperationTargetResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.SafetyOperationTargetResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.SafetyOperationTargetResult) + cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyOperationTargetResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyOperationTargetResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.SafetyOperationTargetResult.class, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.SafetyOperationTargetResult.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + targetId_ = ""; + + result_ = 0; + + reasonCode_ = 0; + + detail_ = ""; + + beforeState_ = 0; + + afterState_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyOperationTargetResult_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyOperationTargetResult getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyOperationTargetResult build() { + cmvr.api.SafetyCommand.SafetyOperationTargetResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyOperationTargetResult buildPartial() { + cmvr.api.SafetyCommand.SafetyOperationTargetResult result = new cmvr.api.SafetyCommand.SafetyOperationTargetResult(this); + result.targetId_ = targetId_; + result.result_ = result_; + result.reasonCode_ = reasonCode_; + result.detail_ = detail_; + result.beforeState_ = beforeState_; + result.afterState_ = afterState_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.SafetyOperationTargetResult) { + return mergeFrom((cmvr.api.SafetyCommand.SafetyOperationTargetResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.SafetyOperationTargetResult other) { + if (other == cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance()) return this; + if (!other.getTargetId().isEmpty()) { + targetId_ = other.targetId_; + onChanged(); + } + if (other.result_ != 0) { + setResultValue(other.getResultValue()); + } + if (other.reasonCode_ != 0) { + setReasonCodeValue(other.getReasonCodeValue()); + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + onChanged(); + } + if (other.beforeState_ != 0) { + setBeforeStateValue(other.getBeforeStateValue()); + } + if (other.afterState_ != 0) { + setAfterStateValue(other.getAfterStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + targetId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + result_ = input.readEnum(); + + break; + } // case 16 + case 24: { + reasonCode_ = input.readEnum(); + + break; + } // case 24 + case 34: { + detail_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: { + beforeState_ = input.readEnum(); + + break; + } // case 40 + case 48: { + afterState_ = input.readEnum(); + + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object targetId_ = ""; + /** + * string target_id = 1; + * @return The targetId. + */ + public java.lang.String getTargetId() { + java.lang.Object ref = targetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string target_id = 1; + * @return The bytes for targetId. + */ + public com.google.protobuf.ByteString + getTargetIdBytes() { + java.lang.Object ref = targetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string target_id = 1; + * @param value The targetId to set. + * @return This builder for chaining. + */ + public Builder setTargetId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetId_ = value; + onChanged(); + return this; + } + /** + * string target_id = 1; + * @return This builder for chaining. + */ + public Builder clearTargetId() { + + targetId_ = getDefaultInstance().getTargetId(); + onChanged(); + return this; + } + /** + * string target_id = 1; + * @param value The bytes for targetId to set. + * @return This builder for chaining. + */ + public Builder setTargetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetId_ = value; + onChanged(); + return this; + } + + private int result_ = 0; + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override public int getResultValue() { + return result_; + } + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @param value The enum numeric value on the wire for result to set. + * @return This builder for chaining. + */ + public Builder setResultValue(int value) { + + result_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The result. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyOperationResult getResult() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyOperationResult result = cmvr.api.SafetyCommand.SafetyOperationResult.valueOf(result_); + return result == null ? cmvr.api.SafetyCommand.SafetyOperationResult.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult(cmvr.api.SafetyCommand.SafetyOperationResult value) { + if (value == null) { + throw new NullPointerException(); + } + + result_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return This builder for chaining. + */ + public Builder clearResult() { + + result_ = 0; + onChanged(); + return this; + } + + private int reasonCode_ = 0; + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The enum numeric value on the wire for reasonCode. + */ + @java.lang.Override public int getReasonCodeValue() { + return reasonCode_; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @param value The enum numeric value on the wire for reasonCode to set. + * @return This builder for chaining. + */ + public Builder setReasonCodeValue(int value) { + + reasonCode_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The reasonCode. + */ + @java.lang.Override + public cmvr.api.Common.CommandReasonCode getReasonCode() { + @SuppressWarnings("deprecation") + cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_); + return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @param value The reasonCode to set. + * @return This builder for chaining. + */ + public Builder setReasonCode(cmvr.api.Common.CommandReasonCode value) { + if (value == null) { + throw new NullPointerException(); + } + + reasonCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return This builder for chaining. + */ + public Builder clearReasonCode() { + + reasonCode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object detail_ = ""; + /** + * string detail = 4; + * @return The detail. + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string detail = 4; + * @return The bytes for detail. + */ + public com.google.protobuf.ByteString + getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string detail = 4; + * @param value The detail to set. + * @return This builder for chaining. + */ + public Builder setDetail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + detail_ = value; + onChanged(); + return this; + } + /** + * string detail = 4; + * @return This builder for chaining. + */ + public Builder clearDetail() { + + detail_ = getDefaultInstance().getDetail(); + onChanged(); + return this; + } + /** + * string detail = 4; + * @param value The bytes for detail to set. + * @return This builder for chaining. + */ + public Builder setDetailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + detail_ = value; + onChanged(); + return this; + } + + private int beforeState_ = 0; + /** + * .cmvr.api.DeviceAdmissionState before_state = 5; + * @return The enum numeric value on the wire for beforeState. + */ + @java.lang.Override public int getBeforeStateValue() { + return beforeState_; + } + /** + * .cmvr.api.DeviceAdmissionState before_state = 5; + * @param value The enum numeric value on the wire for beforeState to set. + * @return This builder for chaining. + */ + public Builder setBeforeStateValue(int value) { + + beforeState_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.DeviceAdmissionState before_state = 5; + * @return The beforeState. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceAdmissionState getBeforeState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(beforeState_); + return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.DeviceAdmissionState before_state = 5; + * @param value The beforeState to set. + * @return This builder for chaining. + */ + public Builder setBeforeState(cmvr.api.SafetyCommand.DeviceAdmissionState value) { + if (value == null) { + throw new NullPointerException(); + } + + beforeState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.DeviceAdmissionState before_state = 5; + * @return This builder for chaining. + */ + public Builder clearBeforeState() { + + beforeState_ = 0; + onChanged(); + return this; + } + + private int afterState_ = 0; + /** + * .cmvr.api.DeviceAdmissionState after_state = 6; + * @return The enum numeric value on the wire for afterState. + */ + @java.lang.Override public int getAfterStateValue() { + return afterState_; + } + /** + * .cmvr.api.DeviceAdmissionState after_state = 6; + * @param value The enum numeric value on the wire for afterState to set. + * @return This builder for chaining. + */ + public Builder setAfterStateValue(int value) { + + afterState_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.DeviceAdmissionState after_state = 6; + * @return The afterState. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceAdmissionState getAfterState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(afterState_); + return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.DeviceAdmissionState after_state = 6; + * @param value The afterState to set. + * @return This builder for chaining. + */ + public Builder setAfterState(cmvr.api.SafetyCommand.DeviceAdmissionState value) { + if (value == null) { + throw new NullPointerException(); + } + + afterState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.DeviceAdmissionState after_state = 6; + * @return This builder for chaining. + */ + public Builder clearAfterState() { + + afterState_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.SafetyOperationTargetResult) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.SafetyOperationTargetResult) + private static final cmvr.api.SafetyCommand.SafetyOperationTargetResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.SafetyOperationTargetResult(); + } + + public static cmvr.api.SafetyCommand.SafetyOperationTargetResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetyOperationTargetResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyOperationTargetResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SafetyParticipantResultInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.SafetyParticipantResultInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * bool recorded = 1; + * @return The recorded. + */ + boolean getRecorded(); + + /** + * bool success = 2; + * @return The success. + */ + boolean getSuccess(); + + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The enum numeric value on the wire for reasonCode. + */ + int getReasonCodeValue(); + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The reasonCode. + */ + cmvr.api.Common.CommandReasonCode getReasonCode(); + + /** + * string detail = 4; + * @return The detail. + */ + java.lang.String getDetail(); + /** + * string detail = 4; + * @return The bytes for detail. + */ + com.google.protobuf.ByteString + getDetailBytes(); + } + /** + * Protobuf type {@code cmvr.api.SafetyParticipantResultInfo} + */ + public static final class SafetyParticipantResultInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.SafetyParticipantResultInfo) + SafetyParticipantResultInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use SafetyParticipantResultInfo.newBuilder() to construct. + private SafetyParticipantResultInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SafetyParticipantResultInfo() { + reasonCode_ = 0; + detail_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SafetyParticipantResultInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantResultInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.class, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder.class); + } + + public static final int RECORDED_FIELD_NUMBER = 1; + private boolean recorded_; + /** + * bool recorded = 1; + * @return The recorded. + */ + @java.lang.Override + public boolean getRecorded() { + return recorded_; + } + + public static final int SUCCESS_FIELD_NUMBER = 2; + private boolean success_; + /** + * bool success = 2; + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + + public static final int REASON_CODE_FIELD_NUMBER = 3; + private int reasonCode_; + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The enum numeric value on the wire for reasonCode. + */ + @java.lang.Override public int getReasonCodeValue() { + return reasonCode_; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The reasonCode. + */ + @java.lang.Override public cmvr.api.Common.CommandReasonCode getReasonCode() { + @SuppressWarnings("deprecation") + cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_); + return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result; + } + + public static final int DETAIL_FIELD_NUMBER = 4; + private volatile java.lang.Object detail_; + /** + * string detail = 4; + * @return The detail. + */ + @java.lang.Override + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } + } + /** + * string detail = 4; + * @return The bytes for detail. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (recorded_ != false) { + output.writeBool(1, recorded_); + } + if (success_ != false) { + output.writeBool(2, success_); + } + if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, reasonCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, detail_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (recorded_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, recorded_); + } + if (success_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, success_); + } + if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, reasonCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detail_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.SafetyParticipantResultInfo)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.SafetyParticipantResultInfo other = (cmvr.api.SafetyCommand.SafetyParticipantResultInfo) obj; + + if (getRecorded() + != other.getRecorded()) return false; + if (getSuccess() + != other.getSuccess()) return false; + if (reasonCode_ != other.reasonCode_) return false; + if (!getDetail() + .equals(other.getDetail())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECORDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRecorded()); + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSuccess()); + hash = (37 * hash) + REASON_CODE_FIELD_NUMBER; + hash = (53 * hash) + reasonCode_; + hash = (37 * hash) + DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getDetail().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.SafetyParticipantResultInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.SafetyParticipantResultInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.SafetyParticipantResultInfo) + cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantResultInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.class, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.SafetyParticipantResultInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + recorded_ = false; + + success_ = false; + + reasonCode_ = 0; + + detail_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo build() { + cmvr.api.SafetyCommand.SafetyParticipantResultInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo buildPartial() { + cmvr.api.SafetyCommand.SafetyParticipantResultInfo result = new cmvr.api.SafetyCommand.SafetyParticipantResultInfo(this); + result.recorded_ = recorded_; + result.success_ = success_; + result.reasonCode_ = reasonCode_; + result.detail_ = detail_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.SafetyParticipantResultInfo) { + return mergeFrom((cmvr.api.SafetyCommand.SafetyParticipantResultInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.SafetyParticipantResultInfo other) { + if (other == cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance()) return this; + if (other.getRecorded() != false) { + setRecorded(other.getRecorded()); + } + if (other.getSuccess() != false) { + setSuccess(other.getSuccess()); + } + if (other.reasonCode_ != 0) { + setReasonCodeValue(other.getReasonCodeValue()); + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + recorded_ = input.readBool(); + + break; + } // case 8 + case 16: { + success_ = input.readBool(); + + break; + } // case 16 + case 24: { + reasonCode_ = input.readEnum(); + + break; + } // case 24 + case 34: { + detail_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private boolean recorded_ ; + /** + * bool recorded = 1; + * @return The recorded. + */ + @java.lang.Override + public boolean getRecorded() { + return recorded_; + } + /** + * bool recorded = 1; + * @param value The recorded to set. + * @return This builder for chaining. + */ + public Builder setRecorded(boolean value) { + + recorded_ = value; + onChanged(); + return this; + } + /** + * bool recorded = 1; + * @return This builder for chaining. + */ + public Builder clearRecorded() { + + recorded_ = false; + onChanged(); + return this; + } + + private boolean success_ ; + /** + * bool success = 2; + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + /** + * bool success = 2; + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(boolean value) { + + success_ = value; + onChanged(); + return this; + } + /** + * bool success = 2; + * @return This builder for chaining. + */ + public Builder clearSuccess() { + + success_ = false; + onChanged(); + return this; + } + + private int reasonCode_ = 0; + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The enum numeric value on the wire for reasonCode. + */ + @java.lang.Override public int getReasonCodeValue() { + return reasonCode_; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @param value The enum numeric value on the wire for reasonCode to set. + * @return This builder for chaining. + */ + public Builder setReasonCodeValue(int value) { + + reasonCode_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return The reasonCode. + */ + @java.lang.Override + public cmvr.api.Common.CommandReasonCode getReasonCode() { + @SuppressWarnings("deprecation") + cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_); + return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @param value The reasonCode to set. + * @return This builder for chaining. + */ + public Builder setReasonCode(cmvr.api.Common.CommandReasonCode value) { + if (value == null) { + throw new NullPointerException(); + } + + reasonCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.CommandReasonCode reason_code = 3; + * @return This builder for chaining. + */ + public Builder clearReasonCode() { + + reasonCode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object detail_ = ""; + /** + * string detail = 4; + * @return The detail. + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string detail = 4; + * @return The bytes for detail. + */ + public com.google.protobuf.ByteString + getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string detail = 4; + * @param value The detail to set. + * @return This builder for chaining. + */ + public Builder setDetail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + detail_ = value; + onChanged(); + return this; + } + /** + * string detail = 4; + * @return This builder for chaining. + */ + public Builder clearDetail() { + + detail_ = getDefaultInstance().getDetail(); + onChanged(); + return this; + } + /** + * string detail = 4; + * @param value The bytes for detail to set. + * @return This builder for chaining. + */ + public Builder setDetailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + detail_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.SafetyParticipantResultInfo) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.SafetyParticipantResultInfo) + private static final cmvr.api.SafetyCommand.SafetyParticipantResultInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.SafetyParticipantResultInfo(); + } + + public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetyParticipantResultInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SafetyParticipantStateInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.SafetyParticipantStateInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string participant_id = 1; + * @return The participantId. + */ + java.lang.String getParticipantId(); + /** + * string participant_id = 1; + * @return The bytes for participantId. + */ + com.google.protobuf.ByteString + getParticipantIdBytes(); + + /** + * string phase = 2; + * @return The phase. + */ + java.lang.String getPhase(); + /** + * string phase = 2; + * @return The bytes for phase. + */ + com.google.protobuf.ByteString + getPhaseBytes(); + + /** + * bool required = 3; + * @return The required. + */ + boolean getRequired(); + + /** + * bool registered = 4; + * @return The registered. + */ + boolean getRegistered(); + + /** + * bool barrier_active = 5; + * @return The barrierActive. + */ + boolean getBarrierActive(); + + /** + * bool barrier_retained = 6; + * @return The barrierRetained. + */ + boolean getBarrierRetained(); + + /** + * string operation_id = 7; + * @return The operationId. + */ + java.lang.String getOperationId(); + /** + * string operation_id = 7; + * @return The bytes for operationId. + */ + com.google.protobuf.ByteString + getOperationIdBytes(); + + /** + * uint64 safety_epoch = 8; + * @return The safetyEpoch. + */ + long getSafetyEpoch(); + + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + * @return Whether the lastRequest field is set. + */ + boolean hasLastRequest(); + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + * @return The lastRequest. + */ + cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRequest(); + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + */ + cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastRequestOrBuilder(); + + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + * @return Whether the lastVerify field is set. + */ + boolean hasLastVerify(); + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + * @return The lastVerify. + */ + cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastVerify(); + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + */ + cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastVerifyOrBuilder(); + + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + * @return Whether the lastRelease field is set. + */ + boolean hasLastRelease(); + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + * @return The lastRelease. + */ + cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRelease(); + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + */ + cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastReleaseOrBuilder(); + } + /** + * Protobuf type {@code cmvr.api.SafetyParticipantStateInfo} + */ + public static final class SafetyParticipantStateInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.SafetyParticipantStateInfo) + SafetyParticipantStateInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use SafetyParticipantStateInfo.newBuilder() to construct. + private SafetyParticipantStateInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SafetyParticipantStateInfo() { + participantId_ = ""; + phase_ = ""; + operationId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SafetyParticipantStateInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantStateInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.SafetyParticipantStateInfo.class, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder.class); + } + + public static final int PARTICIPANT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object participantId_; + /** + * string participant_id = 1; + * @return The participantId. + */ + @java.lang.Override + public java.lang.String getParticipantId() { + java.lang.Object ref = participantId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participantId_ = s; + return s; + } + } + /** + * string participant_id = 1; + * @return The bytes for participantId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParticipantIdBytes() { + java.lang.Object ref = participantId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + participantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHASE_FIELD_NUMBER = 2; + private volatile java.lang.Object phase_; + /** + * string phase = 2; + * @return The phase. + */ + @java.lang.Override + public java.lang.String getPhase() { + java.lang.Object ref = phase_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phase_ = s; + return s; + } + } + /** + * string phase = 2; + * @return The bytes for phase. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPhaseBytes() { + java.lang.Object ref = phase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUIRED_FIELD_NUMBER = 3; + private boolean required_; + /** + * bool required = 3; + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + + public static final int REGISTERED_FIELD_NUMBER = 4; + private boolean registered_; + /** + * bool registered = 4; + * @return The registered. + */ + @java.lang.Override + public boolean getRegistered() { + return registered_; + } + + public static final int BARRIER_ACTIVE_FIELD_NUMBER = 5; + private boolean barrierActive_; + /** + * bool barrier_active = 5; + * @return The barrierActive. + */ + @java.lang.Override + public boolean getBarrierActive() { + return barrierActive_; + } + + public static final int BARRIER_RETAINED_FIELD_NUMBER = 6; + private boolean barrierRetained_; + /** + * bool barrier_retained = 6; + * @return The barrierRetained. + */ + @java.lang.Override + public boolean getBarrierRetained() { + return barrierRetained_; + } + + public static final int OPERATION_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object operationId_; + /** + * string operation_id = 7; + * @return The operationId. + */ + @java.lang.Override + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + /** + * string operation_id = 7; + * @return The bytes for operationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAFETY_EPOCH_FIELD_NUMBER = 8; + private long safetyEpoch_; + /** + * uint64 safety_epoch = 8; + * @return The safetyEpoch. + */ + @java.lang.Override + public long getSafetyEpoch() { + return safetyEpoch_; + } + + public static final int LAST_REQUEST_FIELD_NUMBER = 9; + private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastRequest_; + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + * @return Whether the lastRequest field is set. + */ + @java.lang.Override + public boolean hasLastRequest() { + return lastRequest_ != null; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + * @return The lastRequest. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRequest() { + return lastRequest_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRequest_; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastRequestOrBuilder() { + return getLastRequest(); + } + + public static final int LAST_VERIFY_FIELD_NUMBER = 10; + private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastVerify_; + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + * @return Whether the lastVerify field is set. + */ + @java.lang.Override + public boolean hasLastVerify() { + return lastVerify_ != null; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + * @return The lastVerify. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastVerify() { + return lastVerify_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastVerify_; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastVerifyOrBuilder() { + return getLastVerify(); + } + + public static final int LAST_RELEASE_FIELD_NUMBER = 11; + private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastRelease_; + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + * @return Whether the lastRelease field is set. + */ + @java.lang.Override + public boolean hasLastRelease() { + return lastRelease_ != null; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + * @return The lastRelease. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRelease() { + return lastRelease_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRelease_; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastReleaseOrBuilder() { + return getLastRelease(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(participantId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, participantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, phase_); + } + if (required_ != false) { + output.writeBool(3, required_); + } + if (registered_ != false) { + output.writeBool(4, registered_); + } + if (barrierActive_ != false) { + output.writeBool(5, barrierActive_); + } + if (barrierRetained_ != false) { + output.writeBool(6, barrierRetained_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, operationId_); + } + if (safetyEpoch_ != 0L) { + output.writeUInt64(8, safetyEpoch_); + } + if (lastRequest_ != null) { + output.writeMessage(9, getLastRequest()); + } + if (lastVerify_ != null) { + output.writeMessage(10, getLastVerify()); + } + if (lastRelease_ != null) { + output.writeMessage(11, getLastRelease()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(participantId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, participantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phase_); + } + if (required_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, required_); + } + if (registered_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, registered_); + } + if (barrierActive_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, barrierActive_); + } + if (barrierRetained_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, barrierRetained_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, operationId_); + } + if (safetyEpoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(8, safetyEpoch_); + } + if (lastRequest_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getLastRequest()); + } + if (lastVerify_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getLastVerify()); + } + if (lastRelease_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getLastRelease()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.SafetyParticipantStateInfo)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.SafetyParticipantStateInfo other = (cmvr.api.SafetyCommand.SafetyParticipantStateInfo) obj; + + if (!getParticipantId() + .equals(other.getParticipantId())) return false; + if (!getPhase() + .equals(other.getPhase())) return false; + if (getRequired() + != other.getRequired()) return false; + if (getRegistered() + != other.getRegistered()) return false; + if (getBarrierActive() + != other.getBarrierActive()) return false; + if (getBarrierRetained() + != other.getBarrierRetained()) return false; + if (!getOperationId() + .equals(other.getOperationId())) return false; + if (getSafetyEpoch() + != other.getSafetyEpoch()) return false; + if (hasLastRequest() != other.hasLastRequest()) return false; + if (hasLastRequest()) { + if (!getLastRequest() + .equals(other.getLastRequest())) return false; + } + if (hasLastVerify() != other.hasLastVerify()) return false; + if (hasLastVerify()) { + if (!getLastVerify() + .equals(other.getLastVerify())) return false; + } + if (hasLastRelease() != other.hasLastRelease()) return false; + if (hasLastRelease()) { + if (!getLastRelease() + .equals(other.getLastRelease())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARTICIPANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getParticipantId().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + getPhase().hashCode(); + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequired()); + hash = (37 * hash) + REGISTERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRegistered()); + hash = (37 * hash) + BARRIER_ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBarrierActive()); + hash = (37 * hash) + BARRIER_RETAINED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBarrierRetained()); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + SAFETY_EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSafetyEpoch()); + if (hasLastRequest()) { + hash = (37 * hash) + LAST_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getLastRequest().hashCode(); + } + if (hasLastVerify()) { + hash = (37 * hash) + LAST_VERIFY_FIELD_NUMBER; + hash = (53 * hash) + getLastVerify().hashCode(); + } + if (hasLastRelease()) { + hash = (37 * hash) + LAST_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getLastRelease().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.SafetyParticipantStateInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.SafetyParticipantStateInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.SafetyParticipantStateInfo) + cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantStateInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.SafetyParticipantStateInfo.class, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.SafetyParticipantStateInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + participantId_ = ""; + + phase_ = ""; + + required_ = false; + + registered_ = false; + + barrierActive_ = false; + + barrierRetained_ = false; + + operationId_ = ""; + + safetyEpoch_ = 0L; + + if (lastRequestBuilder_ == null) { + lastRequest_ = null; + } else { + lastRequest_ = null; + lastRequestBuilder_ = null; + } + if (lastVerifyBuilder_ == null) { + lastVerify_ = null; + } else { + lastVerify_ = null; + lastVerifyBuilder_ = null; + } + if (lastReleaseBuilder_ == null) { + lastRelease_ = null; + } else { + lastRelease_ = null; + lastReleaseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantStateInfo getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.SafetyParticipantStateInfo.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantStateInfo build() { + cmvr.api.SafetyCommand.SafetyParticipantStateInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantStateInfo buildPartial() { + cmvr.api.SafetyCommand.SafetyParticipantStateInfo result = new cmvr.api.SafetyCommand.SafetyParticipantStateInfo(this); + result.participantId_ = participantId_; + result.phase_ = phase_; + result.required_ = required_; + result.registered_ = registered_; + result.barrierActive_ = barrierActive_; + result.barrierRetained_ = barrierRetained_; + result.operationId_ = operationId_; + result.safetyEpoch_ = safetyEpoch_; + if (lastRequestBuilder_ == null) { + result.lastRequest_ = lastRequest_; + } else { + result.lastRequest_ = lastRequestBuilder_.build(); + } + if (lastVerifyBuilder_ == null) { + result.lastVerify_ = lastVerify_; + } else { + result.lastVerify_ = lastVerifyBuilder_.build(); + } + if (lastReleaseBuilder_ == null) { + result.lastRelease_ = lastRelease_; + } else { + result.lastRelease_ = lastReleaseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.SafetyParticipantStateInfo) { + return mergeFrom((cmvr.api.SafetyCommand.SafetyParticipantStateInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.SafetyParticipantStateInfo other) { + if (other == cmvr.api.SafetyCommand.SafetyParticipantStateInfo.getDefaultInstance()) return this; + if (!other.getParticipantId().isEmpty()) { + participantId_ = other.participantId_; + onChanged(); + } + if (!other.getPhase().isEmpty()) { + phase_ = other.phase_; + onChanged(); + } + if (other.getRequired() != false) { + setRequired(other.getRequired()); + } + if (other.getRegistered() != false) { + setRegistered(other.getRegistered()); + } + if (other.getBarrierActive() != false) { + setBarrierActive(other.getBarrierActive()); + } + if (other.getBarrierRetained() != false) { + setBarrierRetained(other.getBarrierRetained()); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (other.getSafetyEpoch() != 0L) { + setSafetyEpoch(other.getSafetyEpoch()); + } + if (other.hasLastRequest()) { + mergeLastRequest(other.getLastRequest()); + } + if (other.hasLastVerify()) { + mergeLastVerify(other.getLastVerify()); + } + if (other.hasLastRelease()) { + mergeLastRelease(other.getLastRelease()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + participantId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + phase_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + required_ = input.readBool(); + + break; + } // case 24 + case 32: { + registered_ = input.readBool(); + + break; + } // case 32 + case 40: { + barrierActive_ = input.readBool(); + + break; + } // case 40 + case 48: { + barrierRetained_ = input.readBool(); + + break; + } // case 48 + case 58: { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 64: { + safetyEpoch_ = input.readUInt64(); + + break; + } // case 64 + case 74: { + input.readMessage( + getLastRequestFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + input.readMessage( + getLastVerifyFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 82 + case 90: { + input.readMessage( + getLastReleaseFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 90 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object participantId_ = ""; + /** + * string participant_id = 1; + * @return The participantId. + */ + public java.lang.String getParticipantId() { + java.lang.Object ref = participantId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participantId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string participant_id = 1; + * @return The bytes for participantId. + */ + public com.google.protobuf.ByteString + getParticipantIdBytes() { + java.lang.Object ref = participantId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + participantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string participant_id = 1; + * @param value The participantId to set. + * @return This builder for chaining. + */ + public Builder setParticipantId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + participantId_ = value; + onChanged(); + return this; + } + /** + * string participant_id = 1; + * @return This builder for chaining. + */ + public Builder clearParticipantId() { + + participantId_ = getDefaultInstance().getParticipantId(); + onChanged(); + return this; + } + /** + * string participant_id = 1; + * @param value The bytes for participantId to set. + * @return This builder for chaining. + */ + public Builder setParticipantIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + participantId_ = value; + onChanged(); + return this; + } + + private java.lang.Object phase_ = ""; + /** + * string phase = 2; + * @return The phase. + */ + public java.lang.String getPhase() { + java.lang.Object ref = phase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string phase = 2; + * @return The bytes for phase. + */ + public com.google.protobuf.ByteString + getPhaseBytes() { + java.lang.Object ref = phase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string phase = 2; + * @param value The phase to set. + * @return This builder for chaining. + */ + public Builder setPhase( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value; + onChanged(); + return this; + } + /** + * string phase = 2; + * @return This builder for chaining. + */ + public Builder clearPhase() { + + phase_ = getDefaultInstance().getPhase(); + onChanged(); + return this; + } + /** + * string phase = 2; + * @param value The bytes for phase to set. + * @return This builder for chaining. + */ + public Builder setPhaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phase_ = value; + onChanged(); + return this; + } + + private boolean required_ ; + /** + * bool required = 3; + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + /** + * bool required = 3; + * @param value The required to set. + * @return This builder for chaining. + */ + public Builder setRequired(boolean value) { + + required_ = value; + onChanged(); + return this; + } + /** + * bool required = 3; + * @return This builder for chaining. + */ + public Builder clearRequired() { + + required_ = false; + onChanged(); + return this; + } + + private boolean registered_ ; + /** + * bool registered = 4; + * @return The registered. + */ + @java.lang.Override + public boolean getRegistered() { + return registered_; + } + /** + * bool registered = 4; + * @param value The registered to set. + * @return This builder for chaining. + */ + public Builder setRegistered(boolean value) { + + registered_ = value; + onChanged(); + return this; + } + /** + * bool registered = 4; + * @return This builder for chaining. + */ + public Builder clearRegistered() { + + registered_ = false; + onChanged(); + return this; + } + + private boolean barrierActive_ ; + /** + * bool barrier_active = 5; + * @return The barrierActive. + */ + @java.lang.Override + public boolean getBarrierActive() { + return barrierActive_; + } + /** + * bool barrier_active = 5; + * @param value The barrierActive to set. + * @return This builder for chaining. + */ + public Builder setBarrierActive(boolean value) { + + barrierActive_ = value; + onChanged(); + return this; + } + /** + * bool barrier_active = 5; + * @return This builder for chaining. + */ + public Builder clearBarrierActive() { + + barrierActive_ = false; + onChanged(); + return this; + } + + private boolean barrierRetained_ ; + /** + * bool barrier_retained = 6; + * @return The barrierRetained. + */ + @java.lang.Override + public boolean getBarrierRetained() { + return barrierRetained_; + } + /** + * bool barrier_retained = 6; + * @param value The barrierRetained to set. + * @return This builder for chaining. + */ + public Builder setBarrierRetained(boolean value) { + + barrierRetained_ = value; + onChanged(); + return this; + } + /** + * bool barrier_retained = 6; + * @return This builder for chaining. + */ + public Builder clearBarrierRetained() { + + barrierRetained_ = false; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + * string operation_id = 7; + * @return The operationId. + */ + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string operation_id = 7; + * @return The bytes for operationId. + */ + public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string operation_id = 7; + * @param value The operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + * string operation_id = 7; + * @return This builder for chaining. + */ + public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + * string operation_id = 7; + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private long safetyEpoch_ ; + /** + * uint64 safety_epoch = 8; + * @return The safetyEpoch. + */ + @java.lang.Override + public long getSafetyEpoch() { + return safetyEpoch_; + } + /** + * uint64 safety_epoch = 8; + * @param value The safetyEpoch to set. + * @return This builder for chaining. + */ + public Builder setSafetyEpoch(long value) { + + safetyEpoch_ = value; + onChanged(); + return this; + } + /** + * uint64 safety_epoch = 8; + * @return This builder for chaining. + */ + public Builder clearSafetyEpoch() { + + safetyEpoch_ = 0L; + onChanged(); + return this; + } + + private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastRequest_; + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder> lastRequestBuilder_; + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + * @return Whether the lastRequest field is set. + */ + public boolean hasLastRequest() { + return lastRequestBuilder_ != null || lastRequest_ != null; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + * @return The lastRequest. + */ + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRequest() { + if (lastRequestBuilder_ == null) { + return lastRequest_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRequest_; + } else { + return lastRequestBuilder_.getMessage(); + } + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + */ + public Builder setLastRequest(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) { + if (lastRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastRequest_ = value; + onChanged(); + } else { + lastRequestBuilder_.setMessage(value); + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + */ + public Builder setLastRequest( + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder builderForValue) { + if (lastRequestBuilder_ == null) { + lastRequest_ = builderForValue.build(); + onChanged(); + } else { + lastRequestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + */ + public Builder mergeLastRequest(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) { + if (lastRequestBuilder_ == null) { + if (lastRequest_ != null) { + lastRequest_ = + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.newBuilder(lastRequest_).mergeFrom(value).buildPartial(); + } else { + lastRequest_ = value; + } + onChanged(); + } else { + lastRequestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + */ + public Builder clearLastRequest() { + if (lastRequestBuilder_ == null) { + lastRequest_ = null; + onChanged(); + } else { + lastRequest_ = null; + lastRequestBuilder_ = null; + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + */ + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder getLastRequestBuilder() { + + onChanged(); + return getLastRequestFieldBuilder().getBuilder(); + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + */ + public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastRequestOrBuilder() { + if (lastRequestBuilder_ != null) { + return lastRequestBuilder_.getMessageOrBuilder(); + } else { + return lastRequest_ == null ? + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRequest_; + } + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_request = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder> + getLastRequestFieldBuilder() { + if (lastRequestBuilder_ == null) { + lastRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder>( + getLastRequest(), + getParentForChildren(), + isClean()); + lastRequest_ = null; + } + return lastRequestBuilder_; + } + + private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastVerify_; + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder> lastVerifyBuilder_; + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + * @return Whether the lastVerify field is set. + */ + public boolean hasLastVerify() { + return lastVerifyBuilder_ != null || lastVerify_ != null; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + * @return The lastVerify. + */ + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastVerify() { + if (lastVerifyBuilder_ == null) { + return lastVerify_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastVerify_; + } else { + return lastVerifyBuilder_.getMessage(); + } + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + */ + public Builder setLastVerify(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) { + if (lastVerifyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastVerify_ = value; + onChanged(); + } else { + lastVerifyBuilder_.setMessage(value); + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + */ + public Builder setLastVerify( + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder builderForValue) { + if (lastVerifyBuilder_ == null) { + lastVerify_ = builderForValue.build(); + onChanged(); + } else { + lastVerifyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + */ + public Builder mergeLastVerify(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) { + if (lastVerifyBuilder_ == null) { + if (lastVerify_ != null) { + lastVerify_ = + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.newBuilder(lastVerify_).mergeFrom(value).buildPartial(); + } else { + lastVerify_ = value; + } + onChanged(); + } else { + lastVerifyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + */ + public Builder clearLastVerify() { + if (lastVerifyBuilder_ == null) { + lastVerify_ = null; + onChanged(); + } else { + lastVerify_ = null; + lastVerifyBuilder_ = null; + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + */ + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder getLastVerifyBuilder() { + + onChanged(); + return getLastVerifyFieldBuilder().getBuilder(); + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + */ + public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastVerifyOrBuilder() { + if (lastVerifyBuilder_ != null) { + return lastVerifyBuilder_.getMessageOrBuilder(); + } else { + return lastVerify_ == null ? + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastVerify_; + } + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_verify = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder> + getLastVerifyFieldBuilder() { + if (lastVerifyBuilder_ == null) { + lastVerifyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder>( + getLastVerify(), + getParentForChildren(), + isClean()); + lastVerify_ = null; + } + return lastVerifyBuilder_; + } + + private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastRelease_; + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder> lastReleaseBuilder_; + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + * @return Whether the lastRelease field is set. + */ + public boolean hasLastRelease() { + return lastReleaseBuilder_ != null || lastRelease_ != null; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + * @return The lastRelease. + */ + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRelease() { + if (lastReleaseBuilder_ == null) { + return lastRelease_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRelease_; + } else { + return lastReleaseBuilder_.getMessage(); + } + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + */ + public Builder setLastRelease(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) { + if (lastReleaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastRelease_ = value; + onChanged(); + } else { + lastReleaseBuilder_.setMessage(value); + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + */ + public Builder setLastRelease( + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder builderForValue) { + if (lastReleaseBuilder_ == null) { + lastRelease_ = builderForValue.build(); + onChanged(); + } else { + lastReleaseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + */ + public Builder mergeLastRelease(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) { + if (lastReleaseBuilder_ == null) { + if (lastRelease_ != null) { + lastRelease_ = + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.newBuilder(lastRelease_).mergeFrom(value).buildPartial(); + } else { + lastRelease_ = value; + } + onChanged(); + } else { + lastReleaseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + */ + public Builder clearLastRelease() { + if (lastReleaseBuilder_ == null) { + lastRelease_ = null; + onChanged(); + } else { + lastRelease_ = null; + lastReleaseBuilder_ = null; + } + + return this; + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + */ + public cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder getLastReleaseBuilder() { + + onChanged(); + return getLastReleaseFieldBuilder().getBuilder(); + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + */ + public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastReleaseOrBuilder() { + if (lastReleaseBuilder_ != null) { + return lastReleaseBuilder_.getMessageOrBuilder(); + } else { + return lastRelease_ == null ? + cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRelease_; + } + } + /** + * .cmvr.api.SafetyParticipantResultInfo last_release = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder> + getLastReleaseFieldBuilder() { + if (lastReleaseBuilder_ == null) { + lastReleaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder>( + getLastRelease(), + getParentForChildren(), + isClean()); + lastRelease_ = null; + } + return lastReleaseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.SafetyParticipantStateInfo) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.SafetyParticipantStateInfo) + private static final cmvr.api.SafetyCommand.SafetyParticipantStateInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.SafetyParticipantStateInfo(); + } + + public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetyParticipantStateInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantStateInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetSafetyStateCommandOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.GetSafetyStateCommand) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code cmvr.api.GetSafetyStateCommand} + */ + public static final class GetSafetyStateCommand extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.GetSafetyStateCommand) + GetSafetyStateCommandOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSafetyStateCommand.newBuilder() to construct. + private GetSafetyStateCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetSafetyStateCommand() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetSafetyStateCommand(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.GetSafetyStateCommand.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Builder.class); + } + + public interface RequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.GetSafetyStateCommand.Request) + com.google.protobuf.MessageOrBuilder { + + /** + * .cmvr.api.SafetyScope scope = 1; + * @return Whether the scope field is set. + */ + boolean hasScope(); + /** + * .cmvr.api.SafetyScope scope = 1; + * @return The scope. + */ + cmvr.api.SafetyCommand.SafetyScope getScope(); + /** + * .cmvr.api.SafetyScope scope = 1; + */ + cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder(); + } + /** + * Protobuf type {@code cmvr.api.GetSafetyStateCommand.Request} + */ + public static final class Request extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.GetSafetyStateCommand.Request) + RequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use Request.newBuilder() to construct. + private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Request() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Request(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.Builder.class); + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private cmvr.api.SafetyCommand.SafetyScope scope_; + /** + * .cmvr.api.SafetyScope scope = 1; + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return scope_ != null; + } + /** + * .cmvr.api.SafetyScope scope = 1; + * @return The scope. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyScope getScope() { + return scope_ == null ? cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_; + } + /** + * .cmvr.api.SafetyScope scope = 1; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder() { + return getScope(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (scope_ != null) { + output.writeMessage(1, getScope()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getScope()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand.Request)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.GetSafetyStateCommand.Request other = (cmvr.api.SafetyCommand.GetSafetyStateCommand.Request) obj; + + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (!getScope() + .equals(other.getScope())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.GetSafetyStateCommand.Request prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.GetSafetyStateCommand.Request} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.GetSafetyStateCommand.Request) + cmvr.api.SafetyCommand.GetSafetyStateCommand.RequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (scopeBuilder_ == null) { + scope_ = null; + } else { + scope_ = null; + scopeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand.Request getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand.Request build() { + cmvr.api.SafetyCommand.GetSafetyStateCommand.Request result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand.Request buildPartial() { + cmvr.api.SafetyCommand.GetSafetyStateCommand.Request result = new cmvr.api.SafetyCommand.GetSafetyStateCommand.Request(this); + if (scopeBuilder_ == null) { + result.scope_ = scope_; + } else { + result.scope_ = scopeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand.Request) { + return mergeFrom((cmvr.api.SafetyCommand.GetSafetyStateCommand.Request)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.GetSafetyStateCommand.Request other) { + if (other == cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.getDefaultInstance()) return this; + if (other.hasScope()) { + mergeScope(other.getScope()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getScopeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private cmvr.api.SafetyCommand.SafetyScope scope_; + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder> scopeBuilder_; + /** + * .cmvr.api.SafetyScope scope = 1; + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return scopeBuilder_ != null || scope_ != null; + } + /** + * .cmvr.api.SafetyScope scope = 1; + * @return The scope. + */ + public cmvr.api.SafetyCommand.SafetyScope getScope() { + if (scopeBuilder_ == null) { + return scope_ == null ? cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_; + } else { + return scopeBuilder_.getMessage(); + } + } + /** + * .cmvr.api.SafetyScope scope = 1; + */ + public Builder setScope(cmvr.api.SafetyCommand.SafetyScope value) { + if (scopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + onChanged(); + } else { + scopeBuilder_.setMessage(value); + } + + return this; + } + /** + * .cmvr.api.SafetyScope scope = 1; + */ + public Builder setScope( + cmvr.api.SafetyCommand.SafetyScope.Builder builderForValue) { + if (scopeBuilder_ == null) { + scope_ = builderForValue.build(); + onChanged(); + } else { + scopeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .cmvr.api.SafetyScope scope = 1; + */ + public Builder mergeScope(cmvr.api.SafetyCommand.SafetyScope value) { + if (scopeBuilder_ == null) { + if (scope_ != null) { + scope_ = + cmvr.api.SafetyCommand.SafetyScope.newBuilder(scope_).mergeFrom(value).buildPartial(); + } else { + scope_ = value; + } + onChanged(); + } else { + scopeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .cmvr.api.SafetyScope scope = 1; + */ + public Builder clearScope() { + if (scopeBuilder_ == null) { + scope_ = null; + onChanged(); + } else { + scope_ = null; + scopeBuilder_ = null; + } + + return this; + } + /** + * .cmvr.api.SafetyScope scope = 1; + */ + public cmvr.api.SafetyCommand.SafetyScope.Builder getScopeBuilder() { + + onChanged(); + return getScopeFieldBuilder().getBuilder(); + } + /** + * .cmvr.api.SafetyScope scope = 1; + */ + public cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder() { + if (scopeBuilder_ != null) { + return scopeBuilder_.getMessageOrBuilder(); + } else { + return scope_ == null ? + cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_; + } + } + /** + * .cmvr.api.SafetyScope scope = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder> + getScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder>( + getScope(), + getParentForChildren(), + isClean()); + scope_ = null; + } + return scopeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.GetSafetyStateCommand.Request) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.GetSafetyStateCommand.Request) + private static final cmvr.api.SafetyCommand.GetSafetyStateCommand.Request DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.GetSafetyStateCommand.Request(); + } + + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Request parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand.Request getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FeedbackOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.GetSafetyStateCommand.Feedback) + com.google.protobuf.MessageOrBuilder { + + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return The header. + */ + cmvr.api.Common.CommandHeader.Feedback getHeader(); + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder(); + + /** + * .cmvr.api.SystemAdmissionState system_state = 2; + * @return The enum numeric value on the wire for systemState. + */ + int getSystemStateValue(); + /** + * .cmvr.api.SystemAdmissionState system_state = 2; + * @return The systemState. + */ + cmvr.api.SafetyCommand.SystemAdmissionState getSystemState(); + + /** + * uint64 safety_epoch = 3; + * @return The safetyEpoch. + */ + long getSafetyEpoch(); + + /** + * string control_service_instance_id = 4; + * @return The controlServiceInstanceId. + */ + java.lang.String getControlServiceInstanceId(); + /** + * string control_service_instance_id = 4; + * @return The bytes for controlServiceInstanceId. + */ + com.google.protobuf.ByteString + getControlServiceInstanceIdBytes(); + + /** + * string enforcement_mode = 5; + * @return The enforcementMode. + */ + java.lang.String getEnforcementMode(); + /** + * string enforcement_mode = 5; + * @return The bytes for enforcementMode. + */ + com.google.protobuf.ByteString + getEnforcementModeBytes(); + + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + java.util.List + getDevicesList(); + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDevices(int index); + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + int getDevicesCount(); + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + java.util.List + getDevicesOrBuilderList(); + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder getDevicesOrBuilder( + int index); + + /** + * string active_operation_id = 7; + * @return The activeOperationId. + */ + java.lang.String getActiveOperationId(); + /** + * string active_operation_id = 7; + * @return The bytes for activeOperationId. + */ + com.google.protobuf.ByteString + getActiveOperationIdBytes(); + + /** + * string active_operation_phase = 8; + * @return The activeOperationPhase. + */ + java.lang.String getActiveOperationPhase(); + /** + * string active_operation_phase = 8; + * @return The bytes for activeOperationPhase. + */ + com.google.protobuf.ByteString + getActiveOperationPhaseBytes(); + + /** + * uint64 sampled_at_unix_ms = 9; + * @return The sampledAtUnixMs. + */ + long getSampledAtUnixMs(); + + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + java.util.List + getParticipantsList(); + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + cmvr.api.SafetyCommand.SafetyParticipantStateInfo getParticipants(int index); + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + int getParticipantsCount(); + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + java.util.List + getParticipantsOrBuilderList(); + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder getParticipantsOrBuilder( + int index); + } + /** + * Protobuf type {@code cmvr.api.GetSafetyStateCommand.Feedback} + */ + public static final class Feedback extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.GetSafetyStateCommand.Feedback) + FeedbackOrBuilder { + private static final long serialVersionUID = 0L; + // Use Feedback.newBuilder() to construct. + private Feedback(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Feedback() { + systemState_ = 0; + controlServiceInstanceId_ = ""; + enforcementMode_ = ""; + devices_ = java.util.Collections.emptyList(); + activeOperationId_ = ""; + activeOperationPhase_ = ""; + participants_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Feedback(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Feedback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private cmvr.api.Common.CommandHeader.Feedback header_; + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return The header. + */ + @java.lang.Override + public cmvr.api.Common.CommandHeader.Feedback getHeader() { + return header_ == null ? cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + @java.lang.Override + public cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int SYSTEM_STATE_FIELD_NUMBER = 2; + private int systemState_; + /** + * .cmvr.api.SystemAdmissionState system_state = 2; + * @return The enum numeric value on the wire for systemState. + */ + @java.lang.Override public int getSystemStateValue() { + return systemState_; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 2; + * @return The systemState. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_); + return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result; + } + + public static final int SAFETY_EPOCH_FIELD_NUMBER = 3; + private long safetyEpoch_; + /** + * uint64 safety_epoch = 3; + * @return The safetyEpoch. + */ + @java.lang.Override + public long getSafetyEpoch() { + return safetyEpoch_; + } + + public static final int CONTROL_SERVICE_INSTANCE_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object controlServiceInstanceId_; + /** + * string control_service_instance_id = 4; + * @return The controlServiceInstanceId. + */ + @java.lang.Override + public java.lang.String getControlServiceInstanceId() { + java.lang.Object ref = controlServiceInstanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + controlServiceInstanceId_ = s; + return s; + } + } + /** + * string control_service_instance_id = 4; + * @return The bytes for controlServiceInstanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getControlServiceInstanceIdBytes() { + java.lang.Object ref = controlServiceInstanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + controlServiceInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENFORCEMENT_MODE_FIELD_NUMBER = 5; + private volatile java.lang.Object enforcementMode_; + /** + * string enforcement_mode = 5; + * @return The enforcementMode. + */ + @java.lang.Override + public java.lang.String getEnforcementMode() { + java.lang.Object ref = enforcementMode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + enforcementMode_ = s; + return s; + } + } + /** + * string enforcement_mode = 5; + * @return The bytes for enforcementMode. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEnforcementModeBytes() { + java.lang.Object ref = enforcementMode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + enforcementMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICES_FIELD_NUMBER = 6; + private java.util.List devices_; + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + @java.lang.Override + public java.util.List getDevicesList() { + return devices_; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + @java.lang.Override + public java.util.List + getDevicesOrBuilderList() { + return devices_; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + @java.lang.Override + public int getDevicesCount() { + return devices_.size(); + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDevices(int index) { + return devices_.get(index); + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder getDevicesOrBuilder( + int index) { + return devices_.get(index); + } + + public static final int ACTIVE_OPERATION_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object activeOperationId_; + /** + * string active_operation_id = 7; + * @return The activeOperationId. + */ + @java.lang.Override + public java.lang.String getActiveOperationId() { + java.lang.Object ref = activeOperationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activeOperationId_ = s; + return s; + } + } + /** + * string active_operation_id = 7; + * @return The bytes for activeOperationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getActiveOperationIdBytes() { + java.lang.Object ref = activeOperationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + activeOperationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIVE_OPERATION_PHASE_FIELD_NUMBER = 8; + private volatile java.lang.Object activeOperationPhase_; + /** + * string active_operation_phase = 8; + * @return The activeOperationPhase. + */ + @java.lang.Override + public java.lang.String getActiveOperationPhase() { + java.lang.Object ref = activeOperationPhase_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activeOperationPhase_ = s; + return s; + } + } + /** + * string active_operation_phase = 8; + * @return The bytes for activeOperationPhase. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getActiveOperationPhaseBytes() { + java.lang.Object ref = activeOperationPhase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + activeOperationPhase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAMPLED_AT_UNIX_MS_FIELD_NUMBER = 9; + private long sampledAtUnixMs_; + /** + * uint64 sampled_at_unix_ms = 9; + * @return The sampledAtUnixMs. + */ + @java.lang.Override + public long getSampledAtUnixMs() { + return sampledAtUnixMs_; + } + + public static final int PARTICIPANTS_FIELD_NUMBER = 10; + private java.util.List participants_; + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + @java.lang.Override + public java.util.List getParticipantsList() { + return participants_; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + @java.lang.Override + public java.util.List + getParticipantsOrBuilderList() { + return participants_; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + @java.lang.Override + public int getParticipantsCount() { + return participants_.size(); + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantStateInfo getParticipants(int index) { + return participants_.get(index); + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder getParticipantsOrBuilder( + int index) { + return participants_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, systemState_); + } + if (safetyEpoch_ != 0L) { + output.writeUInt64(3, safetyEpoch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlServiceInstanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, controlServiceInstanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enforcementMode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, enforcementMode_); + } + for (int i = 0; i < devices_.size(); i++) { + output.writeMessage(6, devices_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeOperationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, activeOperationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeOperationPhase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, activeOperationPhase_); + } + if (sampledAtUnixMs_ != 0L) { + output.writeUInt64(9, sampledAtUnixMs_); + } + for (int i = 0; i < participants_.size(); i++) { + output.writeMessage(10, participants_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, systemState_); + } + if (safetyEpoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, safetyEpoch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlServiceInstanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, controlServiceInstanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enforcementMode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, enforcementMode_); + } + for (int i = 0; i < devices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, devices_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeOperationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, activeOperationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeOperationPhase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, activeOperationPhase_); + } + if (sampledAtUnixMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(9, sampledAtUnixMs_); + } + for (int i = 0; i < participants_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, participants_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback other = (cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (systemState_ != other.systemState_) return false; + if (getSafetyEpoch() + != other.getSafetyEpoch()) return false; + if (!getControlServiceInstanceId() + .equals(other.getControlServiceInstanceId())) return false; + if (!getEnforcementMode() + .equals(other.getEnforcementMode())) return false; + if (!getDevicesList() + .equals(other.getDevicesList())) return false; + if (!getActiveOperationId() + .equals(other.getActiveOperationId())) return false; + if (!getActiveOperationPhase() + .equals(other.getActiveOperationPhase())) return false; + if (getSampledAtUnixMs() + != other.getSampledAtUnixMs()) return false; + if (!getParticipantsList() + .equals(other.getParticipantsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + SYSTEM_STATE_FIELD_NUMBER; + hash = (53 * hash) + systemState_; + hash = (37 * hash) + SAFETY_EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSafetyEpoch()); + hash = (37 * hash) + CONTROL_SERVICE_INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getControlServiceInstanceId().hashCode(); + hash = (37 * hash) + ENFORCEMENT_MODE_FIELD_NUMBER; + hash = (53 * hash) + getEnforcementMode().hashCode(); + if (getDevicesCount() > 0) { + hash = (37 * hash) + DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getDevicesList().hashCode(); + } + hash = (37 * hash) + ACTIVE_OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getActiveOperationId().hashCode(); + hash = (37 * hash) + ACTIVE_OPERATION_PHASE_FIELD_NUMBER; + hash = (53 * hash) + getActiveOperationPhase().hashCode(); + hash = (37 * hash) + SAMPLED_AT_UNIX_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSampledAtUnixMs()); + if (getParticipantsCount() > 0) { + hash = (37 * hash) + PARTICIPANTS_FIELD_NUMBER; + hash = (53 * hash) + getParticipantsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.GetSafetyStateCommand.Feedback} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.GetSafetyStateCommand.Feedback) + cmvr.api.SafetyCommand.GetSafetyStateCommand.FeedbackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Feedback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + systemState_ = 0; + + safetyEpoch_ = 0L; + + controlServiceInstanceId_ = ""; + + enforcementMode_ = ""; + + if (devicesBuilder_ == null) { + devices_ = java.util.Collections.emptyList(); + } else { + devices_ = null; + devicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + activeOperationId_ = ""; + + activeOperationPhase_ = ""; + + sampledAtUnixMs_ = 0L; + + if (participantsBuilder_ == null) { + participants_ = java.util.Collections.emptyList(); + } else { + participants_ = null; + participantsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback build() { + cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback buildPartial() { + cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback result = new cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.systemState_ = systemState_; + result.safetyEpoch_ = safetyEpoch_; + result.controlServiceInstanceId_ = controlServiceInstanceId_; + result.enforcementMode_ = enforcementMode_; + if (devicesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + devices_ = java.util.Collections.unmodifiableList(devices_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.devices_ = devices_; + } else { + result.devices_ = devicesBuilder_.build(); + } + result.activeOperationId_ = activeOperationId_; + result.activeOperationPhase_ = activeOperationPhase_; + result.sampledAtUnixMs_ = sampledAtUnixMs_; + if (participantsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + participants_ = java.util.Collections.unmodifiableList(participants_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.participants_ = participants_; + } else { + result.participants_ = participantsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback) { + return mergeFrom((cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback other) { + if (other == cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.systemState_ != 0) { + setSystemStateValue(other.getSystemStateValue()); + } + if (other.getSafetyEpoch() != 0L) { + setSafetyEpoch(other.getSafetyEpoch()); + } + if (!other.getControlServiceInstanceId().isEmpty()) { + controlServiceInstanceId_ = other.controlServiceInstanceId_; + onChanged(); + } + if (!other.getEnforcementMode().isEmpty()) { + enforcementMode_ = other.enforcementMode_; + onChanged(); + } + if (devicesBuilder_ == null) { + if (!other.devices_.isEmpty()) { + if (devices_.isEmpty()) { + devices_ = other.devices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDevicesIsMutable(); + devices_.addAll(other.devices_); + } + onChanged(); + } + } else { + if (!other.devices_.isEmpty()) { + if (devicesBuilder_.isEmpty()) { + devicesBuilder_.dispose(); + devicesBuilder_ = null; + devices_ = other.devices_; + bitField0_ = (bitField0_ & ~0x00000001); + devicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDevicesFieldBuilder() : null; + } else { + devicesBuilder_.addAllMessages(other.devices_); + } + } + } + if (!other.getActiveOperationId().isEmpty()) { + activeOperationId_ = other.activeOperationId_; + onChanged(); + } + if (!other.getActiveOperationPhase().isEmpty()) { + activeOperationPhase_ = other.activeOperationPhase_; + onChanged(); + } + if (other.getSampledAtUnixMs() != 0L) { + setSampledAtUnixMs(other.getSampledAtUnixMs()); + } + if (participantsBuilder_ == null) { + if (!other.participants_.isEmpty()) { + if (participants_.isEmpty()) { + participants_ = other.participants_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParticipantsIsMutable(); + participants_.addAll(other.participants_); + } + onChanged(); + } + } else { + if (!other.participants_.isEmpty()) { + if (participantsBuilder_.isEmpty()) { + participantsBuilder_.dispose(); + participantsBuilder_ = null; + participants_ = other.participants_; + bitField0_ = (bitField0_ & ~0x00000002); + participantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParticipantsFieldBuilder() : null; + } else { + participantsBuilder_.addAllMessages(other.participants_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getHeaderFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 16: { + systemState_ = input.readEnum(); + + break; + } // case 16 + case 24: { + safetyEpoch_ = input.readUInt64(); + + break; + } // case 24 + case 34: { + controlServiceInstanceId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + enforcementMode_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + cmvr.api.SafetyCommand.DeviceSafetyStateInfo m = + input.readMessage( + cmvr.api.SafetyCommand.DeviceSafetyStateInfo.parser(), + extensionRegistry); + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.add(m); + } else { + devicesBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + activeOperationId_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + activeOperationPhase_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 72: { + sampledAtUnixMs_ = input.readUInt64(); + + break; + } // case 72 + case 82: { + cmvr.api.SafetyCommand.SafetyParticipantStateInfo m = + input.readMessage( + cmvr.api.SafetyCommand.SafetyParticipantStateInfo.parser(), + extensionRegistry); + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + participants_.add(m); + } else { + participantsBuilder_.addMessage(m); + } + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private cmvr.api.Common.CommandHeader.Feedback header_; + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder> headerBuilder_; + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return The header. + */ + public cmvr.api.Common.CommandHeader.Feedback getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public Builder setHeader(cmvr.api.Common.CommandHeader.Feedback value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public Builder setHeader( + cmvr.api.Common.CommandHeader.Feedback.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public Builder mergeHeader(cmvr.api.Common.CommandHeader.Feedback value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + cmvr.api.Common.CommandHeader.Feedback.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public cmvr.api.Common.CommandHeader.Feedback.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_; + } + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private int systemState_ = 0; + /** + * .cmvr.api.SystemAdmissionState system_state = 2; + * @return The enum numeric value on the wire for systemState. + */ + @java.lang.Override public int getSystemStateValue() { + return systemState_; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 2; + * @param value The enum numeric value on the wire for systemState to set. + * @return This builder for chaining. + */ + public Builder setSystemStateValue(int value) { + + systemState_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 2; + * @return The systemState. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_); + return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 2; + * @param value The systemState to set. + * @return This builder for chaining. + */ + public Builder setSystemState(cmvr.api.SafetyCommand.SystemAdmissionState value) { + if (value == null) { + throw new NullPointerException(); + } + + systemState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 2; + * @return This builder for chaining. + */ + public Builder clearSystemState() { + + systemState_ = 0; + onChanged(); + return this; + } + + private long safetyEpoch_ ; + /** + * uint64 safety_epoch = 3; + * @return The safetyEpoch. + */ + @java.lang.Override + public long getSafetyEpoch() { + return safetyEpoch_; + } + /** + * uint64 safety_epoch = 3; + * @param value The safetyEpoch to set. + * @return This builder for chaining. + */ + public Builder setSafetyEpoch(long value) { + + safetyEpoch_ = value; + onChanged(); + return this; + } + /** + * uint64 safety_epoch = 3; + * @return This builder for chaining. + */ + public Builder clearSafetyEpoch() { + + safetyEpoch_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object controlServiceInstanceId_ = ""; + /** + * string control_service_instance_id = 4; + * @return The controlServiceInstanceId. + */ + public java.lang.String getControlServiceInstanceId() { + java.lang.Object ref = controlServiceInstanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + controlServiceInstanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string control_service_instance_id = 4; + * @return The bytes for controlServiceInstanceId. + */ + public com.google.protobuf.ByteString + getControlServiceInstanceIdBytes() { + java.lang.Object ref = controlServiceInstanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + controlServiceInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string control_service_instance_id = 4; + * @param value The controlServiceInstanceId to set. + * @return This builder for chaining. + */ + public Builder setControlServiceInstanceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + controlServiceInstanceId_ = value; + onChanged(); + return this; + } + /** + * string control_service_instance_id = 4; + * @return This builder for chaining. + */ + public Builder clearControlServiceInstanceId() { + + controlServiceInstanceId_ = getDefaultInstance().getControlServiceInstanceId(); + onChanged(); + return this; + } + /** + * string control_service_instance_id = 4; + * @param value The bytes for controlServiceInstanceId to set. + * @return This builder for chaining. + */ + public Builder setControlServiceInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + controlServiceInstanceId_ = value; + onChanged(); + return this; + } + + private java.lang.Object enforcementMode_ = ""; + /** + * string enforcement_mode = 5; + * @return The enforcementMode. + */ + public java.lang.String getEnforcementMode() { + java.lang.Object ref = enforcementMode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + enforcementMode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string enforcement_mode = 5; + * @return The bytes for enforcementMode. + */ + public com.google.protobuf.ByteString + getEnforcementModeBytes() { + java.lang.Object ref = enforcementMode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + enforcementMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string enforcement_mode = 5; + * @param value The enforcementMode to set. + * @return This builder for chaining. + */ + public Builder setEnforcementMode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + enforcementMode_ = value; + onChanged(); + return this; + } + /** + * string enforcement_mode = 5; + * @return This builder for chaining. + */ + public Builder clearEnforcementMode() { + + enforcementMode_ = getDefaultInstance().getEnforcementMode(); + onChanged(); + return this; + } + /** + * string enforcement_mode = 5; + * @param value The bytes for enforcementMode to set. + * @return This builder for chaining. + */ + public Builder setEnforcementModeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + enforcementMode_ = value; + onChanged(); + return this; + } + + private java.util.List devices_ = + java.util.Collections.emptyList(); + private void ensureDevicesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + devices_ = new java.util.ArrayList(devices_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.DeviceSafetyStateInfo, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder, cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder> devicesBuilder_; + + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public java.util.List getDevicesList() { + if (devicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(devices_); + } else { + return devicesBuilder_.getMessageList(); + } + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public int getDevicesCount() { + if (devicesBuilder_ == null) { + return devices_.size(); + } else { + return devicesBuilder_.getCount(); + } + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDevices(int index) { + if (devicesBuilder_ == null) { + return devices_.get(index); + } else { + return devicesBuilder_.getMessage(index); + } + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public Builder setDevices( + int index, cmvr.api.SafetyCommand.DeviceSafetyStateInfo value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.set(index, value); + onChanged(); + } else { + devicesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public Builder setDevices( + int index, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.set(index, builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public Builder addDevices(cmvr.api.SafetyCommand.DeviceSafetyStateInfo value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.add(value); + onChanged(); + } else { + devicesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public Builder addDevices( + int index, cmvr.api.SafetyCommand.DeviceSafetyStateInfo value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.add(index, value); + onChanged(); + } else { + devicesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public Builder addDevices( + cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.add(builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public Builder addDevices( + int index, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.add(index, builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public Builder addAllDevices( + java.lang.Iterable values) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, devices_); + onChanged(); + } else { + devicesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public Builder clearDevices() { + if (devicesBuilder_ == null) { + devices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + devicesBuilder_.clear(); + } + return this; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public Builder removeDevices(int index) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.remove(index); + onChanged(); + } else { + devicesBuilder_.remove(index); + } + return this; + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder getDevicesBuilder( + int index) { + return getDevicesFieldBuilder().getBuilder(index); + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder getDevicesOrBuilder( + int index) { + if (devicesBuilder_ == null) { + return devices_.get(index); } else { + return devicesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public java.util.List + getDevicesOrBuilderList() { + if (devicesBuilder_ != null) { + return devicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(devices_); + } + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder addDevicesBuilder() { + return getDevicesFieldBuilder().addBuilder( + cmvr.api.SafetyCommand.DeviceSafetyStateInfo.getDefaultInstance()); + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder addDevicesBuilder( + int index) { + return getDevicesFieldBuilder().addBuilder( + index, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.getDefaultInstance()); + } + /** + * repeated .cmvr.api.DeviceSafetyStateInfo devices = 6; + */ + public java.util.List + getDevicesBuilderList() { + return getDevicesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.DeviceSafetyStateInfo, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder, cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder> + getDevicesFieldBuilder() { + if (devicesBuilder_ == null) { + devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.DeviceSafetyStateInfo, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder, cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder>( + devices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + devices_ = null; + } + return devicesBuilder_; + } + + private java.lang.Object activeOperationId_ = ""; + /** + * string active_operation_id = 7; + * @return The activeOperationId. + */ + public java.lang.String getActiveOperationId() { + java.lang.Object ref = activeOperationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activeOperationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string active_operation_id = 7; + * @return The bytes for activeOperationId. + */ + public com.google.protobuf.ByteString + getActiveOperationIdBytes() { + java.lang.Object ref = activeOperationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + activeOperationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string active_operation_id = 7; + * @param value The activeOperationId to set. + * @return This builder for chaining. + */ + public Builder setActiveOperationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + activeOperationId_ = value; + onChanged(); + return this; + } + /** + * string active_operation_id = 7; + * @return This builder for chaining. + */ + public Builder clearActiveOperationId() { + + activeOperationId_ = getDefaultInstance().getActiveOperationId(); + onChanged(); + return this; + } + /** + * string active_operation_id = 7; + * @param value The bytes for activeOperationId to set. + * @return This builder for chaining. + */ + public Builder setActiveOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + activeOperationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object activeOperationPhase_ = ""; + /** + * string active_operation_phase = 8; + * @return The activeOperationPhase. + */ + public java.lang.String getActiveOperationPhase() { + java.lang.Object ref = activeOperationPhase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activeOperationPhase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string active_operation_phase = 8; + * @return The bytes for activeOperationPhase. + */ + public com.google.protobuf.ByteString + getActiveOperationPhaseBytes() { + java.lang.Object ref = activeOperationPhase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + activeOperationPhase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string active_operation_phase = 8; + * @param value The activeOperationPhase to set. + * @return This builder for chaining. + */ + public Builder setActiveOperationPhase( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + activeOperationPhase_ = value; + onChanged(); + return this; + } + /** + * string active_operation_phase = 8; + * @return This builder for chaining. + */ + public Builder clearActiveOperationPhase() { + + activeOperationPhase_ = getDefaultInstance().getActiveOperationPhase(); + onChanged(); + return this; + } + /** + * string active_operation_phase = 8; + * @param value The bytes for activeOperationPhase to set. + * @return This builder for chaining. + */ + public Builder setActiveOperationPhaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + activeOperationPhase_ = value; + onChanged(); + return this; + } + + private long sampledAtUnixMs_ ; + /** + * uint64 sampled_at_unix_ms = 9; + * @return The sampledAtUnixMs. + */ + @java.lang.Override + public long getSampledAtUnixMs() { + return sampledAtUnixMs_; + } + /** + * uint64 sampled_at_unix_ms = 9; + * @param value The sampledAtUnixMs to set. + * @return This builder for chaining. + */ + public Builder setSampledAtUnixMs(long value) { + + sampledAtUnixMs_ = value; + onChanged(); + return this; + } + /** + * uint64 sampled_at_unix_ms = 9; + * @return This builder for chaining. + */ + public Builder clearSampledAtUnixMs() { + + sampledAtUnixMs_ = 0L; + onChanged(); + return this; + } + + private java.util.List participants_ = + java.util.Collections.emptyList(); + private void ensureParticipantsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + participants_ = new java.util.ArrayList(participants_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantStateInfo, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder> participantsBuilder_; + + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public java.util.List getParticipantsList() { + if (participantsBuilder_ == null) { + return java.util.Collections.unmodifiableList(participants_); + } else { + return participantsBuilder_.getMessageList(); + } + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public int getParticipantsCount() { + if (participantsBuilder_ == null) { + return participants_.size(); + } else { + return participantsBuilder_.getCount(); + } + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public cmvr.api.SafetyCommand.SafetyParticipantStateInfo getParticipants(int index) { + if (participantsBuilder_ == null) { + return participants_.get(index); + } else { + return participantsBuilder_.getMessage(index); + } + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public Builder setParticipants( + int index, cmvr.api.SafetyCommand.SafetyParticipantStateInfo value) { + if (participantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParticipantsIsMutable(); + participants_.set(index, value); + onChanged(); + } else { + participantsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public Builder setParticipants( + int index, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder builderForValue) { + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + participants_.set(index, builderForValue.build()); + onChanged(); + } else { + participantsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public Builder addParticipants(cmvr.api.SafetyCommand.SafetyParticipantStateInfo value) { + if (participantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParticipantsIsMutable(); + participants_.add(value); + onChanged(); + } else { + participantsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public Builder addParticipants( + int index, cmvr.api.SafetyCommand.SafetyParticipantStateInfo value) { + if (participantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParticipantsIsMutable(); + participants_.add(index, value); + onChanged(); + } else { + participantsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public Builder addParticipants( + cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder builderForValue) { + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + participants_.add(builderForValue.build()); + onChanged(); + } else { + participantsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public Builder addParticipants( + int index, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder builderForValue) { + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + participants_.add(index, builderForValue.build()); + onChanged(); + } else { + participantsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public Builder addAllParticipants( + java.lang.Iterable values) { + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, participants_); + onChanged(); + } else { + participantsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public Builder clearParticipants() { + if (participantsBuilder_ == null) { + participants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + participantsBuilder_.clear(); + } + return this; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public Builder removeParticipants(int index) { + if (participantsBuilder_ == null) { + ensureParticipantsIsMutable(); + participants_.remove(index); + onChanged(); + } else { + participantsBuilder_.remove(index); + } + return this; + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder getParticipantsBuilder( + int index) { + return getParticipantsFieldBuilder().getBuilder(index); + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder getParticipantsOrBuilder( + int index) { + if (participantsBuilder_ == null) { + return participants_.get(index); } else { + return participantsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public java.util.List + getParticipantsOrBuilderList() { + if (participantsBuilder_ != null) { + return participantsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(participants_); + } + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder addParticipantsBuilder() { + return getParticipantsFieldBuilder().addBuilder( + cmvr.api.SafetyCommand.SafetyParticipantStateInfo.getDefaultInstance()); + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder addParticipantsBuilder( + int index) { + return getParticipantsFieldBuilder().addBuilder( + index, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.getDefaultInstance()); + } + /** + * repeated .cmvr.api.SafetyParticipantStateInfo participants = 10; + */ + public java.util.List + getParticipantsBuilderList() { + return getParticipantsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantStateInfo, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder> + getParticipantsFieldBuilder() { + if (participantsBuilder_ == null) { + participantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyParticipantStateInfo, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder>( + participants_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + participants_ = null; + } + return participantsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.GetSafetyStateCommand.Feedback) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.GetSafetyStateCommand.Feedback) + private static final cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback(); + } + + public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feedback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.GetSafetyStateCommand other = (cmvr.api.SafetyCommand.GetSafetyStateCommand) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.GetSafetyStateCommand prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.GetSafetyStateCommand} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.GetSafetyStateCommand) + cmvr.api.SafetyCommand.GetSafetyStateCommandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.GetSafetyStateCommand.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.GetSafetyStateCommand.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.GetSafetyStateCommand.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand build() { + cmvr.api.SafetyCommand.GetSafetyStateCommand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand buildPartial() { + cmvr.api.SafetyCommand.GetSafetyStateCommand result = new cmvr.api.SafetyCommand.GetSafetyStateCommand(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand) { + return mergeFrom((cmvr.api.SafetyCommand.GetSafetyStateCommand)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.GetSafetyStateCommand other) { + if (other == cmvr.api.SafetyCommand.GetSafetyStateCommand.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.GetSafetyStateCommand) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.GetSafetyStateCommand) + private static final cmvr.api.SafetyCommand.GetSafetyStateCommand DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.GetSafetyStateCommand(); + } + + public static cmvr.api.SafetyCommand.GetSafetyStateCommand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSafetyStateCommand parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.GetSafetyStateCommand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RecoverSafetyStateCommandOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.RecoverSafetyStateCommand) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code cmvr.api.RecoverSafetyStateCommand} + */ + public static final class RecoverSafetyStateCommand extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.RecoverSafetyStateCommand) + RecoverSafetyStateCommandOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecoverSafetyStateCommand.newBuilder() to construct. + private RecoverSafetyStateCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RecoverSafetyStateCommand() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RecoverSafetyStateCommand(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Builder.class); + } + + /** + * Protobuf enum {@code cmvr.api.RecoverSafetyStateCommand.Mode} + */ + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * VERIFY_ONLY = 1; + */ + VERIFY_ONLY(1), + /** + * CLEAR_SOFTWARE_LATCH = 2; + */ + CLEAR_SOFTWARE_LATCH(2), + UNRECOGNIZED(-1), + ; + + /** + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + * VERIFY_ONLY = 1; + */ + public static final int VERIFY_ONLY_VALUE = 1; + /** + * CLEAR_SOFTWARE_LATCH = 2; + */ + public static final int CLEAR_SOFTWARE_LATCH_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: return MODE_UNSPECIFIED; + case 1: return VERIFY_ONLY; + case 2: return CLEAR_SOFTWARE_LATCH; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return cmvr.api.SafetyCommand.RecoverSafetyStateCommand.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.RecoverSafetyStateCommand.Mode) + } + + public interface RequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.RecoverSafetyStateCommand.Request) + com.google.protobuf.MessageOrBuilder { + + /** + * string recovery_id = 1; + * @return The recoveryId. + */ + java.lang.String getRecoveryId(); + /** + * string recovery_id = 1; + * @return The bytes for recoveryId. + */ + com.google.protobuf.ByteString + getRecoveryIdBytes(); + + /** + * .cmvr.api.SafetyScope scope = 2; + * @return Whether the scope field is set. + */ + boolean hasScope(); + /** + * .cmvr.api.SafetyScope scope = 2; + * @return The scope. + */ + cmvr.api.SafetyCommand.SafetyScope getScope(); + /** + * .cmvr.api.SafetyScope scope = 2; + */ + cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder(); + + /** + * uint64 expected_safety_epoch = 3; + * @return The expectedSafetyEpoch. + */ + long getExpectedSafetyEpoch(); + + /** + * .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4; + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4; + * @return The mode. + */ + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode getMode(); + + /** + * string reason = 5; + * @return The reason. + */ + java.lang.String getReason(); + /** + * string reason = 5; + * @return The bytes for reason. + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + * uint32 timeout_ms = 6; + * @return The timeoutMs. + */ + int getTimeoutMs(); + } + /** + * Protobuf type {@code cmvr.api.RecoverSafetyStateCommand.Request} + */ + public static final class Request extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.RecoverSafetyStateCommand.Request) + RequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use Request.newBuilder() to construct. + private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Request() { + recoveryId_ = ""; + mode_ = 0; + reason_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Request(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.Builder.class); + } + + public static final int RECOVERY_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object recoveryId_; + /** + * string recovery_id = 1; + * @return The recoveryId. + */ + @java.lang.Override + public java.lang.String getRecoveryId() { + java.lang.Object ref = recoveryId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recoveryId_ = s; + return s; + } + } + /** + * string recovery_id = 1; + * @return The bytes for recoveryId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRecoveryIdBytes() { + java.lang.Object ref = recoveryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + recoveryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 2; + private cmvr.api.SafetyCommand.SafetyScope scope_; + /** + * .cmvr.api.SafetyScope scope = 2; + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return scope_ != null; + } + /** + * .cmvr.api.SafetyScope scope = 2; + * @return The scope. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyScope getScope() { + return scope_ == null ? cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_; + } + /** + * .cmvr.api.SafetyScope scope = 2; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder() { + return getScope(); + } + + public static final int EXPECTED_SAFETY_EPOCH_FIELD_NUMBER = 3; + private long expectedSafetyEpoch_; + /** + * uint64 expected_safety_epoch = 3; + * @return The expectedSafetyEpoch. + */ + @java.lang.Override + public long getExpectedSafetyEpoch() { + return expectedSafetyEpoch_; + } + + public static final int MODE_FIELD_NUMBER = 4; + private int mode_; + /** + * .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4; + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override public int getModeValue() { + return mode_; + } + /** + * .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4; + * @return The mode. + */ + @java.lang.Override public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode getMode() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode result = cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.valueOf(mode_); + return result == null ? cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.UNRECOGNIZED : result; + } + + public static final int REASON_FIELD_NUMBER = 5; + private volatile java.lang.Object reason_; + /** + * string reason = 5; + * @return The reason. + */ + @java.lang.Override + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + /** + * string reason = 5; + * @return The bytes for reason. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_MS_FIELD_NUMBER = 6; + private int timeoutMs_; + /** + * uint32 timeout_ms = 6; + * @return The timeoutMs. + */ + @java.lang.Override + public int getTimeoutMs() { + return timeoutMs_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recoveryId_); + } + if (scope_ != null) { + output.writeMessage(2, getScope()); + } + if (expectedSafetyEpoch_ != 0L) { + output.writeUInt64(3, expectedSafetyEpoch_); + } + if (mode_ != cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_); + } + if (timeoutMs_ != 0) { + output.writeUInt32(6, timeoutMs_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, recoveryId_); + } + if (scope_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScope()); + } + if (expectedSafetyEpoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, expectedSafetyEpoch_); + } + if (mode_ != cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_); + } + if (timeoutMs_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, timeoutMs_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request other = (cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request) obj; + + if (!getRecoveryId() + .equals(other.getRecoveryId())) return false; + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (!getScope() + .equals(other.getScope())) return false; + } + if (getExpectedSafetyEpoch() + != other.getExpectedSafetyEpoch()) return false; + if (mode_ != other.mode_) return false; + if (!getReason() + .equals(other.getReason())) return false; + if (getTimeoutMs() + != other.getTimeoutMs()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECOVERY_ID_FIELD_NUMBER; + hash = (53 * hash) + getRecoveryId().hashCode(); + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + hash = (37 * hash) + EXPECTED_SAFETY_EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getExpectedSafetyEpoch()); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (37 * hash) + TIMEOUT_MS_FIELD_NUMBER; + hash = (53 * hash) + getTimeoutMs(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.RecoverSafetyStateCommand.Request} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.RecoverSafetyStateCommand.Request) + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.RequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + recoveryId_ = ""; + + if (scopeBuilder_ == null) { + scope_ = null; + } else { + scope_ = null; + scopeBuilder_ = null; + } + expectedSafetyEpoch_ = 0L; + + mode_ = 0; + + reason_ = ""; + + timeoutMs_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request build() { + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request buildPartial() { + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request result = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request(this); + result.recoveryId_ = recoveryId_; + if (scopeBuilder_ == null) { + result.scope_ = scope_; + } else { + result.scope_ = scopeBuilder_.build(); + } + result.expectedSafetyEpoch_ = expectedSafetyEpoch_; + result.mode_ = mode_; + result.reason_ = reason_; + result.timeoutMs_ = timeoutMs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request) { + return mergeFrom((cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request other) { + if (other == cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.getDefaultInstance()) return this; + if (!other.getRecoveryId().isEmpty()) { + recoveryId_ = other.recoveryId_; + onChanged(); + } + if (other.hasScope()) { + mergeScope(other.getScope()); + } + if (other.getExpectedSafetyEpoch() != 0L) { + setExpectedSafetyEpoch(other.getExpectedSafetyEpoch()); + } + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + onChanged(); + } + if (other.getTimeoutMs() != 0) { + setTimeoutMs(other.getTimeoutMs()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + recoveryId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getScopeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 24: { + expectedSafetyEpoch_ = input.readUInt64(); + + break; + } // case 24 + case 32: { + mode_ = input.readEnum(); + + break; + } // case 32 + case 42: { + reason_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + timeoutMs_ = input.readUInt32(); + + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object recoveryId_ = ""; + /** + * string recovery_id = 1; + * @return The recoveryId. + */ + public java.lang.String getRecoveryId() { + java.lang.Object ref = recoveryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recoveryId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string recovery_id = 1; + * @return The bytes for recoveryId. + */ + public com.google.protobuf.ByteString + getRecoveryIdBytes() { + java.lang.Object ref = recoveryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + recoveryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string recovery_id = 1; + * @param value The recoveryId to set. + * @return This builder for chaining. + */ + public Builder setRecoveryId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + recoveryId_ = value; + onChanged(); + return this; + } + /** + * string recovery_id = 1; + * @return This builder for chaining. + */ + public Builder clearRecoveryId() { + + recoveryId_ = getDefaultInstance().getRecoveryId(); + onChanged(); + return this; + } + /** + * string recovery_id = 1; + * @param value The bytes for recoveryId to set. + * @return This builder for chaining. + */ + public Builder setRecoveryIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + recoveryId_ = value; + onChanged(); + return this; + } + + private cmvr.api.SafetyCommand.SafetyScope scope_; + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder> scopeBuilder_; + /** + * .cmvr.api.SafetyScope scope = 2; + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return scopeBuilder_ != null || scope_ != null; + } + /** + * .cmvr.api.SafetyScope scope = 2; + * @return The scope. + */ + public cmvr.api.SafetyCommand.SafetyScope getScope() { + if (scopeBuilder_ == null) { + return scope_ == null ? cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_; + } else { + return scopeBuilder_.getMessage(); + } + } + /** + * .cmvr.api.SafetyScope scope = 2; + */ + public Builder setScope(cmvr.api.SafetyCommand.SafetyScope value) { + if (scopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + onChanged(); + } else { + scopeBuilder_.setMessage(value); + } + + return this; + } + /** + * .cmvr.api.SafetyScope scope = 2; + */ + public Builder setScope( + cmvr.api.SafetyCommand.SafetyScope.Builder builderForValue) { + if (scopeBuilder_ == null) { + scope_ = builderForValue.build(); + onChanged(); + } else { + scopeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .cmvr.api.SafetyScope scope = 2; + */ + public Builder mergeScope(cmvr.api.SafetyCommand.SafetyScope value) { + if (scopeBuilder_ == null) { + if (scope_ != null) { + scope_ = + cmvr.api.SafetyCommand.SafetyScope.newBuilder(scope_).mergeFrom(value).buildPartial(); + } else { + scope_ = value; + } + onChanged(); + } else { + scopeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .cmvr.api.SafetyScope scope = 2; + */ + public Builder clearScope() { + if (scopeBuilder_ == null) { + scope_ = null; + onChanged(); + } else { + scope_ = null; + scopeBuilder_ = null; + } + + return this; + } + /** + * .cmvr.api.SafetyScope scope = 2; + */ + public cmvr.api.SafetyCommand.SafetyScope.Builder getScopeBuilder() { + + onChanged(); + return getScopeFieldBuilder().getBuilder(); + } + /** + * .cmvr.api.SafetyScope scope = 2; + */ + public cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder() { + if (scopeBuilder_ != null) { + return scopeBuilder_.getMessageOrBuilder(); + } else { + return scope_ == null ? + cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_; + } + } + /** + * .cmvr.api.SafetyScope scope = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder> + getScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder>( + getScope(), + getParentForChildren(), + isClean()); + scope_ = null; + } + return scopeBuilder_; + } + + private long expectedSafetyEpoch_ ; + /** + * uint64 expected_safety_epoch = 3; + * @return The expectedSafetyEpoch. + */ + @java.lang.Override + public long getExpectedSafetyEpoch() { + return expectedSafetyEpoch_; + } + /** + * uint64 expected_safety_epoch = 3; + * @param value The expectedSafetyEpoch to set. + * @return This builder for chaining. + */ + public Builder setExpectedSafetyEpoch(long value) { + + expectedSafetyEpoch_ = value; + onChanged(); + return this; + } + /** + * uint64 expected_safety_epoch = 3; + * @return This builder for chaining. + */ + public Builder clearExpectedSafetyEpoch() { + + expectedSafetyEpoch_ = 0L; + onChanged(); + return this; + } + + private int mode_ = 0; + /** + * .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4; + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override public int getModeValue() { + return mode_; + } + /** + * .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4; + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + + mode_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4; + * @return The mode. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode getMode() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode result = cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.valueOf(mode_); + return result == null ? cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.UNRECOGNIZED : result; + } + /** + * .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4; + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4; + * @return This builder for chaining. + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object reason_ = ""; + /** + * string reason = 5; + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string reason = 5; + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string reason = 5; + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value; + onChanged(); + return this; + } + /** + * string reason = 5; + * @return This builder for chaining. + */ + public Builder clearReason() { + + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + * string reason = 5; + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reason_ = value; + onChanged(); + return this; + } + + private int timeoutMs_ ; + /** + * uint32 timeout_ms = 6; + * @return The timeoutMs. + */ + @java.lang.Override + public int getTimeoutMs() { + return timeoutMs_; + } + /** + * uint32 timeout_ms = 6; + * @param value The timeoutMs to set. + * @return This builder for chaining. + */ + public Builder setTimeoutMs(int value) { + + timeoutMs_ = value; + onChanged(); + return this; + } + /** + * uint32 timeout_ms = 6; + * @return This builder for chaining. + */ + public Builder clearTimeoutMs() { + + timeoutMs_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.RecoverSafetyStateCommand.Request) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.RecoverSafetyStateCommand.Request) + private static final cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request(); + } + + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Request parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FeedbackOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.RecoverSafetyStateCommand.Feedback) + com.google.protobuf.MessageOrBuilder { + + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return The header. + */ + cmvr.api.Common.CommandHeader.Feedback getHeader(); + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder(); + + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The enum numeric value on the wire for result. + */ + int getResultValue(); + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The result. + */ + cmvr.api.SafetyCommand.SafetyOperationResult getResult(); + + /** + * uint64 previous_safety_epoch = 3; + * @return The previousSafetyEpoch. + */ + long getPreviousSafetyEpoch(); + + /** + * uint64 current_safety_epoch = 4; + * @return The currentSafetyEpoch. + */ + long getCurrentSafetyEpoch(); + + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The enum numeric value on the wire for systemState. + */ + int getSystemStateValue(); + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The systemState. + */ + cmvr.api.SafetyCommand.SystemAdmissionState getSystemState(); + + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + java.util.List + getTargetsList(); + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index); + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + int getTargetsCount(); + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + java.util.List + getTargetsOrBuilderList(); + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder( + int index); + + /** + * string recovery_id = 7; + * @return The recoveryId. + */ + java.lang.String getRecoveryId(); + /** + * string recovery_id = 7; + * @return The bytes for recoveryId. + */ + com.google.protobuf.ByteString + getRecoveryIdBytes(); + } + /** + * Protobuf type {@code cmvr.api.RecoverSafetyStateCommand.Feedback} + */ + public static final class Feedback extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.RecoverSafetyStateCommand.Feedback) + FeedbackOrBuilder { + private static final long serialVersionUID = 0L; + // Use Feedback.newBuilder() to construct. + private Feedback(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Feedback() { + result_ = 0; + systemState_ = 0; + targets_ = java.util.Collections.emptyList(); + recoveryId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Feedback(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private cmvr.api.Common.CommandHeader.Feedback header_; + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return The header. + */ + @java.lang.Override + public cmvr.api.Common.CommandHeader.Feedback getHeader() { + return header_ == null ? cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + @java.lang.Override + public cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int RESULT_FIELD_NUMBER = 2; + private int result_; + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override public int getResultValue() { + return result_; + } + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The result. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SafetyOperationResult getResult() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyOperationResult result = cmvr.api.SafetyCommand.SafetyOperationResult.valueOf(result_); + return result == null ? cmvr.api.SafetyCommand.SafetyOperationResult.UNRECOGNIZED : result; + } + + public static final int PREVIOUS_SAFETY_EPOCH_FIELD_NUMBER = 3; + private long previousSafetyEpoch_; + /** + * uint64 previous_safety_epoch = 3; + * @return The previousSafetyEpoch. + */ + @java.lang.Override + public long getPreviousSafetyEpoch() { + return previousSafetyEpoch_; + } + + public static final int CURRENT_SAFETY_EPOCH_FIELD_NUMBER = 4; + private long currentSafetyEpoch_; + /** + * uint64 current_safety_epoch = 4; + * @return The currentSafetyEpoch. + */ + @java.lang.Override + public long getCurrentSafetyEpoch() { + return currentSafetyEpoch_; + } + + public static final int SYSTEM_STATE_FIELD_NUMBER = 5; + private int systemState_; + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The enum numeric value on the wire for systemState. + */ + @java.lang.Override public int getSystemStateValue() { + return systemState_; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The systemState. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_); + return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result; + } + + public static final int TARGETS_FIELD_NUMBER = 6; + private java.util.List targets_; + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + @java.lang.Override + public java.util.List getTargetsList() { + return targets_; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + @java.lang.Override + public java.util.List + getTargetsOrBuilderList() { + return targets_; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + @java.lang.Override + public int getTargetsCount() { + return targets_.size(); + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index) { + return targets_.get(index); + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder( + int index) { + return targets_.get(index); + } + + public static final int RECOVERY_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object recoveryId_; + /** + * string recovery_id = 7; + * @return The recoveryId. + */ + @java.lang.Override + public java.lang.String getRecoveryId() { + java.lang.Object ref = recoveryId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recoveryId_ = s; + return s; + } + } + /** + * string recovery_id = 7; + * @return The bytes for recoveryId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRecoveryIdBytes() { + java.lang.Object ref = recoveryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + recoveryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (result_ != cmvr.api.SafetyCommand.SafetyOperationResult.SAFETY_OPERATION_RESULT_UNSPECIFIED.getNumber()) { + output.writeEnum(2, result_); + } + if (previousSafetyEpoch_ != 0L) { + output.writeUInt64(3, previousSafetyEpoch_); + } + if (currentSafetyEpoch_ != 0L) { + output.writeUInt64(4, currentSafetyEpoch_); + } + if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, systemState_); + } + for (int i = 0; i < targets_.size(); i++) { + output.writeMessage(6, targets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, recoveryId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (result_ != cmvr.api.SafetyCommand.SafetyOperationResult.SAFETY_OPERATION_RESULT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, result_); + } + if (previousSafetyEpoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, previousSafetyEpoch_); + } + if (currentSafetyEpoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, currentSafetyEpoch_); + } + if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, systemState_); + } + for (int i = 0; i < targets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, targets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, recoveryId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback other = (cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (result_ != other.result_) return false; + if (getPreviousSafetyEpoch() + != other.getPreviousSafetyEpoch()) return false; + if (getCurrentSafetyEpoch() + != other.getCurrentSafetyEpoch()) return false; + if (systemState_ != other.systemState_) return false; + if (!getTargetsList() + .equals(other.getTargetsList())) return false; + if (!getRecoveryId() + .equals(other.getRecoveryId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + result_; + hash = (37 * hash) + PREVIOUS_SAFETY_EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPreviousSafetyEpoch()); + hash = (37 * hash) + CURRENT_SAFETY_EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCurrentSafetyEpoch()); + hash = (37 * hash) + SYSTEM_STATE_FIELD_NUMBER; + hash = (53 * hash) + systemState_; + if (getTargetsCount() > 0) { + hash = (37 * hash) + TARGETS_FIELD_NUMBER; + hash = (53 * hash) + getTargetsList().hashCode(); + } + hash = (37 * hash) + RECOVERY_ID_FIELD_NUMBER; + hash = (53 * hash) + getRecoveryId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.RecoverSafetyStateCommand.Feedback} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.RecoverSafetyStateCommand.Feedback) + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.FeedbackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + result_ = 0; + + previousSafetyEpoch_ = 0L; + + currentSafetyEpoch_ = 0L; + + systemState_ = 0; + + if (targetsBuilder_ == null) { + targets_ = java.util.Collections.emptyList(); + } else { + targets_ = null; + targetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + recoveryId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback build() { + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback buildPartial() { + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback result = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.result_ = result_; + result.previousSafetyEpoch_ = previousSafetyEpoch_; + result.currentSafetyEpoch_ = currentSafetyEpoch_; + result.systemState_ = systemState_; + if (targetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + targets_ = java.util.Collections.unmodifiableList(targets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.targets_ = targets_; + } else { + result.targets_ = targetsBuilder_.build(); + } + result.recoveryId_ = recoveryId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback) { + return mergeFrom((cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback other) { + if (other == cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.result_ != 0) { + setResultValue(other.getResultValue()); + } + if (other.getPreviousSafetyEpoch() != 0L) { + setPreviousSafetyEpoch(other.getPreviousSafetyEpoch()); + } + if (other.getCurrentSafetyEpoch() != 0L) { + setCurrentSafetyEpoch(other.getCurrentSafetyEpoch()); + } + if (other.systemState_ != 0) { + setSystemStateValue(other.getSystemStateValue()); + } + if (targetsBuilder_ == null) { + if (!other.targets_.isEmpty()) { + if (targets_.isEmpty()) { + targets_ = other.targets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTargetsIsMutable(); + targets_.addAll(other.targets_); + } + onChanged(); + } + } else { + if (!other.targets_.isEmpty()) { + if (targetsBuilder_.isEmpty()) { + targetsBuilder_.dispose(); + targetsBuilder_ = null; + targets_ = other.targets_; + bitField0_ = (bitField0_ & ~0x00000001); + targetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTargetsFieldBuilder() : null; + } else { + targetsBuilder_.addAllMessages(other.targets_); + } + } + } + if (!other.getRecoveryId().isEmpty()) { + recoveryId_ = other.recoveryId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getHeaderFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 16: { + result_ = input.readEnum(); + + break; + } // case 16 + case 24: { + previousSafetyEpoch_ = input.readUInt64(); + + break; + } // case 24 + case 32: { + currentSafetyEpoch_ = input.readUInt64(); + + break; + } // case 32 + case 40: { + systemState_ = input.readEnum(); + + break; + } // case 40 + case 50: { + cmvr.api.SafetyCommand.SafetyOperationTargetResult m = + input.readMessage( + cmvr.api.SafetyCommand.SafetyOperationTargetResult.parser(), + extensionRegistry); + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(m); + } else { + targetsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + recoveryId_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private cmvr.api.Common.CommandHeader.Feedback header_; + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder> headerBuilder_; + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + * @return The header. + */ + public cmvr.api.Common.CommandHeader.Feedback getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public Builder setHeader(cmvr.api.Common.CommandHeader.Feedback value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public Builder setHeader( + cmvr.api.Common.CommandHeader.Feedback.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public Builder mergeHeader(cmvr.api.Common.CommandHeader.Feedback value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + cmvr.api.Common.CommandHeader.Feedback.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public cmvr.api.Common.CommandHeader.Feedback.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + public cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_; + } + } + /** + * .cmvr.api.CommandHeader.Feedback header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private int result_ = 0; + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override public int getResultValue() { + return result_; + } + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @param value The enum numeric value on the wire for result to set. + * @return This builder for chaining. + */ + public Builder setResultValue(int value) { + + result_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return The result. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyOperationResult getResult() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SafetyOperationResult result = cmvr.api.SafetyCommand.SafetyOperationResult.valueOf(result_); + return result == null ? cmvr.api.SafetyCommand.SafetyOperationResult.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult(cmvr.api.SafetyCommand.SafetyOperationResult value) { + if (value == null) { + throw new NullPointerException(); + } + + result_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SafetyOperationResult result = 2; + * @return This builder for chaining. + */ + public Builder clearResult() { + + result_ = 0; + onChanged(); + return this; + } + + private long previousSafetyEpoch_ ; + /** + * uint64 previous_safety_epoch = 3; + * @return The previousSafetyEpoch. + */ + @java.lang.Override + public long getPreviousSafetyEpoch() { + return previousSafetyEpoch_; + } + /** + * uint64 previous_safety_epoch = 3; + * @param value The previousSafetyEpoch to set. + * @return This builder for chaining. + */ + public Builder setPreviousSafetyEpoch(long value) { + + previousSafetyEpoch_ = value; + onChanged(); + return this; + } + /** + * uint64 previous_safety_epoch = 3; + * @return This builder for chaining. + */ + public Builder clearPreviousSafetyEpoch() { + + previousSafetyEpoch_ = 0L; + onChanged(); + return this; + } + + private long currentSafetyEpoch_ ; + /** + * uint64 current_safety_epoch = 4; + * @return The currentSafetyEpoch. + */ + @java.lang.Override + public long getCurrentSafetyEpoch() { + return currentSafetyEpoch_; + } + /** + * uint64 current_safety_epoch = 4; + * @param value The currentSafetyEpoch to set. + * @return This builder for chaining. + */ + public Builder setCurrentSafetyEpoch(long value) { + + currentSafetyEpoch_ = value; + onChanged(); + return this; + } + /** + * uint64 current_safety_epoch = 4; + * @return This builder for chaining. + */ + public Builder clearCurrentSafetyEpoch() { + + currentSafetyEpoch_ = 0L; + onChanged(); + return this; + } + + private int systemState_ = 0; + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The enum numeric value on the wire for systemState. + */ + @java.lang.Override public int getSystemStateValue() { + return systemState_; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @param value The enum numeric value on the wire for systemState to set. + * @return This builder for chaining. + */ + public Builder setSystemStateValue(int value) { + + systemState_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The systemState. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_); + return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @param value The systemState to set. + * @return This builder for chaining. + */ + public Builder setSystemState(cmvr.api.SafetyCommand.SystemAdmissionState value) { + if (value == null) { + throw new NullPointerException(); + } + + systemState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return This builder for chaining. + */ + public Builder clearSystemState() { + + systemState_ = 0; + onChanged(); + return this; + } + + private java.util.List targets_ = + java.util.Collections.emptyList(); + private void ensureTargetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + targets_ = new java.util.ArrayList(targets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder> targetsBuilder_; + + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public java.util.List getTargetsList() { + if (targetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(targets_); + } else { + return targetsBuilder_.getMessageList(); + } + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public int getTargetsCount() { + if (targetsBuilder_ == null) { + return targets_.size(); + } else { + return targetsBuilder_.getCount(); + } + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index) { + if (targetsBuilder_ == null) { + return targets_.get(index); + } else { + return targetsBuilder_.getMessage(index); + } + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder setTargets( + int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.set(index, value); + onChanged(); + } else { + targetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder setTargets( + int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.set(index, builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder addTargets(cmvr.api.SafetyCommand.SafetyOperationTargetResult value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.add(value); + onChanged(); + } else { + targetsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder addTargets( + int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.add(index, value); + onChanged(); + } else { + targetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder addTargets( + cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder addTargets( + int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(index, builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder addAllTargets( + java.lang.Iterable values) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targets_); + onChanged(); + } else { + targetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder clearTargets() { + if (targetsBuilder_ == null) { + targets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + targetsBuilder_.clear(); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder removeTargets(int index) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.remove(index); + onChanged(); + } else { + targetsBuilder_.remove(index); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder getTargetsBuilder( + int index) { + return getTargetsFieldBuilder().getBuilder(index); + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder( + int index) { + if (targetsBuilder_ == null) { + return targets_.get(index); } else { + return targetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public java.util.List + getTargetsOrBuilderList() { + if (targetsBuilder_ != null) { + return targetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(targets_); + } + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder addTargetsBuilder() { + return getTargetsFieldBuilder().addBuilder( + cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance()); + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder addTargetsBuilder( + int index) { + return getTargetsFieldBuilder().addBuilder( + index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance()); + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public java.util.List + getTargetsBuilderList() { + return getTargetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder> + getTargetsFieldBuilder() { + if (targetsBuilder_ == null) { + targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>( + targets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + targets_ = null; + } + return targetsBuilder_; + } + + private java.lang.Object recoveryId_ = ""; + /** + * string recovery_id = 7; + * @return The recoveryId. + */ + public java.lang.String getRecoveryId() { + java.lang.Object ref = recoveryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recoveryId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string recovery_id = 7; + * @return The bytes for recoveryId. + */ + public com.google.protobuf.ByteString + getRecoveryIdBytes() { + java.lang.Object ref = recoveryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + recoveryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string recovery_id = 7; + * @param value The recoveryId to set. + * @return This builder for chaining. + */ + public Builder setRecoveryId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + recoveryId_ = value; + onChanged(); + return this; + } + /** + * string recovery_id = 7; + * @return This builder for chaining. + */ + public Builder clearRecoveryId() { + + recoveryId_ = getDefaultInstance().getRecoveryId(); + onChanged(); + return this; + } + /** + * string recovery_id = 7; + * @param value The bytes for recoveryId to set. + * @return This builder for chaining. + */ + public Builder setRecoveryIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + recoveryId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.RecoverSafetyStateCommand.Feedback) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.RecoverSafetyStateCommand.Feedback) + private static final cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback(); + } + + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feedback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand)) { + return super.equals(obj); + } + cmvr.api.SafetyCommand.RecoverSafetyStateCommand other = (cmvr.api.SafetyCommand.RecoverSafetyStateCommand) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(cmvr.api.SafetyCommand.RecoverSafetyStateCommand prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cmvr.api.RecoverSafetyStateCommand} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.RecoverSafetyStateCommand) + cmvr.api.SafetyCommand.RecoverSafetyStateCommandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Builder.class); + } + + // Construct using cmvr.api.SafetyCommand.RecoverSafetyStateCommand.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand getDefaultInstanceForType() { + return cmvr.api.SafetyCommand.RecoverSafetyStateCommand.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand build() { + cmvr.api.SafetyCommand.RecoverSafetyStateCommand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand buildPartial() { + cmvr.api.SafetyCommand.RecoverSafetyStateCommand result = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand) { + return mergeFrom((cmvr.api.SafetyCommand.RecoverSafetyStateCommand)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SafetyCommand.RecoverSafetyStateCommand other) { + if (other == cmvr.api.SafetyCommand.RecoverSafetyStateCommand.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:cmvr.api.RecoverSafetyStateCommand) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.RecoverSafetyStateCommand) + private static final cmvr.api.SafetyCommand.RecoverSafetyStateCommand DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand(); + } + + public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecoverSafetyStateCommand parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_DeviceIdList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_DeviceIdList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_SafetyScope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_SafetyScope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_SafetyBlockerInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_SafetyBlockerInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_DeviceSafetyStateInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_SafetyOperationTargetResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_SafetyOperationTargetResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_SafetyParticipantResultInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_SafetyParticipantStateInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_GetSafetyStateCommand_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_GetSafetyStateCommand_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_GetSafetyStateCommand_Request_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_GetSafetyStateCommand_Feedback_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_RecoverSafetyStateCommand_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_RecoverSafetyStateCommand_Request_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035cmvr/api/safety_command.proto\022\010cmvr.ap" + + "i\032\025cmvr/api/common.proto\"\"\n\014DeviceIdList" + + "\022\022\n\ndevice_ids\030\001 \003(\t\"Y\n\013SafetyScope\022\025\n\013a" + + "ll_devices\030\001 \001(\010H\000\022)\n\007devices\030\002 \001(\0132\026.cm" + + "vr.api.DeviceIdListH\000B\010\n\006target\"\243\002\n\021Safe" + + "tyBlockerInfo\0220\n\013reason_code\030\001 \001(\0162\033.cmv" + + "r.api.CommandReasonCode\022+\n\005scope\030\002 \001(\0162\034" + + ".cmvr.api.SafetyBlockerScope\022A\n\024recovery" + + "_requirement\030\003 \001(\0162#.cmvr.api.SafetyReco" + + "veryRequirement\022\021\n\tsource_id\030\004 \001(\t\022\024\n\014op" + + "eration_id\030\005 \001(\t\022!\n\031first_observed_at_un" + + "ix_ms\030\006 \001(\004\022 \n\030last_observed_at_unix_ms\030" + + "\007 \001(\004\"\306\006\n\025DeviceSafetyStateInfo\022\021\n\tdevic" + + "e_id\030\001 \001(\t\022\023\n\013device_kind\030\002 \001(\t\022\025\n\rpolic" + + "y_family\030\003 \001(\t\022\027\n\017lifecycle_state\030\004 \001(\t\022" + + "\024\n\014health_state\030\005 \001(\t\0227\n\017admission_state" + + "\030\006 \001(\0162\036.cmvr.api.DeviceAdmissionState\022," + + "\n\tcondition\030\007 \001(\0162\031.cmvr.api.SafetyCondi" + + "tion\022\022\n\nhas_sample\030\010 \001(\010\022\026\n\016snapshot_fre" + + "sh\030\t \001(\010\022\025\n\rsample_age_ms\030\n \001(\004\022\027\n\017sampl" + + "e_sequence\030\013 \001(\004\022\033\n\023observed_at_unix_ms\030" + + "\014 \001(\004\022\031\n\021device_generation\030\r \001(\004\022+\n\tconn" + + "ected\030\016 \001(\0162\030.cmvr.api.SafetyTriState\0223\n" + + "\021operational_ready\030\017 \001(\0162\030.cmvr.api.Safe" + + "tyTriState\022+\n\tquiescent\030\020 \001(\0162\030.cmvr.api" + + ".SafetyTriState\022/\n\rmotion_active\030\021 \001(\0162\030" + + ".cmvr.api.SafetyTriState\0222\n\020actuator_ena" + + "bled\030\022 \001(\0162\030.cmvr.api.SafetyTriState\0227\n\025" + + "emergency_stop_active\030\023 \001(\0162\030.cmvr.api.S" + + "afetyTriState\0228\n\026protective_stop_active\030" + + "\024 \001(\0162\030.cmvr.api.SafetyTriState\022.\n\014fault" + + "_active\030\025 \001(\0162\030.cmvr.api.SafetyTriState\022" + + "-\n\010blockers\030\026 \003(\0132\033.cmvr.api.SafetyBlock" + + "erInfo\"\216\002\n\033SafetyOperationTargetResult\022\021" + + "\n\ttarget_id\030\001 \001(\t\022/\n\006result\030\002 \001(\0162\037.cmvr" + + ".api.SafetyOperationResult\0220\n\013reason_cod" + + "e\030\003 \001(\0162\033.cmvr.api.CommandReasonCode\022\016\n\006" + + "detail\030\004 \001(\t\0224\n\014before_state\030\005 \001(\0162\036.cmv" + + "r.api.DeviceAdmissionState\0223\n\013after_stat" + + "e\030\006 \001(\0162\036.cmvr.api.DeviceAdmissionState\"" + + "\202\001\n\033SafetyParticipantResultInfo\022\020\n\010recor" + + "ded\030\001 \001(\010\022\017\n\007success\030\002 \001(\010\0220\n\013reason_cod" + + "e\030\003 \001(\0162\033.cmvr.api.CommandReasonCode\022\016\n\006" + + "detail\030\004 \001(\t\"\375\002\n\032SafetyParticipantStateI" + + "nfo\022\026\n\016participant_id\030\001 \001(\t\022\r\n\005phase\030\002 \001" + + "(\t\022\020\n\010required\030\003 \001(\010\022\022\n\nregistered\030\004 \001(\010" + + "\022\026\n\016barrier_active\030\005 \001(\010\022\030\n\020barrier_reta" + + "ined\030\006 \001(\010\022\024\n\014operation_id\030\007 \001(\t\022\024\n\014safe" + + "ty_epoch\030\010 \001(\004\022;\n\014last_request\030\t \001(\0132%.c" + + "mvr.api.SafetyParticipantResultInfo\022:\n\013l" + + "ast_verify\030\n \001(\0132%.cmvr.api.SafetyPartic" + + "ipantResultInfo\022;\n\014last_release\030\013 \001(\0132%." + + "cmvr.api.SafetyParticipantResultInfo\"\331\003\n" + + "\025GetSafetyStateCommand\032/\n\007Request\022$\n\005sco" + + "pe\030\001 \001(\0132\025.cmvr.api.SafetyScope\032\216\003\n\010Feed" + + "back\0220\n\006header\030\001 \001(\0132 .cmvr.api.CommandH" + + "eader.Feedback\0224\n\014system_state\030\002 \001(\0162\036.c" + + "mvr.api.SystemAdmissionState\022\024\n\014safety_e" + + "poch\030\003 \001(\004\022#\n\033control_service_instance_i" + + "d\030\004 \001(\t\022\030\n\020enforcement_mode\030\005 \001(\t\0220\n\007dev" + + "ices\030\006 \003(\0132\037.cmvr.api.DeviceSafetyStateI" + + "nfo\022\033\n\023active_operation_id\030\007 \001(\t\022\036\n\026acti" + + "ve_operation_phase\030\010 \001(\t\022\032\n\022sampled_at_u" + + "nix_ms\030\t \001(\004\022:\n\014participants\030\n \003(\0132$.cmv" + + "r.api.SafetyParticipantStateInfo\"\326\004\n\031Rec" + + "overSafetyStateCommand\032\277\001\n\007Request\022\023\n\013re" + + "covery_id\030\001 \001(\t\022$\n\005scope\030\002 \001(\0132\025.cmvr.ap" + + "i.SafetyScope\022\035\n\025expected_safety_epoch\030\003" + + " \001(\004\0226\n\004mode\030\004 \001(\0162(.cmvr.api.RecoverSaf" + + "etyStateCommand.Mode\022\016\n\006reason\030\005 \001(\t\022\022\n\n" + + "timeout_ms\030\006 \001(\r\032\255\002\n\010Feedback\0220\n\006header\030" + + "\001 \001(\0132 .cmvr.api.CommandHeader.Feedback\022" + + "/\n\006result\030\002 \001(\0162\037.cmvr.api.SafetyOperati" + + "onResult\022\035\n\025previous_safety_epoch\030\003 \001(\004\022" + + "\034\n\024current_safety_epoch\030\004 \001(\004\0224\n\014system_" + + "state\030\005 \001(\0162\036.cmvr.api.SystemAdmissionSt" + + "ate\0226\n\007targets\030\006 \003(\0132%.cmvr.api.SafetyOp" + + "erationTargetResult\022\023\n\013recovery_id\030\007 \001(\t" + + "\"G\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\017\n\013VERIFY" + + "_ONLY\020\001\022\030\n\024CLEAR_SOFTWARE_LATCH\020\002*e\n\016Saf" + + "etyTriState\022\034\n\030SAFETY_TRI_STATE_UNKNOWN\020" + + "\000\022\032\n\026SAFETY_TRI_STATE_FALSE\020\001\022\031\n\025SAFETY_" + + "TRI_STATE_TRUE\020\002*\213\001\n\017SafetyCondition\022\034\n\030" + + "SAFETY_CONDITION_UNKNOWN\020\000\022\034\n\030SAFETY_CON" + + "DITION_NOMINAL\020\001\022\037\n\033SAFETY_CONDITION_RES" + + "TRICTED\020\002\022\033\n\027SAFETY_CONDITION_UNSAFE\020\003*\236" + + "\002\n\024SystemAdmissionState\022&\n\"SYSTEM_ADMISS" + + "ION_STATE_UNSPECIFIED\020\000\022#\n\037SYSTEM_ADMISS" + + "ION_STATE_STARTING\020\001\022\037\n\033SYSTEM_ADMISSION" + + "_STATE_OPEN\020\002\022#\n\037SYSTEM_ADMISSION_STATE_" + + "STOPPING\020\003\022\"\n\036SYSTEM_ADMISSION_STATE_LAT" + + "CHED\020\004\022%\n!SYSTEM_ADMISSION_STATE_RECOVER" + + "ING\020\005\022(\n$SYSTEM_ADMISSION_STATE_SHUTTING" + + "_DOWN\020\006*\234\002\n\024DeviceAdmissionState\022&\n\"DEVI" + + "CE_ADMISSION_STATE_UNSPECIFIED\020\000\022$\n DEVI" + + "CE_ADMISSION_STATE_OBSERVING\020\001\022\037\n\033DEVICE" + + "_ADMISSION_STATE_OPEN\020\002\022\"\n\036DEVICE_ADMISS" + + "ION_STATE_BLOCKED\020\003\022&\n\"DEVICE_ADMISSION_" + + "STATE_QUARANTINED\020\004\022%\n!DEVICE_ADMISSION_" + + "STATE_RECOVERING\020\005\022\"\n\036DEVICE_ADMISSION_S" + + "TATE_REMOVED\020\006*|\n\022SafetyBlockerScope\022$\n " + + "SAFETY_BLOCKER_SCOPE_UNSPECIFIED\020\000\022\037\n\033SA" + + "FETY_BLOCKER_SCOPE_DEVICE\020\001\022\037\n\033SAFETY_BL" + + "OCKER_SCOPE_SYSTEM\020\002*\243\002\n\031SafetyRecoveryR" + + "equirement\022+\n\'SAFETY_RECOVERY_REQUIREMEN" + + "T_UNSPECIFIED\020\000\022,\n(SAFETY_RECOVERY_REQUI" + + "REMENT_REFRESH_ONLY\020\001\0224\n0SAFETY_RECOVERY" + + "_REQUIREMENT_CLEAR_SOFTWARE_LATCH\020\002\0229\n5S" + + "AFETY_RECOVERY_REQUIREMENT_HARDWARE_RELE" + + "ASE_REQUIRED\020\003\022:\n6SAFETY_RECOVERY_REQUIR" + + "EMENT_MANUAL_INSPECTION_REQUIRED\020\004*\232\003\n\025S" + + "afetyOperationResult\022\'\n#SAFETY_OPERATION" + + "_RESULT_UNSPECIFIED\020\000\022%\n!SAFETY_OPERATIO" + + "N_RESULT_SUCCEEDED\020\001\022%\n!SAFETY_OPERATION" + + "_RESULT_RECOVERED\020\002\0226\n2SAFETY_OPERATION_" + + "RESULT_VERIFIED_BUT_STILL_BLOCKED\020\003\022+\n\'S" + + "AFETY_OPERATION_RESULT_BLOCKER_REMAINS\020\004" + + "\022*\n&SAFETY_OPERATION_RESULT_EPOCH_MISMAT" + + "CH\020\005\022.\n*SAFETY_OPERATION_RESULT_NOTHING_" + + "TO_RECOVER\020\006\022%\n!SAFETY_OPERATION_RESULT_" + + "TIMED_OUT\020\007\022\"\n\036SAFETY_OPERATION_RESULT_F" + + "AILED\020\010b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + cmvr.api.Common.getDescriptor(), + }); + internal_static_cmvr_api_DeviceIdList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_cmvr_api_DeviceIdList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_DeviceIdList_descriptor, + new java.lang.String[] { "DeviceIds", }); + internal_static_cmvr_api_SafetyScope_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_cmvr_api_SafetyScope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_SafetyScope_descriptor, + new java.lang.String[] { "AllDevices", "Devices", "Target", }); + internal_static_cmvr_api_SafetyBlockerInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_cmvr_api_SafetyBlockerInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_SafetyBlockerInfo_descriptor, + new java.lang.String[] { "ReasonCode", "Scope", "RecoveryRequirement", "SourceId", "OperationId", "FirstObservedAtUnixMs", "LastObservedAtUnixMs", }); + internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_cmvr_api_DeviceSafetyStateInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor, + new java.lang.String[] { "DeviceId", "DeviceKind", "PolicyFamily", "LifecycleState", "HealthState", "AdmissionState", "Condition", "HasSample", "SnapshotFresh", "SampleAgeMs", "SampleSequence", "ObservedAtUnixMs", "DeviceGeneration", "Connected", "OperationalReady", "Quiescent", "MotionActive", "ActuatorEnabled", "EmergencyStopActive", "ProtectiveStopActive", "FaultActive", "Blockers", }); + internal_static_cmvr_api_SafetyOperationTargetResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_cmvr_api_SafetyOperationTargetResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_SafetyOperationTargetResult_descriptor, + new java.lang.String[] { "TargetId", "Result", "ReasonCode", "Detail", "BeforeState", "AfterState", }); + internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_cmvr_api_SafetyParticipantResultInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor, + new java.lang.String[] { "Recorded", "Success", "ReasonCode", "Detail", }); + internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_cmvr_api_SafetyParticipantStateInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor, + new java.lang.String[] { "ParticipantId", "Phase", "Required", "Registered", "BarrierActive", "BarrierRetained", "OperationId", "SafetyEpoch", "LastRequest", "LastVerify", "LastRelease", }); + internal_static_cmvr_api_GetSafetyStateCommand_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_cmvr_api_GetSafetyStateCommand_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_GetSafetyStateCommand_descriptor, + new java.lang.String[] { }); + internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor = + internal_static_cmvr_api_GetSafetyStateCommand_descriptor.getNestedTypes().get(0); + internal_static_cmvr_api_GetSafetyStateCommand_Request_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor, + new java.lang.String[] { "Scope", }); + internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor = + internal_static_cmvr_api_GetSafetyStateCommand_descriptor.getNestedTypes().get(1); + internal_static_cmvr_api_GetSafetyStateCommand_Feedback_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor, + new java.lang.String[] { "Header", "SystemState", "SafetyEpoch", "ControlServiceInstanceId", "EnforcementMode", "Devices", "ActiveOperationId", "ActiveOperationPhase", "SampledAtUnixMs", "Participants", }); + internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_cmvr_api_RecoverSafetyStateCommand_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor, + new java.lang.String[] { }); + internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor = + internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor.getNestedTypes().get(0); + internal_static_cmvr_api_RecoverSafetyStateCommand_Request_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor, + new java.lang.String[] { "RecoveryId", "Scope", "ExpectedSafetyEpoch", "Mode", "Reason", "TimeoutMs", }); + internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor = + internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor.getNestedTypes().get(1); + internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor, + new java.lang.String[] { "Header", "Result", "PreviousSafetyEpoch", "CurrentSafetyEpoch", "SystemState", "Targets", "RecoveryId", }); + cmvr.api.Common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemCommand.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemCommand.java index 71435bc..4ef6800 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemCommand.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemCommand.java @@ -5977,6 +5977,88 @@ public final class SystemCommand { */ com.google.protobuf.ByteString getActionServiceInstanceIdBytes(); + + /** + *
+       * Effective server-side control-plane settings. These fields describe
+       * what is running, not merely what the configuration requested.
+       * 
+ * + * string grpc_transport_security = 9; + * @return The grpcTransportSecurity. + */ + java.lang.String getGrpcTransportSecurity(); + /** + *
+       * Effective server-side control-plane settings. These fields describe
+       * what is running, not merely what the configuration requested.
+       * 
+ * + * string grpc_transport_security = 9; + * @return The bytes for grpcTransportSecurity. + */ + com.google.protobuf.ByteString + getGrpcTransportSecurityBytes(); + + /** + * string grpc_authentication = 10; + * @return The grpcAuthentication. + */ + java.lang.String getGrpcAuthentication(); + /** + * string grpc_authentication = 10; + * @return The bytes for grpcAuthentication. + */ + com.google.protobuf.ByteString + getGrpcAuthenticationBytes(); + + /** + * string grpc_recovery_exposure = 11; + * @return The grpcRecoveryExposure. + */ + java.lang.String getGrpcRecoveryExposure(); + /** + * string grpc_recovery_exposure = 11; + * @return The bytes for grpcRecoveryExposure. + */ + com.google.protobuf.ByteString + getGrpcRecoveryExposureBytes(); + + /** + * bool grpc_insecure_non_loopback = 12; + * @return The grpcInsecureNonLoopback. + */ + boolean getGrpcInsecureNonLoopback(); + + /** + * string control_service_instance_id = 13; + * @return The controlServiceInstanceId. + */ + java.lang.String getControlServiceInstanceId(); + /** + * string control_service_instance_id = 13; + * @return The bytes for controlServiceInstanceId. + */ + com.google.protobuf.ByteString + getControlServiceInstanceIdBytes(); + + /** + * string safety_enforcement_mode = 14; + * @return The safetyEnforcementMode. + */ + java.lang.String getSafetyEnforcementMode(); + /** + * string safety_enforcement_mode = 14; + * @return The bytes for safetyEnforcementMode. + */ + com.google.protobuf.ByteString + getSafetyEnforcementModeBytes(); + + /** + * uint32 safety_schema_version = 15; + * @return The safetySchemaVersion. + */ + int getSafetySchemaVersion(); } /** * Protobuf type {@code cmvr.api.GetSystemInfoCommand.Feedback} @@ -5998,6 +6080,11 @@ public final class SystemCommand { kernelVersion_ = ""; architecture_ = ""; actionServiceInstanceId_ = ""; + grpcTransportSecurity_ = ""; + grpcAuthentication_ = ""; + grpcRecoveryExposure_ = ""; + controlServiceInstanceId_ = ""; + safetyEnforcementMode_ = ""; } @java.lang.Override @@ -6327,6 +6414,228 @@ public final class SystemCommand { } } + public static final int GRPC_TRANSPORT_SECURITY_FIELD_NUMBER = 9; + private volatile java.lang.Object grpcTransportSecurity_; + /** + *
+       * Effective server-side control-plane settings. These fields describe
+       * what is running, not merely what the configuration requested.
+       * 
+ * + * string grpc_transport_security = 9; + * @return The grpcTransportSecurity. + */ + @java.lang.Override + public java.lang.String getGrpcTransportSecurity() { + java.lang.Object ref = grpcTransportSecurity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + grpcTransportSecurity_ = s; + return s; + } + } + /** + *
+       * Effective server-side control-plane settings. These fields describe
+       * what is running, not merely what the configuration requested.
+       * 
+ * + * string grpc_transport_security = 9; + * @return The bytes for grpcTransportSecurity. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGrpcTransportSecurityBytes() { + java.lang.Object ref = grpcTransportSecurity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + grpcTransportSecurity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRPC_AUTHENTICATION_FIELD_NUMBER = 10; + private volatile java.lang.Object grpcAuthentication_; + /** + * string grpc_authentication = 10; + * @return The grpcAuthentication. + */ + @java.lang.Override + public java.lang.String getGrpcAuthentication() { + java.lang.Object ref = grpcAuthentication_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + grpcAuthentication_ = s; + return s; + } + } + /** + * string grpc_authentication = 10; + * @return The bytes for grpcAuthentication. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGrpcAuthenticationBytes() { + java.lang.Object ref = grpcAuthentication_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + grpcAuthentication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRPC_RECOVERY_EXPOSURE_FIELD_NUMBER = 11; + private volatile java.lang.Object grpcRecoveryExposure_; + /** + * string grpc_recovery_exposure = 11; + * @return The grpcRecoveryExposure. + */ + @java.lang.Override + public java.lang.String getGrpcRecoveryExposure() { + java.lang.Object ref = grpcRecoveryExposure_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + grpcRecoveryExposure_ = s; + return s; + } + } + /** + * string grpc_recovery_exposure = 11; + * @return The bytes for grpcRecoveryExposure. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGrpcRecoveryExposureBytes() { + java.lang.Object ref = grpcRecoveryExposure_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + grpcRecoveryExposure_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRPC_INSECURE_NON_LOOPBACK_FIELD_NUMBER = 12; + private boolean grpcInsecureNonLoopback_; + /** + * bool grpc_insecure_non_loopback = 12; + * @return The grpcInsecureNonLoopback. + */ + @java.lang.Override + public boolean getGrpcInsecureNonLoopback() { + return grpcInsecureNonLoopback_; + } + + public static final int CONTROL_SERVICE_INSTANCE_ID_FIELD_NUMBER = 13; + private volatile java.lang.Object controlServiceInstanceId_; + /** + * string control_service_instance_id = 13; + * @return The controlServiceInstanceId. + */ + @java.lang.Override + public java.lang.String getControlServiceInstanceId() { + java.lang.Object ref = controlServiceInstanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + controlServiceInstanceId_ = s; + return s; + } + } + /** + * string control_service_instance_id = 13; + * @return The bytes for controlServiceInstanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getControlServiceInstanceIdBytes() { + java.lang.Object ref = controlServiceInstanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + controlServiceInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAFETY_ENFORCEMENT_MODE_FIELD_NUMBER = 14; + private volatile java.lang.Object safetyEnforcementMode_; + /** + * string safety_enforcement_mode = 14; + * @return The safetyEnforcementMode. + */ + @java.lang.Override + public java.lang.String getSafetyEnforcementMode() { + java.lang.Object ref = safetyEnforcementMode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + safetyEnforcementMode_ = s; + return s; + } + } + /** + * string safety_enforcement_mode = 14; + * @return The bytes for safetyEnforcementMode. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSafetyEnforcementModeBytes() { + java.lang.Object ref = safetyEnforcementMode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + safetyEnforcementMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAFETY_SCHEMA_VERSION_FIELD_NUMBER = 15; + private int safetySchemaVersion_; + /** + * uint32 safety_schema_version = 15; + * @return The safetySchemaVersion. + */ + @java.lang.Override + public int getSafetySchemaVersion() { + return safetySchemaVersion_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -6365,6 +6674,27 @@ public final class SystemCommand { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionServiceInstanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, actionServiceInstanceId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grpcTransportSecurity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, grpcTransportSecurity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grpcAuthentication_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, grpcAuthentication_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grpcRecoveryExposure_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, grpcRecoveryExposure_); + } + if (grpcInsecureNonLoopback_ != false) { + output.writeBool(12, grpcInsecureNonLoopback_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlServiceInstanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, controlServiceInstanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(safetyEnforcementMode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, safetyEnforcementMode_); + } + if (safetySchemaVersion_ != 0) { + output.writeUInt32(15, safetySchemaVersion_); + } getUnknownFields().writeTo(output); } @@ -6399,6 +6729,29 @@ public final class SystemCommand { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionServiceInstanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, actionServiceInstanceId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grpcTransportSecurity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, grpcTransportSecurity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grpcAuthentication_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, grpcAuthentication_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grpcRecoveryExposure_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, grpcRecoveryExposure_); + } + if (grpcInsecureNonLoopback_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, grpcInsecureNonLoopback_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlServiceInstanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, controlServiceInstanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(safetyEnforcementMode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, safetyEnforcementMode_); + } + if (safetySchemaVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(15, safetySchemaVersion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6433,6 +6786,20 @@ public final class SystemCommand { .equals(other.getArchitecture())) return false; if (!getActionServiceInstanceId() .equals(other.getActionServiceInstanceId())) return false; + if (!getGrpcTransportSecurity() + .equals(other.getGrpcTransportSecurity())) return false; + if (!getGrpcAuthentication() + .equals(other.getGrpcAuthentication())) return false; + if (!getGrpcRecoveryExposure() + .equals(other.getGrpcRecoveryExposure())) return false; + if (getGrpcInsecureNonLoopback() + != other.getGrpcInsecureNonLoopback()) return false; + if (!getControlServiceInstanceId() + .equals(other.getControlServiceInstanceId())) return false; + if (!getSafetyEnforcementMode() + .equals(other.getSafetyEnforcementMode())) return false; + if (getSafetySchemaVersion() + != other.getSafetySchemaVersion()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6462,6 +6829,21 @@ public final class SystemCommand { hash = (53 * hash) + getArchitecture().hashCode(); hash = (37 * hash) + ACTION_SERVICE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getActionServiceInstanceId().hashCode(); + hash = (37 * hash) + GRPC_TRANSPORT_SECURITY_FIELD_NUMBER; + hash = (53 * hash) + getGrpcTransportSecurity().hashCode(); + hash = (37 * hash) + GRPC_AUTHENTICATION_FIELD_NUMBER; + hash = (53 * hash) + getGrpcAuthentication().hashCode(); + hash = (37 * hash) + GRPC_RECOVERY_EXPOSURE_FIELD_NUMBER; + hash = (53 * hash) + getGrpcRecoveryExposure().hashCode(); + hash = (37 * hash) + GRPC_INSECURE_NON_LOOPBACK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGrpcInsecureNonLoopback()); + hash = (37 * hash) + CONTROL_SERVICE_INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getControlServiceInstanceId().hashCode(); + hash = (37 * hash) + SAFETY_ENFORCEMENT_MODE_FIELD_NUMBER; + hash = (53 * hash) + getSafetyEnforcementMode().hashCode(); + hash = (37 * hash) + SAFETY_SCHEMA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSafetySchemaVersion(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -6610,6 +6992,20 @@ public final class SystemCommand { actionServiceInstanceId_ = ""; + grpcTransportSecurity_ = ""; + + grpcAuthentication_ = ""; + + grpcRecoveryExposure_ = ""; + + grpcInsecureNonLoopback_ = false; + + controlServiceInstanceId_ = ""; + + safetyEnforcementMode_ = ""; + + safetySchemaVersion_ = 0; + return this; } @@ -6648,6 +7044,13 @@ public final class SystemCommand { result.kernelVersion_ = kernelVersion_; result.architecture_ = architecture_; result.actionServiceInstanceId_ = actionServiceInstanceId_; + result.grpcTransportSecurity_ = grpcTransportSecurity_; + result.grpcAuthentication_ = grpcAuthentication_; + result.grpcRecoveryExposure_ = grpcRecoveryExposure_; + result.grpcInsecureNonLoopback_ = grpcInsecureNonLoopback_; + result.controlServiceInstanceId_ = controlServiceInstanceId_; + result.safetyEnforcementMode_ = safetyEnforcementMode_; + result.safetySchemaVersion_ = safetySchemaVersion_; onBuilt(); return result; } @@ -6727,6 +7130,32 @@ public final class SystemCommand { actionServiceInstanceId_ = other.actionServiceInstanceId_; onChanged(); } + if (!other.getGrpcTransportSecurity().isEmpty()) { + grpcTransportSecurity_ = other.grpcTransportSecurity_; + onChanged(); + } + if (!other.getGrpcAuthentication().isEmpty()) { + grpcAuthentication_ = other.grpcAuthentication_; + onChanged(); + } + if (!other.getGrpcRecoveryExposure().isEmpty()) { + grpcRecoveryExposure_ = other.grpcRecoveryExposure_; + onChanged(); + } + if (other.getGrpcInsecureNonLoopback() != false) { + setGrpcInsecureNonLoopback(other.getGrpcInsecureNonLoopback()); + } + if (!other.getControlServiceInstanceId().isEmpty()) { + controlServiceInstanceId_ = other.controlServiceInstanceId_; + onChanged(); + } + if (!other.getSafetyEnforcementMode().isEmpty()) { + safetyEnforcementMode_ = other.safetyEnforcementMode_; + onChanged(); + } + if (other.getSafetySchemaVersion() != 0) { + setSafetySchemaVersion(other.getSafetySchemaVersion()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6795,6 +7224,41 @@ public final class SystemCommand { break; } // case 66 + case 74: { + grpcTransportSecurity_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: { + grpcAuthentication_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: { + grpcRecoveryExposure_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 96: { + grpcInsecureNonLoopback_ = input.readBool(); + + break; + } // case 96 + case 106: { + controlServiceInstanceId_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 114: { + safetyEnforcementMode_ = input.readStringRequireUtf8(); + + break; + } // case 114 + case 120: { + safetySchemaVersion_ = input.readUInt32(); + + break; + } // case 120 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -7486,6 +7950,473 @@ public final class SystemCommand { onChanged(); return this; } + + private java.lang.Object grpcTransportSecurity_ = ""; + /** + *
+         * Effective server-side control-plane settings. These fields describe
+         * what is running, not merely what the configuration requested.
+         * 
+ * + * string grpc_transport_security = 9; + * @return The grpcTransportSecurity. + */ + public java.lang.String getGrpcTransportSecurity() { + java.lang.Object ref = grpcTransportSecurity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + grpcTransportSecurity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Effective server-side control-plane settings. These fields describe
+         * what is running, not merely what the configuration requested.
+         * 
+ * + * string grpc_transport_security = 9; + * @return The bytes for grpcTransportSecurity. + */ + public com.google.protobuf.ByteString + getGrpcTransportSecurityBytes() { + java.lang.Object ref = grpcTransportSecurity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + grpcTransportSecurity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Effective server-side control-plane settings. These fields describe
+         * what is running, not merely what the configuration requested.
+         * 
+ * + * string grpc_transport_security = 9; + * @param value The grpcTransportSecurity to set. + * @return This builder for chaining. + */ + public Builder setGrpcTransportSecurity( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + grpcTransportSecurity_ = value; + onChanged(); + return this; + } + /** + *
+         * Effective server-side control-plane settings. These fields describe
+         * what is running, not merely what the configuration requested.
+         * 
+ * + * string grpc_transport_security = 9; + * @return This builder for chaining. + */ + public Builder clearGrpcTransportSecurity() { + + grpcTransportSecurity_ = getDefaultInstance().getGrpcTransportSecurity(); + onChanged(); + return this; + } + /** + *
+         * Effective server-side control-plane settings. These fields describe
+         * what is running, not merely what the configuration requested.
+         * 
+ * + * string grpc_transport_security = 9; + * @param value The bytes for grpcTransportSecurity to set. + * @return This builder for chaining. + */ + public Builder setGrpcTransportSecurityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + grpcTransportSecurity_ = value; + onChanged(); + return this; + } + + private java.lang.Object grpcAuthentication_ = ""; + /** + * string grpc_authentication = 10; + * @return The grpcAuthentication. + */ + public java.lang.String getGrpcAuthentication() { + java.lang.Object ref = grpcAuthentication_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + grpcAuthentication_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string grpc_authentication = 10; + * @return The bytes for grpcAuthentication. + */ + public com.google.protobuf.ByteString + getGrpcAuthenticationBytes() { + java.lang.Object ref = grpcAuthentication_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + grpcAuthentication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string grpc_authentication = 10; + * @param value The grpcAuthentication to set. + * @return This builder for chaining. + */ + public Builder setGrpcAuthentication( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + grpcAuthentication_ = value; + onChanged(); + return this; + } + /** + * string grpc_authentication = 10; + * @return This builder for chaining. + */ + public Builder clearGrpcAuthentication() { + + grpcAuthentication_ = getDefaultInstance().getGrpcAuthentication(); + onChanged(); + return this; + } + /** + * string grpc_authentication = 10; + * @param value The bytes for grpcAuthentication to set. + * @return This builder for chaining. + */ + public Builder setGrpcAuthenticationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + grpcAuthentication_ = value; + onChanged(); + return this; + } + + private java.lang.Object grpcRecoveryExposure_ = ""; + /** + * string grpc_recovery_exposure = 11; + * @return The grpcRecoveryExposure. + */ + public java.lang.String getGrpcRecoveryExposure() { + java.lang.Object ref = grpcRecoveryExposure_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + grpcRecoveryExposure_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string grpc_recovery_exposure = 11; + * @return The bytes for grpcRecoveryExposure. + */ + public com.google.protobuf.ByteString + getGrpcRecoveryExposureBytes() { + java.lang.Object ref = grpcRecoveryExposure_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + grpcRecoveryExposure_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string grpc_recovery_exposure = 11; + * @param value The grpcRecoveryExposure to set. + * @return This builder for chaining. + */ + public Builder setGrpcRecoveryExposure( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + grpcRecoveryExposure_ = value; + onChanged(); + return this; + } + /** + * string grpc_recovery_exposure = 11; + * @return This builder for chaining. + */ + public Builder clearGrpcRecoveryExposure() { + + grpcRecoveryExposure_ = getDefaultInstance().getGrpcRecoveryExposure(); + onChanged(); + return this; + } + /** + * string grpc_recovery_exposure = 11; + * @param value The bytes for grpcRecoveryExposure to set. + * @return This builder for chaining. + */ + public Builder setGrpcRecoveryExposureBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + grpcRecoveryExposure_ = value; + onChanged(); + return this; + } + + private boolean grpcInsecureNonLoopback_ ; + /** + * bool grpc_insecure_non_loopback = 12; + * @return The grpcInsecureNonLoopback. + */ + @java.lang.Override + public boolean getGrpcInsecureNonLoopback() { + return grpcInsecureNonLoopback_; + } + /** + * bool grpc_insecure_non_loopback = 12; + * @param value The grpcInsecureNonLoopback to set. + * @return This builder for chaining. + */ + public Builder setGrpcInsecureNonLoopback(boolean value) { + + grpcInsecureNonLoopback_ = value; + onChanged(); + return this; + } + /** + * bool grpc_insecure_non_loopback = 12; + * @return This builder for chaining. + */ + public Builder clearGrpcInsecureNonLoopback() { + + grpcInsecureNonLoopback_ = false; + onChanged(); + return this; + } + + private java.lang.Object controlServiceInstanceId_ = ""; + /** + * string control_service_instance_id = 13; + * @return The controlServiceInstanceId. + */ + public java.lang.String getControlServiceInstanceId() { + java.lang.Object ref = controlServiceInstanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + controlServiceInstanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string control_service_instance_id = 13; + * @return The bytes for controlServiceInstanceId. + */ + public com.google.protobuf.ByteString + getControlServiceInstanceIdBytes() { + java.lang.Object ref = controlServiceInstanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + controlServiceInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string control_service_instance_id = 13; + * @param value The controlServiceInstanceId to set. + * @return This builder for chaining. + */ + public Builder setControlServiceInstanceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + controlServiceInstanceId_ = value; + onChanged(); + return this; + } + /** + * string control_service_instance_id = 13; + * @return This builder for chaining. + */ + public Builder clearControlServiceInstanceId() { + + controlServiceInstanceId_ = getDefaultInstance().getControlServiceInstanceId(); + onChanged(); + return this; + } + /** + * string control_service_instance_id = 13; + * @param value The bytes for controlServiceInstanceId to set. + * @return This builder for chaining. + */ + public Builder setControlServiceInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + controlServiceInstanceId_ = value; + onChanged(); + return this; + } + + private java.lang.Object safetyEnforcementMode_ = ""; + /** + * string safety_enforcement_mode = 14; + * @return The safetyEnforcementMode. + */ + public java.lang.String getSafetyEnforcementMode() { + java.lang.Object ref = safetyEnforcementMode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + safetyEnforcementMode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string safety_enforcement_mode = 14; + * @return The bytes for safetyEnforcementMode. + */ + public com.google.protobuf.ByteString + getSafetyEnforcementModeBytes() { + java.lang.Object ref = safetyEnforcementMode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + safetyEnforcementMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string safety_enforcement_mode = 14; + * @param value The safetyEnforcementMode to set. + * @return This builder for chaining. + */ + public Builder setSafetyEnforcementMode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + safetyEnforcementMode_ = value; + onChanged(); + return this; + } + /** + * string safety_enforcement_mode = 14; + * @return This builder for chaining. + */ + public Builder clearSafetyEnforcementMode() { + + safetyEnforcementMode_ = getDefaultInstance().getSafetyEnforcementMode(); + onChanged(); + return this; + } + /** + * string safety_enforcement_mode = 14; + * @param value The bytes for safetyEnforcementMode to set. + * @return This builder for chaining. + */ + public Builder setSafetyEnforcementModeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + safetyEnforcementMode_ = value; + onChanged(); + return this; + } + + private int safetySchemaVersion_ ; + /** + * uint32 safety_schema_version = 15; + * @return The safetySchemaVersion. + */ + @java.lang.Override + public int getSafetySchemaVersion() { + return safetySchemaVersion_; + } + /** + * uint32 safety_schema_version = 15; + * @param value The safetySchemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSafetySchemaVersion(int value) { + + safetySchemaVersion_ = value; + onChanged(); + return this; + } + /** + * uint32 safety_schema_version = 15; + * @return This builder for chaining. + */ + public Builder clearSafetySchemaVersion() { + + safetySchemaVersion_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12069,6 +13000,36 @@ public final class SystemCommand { * .cmvr.api.CommandHeader.Request header = 1; */ cmvr.api.Common.CommandHeader.RequestOrBuilder getHeaderOrBuilder(); + + /** + * string operation_id = 2; + * @return The operationId. + */ + java.lang.String getOperationId(); + /** + * string operation_id = 2; + * @return The bytes for operationId. + */ + com.google.protobuf.ByteString + getOperationIdBytes(); + + /** + * string expected_service_instance_id = 3; + * @return The expectedServiceInstanceId. + */ + java.lang.String getExpectedServiceInstanceId(); + /** + * string expected_service_instance_id = 3; + * @return The bytes for expectedServiceInstanceId. + */ + com.google.protobuf.ByteString + getExpectedServiceInstanceIdBytes(); + + /** + * uint32 timeout_ms = 4; + * @return The timeoutMs. + */ + int getTimeoutMs(); } /** * Protobuf type {@code cmvr.api.StopAllCommand.Request} @@ -12083,6 +13044,8 @@ public final class SystemCommand { super(builder); } private Request() { + operationId_ = ""; + expectedServiceInstanceId_ = ""; } @java.lang.Override @@ -12136,6 +13099,93 @@ public final class SystemCommand { return getHeader(); } + public static final int OPERATION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object operationId_; + /** + * string operation_id = 2; + * @return The operationId. + */ + @java.lang.Override + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + /** + * string operation_id = 2; + * @return The bytes for operationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_SERVICE_INSTANCE_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object expectedServiceInstanceId_; + /** + * string expected_service_instance_id = 3; + * @return The expectedServiceInstanceId. + */ + @java.lang.Override + public java.lang.String getExpectedServiceInstanceId() { + java.lang.Object ref = expectedServiceInstanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expectedServiceInstanceId_ = s; + return s; + } + } + /** + * string expected_service_instance_id = 3; + * @return The bytes for expectedServiceInstanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getExpectedServiceInstanceIdBytes() { + java.lang.Object ref = expectedServiceInstanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expectedServiceInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_MS_FIELD_NUMBER = 4; + private int timeoutMs_; + /** + * uint32 timeout_ms = 4; + * @return The timeoutMs. + */ + @java.lang.Override + public int getTimeoutMs() { + return timeoutMs_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -12153,6 +13203,15 @@ public final class SystemCommand { if (header_ != null) { output.writeMessage(1, getHeader()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expectedServiceInstanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, expectedServiceInstanceId_); + } + if (timeoutMs_ != 0) { + output.writeUInt32(4, timeoutMs_); + } getUnknownFields().writeTo(output); } @@ -12166,6 +13225,16 @@ public final class SystemCommand { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expectedServiceInstanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, expectedServiceInstanceId_); + } + if (timeoutMs_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, timeoutMs_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -12186,6 +13255,12 @@ public final class SystemCommand { if (!getHeader() .equals(other.getHeader())) return false; } + if (!getOperationId() + .equals(other.getOperationId())) return false; + if (!getExpectedServiceInstanceId() + .equals(other.getExpectedServiceInstanceId())) return false; + if (getTimeoutMs() + != other.getTimeoutMs()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12201,6 +13276,12 @@ public final class SystemCommand { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + EXPECTED_SERVICE_INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getExpectedServiceInstanceId().hashCode(); + hash = (37 * hash) + TIMEOUT_MS_FIELD_NUMBER; + hash = (53 * hash) + getTimeoutMs(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -12335,6 +13416,12 @@ public final class SystemCommand { header_ = null; headerBuilder_ = null; } + operationId_ = ""; + + expectedServiceInstanceId_ = ""; + + timeoutMs_ = 0; + return this; } @@ -12366,6 +13453,9 @@ public final class SystemCommand { } else { result.header_ = headerBuilder_.build(); } + result.operationId_ = operationId_; + result.expectedServiceInstanceId_ = expectedServiceInstanceId_; + result.timeoutMs_ = timeoutMs_; onBuilt(); return result; } @@ -12417,6 +13507,17 @@ public final class SystemCommand { if (other.hasHeader()) { mergeHeader(other.getHeader()); } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getExpectedServiceInstanceId().isEmpty()) { + expectedServiceInstanceId_ = other.expectedServiceInstanceId_; + onChanged(); + } + if (other.getTimeoutMs() != 0) { + setTimeoutMs(other.getTimeoutMs()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -12450,6 +13551,21 @@ public final class SystemCommand { break; } // case 10 + case 18: { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + expectedServiceInstanceId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + timeoutMs_ = input.readUInt32(); + + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -12584,6 +13700,189 @@ public final class SystemCommand { } return headerBuilder_; } + + private java.lang.Object operationId_ = ""; + /** + * string operation_id = 2; + * @return The operationId. + */ + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string operation_id = 2; + * @return The bytes for operationId. + */ + public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string operation_id = 2; + * @param value The operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + * string operation_id = 2; + * @return This builder for chaining. + */ + public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + * string operation_id = 2; + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object expectedServiceInstanceId_ = ""; + /** + * string expected_service_instance_id = 3; + * @return The expectedServiceInstanceId. + */ + public java.lang.String getExpectedServiceInstanceId() { + java.lang.Object ref = expectedServiceInstanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expectedServiceInstanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string expected_service_instance_id = 3; + * @return The bytes for expectedServiceInstanceId. + */ + public com.google.protobuf.ByteString + getExpectedServiceInstanceIdBytes() { + java.lang.Object ref = expectedServiceInstanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expectedServiceInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string expected_service_instance_id = 3; + * @param value The expectedServiceInstanceId to set. + * @return This builder for chaining. + */ + public Builder setExpectedServiceInstanceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expectedServiceInstanceId_ = value; + onChanged(); + return this; + } + /** + * string expected_service_instance_id = 3; + * @return This builder for chaining. + */ + public Builder clearExpectedServiceInstanceId() { + + expectedServiceInstanceId_ = getDefaultInstance().getExpectedServiceInstanceId(); + onChanged(); + return this; + } + /** + * string expected_service_instance_id = 3; + * @param value The bytes for expectedServiceInstanceId to set. + * @return This builder for chaining. + */ + public Builder setExpectedServiceInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expectedServiceInstanceId_ = value; + onChanged(); + return this; + } + + private int timeoutMs_ ; + /** + * uint32 timeout_ms = 4; + * @return The timeoutMs. + */ + @java.lang.Override + public int getTimeoutMs() { + return timeoutMs_; + } + /** + * uint32 timeout_ms = 4; + * @param value The timeoutMs to set. + * @return This builder for chaining. + */ + public Builder setTimeoutMs(int value) { + + timeoutMs_ = value; + onChanged(); + return this; + } + /** + * uint32 timeout_ms = 4; + * @return This builder for chaining. + */ + public Builder clearTimeoutMs() { + + timeoutMs_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12666,6 +13965,65 @@ public final class SystemCommand { * .cmvr.api.CommandHeader.Feedback header = 1; */ cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder(); + + /** + * string operation_id = 2; + * @return The operationId. + */ + java.lang.String getOperationId(); + /** + * string operation_id = 2; + * @return The bytes for operationId. + */ + com.google.protobuf.ByteString + getOperationIdBytes(); + + /** + * uint64 previous_safety_epoch = 3; + * @return The previousSafetyEpoch. + */ + long getPreviousSafetyEpoch(); + + /** + * uint64 current_safety_epoch = 4; + * @return The currentSafetyEpoch. + */ + long getCurrentSafetyEpoch(); + + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The enum numeric value on the wire for systemState. + */ + int getSystemStateValue(); + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The systemState. + */ + cmvr.api.SafetyCommand.SystemAdmissionState getSystemState(); + + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + java.util.List + getTargetsList(); + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index); + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + int getTargetsCount(); + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + java.util.List + getTargetsOrBuilderList(); + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder( + int index); } /** * Protobuf type {@code cmvr.api.StopAllCommand.Feedback} @@ -12680,6 +14038,9 @@ public final class SystemCommand { super(builder); } private Feedback() { + operationId_ = ""; + systemState_ = 0; + targets_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -12733,6 +14094,125 @@ public final class SystemCommand { return getHeader(); } + public static final int OPERATION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object operationId_; + /** + * string operation_id = 2; + * @return The operationId. + */ + @java.lang.Override + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + /** + * string operation_id = 2; + * @return The bytes for operationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREVIOUS_SAFETY_EPOCH_FIELD_NUMBER = 3; + private long previousSafetyEpoch_; + /** + * uint64 previous_safety_epoch = 3; + * @return The previousSafetyEpoch. + */ + @java.lang.Override + public long getPreviousSafetyEpoch() { + return previousSafetyEpoch_; + } + + public static final int CURRENT_SAFETY_EPOCH_FIELD_NUMBER = 4; + private long currentSafetyEpoch_; + /** + * uint64 current_safety_epoch = 4; + * @return The currentSafetyEpoch. + */ + @java.lang.Override + public long getCurrentSafetyEpoch() { + return currentSafetyEpoch_; + } + + public static final int SYSTEM_STATE_FIELD_NUMBER = 5; + private int systemState_; + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The enum numeric value on the wire for systemState. + */ + @java.lang.Override public int getSystemStateValue() { + return systemState_; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The systemState. + */ + @java.lang.Override public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_); + return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result; + } + + public static final int TARGETS_FIELD_NUMBER = 6; + private java.util.List targets_; + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + @java.lang.Override + public java.util.List getTargetsList() { + return targets_; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + @java.lang.Override + public java.util.List + getTargetsOrBuilderList() { + return targets_; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + @java.lang.Override + public int getTargetsCount() { + return targets_.size(); + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index) { + return targets_.get(index); + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder( + int index) { + return targets_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -12750,6 +14230,21 @@ public final class SystemCommand { if (header_ != null) { output.writeMessage(1, getHeader()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operationId_); + } + if (previousSafetyEpoch_ != 0L) { + output.writeUInt64(3, previousSafetyEpoch_); + } + if (currentSafetyEpoch_ != 0L) { + output.writeUInt64(4, currentSafetyEpoch_); + } + if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, systemState_); + } + for (int i = 0; i < targets_.size(); i++) { + output.writeMessage(6, targets_.get(i)); + } getUnknownFields().writeTo(output); } @@ -12763,6 +14258,25 @@ public final class SystemCommand { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operationId_); + } + if (previousSafetyEpoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, previousSafetyEpoch_); + } + if (currentSafetyEpoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, currentSafetyEpoch_); + } + if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, systemState_); + } + for (int i = 0; i < targets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, targets_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -12783,6 +14297,15 @@ public final class SystemCommand { if (!getHeader() .equals(other.getHeader())) return false; } + if (!getOperationId() + .equals(other.getOperationId())) return false; + if (getPreviousSafetyEpoch() + != other.getPreviousSafetyEpoch()) return false; + if (getCurrentSafetyEpoch() + != other.getCurrentSafetyEpoch()) return false; + if (systemState_ != other.systemState_) return false; + if (!getTargetsList() + .equals(other.getTargetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12798,6 +14321,20 @@ public final class SystemCommand { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + PREVIOUS_SAFETY_EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPreviousSafetyEpoch()); + hash = (37 * hash) + CURRENT_SAFETY_EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCurrentSafetyEpoch()); + hash = (37 * hash) + SYSTEM_STATE_FIELD_NUMBER; + hash = (53 * hash) + systemState_; + if (getTargetsCount() > 0) { + hash = (37 * hash) + TARGETS_FIELD_NUMBER; + hash = (53 * hash) + getTargetsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -12932,6 +14469,21 @@ public final class SystemCommand { header_ = null; headerBuilder_ = null; } + operationId_ = ""; + + previousSafetyEpoch_ = 0L; + + currentSafetyEpoch_ = 0L; + + systemState_ = 0; + + if (targetsBuilder_ == null) { + targets_ = java.util.Collections.emptyList(); + } else { + targets_ = null; + targetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -12958,11 +14510,25 @@ public final class SystemCommand { @java.lang.Override public cmvr.api.SystemCommand.StopAllCommand.Feedback buildPartial() { cmvr.api.SystemCommand.StopAllCommand.Feedback result = new cmvr.api.SystemCommand.StopAllCommand.Feedback(this); + int from_bitField0_ = bitField0_; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } + result.operationId_ = operationId_; + result.previousSafetyEpoch_ = previousSafetyEpoch_; + result.currentSafetyEpoch_ = currentSafetyEpoch_; + result.systemState_ = systemState_; + if (targetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + targets_ = java.util.Collections.unmodifiableList(targets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.targets_ = targets_; + } else { + result.targets_ = targetsBuilder_.build(); + } onBuilt(); return result; } @@ -13014,6 +14580,45 @@ public final class SystemCommand { if (other.hasHeader()) { mergeHeader(other.getHeader()); } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (other.getPreviousSafetyEpoch() != 0L) { + setPreviousSafetyEpoch(other.getPreviousSafetyEpoch()); + } + if (other.getCurrentSafetyEpoch() != 0L) { + setCurrentSafetyEpoch(other.getCurrentSafetyEpoch()); + } + if (other.systemState_ != 0) { + setSystemStateValue(other.getSystemStateValue()); + } + if (targetsBuilder_ == null) { + if (!other.targets_.isEmpty()) { + if (targets_.isEmpty()) { + targets_ = other.targets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTargetsIsMutable(); + targets_.addAll(other.targets_); + } + onChanged(); + } + } else { + if (!other.targets_.isEmpty()) { + if (targetsBuilder_.isEmpty()) { + targetsBuilder_.dispose(); + targetsBuilder_ = null; + targets_ = other.targets_; + bitField0_ = (bitField0_ & ~0x00000001); + targetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTargetsFieldBuilder() : null; + } else { + targetsBuilder_.addAllMessages(other.targets_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -13047,6 +14652,39 @@ public final class SystemCommand { break; } // case 10 + case 18: { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + previousSafetyEpoch_ = input.readUInt64(); + + break; + } // case 24 + case 32: { + currentSafetyEpoch_ = input.readUInt64(); + + break; + } // case 32 + case 40: { + systemState_ = input.readEnum(); + + break; + } // case 40 + case 50: { + cmvr.api.SafetyCommand.SafetyOperationTargetResult m = + input.readMessage( + cmvr.api.SafetyCommand.SafetyOperationTargetResult.parser(), + extensionRegistry); + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(m); + } else { + targetsBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -13062,6 +14700,7 @@ public final class SystemCommand { } // finally return this; } + private int bitField0_; private cmvr.api.Common.CommandHeader.Feedback header_; private com.google.protobuf.SingleFieldBuilderV3< @@ -13181,6 +14820,438 @@ public final class SystemCommand { } return headerBuilder_; } + + private java.lang.Object operationId_ = ""; + /** + * string operation_id = 2; + * @return The operationId. + */ + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string operation_id = 2; + * @return The bytes for operationId. + */ + public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string operation_id = 2; + * @param value The operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + * string operation_id = 2; + * @return This builder for chaining. + */ + public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + * string operation_id = 2; + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private long previousSafetyEpoch_ ; + /** + * uint64 previous_safety_epoch = 3; + * @return The previousSafetyEpoch. + */ + @java.lang.Override + public long getPreviousSafetyEpoch() { + return previousSafetyEpoch_; + } + /** + * uint64 previous_safety_epoch = 3; + * @param value The previousSafetyEpoch to set. + * @return This builder for chaining. + */ + public Builder setPreviousSafetyEpoch(long value) { + + previousSafetyEpoch_ = value; + onChanged(); + return this; + } + /** + * uint64 previous_safety_epoch = 3; + * @return This builder for chaining. + */ + public Builder clearPreviousSafetyEpoch() { + + previousSafetyEpoch_ = 0L; + onChanged(); + return this; + } + + private long currentSafetyEpoch_ ; + /** + * uint64 current_safety_epoch = 4; + * @return The currentSafetyEpoch. + */ + @java.lang.Override + public long getCurrentSafetyEpoch() { + return currentSafetyEpoch_; + } + /** + * uint64 current_safety_epoch = 4; + * @param value The currentSafetyEpoch to set. + * @return This builder for chaining. + */ + public Builder setCurrentSafetyEpoch(long value) { + + currentSafetyEpoch_ = value; + onChanged(); + return this; + } + /** + * uint64 current_safety_epoch = 4; + * @return This builder for chaining. + */ + public Builder clearCurrentSafetyEpoch() { + + currentSafetyEpoch_ = 0L; + onChanged(); + return this; + } + + private int systemState_ = 0; + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The enum numeric value on the wire for systemState. + */ + @java.lang.Override public int getSystemStateValue() { + return systemState_; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @param value The enum numeric value on the wire for systemState to set. + * @return This builder for chaining. + */ + public Builder setSystemStateValue(int value) { + + systemState_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return The systemState. + */ + @java.lang.Override + public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() { + @SuppressWarnings("deprecation") + cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_); + return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @param value The systemState to set. + * @return This builder for chaining. + */ + public Builder setSystemState(cmvr.api.SafetyCommand.SystemAdmissionState value) { + if (value == null) { + throw new NullPointerException(); + } + + systemState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SystemAdmissionState system_state = 5; + * @return This builder for chaining. + */ + public Builder clearSystemState() { + + systemState_ = 0; + onChanged(); + return this; + } + + private java.util.List targets_ = + java.util.Collections.emptyList(); + private void ensureTargetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + targets_ = new java.util.ArrayList(targets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder> targetsBuilder_; + + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public java.util.List getTargetsList() { + if (targetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(targets_); + } else { + return targetsBuilder_.getMessageList(); + } + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public int getTargetsCount() { + if (targetsBuilder_ == null) { + return targets_.size(); + } else { + return targetsBuilder_.getCount(); + } + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index) { + if (targetsBuilder_ == null) { + return targets_.get(index); + } else { + return targetsBuilder_.getMessage(index); + } + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder setTargets( + int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.set(index, value); + onChanged(); + } else { + targetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder setTargets( + int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.set(index, builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder addTargets(cmvr.api.SafetyCommand.SafetyOperationTargetResult value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.add(value); + onChanged(); + } else { + targetsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder addTargets( + int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.add(index, value); + onChanged(); + } else { + targetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder addTargets( + cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder addTargets( + int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(index, builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder addAllTargets( + java.lang.Iterable values) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targets_); + onChanged(); + } else { + targetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder clearTargets() { + if (targetsBuilder_ == null) { + targets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + targetsBuilder_.clear(); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public Builder removeTargets(int index) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.remove(index); + onChanged(); + } else { + targetsBuilder_.remove(index); + } + return this; + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder getTargetsBuilder( + int index) { + return getTargetsFieldBuilder().getBuilder(index); + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder( + int index) { + if (targetsBuilder_ == null) { + return targets_.get(index); } else { + return targetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public java.util.List + getTargetsOrBuilderList() { + if (targetsBuilder_ != null) { + return targetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(targets_); + } + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder addTargetsBuilder() { + return getTargetsFieldBuilder().addBuilder( + cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance()); + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder addTargetsBuilder( + int index) { + return getTargetsFieldBuilder().addBuilder( + index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance()); + } + /** + * repeated .cmvr.api.SafetyOperationTargetResult targets = 6; + */ + public java.util.List + getTargetsBuilderList() { + return getTargetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder> + getTargetsFieldBuilder() { + if (targetsBuilder_ == null) { + targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>( + targets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + targets_ = null; + } + return targetsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -19416,110 +21487,124 @@ public final class SystemCommand { "\n\035cmvr/api/system_command.proto\022\010cmvr.ap" + "i\032\032cmvr/api/agv_command.proto\032\032cmvr/api/" + "arm_command.proto\032\025cmvr/api/common.proto" + - "\"J\n\nDeviceList\022\021\n\tdevice_id\030\001 \001(\t\022)\n\013dev" + - "ice_type\030\002 \001(\0162\024.cmvr.api.DeviceType\"\251\002\n" + - "\020SystemDeviceInfo\022\021\n\tdevice_id\030\001 \001(\t\022/\n\013" + - "device_type\030\002 \001(\0162\032.cmvr.api.SystemDevic" + - "eType\022\021\n\ttype_name\030\003 \001(\t\022\017\n\007enabled\030\004 \001(" + - "\010\0222\n\rmanager_state\030\005 \001(\0162\033.cmvr.api.Syst" + - "emDeviceState\022,\n\006health\030\006 \001(\0162\034.cmvr.api" + - ".SystemDeviceHealth\022\021\n\thas_error\030\007 \001(\010\022\025" + - "\n\rerror_message\030\010 \001(\t\022!\n\031status_updated_" + - "at_unix_ms\030\t \001(\004\"\371\001\n\024GetDeviceListComman" + - "d\032\t\n\007Request\032\325\001\n\010Feedback\0220\n\006header\030\001 \001(" + - "\0132 .cmvr.api.CommandHeader.Feedback\022\024\n\014m" + - "anager_name\030\002 \001(\t\022\027\n\017manager_version\030\003 \001" + - "(\t\022\033\n\023manager_description\030\004 \001(\t\022/\n\013devic" + - "e_list\030\005 \003(\0132\032.cmvr.api.SystemDeviceInfo" + - "\022\032\n\022sampled_at_unix_ms\030\006 \001(\004\"\371\001\n\024GetSyst" + - "emInfoCommand\032\t\n\007Request\032\325\001\n\010Feedback\0220\n" + - "\006header\030\001 \001(\0132 .cmvr.api.CommandHeader.F" + - "eedback\022\023\n\013system_name\030\002 \001(\t\022\017\n\007version\030" + - "\003 \001(\t\022\023\n\013description\030\004 \001(\t\022\n\n\002os\030\005 \001(\t\022\026" + - "\n\016kernel_version\030\006 \001(\t\022\024\n\014architecture\030\007" + - " \001(\t\022\"\n\032action_service_instance_id\030\010 \001(\t" + - "\"\370\001\n\026GetSystemStatusCommand\032\t\n\007Request\032\322" + - "\001\n\010Feedback\0220\n\006header\030\001 \001(\0132 .cmvr.api.C" + - "ommandHeader.Feedback\022\021\n\tcpu_usage\030\002 \001(\002" + - "\022\024\n\014mem_total_mb\030\003 \001(\002\022\023\n\013mem_used_mb\030\004 " + - "\001(\002\022\025\n\rdisk_total_gb\030\005 \001(\002\022\024\n\014disk_used_" + - "gb\030\006 \001(\002\022)\n\013device_list\030\007 \003(\0132\024.cmvr.api" + - ".DeviceList\"\266\001\n\023UpdateParamsCommand\032a\n\007R" + - "equest\022/\n\006header\030\001 \001(\0132\037.cmvr.api.Comman" + - "dHeader.Request\022%\n\006params\030\002 \003(\0132\025.cmvr.a" + - "pi.ConfigParam\032<\n\010Feedback\0220\n\006header\030\001 \001" + - "(\0132 .cmvr.api.CommandHeader.Feedback\"\212\001\n" + - "\016StopAllCommand\032:\n\007Request\022/\n\006header\030\001 \001" + - "(\0132\037.cmvr.api.CommandHeader.Request\032<\n\010F" + - "eedback\0220\n\006header\030\001 \001(\0132 .cmvr.api.Comma" + - "ndHeader.Feedback\"\"\n\013DelayAction\022\023\n\013dura" + - "tion_ms\030\001 \001(\r\"\243\003\n\nActionStep\022\017\n\007step_id\030" + - "\001 \001(\t\022\022\n\ntimeout_ms\030\002 \001(\r\022-\n\narm_move_j\030" + - "\n \001(\0132\027.cmvr.api.MoveJ.RequestH\000\022-\n\narm_" + - "move_l\030\013 \001(\0132\027.cmvr.api.MoveL.RequestH\000\022" + - "J\n\024agv_navigate_to_pose\030\024 \001(\0132*.cmvr.api" + - ".AgvNavigateToPoseCommand.RequestH\000\022P\n\027a" + - "gv_navigate_to_station\030\025 \001(\0132-.cmvr.api." + - "AgvNavigateToStationCommand.RequestH\000\022A\n" + - "\017agv_follow_path\030\026 \001(\0132&.cmvr.api.AgvFol" + - "lowPathCommand.RequestH\000\022&\n\005delay\030Z \001(\0132" + - "\025.cmvr.api.DelayActionH\000B\t\n\007command\"\305\003\n\022" + - "ActionQueueCommand\032\201\001\n\007Request\022\021\n\taction" + - "_id\030\001 \001(\t\022#\n\005steps\030\002 \003(\0132\024.cmvr.api.Acti" + - "onStep\022\030\n\020total_timeout_ms\030\003 \001(\r\022$\n\034expe" + - "cted_service_instance_id\030\004 \001(\t\032\252\002\n\010Feedb" + - "ack\0220\n\006header\030\001 \001(\0132 .cmvr.api.CommandHe" + - "ader.Feedback\022\021\n\taction_id\030\002 \001(\t\022\027\n\017comp" + - "leted_steps\030\003 \001(\r\022\036\n\021failed_step_index\030\004" + - " \001(\rH\000\210\001\001\022*\n\006result\030\005 \001(\0162\032.cmvr.api.Act" + - "ionResultCode\022\033\n\023service_instance_id\030\006 \001" + - "(\t\022A\n\024deduplication_status\030\007 \001(\0162#.cmvr." + - "api.ActionDeduplicationStatusB\024\n\022_failed" + - "_step_index*}\n\nDeviceType\022\007\n\003AGV\020\000\022\013\n\007Ba" + - "ttery\020\001\022\n\n\006Camera\020\002\022\013\n\007DexHand\020\003\022\013\n\007Grip" + - "per\020\004\022\016\n\nMicrophone\020\005\022\t\n\005Robot\020\006\022\013\n\007Spea" + - "ker\020\007\022\013\n\007Unknown\020\024*\236\004\n\020SystemDeviceType\022" + - "\"\n\036SYSTEM_DEVICE_TYPE_UNSPECIFIED\020\000\022\032\n\026S" + - "YSTEM_DEVICE_TYPE_AGV\020\001\022\032\n\026SYSTEM_DEVICE" + - "_TYPE_ARM\020\002\022\036\n\032SYSTEM_DEVICE_TYPE_BATTER" + - "Y\020\003\022\037\n\033SYSTEM_DEVICE_TYPE_BIO_HEAD\020\004\022\035\n\031" + - "SYSTEM_DEVICE_TYPE_CAMERA\020\005\022\036\n\032SYSTEM_DE" + - "VICE_TYPE_CAN_BUS\020\006\022\037\n\033SYSTEM_DEVICE_TYP" + - "E_DEX_HAND\020\007\022\036\n\032SYSTEM_DEVICE_TYPE_GRIPP" + - "ER\020\010\022!\n\035SYSTEM_DEVICE_TYPE_MICROPHONE\020\t\022" + - "\034\n\030SYSTEM_DEVICE_TYPE_MOTOR\020\n\022#\n\037SYSTEM_" + - "DEVICE_TYPE_MOTOR_SYSTEM\020\013\022$\n SYSTEM_DEV" + - "ICE_TYPE_MUJOCO_VIEWER\020\014\022#\n\037SYSTEM_DEVIC" + - "E_TYPE_MUJOCO_WORLD\020\r\022\034\n\030SYSTEM_DEVICE_T" + - "YPE_ROBOT\020\016\022\036\n\032SYSTEM_DEVICE_TYPE_SPEAKE" + - "R\020\017*\244\002\n\021SystemDeviceState\022#\n\037SYSTEM_DEVI" + - "CE_STATE_UNSPECIFIED\020\000\022 \n\034SYSTEM_DEVICE_" + - "STATE_DISABLED\020\001\022$\n SYSTEM_DEVICE_STATE_" + - "INITIALIZING\020\002\022\"\n\036SYSTEM_DEVICE_STATE_RE" + - "GISTERED\020\003\022\035\n\031SYSTEM_DEVICE_STATE_READY\020" + - "\004\022\037\n\033SYSTEM_DEVICE_STATE_RUNNING\020\005\022\037\n\033SY" + - "STEM_DEVICE_STATE_STOPPED\020\006\022\035\n\031SYSTEM_DE" + - "VICE_STATE_ERROR\020\007*\237\001\n\022SystemDeviceHealt" + - "h\022$\n SYSTEM_DEVICE_HEALTH_UNSPECIFIED\020\000\022" + - " \n\034SYSTEM_DEVICE_HEALTH_HEALTHY\020\001\022!\n\035SYS" + - "TEM_DEVICE_HEALTH_DEGRADED\020\002\022\036\n\032SYSTEM_D" + - "EVICE_HEALTH_FAULT\020\003*\333\001\n\020ActionResultCod" + - "e\022\"\n\036ACTION_RESULT_CODE_UNSPECIFIED\020\000\022 \n" + - "\034ACTION_RESULT_CODE_COMPLETED\020\001\022\035\n\031ACTIO" + - "N_RESULT_CODE_FAILED\020\002\022\037\n\033ACTION_RESULT_" + - "CODE_CANCELED\020\003\022 \n\034ACTION_RESULT_CODE_TI" + - "MED_OUT\020\004\022\037\n\033ACTION_RESULT_CODE_REJECTED" + - "\020\005*\250\003\n\031ActionDeduplicationStatus\022+\n\'ACTI" + - "ON_DEDUPLICATION_STATUS_UNSPECIFIED\020\000\022,\n" + - "(ACTION_DEDUPLICATION_STATUS_ACCEPTED_NE" + - "W\020\001\0220\n,ACTION_DEDUPLICATION_STATUS_JOINE" + - "D_IN_FLIGHT\020\002\022-\n)ACTION_DEDUPLICATION_ST" + - "ATUS_CACHED_RESULT\020\003\022.\n*ACTION_DEDUPLICA" + - "TION_STATUS_RESULT_EVICTED\020\004\0220\n,ACTION_D" + - "EDUPLICATION_STATUS_LEDGER_EXHAUSTED\020\005\0222" + - "\n.ACTION_DEDUPLICATION_STATUS_ACTION_ID_" + - "CONFLICT\020\006\0229\n5ACTION_DEDUPLICATION_STATU" + - "S_SERVICE_INSTANCE_MISMATCH\020\007b\006proto3" + "\032\035cmvr/api/safety_command.proto\"J\n\nDevic" + + "eList\022\021\n\tdevice_id\030\001 \001(\t\022)\n\013device_type\030" + + "\002 \001(\0162\024.cmvr.api.DeviceType\"\251\002\n\020SystemDe" + + "viceInfo\022\021\n\tdevice_id\030\001 \001(\t\022/\n\013device_ty" + + "pe\030\002 \001(\0162\032.cmvr.api.SystemDeviceType\022\021\n\t" + + "type_name\030\003 \001(\t\022\017\n\007enabled\030\004 \001(\010\0222\n\rmana" + + "ger_state\030\005 \001(\0162\033.cmvr.api.SystemDeviceS" + + "tate\022,\n\006health\030\006 \001(\0162\034.cmvr.api.SystemDe" + + "viceHealth\022\021\n\thas_error\030\007 \001(\010\022\025\n\rerror_m" + + "essage\030\010 \001(\t\022!\n\031status_updated_at_unix_m" + + "s\030\t \001(\004\"\371\001\n\024GetDeviceListCommand\032\t\n\007Requ" + + "est\032\325\001\n\010Feedback\0220\n\006header\030\001 \001(\0132 .cmvr." + + "api.CommandHeader.Feedback\022\024\n\014manager_na" + + "me\030\002 \001(\t\022\027\n\017manager_version\030\003 \001(\t\022\033\n\023man" + + "ager_description\030\004 \001(\t\022/\n\013device_list\030\005 " + + "\003(\0132\032.cmvr.api.SystemDeviceInfo\022\032\n\022sampl" + + "ed_at_unix_ms\030\006 \001(\004\"\340\003\n\024GetSystemInfoCom" + + "mand\032\t\n\007Request\032\274\003\n\010Feedback\0220\n\006header\030\001" + + " \001(\0132 .cmvr.api.CommandHeader.Feedback\022\023" + + "\n\013system_name\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022\023\n\013" + + "description\030\004 \001(\t\022\n\n\002os\030\005 \001(\t\022\026\n\016kernel_" + + "version\030\006 \001(\t\022\024\n\014architecture\030\007 \001(\t\022\"\n\032a" + + "ction_service_instance_id\030\010 \001(\t\022\037\n\027grpc_" + + "transport_security\030\t \001(\t\022\033\n\023grpc_authent" + + "ication\030\n \001(\t\022\036\n\026grpc_recovery_exposure\030" + + "\013 \001(\t\022\"\n\032grpc_insecure_non_loopback\030\014 \001(" + + "\010\022#\n\033control_service_instance_id\030\r \001(\t\022\037" + + "\n\027safety_enforcement_mode\030\016 \001(\t\022\035\n\025safet" + + "y_schema_version\030\017 \001(\r\"\370\001\n\026GetSystemStat" + + "usCommand\032\t\n\007Request\032\322\001\n\010Feedback\0220\n\006hea" + + "der\030\001 \001(\0132 .cmvr.api.CommandHeader.Feedb" + + "ack\022\021\n\tcpu_usage\030\002 \001(\002\022\024\n\014mem_total_mb\030\003" + + " \001(\002\022\023\n\013mem_used_mb\030\004 \001(\002\022\025\n\rdisk_total_" + + "gb\030\005 \001(\002\022\024\n\014disk_used_gb\030\006 \001(\002\022)\n\013device" + + "_list\030\007 \003(\0132\024.cmvr.api.DeviceList\"\266\001\n\023Up" + + "dateParamsCommand\032a\n\007Request\022/\n\006header\030\001" + + " \001(\0132\037.cmvr.api.CommandHeader.Request\022%\n" + + "\006params\030\002 \003(\0132\025.cmvr.api.ConfigParam\032<\n\010" + + "Feedback\0220\n\006header\030\001 \001(\0132 .cmvr.api.Comm" + + "andHeader.Feedback\"\235\003\n\016StopAllCommand\032\212\001" + + "\n\007Request\022/\n\006header\030\001 \001(\0132\037.cmvr.api.Com" + + "mandHeader.Request\022\024\n\014operation_id\030\002 \001(\t" + + "\022$\n\034expected_service_instance_id\030\003 \001(\t\022\022" + + "\n\ntimeout_ms\030\004 \001(\r\032\375\001\n\010Feedback\0220\n\006heade" + + "r\030\001 \001(\0132 .cmvr.api.CommandHeader.Feedbac" + + "k\022\024\n\014operation_id\030\002 \001(\t\022\035\n\025previous_safe" + + "ty_epoch\030\003 \001(\004\022\034\n\024current_safety_epoch\030\004" + + " \001(\004\0224\n\014system_state\030\005 \001(\0162\036.cmvr.api.Sy" + + "stemAdmissionState\0226\n\007targets\030\006 \003(\0132%.cm" + + "vr.api.SafetyOperationTargetResult\"\"\n\013De" + + "layAction\022\023\n\013duration_ms\030\001 \001(\r\"\243\003\n\nActio" + + "nStep\022\017\n\007step_id\030\001 \001(\t\022\022\n\ntimeout_ms\030\002 \001" + + "(\r\022-\n\narm_move_j\030\n \001(\0132\027.cmvr.api.MoveJ." + + "RequestH\000\022-\n\narm_move_l\030\013 \001(\0132\027.cmvr.api" + + ".MoveL.RequestH\000\022J\n\024agv_navigate_to_pose" + + "\030\024 \001(\0132*.cmvr.api.AgvNavigateToPoseComma" + + "nd.RequestH\000\022P\n\027agv_navigate_to_station\030" + + "\025 \001(\0132-.cmvr.api.AgvNavigateToStationCom" + + "mand.RequestH\000\022A\n\017agv_follow_path\030\026 \001(\0132" + + "&.cmvr.api.AgvFollowPathCommand.RequestH" + + "\000\022&\n\005delay\030Z \001(\0132\025.cmvr.api.DelayActionH" + + "\000B\t\n\007command\"\305\003\n\022ActionQueueCommand\032\201\001\n\007" + + "Request\022\021\n\taction_id\030\001 \001(\t\022#\n\005steps\030\002 \003(" + + "\0132\024.cmvr.api.ActionStep\022\030\n\020total_timeout" + + "_ms\030\003 \001(\r\022$\n\034expected_service_instance_i" + + "d\030\004 \001(\t\032\252\002\n\010Feedback\0220\n\006header\030\001 \001(\0132 .c" + + "mvr.api.CommandHeader.Feedback\022\021\n\taction" + + "_id\030\002 \001(\t\022\027\n\017completed_steps\030\003 \001(\r\022\036\n\021fa" + + "iled_step_index\030\004 \001(\rH\000\210\001\001\022*\n\006result\030\005 \001" + + "(\0162\032.cmvr.api.ActionResultCode\022\033\n\023servic" + + "e_instance_id\030\006 \001(\t\022A\n\024deduplication_sta" + + "tus\030\007 \001(\0162#.cmvr.api.ActionDeduplication" + + "StatusB\024\n\022_failed_step_index*}\n\nDeviceTy" + + "pe\022\007\n\003AGV\020\000\022\013\n\007Battery\020\001\022\n\n\006Camera\020\002\022\013\n\007" + + "DexHand\020\003\022\013\n\007Gripper\020\004\022\016\n\nMicrophone\020\005\022\t" + + "\n\005Robot\020\006\022\013\n\007Speaker\020\007\022\013\n\007Unknown\020\024*\236\004\n\020" + + "SystemDeviceType\022\"\n\036SYSTEM_DEVICE_TYPE_U" + + "NSPECIFIED\020\000\022\032\n\026SYSTEM_DEVICE_TYPE_AGV\020\001" + + "\022\032\n\026SYSTEM_DEVICE_TYPE_ARM\020\002\022\036\n\032SYSTEM_D" + + "EVICE_TYPE_BATTERY\020\003\022\037\n\033SYSTEM_DEVICE_TY" + + "PE_BIO_HEAD\020\004\022\035\n\031SYSTEM_DEVICE_TYPE_CAME" + + "RA\020\005\022\036\n\032SYSTEM_DEVICE_TYPE_CAN_BUS\020\006\022\037\n\033" + + "SYSTEM_DEVICE_TYPE_DEX_HAND\020\007\022\036\n\032SYSTEM_" + + "DEVICE_TYPE_GRIPPER\020\010\022!\n\035SYSTEM_DEVICE_T" + + "YPE_MICROPHONE\020\t\022\034\n\030SYSTEM_DEVICE_TYPE_M" + + "OTOR\020\n\022#\n\037SYSTEM_DEVICE_TYPE_MOTOR_SYSTE" + + "M\020\013\022$\n SYSTEM_DEVICE_TYPE_MUJOCO_VIEWER\020" + + "\014\022#\n\037SYSTEM_DEVICE_TYPE_MUJOCO_WORLD\020\r\022\034" + + "\n\030SYSTEM_DEVICE_TYPE_ROBOT\020\016\022\036\n\032SYSTEM_D" + + "EVICE_TYPE_SPEAKER\020\017*\244\002\n\021SystemDeviceSta" + + "te\022#\n\037SYSTEM_DEVICE_STATE_UNSPECIFIED\020\000\022" + + " \n\034SYSTEM_DEVICE_STATE_DISABLED\020\001\022$\n SYS" + + "TEM_DEVICE_STATE_INITIALIZING\020\002\022\"\n\036SYSTE" + + "M_DEVICE_STATE_REGISTERED\020\003\022\035\n\031SYSTEM_DE" + + "VICE_STATE_READY\020\004\022\037\n\033SYSTEM_DEVICE_STAT" + + "E_RUNNING\020\005\022\037\n\033SYSTEM_DEVICE_STATE_STOPP" + + "ED\020\006\022\035\n\031SYSTEM_DEVICE_STATE_ERROR\020\007*\237\001\n\022" + + "SystemDeviceHealth\022$\n SYSTEM_DEVICE_HEAL" + + "TH_UNSPECIFIED\020\000\022 \n\034SYSTEM_DEVICE_HEALTH" + + "_HEALTHY\020\001\022!\n\035SYSTEM_DEVICE_HEALTH_DEGRA" + + "DED\020\002\022\036\n\032SYSTEM_DEVICE_HEALTH_FAULT\020\003*\333\001" + + "\n\020ActionResultCode\022\"\n\036ACTION_RESULT_CODE" + + "_UNSPECIFIED\020\000\022 \n\034ACTION_RESULT_CODE_COM" + + "PLETED\020\001\022\035\n\031ACTION_RESULT_CODE_FAILED\020\002\022" + + "\037\n\033ACTION_RESULT_CODE_CANCELED\020\003\022 \n\034ACTI" + + "ON_RESULT_CODE_TIMED_OUT\020\004\022\037\n\033ACTION_RES" + + "ULT_CODE_REJECTED\020\005*\250\003\n\031ActionDeduplicat" + + "ionStatus\022+\n\'ACTION_DEDUPLICATION_STATUS" + + "_UNSPECIFIED\020\000\022,\n(ACTION_DEDUPLICATION_S" + + "TATUS_ACCEPTED_NEW\020\001\0220\n,ACTION_DEDUPLICA" + + "TION_STATUS_JOINED_IN_FLIGHT\020\002\022-\n)ACTION" + + "_DEDUPLICATION_STATUS_CACHED_RESULT\020\003\022.\n" + + "*ACTION_DEDUPLICATION_STATUS_RESULT_EVIC" + + "TED\020\004\0220\n,ACTION_DEDUPLICATION_STATUS_LED" + + "GER_EXHAUSTED\020\005\0222\n.ACTION_DEDUPLICATION_" + + "STATUS_ACTION_ID_CONFLICT\020\006\0229\n5ACTION_DE" + + "DUPLICATION_STATUS_SERVICE_INSTANCE_MISM" + + "ATCH\020\007b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -19527,6 +21612,7 @@ public final class SystemCommand { cmvr.api.AgvCommand.getDescriptor(), cmvr.api.ArmCommand.getDescriptor(), cmvr.api.Common.getDescriptor(), + cmvr.api.SafetyCommand.getDescriptor(), }); internal_static_cmvr_api_DeviceList_descriptor = getDescriptor().getMessageTypes().get(0); @@ -19575,7 +21661,7 @@ public final class SystemCommand { internal_static_cmvr_api_GetSystemInfoCommand_Feedback_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cmvr_api_GetSystemInfoCommand_Feedback_descriptor, - new java.lang.String[] { "Header", "SystemName", "Version", "Description", "Os", "KernelVersion", "Architecture", "ActionServiceInstanceId", }); + new java.lang.String[] { "Header", "SystemName", "Version", "Description", "Os", "KernelVersion", "Architecture", "ActionServiceInstanceId", "GrpcTransportSecurity", "GrpcAuthentication", "GrpcRecoveryExposure", "GrpcInsecureNonLoopback", "ControlServiceInstanceId", "SafetyEnforcementMode", "SafetySchemaVersion", }); internal_static_cmvr_api_GetSystemStatusCommand_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_cmvr_api_GetSystemStatusCommand_fieldAccessorTable = new @@ -19623,13 +21709,13 @@ public final class SystemCommand { internal_static_cmvr_api_StopAllCommand_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cmvr_api_StopAllCommand_Request_descriptor, - new java.lang.String[] { "Header", }); + new java.lang.String[] { "Header", "OperationId", "ExpectedServiceInstanceId", "TimeoutMs", }); internal_static_cmvr_api_StopAllCommand_Feedback_descriptor = internal_static_cmvr_api_StopAllCommand_descriptor.getNestedTypes().get(1); internal_static_cmvr_api_StopAllCommand_Feedback_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cmvr_api_StopAllCommand_Feedback_descriptor, - new java.lang.String[] { "Header", }); + new java.lang.String[] { "Header", "OperationId", "PreviousSafetyEpoch", "CurrentSafetyEpoch", "SystemState", "Targets", }); internal_static_cmvr_api_DelayAction_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_cmvr_api_DelayAction_fieldAccessorTable = new @@ -19663,6 +21749,7 @@ public final class SystemCommand { cmvr.api.AgvCommand.getDescriptor(); cmvr.api.ArmCommand.getDescriptor(); cmvr.api.Common.getDescriptor(); + cmvr.api.SafetyCommand.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemServiceGrpc.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemServiceGrpc.java index 3a0707a..e76b364 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemServiceGrpc.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemServiceGrpc.java @@ -201,6 +201,68 @@ public final class SystemServiceGrpc { return getExecuteActionQueueMethod; } + private static volatile io.grpc.MethodDescriptor getGetSafetyStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSafetyState", + requestType = cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.class, + responseType = cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSafetyStateMethod() { + io.grpc.MethodDescriptor getGetSafetyStateMethod; + if ((getGetSafetyStateMethod = SystemServiceGrpc.getGetSafetyStateMethod) == null) { + synchronized (SystemServiceGrpc.class) { + if ((getGetSafetyStateMethod = SystemServiceGrpc.getGetSafetyStateMethod) == null) { + SystemServiceGrpc.getGetSafetyStateMethod = getGetSafetyStateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSafetyState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.getDefaultInstance())) + .setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("GetSafetyState")) + .build(); + } + } + } + return getGetSafetyStateMethod; + } + + private static volatile io.grpc.MethodDescriptor getRecoverSafetyStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RecoverSafetyState", + requestType = cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.class, + responseType = cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRecoverSafetyStateMethod() { + io.grpc.MethodDescriptor getRecoverSafetyStateMethod; + if ((getRecoverSafetyStateMethod = SystemServiceGrpc.getRecoverSafetyStateMethod) == null) { + synchronized (SystemServiceGrpc.class) { + if ((getRecoverSafetyStateMethod = SystemServiceGrpc.getRecoverSafetyStateMethod) == null) { + SystemServiceGrpc.getRecoverSafetyStateMethod = getRecoverSafetyStateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RecoverSafetyState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.getDefaultInstance())) + .setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("RecoverSafetyState")) + .build(); + } + } + } + return getRecoverSafetyStateMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -291,6 +353,20 @@ public final class SystemServiceGrpc { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteActionQueueMethod(), responseObserver); } + /** + */ + public void getSafetyState(cmvr.api.SafetyCommand.GetSafetyStateCommand.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSafetyStateMethod(), responseObserver); + } + + /** + */ + public void recoverSafetyState(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecoverSafetyStateMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( @@ -335,6 +411,20 @@ public final class SystemServiceGrpc { cmvr.api.SystemCommand.ActionQueueCommand.Request, cmvr.api.SystemCommand.ActionQueueCommand.Feedback>( this, METHODID_EXECUTE_ACTION_QUEUE))) + .addMethod( + getGetSafetyStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + cmvr.api.SafetyCommand.GetSafetyStateCommand.Request, + cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback>( + this, METHODID_GET_SAFETY_STATE))) + .addMethod( + getRecoverSafetyStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request, + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback>( + this, METHODID_RECOVER_SAFETY_STATE))) .build(); } } @@ -400,6 +490,22 @@ public final class SystemServiceGrpc { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExecuteActionQueueMethod(), getCallOptions()), request, responseObserver); } + + /** + */ + public void getSafetyState(cmvr.api.SafetyCommand.GetSafetyStateCommand.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSafetyStateMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void recoverSafetyState(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecoverSafetyStateMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -457,6 +563,20 @@ public final class SystemServiceGrpc { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExecuteActionQueueMethod(), getCallOptions(), request); } + + /** + */ + public cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback getSafetyState(cmvr.api.SafetyCommand.GetSafetyStateCommand.Request request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSafetyStateMethod(), getCallOptions(), request); + } + + /** + */ + public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback recoverSafetyState(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecoverSafetyStateMethod(), getCallOptions(), request); + } } /** @@ -520,6 +640,22 @@ public final class SystemServiceGrpc { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExecuteActionQueueMethod(), getCallOptions()), request); } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getSafetyState( + cmvr.api.SafetyCommand.GetSafetyStateCommand.Request request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSafetyStateMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture recoverSafetyState( + cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecoverSafetyStateMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_SYSTEM_INFO = 0; @@ -528,6 +664,8 @@ public final class SystemServiceGrpc { private static final int METHODID_UPDATE_PARAMS = 3; private static final int METHODID_STOP_ALL = 4; private static final int METHODID_EXECUTE_ACTION_QUEUE = 5; + private static final int METHODID_GET_SAFETY_STATE = 6; + private static final int METHODID_RECOVER_SAFETY_STATE = 7; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -570,6 +708,14 @@ public final class SystemServiceGrpc { serviceImpl.executeActionQueue((cmvr.api.SystemCommand.ActionQueueCommand.Request) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_SAFETY_STATE: + serviceImpl.getSafetyState((cmvr.api.SafetyCommand.GetSafetyStateCommand.Request) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RECOVER_SAFETY_STATE: + serviceImpl.recoverSafetyState((cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -637,6 +783,8 @@ public final class SystemServiceGrpc { .addMethod(getUpdateParamsMethod()) .addMethod(getStopAllMethod()) .addMethod(getExecuteActionQueueMethod()) + .addMethod(getGetSafetyStateMethod()) + .addMethod(getRecoverSafetyStateMethod()) .build(); } } diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemServiceOuterClass.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemServiceOuterClass.java index e4a1a26..97d9b5d 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemServiceOuterClass.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/SystemServiceOuterClass.java @@ -24,30 +24,38 @@ public final class SystemServiceOuterClass { static { java.lang.String[] descriptorData = { "\n\035cmvr/api/system_service.proto\022\010cmvr.ap" + - "i\032\035cmvr/api/system_command.proto2\331\004\n\rSys" + - "temService\022b\n\rGetSystemInfo\022&.cmvr.api.G" + - "etSystemInfoCommand.Request\032\'.cmvr.api.G" + - "etSystemInfoCommand.Feedback\"\000\022h\n\017GetSys" + - "temStatus\022(.cmvr.api.GetSystemStatusComm" + - "and.Request\032).cmvr.api.GetSystemStatusCo" + - "mmand.Feedback\"\000\022b\n\rGetDeviceList\022&.cmvr" + - ".api.GetDeviceListCommand.Request\032\'.cmvr" + - ".api.GetDeviceListCommand.Feedback\"\000\022_\n\014" + - "UpdateParams\022%.cmvr.api.UpdateParamsComm" + - "and.Request\032&.cmvr.api.UpdateParamsComma" + - "nd.Feedback\"\000\022P\n\007StopAll\022 .cmvr.api.Stop" + - "AllCommand.Request\032!.cmvr.api.StopAllCom" + - "mand.Feedback\"\000\022c\n\022ExecuteActionQueue\022$." + - "cmvr.api.ActionQueueCommand.Request\032%.cm" + - "vr.api.ActionQueueCommand.Feedback\"\000b\006pr" + - "oto3" + "i\032\035cmvr/api/system_command.proto\032\035cmvr/a" + + "pi/safety_command.proto2\263\006\n\rSystemServic" + + "e\022b\n\rGetSystemInfo\022&.cmvr.api.GetSystemI" + + "nfoCommand.Request\032\'.cmvr.api.GetSystemI" + + "nfoCommand.Feedback\"\000\022h\n\017GetSystemStatus" + + "\022(.cmvr.api.GetSystemStatusCommand.Reque" + + "st\032).cmvr.api.GetSystemStatusCommand.Fee" + + "dback\"\000\022b\n\rGetDeviceList\022&.cmvr.api.GetD" + + "eviceListCommand.Request\032\'.cmvr.api.GetD" + + "eviceListCommand.Feedback\"\000\022_\n\014UpdatePar" + + "ams\022%.cmvr.api.UpdateParamsCommand.Reque" + + "st\032&.cmvr.api.UpdateParamsCommand.Feedba" + + "ck\"\000\022P\n\007StopAll\022 .cmvr.api.StopAllComman" + + "d.Request\032!.cmvr.api.StopAllCommand.Feed" + + "back\"\000\022c\n\022ExecuteActionQueue\022$.cmvr.api." + + "ActionQueueCommand.Request\032%.cmvr.api.Ac" + + "tionQueueCommand.Feedback\"\000\022e\n\016GetSafety" + + "State\022\'.cmvr.api.GetSafetyStateCommand.R" + + "equest\032(.cmvr.api.GetSafetyStateCommand." + + "Feedback\"\000\022q\n\022RecoverSafetyState\022+.cmvr." + + "api.RecoverSafetyStateCommand.Request\032,." + + "cmvr.api.RecoverSafetyStateCommand.Feedb" + + "ack\"\000b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { cmvr.api.SystemCommand.getDescriptor(), + cmvr.api.SafetyCommand.getDescriptor(), }); cmvr.api.SystemCommand.getDescriptor(); + cmvr.api.SafetyCommand.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/common.proto b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/common.proto index 5686a18..64988d4 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/common.proto +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/common.proto @@ -4,6 +4,59 @@ package cmvr.api; import "google/protobuf/timestamp.proto"; +enum CommandReasonCode { + COMMAND_REASON_CODE_UNSPECIFIED = 0; + COMMAND_REASON_CODE_NONE = 1; + COMMAND_REASON_CODE_INVALID_ARGUMENT = 2; + COMMAND_REASON_CODE_UNAUTHENTICATED = 3; + COMMAND_REASON_CODE_PERMISSION_DENIED = 4; + COMMAND_REASON_CODE_RECOVERY_RPC_DISABLED = 5; + COMMAND_REASON_CODE_DEVICE_NOT_FOUND = 6; + COMMAND_REASON_CODE_DEVICE_UNAVAILABLE = 7; + COMMAND_REASON_CODE_UNSUPPORTED_COMMAND = 8; + COMMAND_REASON_CODE_SYSTEM_STARTING = 9; + COMMAND_REASON_CODE_SYSTEM_STOPPING = 10; + COMMAND_REASON_CODE_SAFETY_LATCHED = 11; + COMMAND_REASON_CODE_SAFETY_STATE_MISSING = 12; + COMMAND_REASON_CODE_SAFETY_STATE_STALE = 13; + COMMAND_REASON_CODE_HARDWARE_UNSAFE = 14; + COMMAND_REASON_CODE_EMERGENCY_STOP_ACTIVE = 15; + COMMAND_REASON_CODE_PROTECTIVE_STOP_ACTIVE = 16; + COMMAND_REASON_CODE_DEVICE_DISCONNECTED = 17; + COMMAND_REASON_CODE_DEVICE_FAULT = 18; + COMMAND_REASON_CODE_DEVICE_NOT_READY = 19; + COMMAND_REASON_CODE_DEVICE_STILL_MOVING = 20; + COMMAND_REASON_CODE_CONTROL_BUSY = 21; + COMMAND_REASON_CODE_GENERATION_MISMATCH = 22; + COMMAND_REASON_CODE_COMMAND_ID_REQUIRED = 23; + COMMAND_REASON_CODE_COMMAND_ID_CONFLICT = 24; + COMMAND_REASON_CODE_RESULT_EVICTED = 25; + COMMAND_REASON_CODE_LEDGER_EXHAUSTED = 26; + COMMAND_REASON_CODE_BACKPRESSURE = 27; + COMMAND_REASON_CODE_DEADLINE_EXCEEDED_BEFORE_DISPATCH = 28; + COMMAND_REASON_CODE_OUTCOME_UNKNOWN = 29; + COMMAND_REASON_CODE_PARTICIPANT_TIMEOUT = 30; + COMMAND_REASON_CODE_STOP_UNCONFIRMED = 31; + COMMAND_REASON_CODE_RECOVERY_EPOCH_MISMATCH = 32; + COMMAND_REASON_CODE_RECOVERY_REASON_REQUIRED = 33; + COMMAND_REASON_CODE_RECOVERY_AUDIT_FAILED = 34; + COMMAND_REASON_CODE_INTERNAL_ERROR = 35; +} + +enum CommandExecutionState { + COMMAND_EXECUTION_STATE_UNSPECIFIED = 0; + COMMAND_EXECUTION_STATE_RECEIVED = 1; + COMMAND_EXECUTION_STATE_RESERVED = 2; + COMMAND_EXECUTION_STATE_REJECTED_BEFORE_DISPATCH = 3; + COMMAND_EXECUTION_STATE_ADMITTED = 4; + COMMAND_EXECUTION_STATE_DISPATCHING = 5; + COMMAND_EXECUTION_STATE_ACCEPTED_BY_HARDWARE = 6; + COMMAND_EXECUTION_STATE_COMPLETED = 7; + COMMAND_EXECUTION_STATE_FAILED = 8; + COMMAND_EXECUTION_STATE_CANCELED_BEFORE_DISPATCH = 9; + COMMAND_EXECUTION_STATE_OUTCOME_UNKNOWN = 10; +} + message DeviceLifecycle { enum Lifecycle { STATE_INIT = 0; @@ -20,12 +73,22 @@ message CommandHeader { message Request { string device_id = 1; // 目标设备名称 google.protobuf.Timestamp timestamp = 2; // 请求时间 + string command_id = 3; + string expected_service_instance_id = 4; + optional uint64 expected_device_generation = 5; + uint32 valid_for_ms = 6; } message Feedback { bool success = 1; // 是否成功 string error_message = 2; // 错误信息(成功时为空) google.protobuf.Timestamp timestamp = 3; // 回复时间 + CommandReasonCode reason_code = 4; + string command_id = 5; + string service_instance_id = 6; + uint64 safety_epoch = 7; + uint64 device_generation = 8; + CommandExecutionState execution_state = 9; } } diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/safety_command.proto b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/safety_command.proto new file mode 100644 index 0000000..b227f84 --- /dev/null +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/safety_command.proto @@ -0,0 +1,186 @@ +syntax = "proto3"; + +package cmvr.api; + +import "cmvr/api/common.proto"; + +enum SafetyTriState { + SAFETY_TRI_STATE_UNKNOWN = 0; + SAFETY_TRI_STATE_FALSE = 1; + SAFETY_TRI_STATE_TRUE = 2; +} + +enum SafetyCondition { + SAFETY_CONDITION_UNKNOWN = 0; + SAFETY_CONDITION_NOMINAL = 1; + SAFETY_CONDITION_RESTRICTED = 2; + SAFETY_CONDITION_UNSAFE = 3; +} + +enum SystemAdmissionState { + SYSTEM_ADMISSION_STATE_UNSPECIFIED = 0; + SYSTEM_ADMISSION_STATE_STARTING = 1; + SYSTEM_ADMISSION_STATE_OPEN = 2; + SYSTEM_ADMISSION_STATE_STOPPING = 3; + SYSTEM_ADMISSION_STATE_LATCHED = 4; + SYSTEM_ADMISSION_STATE_RECOVERING = 5; + SYSTEM_ADMISSION_STATE_SHUTTING_DOWN = 6; +} + +enum DeviceAdmissionState { + DEVICE_ADMISSION_STATE_UNSPECIFIED = 0; + DEVICE_ADMISSION_STATE_OBSERVING = 1; + DEVICE_ADMISSION_STATE_OPEN = 2; + DEVICE_ADMISSION_STATE_BLOCKED = 3; + DEVICE_ADMISSION_STATE_QUARANTINED = 4; + DEVICE_ADMISSION_STATE_RECOVERING = 5; + DEVICE_ADMISSION_STATE_REMOVED = 6; +} + +enum SafetyBlockerScope { + SAFETY_BLOCKER_SCOPE_UNSPECIFIED = 0; + SAFETY_BLOCKER_SCOPE_DEVICE = 1; + SAFETY_BLOCKER_SCOPE_SYSTEM = 2; +} + +enum SafetyRecoveryRequirement { + SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED = 0; + SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY = 1; + SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH = 2; + SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED = 3; + SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED = 4; +} + +enum SafetyOperationResult { + SAFETY_OPERATION_RESULT_UNSPECIFIED = 0; + SAFETY_OPERATION_RESULT_SUCCEEDED = 1; + SAFETY_OPERATION_RESULT_RECOVERED = 2; + SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED = 3; + SAFETY_OPERATION_RESULT_BLOCKER_REMAINS = 4; + SAFETY_OPERATION_RESULT_EPOCH_MISMATCH = 5; + SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER = 6; + SAFETY_OPERATION_RESULT_TIMED_OUT = 7; + SAFETY_OPERATION_RESULT_FAILED = 8; +} + +message DeviceIdList { + repeated string device_ids = 1; +} + +message SafetyScope { + oneof target { + bool all_devices = 1; + DeviceIdList devices = 2; + } +} + +message SafetyBlockerInfo { + CommandReasonCode reason_code = 1; + SafetyBlockerScope scope = 2; + SafetyRecoveryRequirement recovery_requirement = 3; + string source_id = 4; + string operation_id = 5; + uint64 first_observed_at_unix_ms = 6; + uint64 last_observed_at_unix_ms = 7; +} + +message DeviceSafetyStateInfo { + string device_id = 1; + string device_kind = 2; + string policy_family = 3; + string lifecycle_state = 4; + string health_state = 5; + DeviceAdmissionState admission_state = 6; + SafetyCondition condition = 7; + bool has_sample = 8; + bool snapshot_fresh = 9; + uint64 sample_age_ms = 10; + uint64 sample_sequence = 11; + uint64 observed_at_unix_ms = 12; + uint64 device_generation = 13; + SafetyTriState connected = 14; + SafetyTriState operational_ready = 15; + SafetyTriState quiescent = 16; + SafetyTriState motion_active = 17; + SafetyTriState actuator_enabled = 18; + SafetyTriState emergency_stop_active = 19; + SafetyTriState protective_stop_active = 20; + SafetyTriState fault_active = 21; + repeated SafetyBlockerInfo blockers = 22; +} + +message SafetyOperationTargetResult { + string target_id = 1; + SafetyOperationResult result = 2; + CommandReasonCode reason_code = 3; + string detail = 4; + DeviceAdmissionState before_state = 5; + DeviceAdmissionState after_state = 6; +} + +message SafetyParticipantResultInfo { + bool recorded = 1; + bool success = 2; + CommandReasonCode reason_code = 3; + string detail = 4; +} + +message SafetyParticipantStateInfo { + string participant_id = 1; + string phase = 2; + bool required = 3; + bool registered = 4; + bool barrier_active = 5; + bool barrier_retained = 6; + string operation_id = 7; + uint64 safety_epoch = 8; + SafetyParticipantResultInfo last_request = 9; + SafetyParticipantResultInfo last_verify = 10; + SafetyParticipantResultInfo last_release = 11; +} + +message GetSafetyStateCommand { + message Request { + SafetyScope scope = 1; + } + + message Feedback { + CommandHeader.Feedback header = 1; + SystemAdmissionState system_state = 2; + uint64 safety_epoch = 3; + string control_service_instance_id = 4; + string enforcement_mode = 5; + repeated DeviceSafetyStateInfo devices = 6; + string active_operation_id = 7; + string active_operation_phase = 8; + uint64 sampled_at_unix_ms = 9; + repeated SafetyParticipantStateInfo participants = 10; + } +} + +message RecoverSafetyStateCommand { + enum Mode { + MODE_UNSPECIFIED = 0; + VERIFY_ONLY = 1; + CLEAR_SOFTWARE_LATCH = 2; + } + + message Request { + string recovery_id = 1; + SafetyScope scope = 2; + uint64 expected_safety_epoch = 3; + Mode mode = 4; + string reason = 5; + uint32 timeout_ms = 6; + } + + message Feedback { + CommandHeader.Feedback header = 1; + SafetyOperationResult result = 2; + uint64 previous_safety_epoch = 3; + uint64 current_safety_epoch = 4; + SystemAdmissionState system_state = 5; + repeated SafetyOperationTargetResult targets = 6; + string recovery_id = 7; + } +} diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/system_command.proto b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/system_command.proto index b572d23..d99f623 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/system_command.proto +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/system_command.proto @@ -3,6 +3,7 @@ syntax = "proto3"; import "cmvr/api/agv_command.proto"; import "cmvr/api/arm_command.proto"; import "cmvr/api/common.proto"; +import "cmvr/api/safety_command.proto"; package cmvr.api; @@ -109,6 +110,16 @@ message GetSystemInfoCommand { // Changes whenever the in-process ActionQueue idempotency ledger is // recreated. Clients bind submissions and retries to this value. string action_service_instance_id = 8; + + // Effective server-side control-plane settings. These fields describe + // what is running, not merely what the configuration requested. + string grpc_transport_security = 9; + string grpc_authentication = 10; + string grpc_recovery_exposure = 11; + bool grpc_insecure_non_loopback = 12; + string control_service_instance_id = 13; + string safety_enforcement_mode = 14; + uint32 safety_schema_version = 15; } } @@ -141,10 +152,18 @@ message UpdateParamsCommand { message StopAllCommand { message Request { CommandHeader.Request header = 1; + string operation_id = 2; + string expected_service_instance_id = 3; + uint32 timeout_ms = 4; } message Feedback { CommandHeader.Feedback header = 1; + string operation_id = 2; + uint64 previous_safety_epoch = 3; + uint64 current_safety_epoch = 4; + SystemAdmissionState system_state = 5; + repeated SafetyOperationTargetResult targets = 6; } } diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/system_service.proto b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/system_service.proto index bb6dc4b..4426773 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/system_service.proto +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/system_service.proto @@ -1,6 +1,7 @@ syntax = "proto3"; import "cmvr/api/system_command.proto"; +import "cmvr/api/safety_command.proto"; package cmvr.api; @@ -15,4 +16,7 @@ service SystemService { rpc StopAll(StopAllCommand.Request) returns (StopAllCommand.Feedback) {} rpc ExecuteActionQueue(ActionQueueCommand.Request) returns (ActionQueueCommand.Feedback) {} + + rpc GetSafetyState(GetSafetyStateCommand.Request) returns (GetSafetyStateCommand.Feedback) {} + rpc RecoverSafetyState(RecoverSafetyStateCommand.Request) returns (RecoverSafetyStateCommand.Feedback) {} } diff --git a/cmvr-iot-test/src/main/java/com/cmvr/test/flow/control/FlowControlService.java b/cmvr-iot-test/src/main/java/com/cmvr/test/flow/control/FlowControlService.java index 6cd0074..065ea1e 100644 --- a/cmvr-iot-test/src/main/java/com/cmvr/test/flow/control/FlowControlService.java +++ b/cmvr-iot-test/src/main/java/com/cmvr/test/flow/control/FlowControlService.java @@ -5,6 +5,8 @@ import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson2.JSON; import com.cmvr.common.exception.GlobalException; import com.cmvr.edge.client.service.EdgeSystemService; +import com.cmvr.edge.client.service.EdgeCameraService; +import com.cmvr.edge.client.service.EdgeMicrophoneService; import com.cmvr.test.enums.NodeTypeEnum; import com.cmvr.test.enums.TaskStatusEnum; import com.cmvr.test.enums.TerminalStatusEnum; @@ -54,6 +56,8 @@ public class FlowControlService { private final TaskThreadRegistry taskThreadRegistry; private final FlowItemExecutor flowItemExecutor; private final EdgeSystemService edgeSystemService; + private final EdgeMicrophoneService edgeMicrophoneService; + private final EdgeCameraService edgeCameraService; private final ITeTaskInstService taskInstService; /** @@ -69,13 +73,12 @@ public class FlowControlService { if (ctx.isStopped()) { return; } - // 异步终止 - stopAllRobots(ctx); - - // 统一记录日志 + 设置上下文状态 + 数据库状态 + // 先阻止节点继续执行,再清理设备与本地媒体会话,避免终止过程中重新登记录音/录像。 taskInstHolder.syncStatus(instId, TaskStatusEnum.STOPPED); - taskInstHolder.unRegister(instId); taskThreadRegistry.interruptAll(instId); + // 终止必须等设备和后端媒体会话完成清理后再返回,防止立即重跑命中旧录音/录像状态。 + stopAllRobots(ctx); + taskInstHolder.unRegister(instId); // 被中断的节点 状态修改成 PAUSED for (TaskNodeExecuteContext pendingNode : taskThreadRegistry.getPendingNodes(instId)) { String nodeId = pendingNode.getNode().getNodeId(); @@ -144,14 +147,15 @@ public class FlowControlService { persisted.getId(), exception.getMessage()); } } - robotIds.forEach(robotId -> executor.execute(() -> { + robotIds.forEach(robotId -> { + abortLocalMediaRecordings(robotId); try { edgeSystemService.stopAll(robotId); } catch (RuntimeException exception) { log.warn("终止遗留任务设备失败: instId={}, robotId={}, error={}", persisted.getId(), robotId, exception.getMessage()); } - })); + }); } /** @@ -306,7 +310,14 @@ public class FlowControlService { robotIds.stream() .filter(robotId -> robotId != null && !robotId.isBlank()) .distinct() - .forEach(robotId -> executor.execute(() -> edgeSystemService.stopAll(robotId))); + .forEach(robotId -> { + abortLocalMediaRecordings(robotId); + try { + edgeSystemService.stopAll(robotId); + } catch (RuntimeException exception) { + log.warn("终止机器人设备失败: robotId={}, error={}", robotId, exception.getMessage()); + } + }); } private boolean stopAllRobotsAndWait(TaskContext context) { @@ -318,6 +329,7 @@ public class FlowControlService { .filter(robotId -> robotId != null && !robotId.isBlank()) .distinct() .collect(Collectors.toList())) { + abortLocalMediaRecordings(robotId); try { edgeSystemService.stopAll(robotId); } catch (RuntimeException exception) { @@ -329,6 +341,19 @@ public class FlowControlService { return success; } + private void abortLocalMediaRecordings(String robotId) { + try { + edgeMicrophoneService.abortWorkflowRecordings(robotId); + } catch (RuntimeException exception) { + log.warn("清理工作流录音会话失败: robotId={}, error={}", robotId, exception.getMessage()); + } + try { + edgeCameraService.abortWorkflowRecordings(robotId); + } catch (RuntimeException exception) { + log.warn("清理工作流录像会话失败: robotId={}, error={}", robotId, exception.getMessage()); + } + } + private boolean waitForInterruptedNodes(String instId, List interruptedNodes) { long deadlineNanos = System.nanoTime() + TimeUnit.SECONDS.toNanos(PAUSE_SETTLE_TIMEOUT_SECONDS); for (TaskNodeExecuteContext pendingNode : interruptedNodes) { diff --git a/cmvr-iot-test/src/main/java/com/cmvr/test/flow/runtime/operator/llm/LLMMediaAnalysisOperateService.java b/cmvr-iot-test/src/main/java/com/cmvr/test/flow/runtime/operator/llm/LLMMediaAnalysisOperateService.java index 551fbaf..ecedb39 100644 --- a/cmvr-iot-test/src/main/java/com/cmvr/test/flow/runtime/operator/llm/LLMMediaAnalysisOperateService.java +++ b/cmvr-iot-test/src/main/java/com/cmvr/test/flow/runtime/operator/llm/LLMMediaAnalysisOperateService.java @@ -11,12 +11,15 @@ import lombok.RequiredArgsConstructor; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; +import java.util.Set; import java.util.UUID; @Service @RequiredArgsConstructor public class LLMMediaAnalysisOperateService implements LLMOperateService { + private static final Set VIDEO_ANALYSIS_MODES = Set.of("AUTO", "FAST", "ACCURATE"); + private final MediaAnalysisClient mediaAnalysisClient; @Override @@ -48,7 +51,17 @@ public class LLMMediaAnalysisOperateService implements LLMOperateService { JSONObject options = new JSONObject(); if (!audio) { options.put("instruction", StringUtils.defaultString(input.getString("instruction"))); - options.put("analysisMode", StringUtils.defaultIfBlank(input.getString("analysisMode"), "AUTO")); + String analysisMode = StringUtils.defaultIfBlank(input.getString("analysisMode"), "AUTO") + .trim().toUpperCase(); + if (!VIDEO_ANALYSIS_MODES.contains(analysisMode)) { + throw new GlobalException("视频分析模式无效: {}", analysisMode); + } + options.put("analysisMode", analysisMode); + options.put("decisionPolicy", "FAIL_CLOSED"); + JSONObject tuning = buildVideoTuning(input.getJSONObject("analysisTuning")); + if (!tuning.isEmpty()) { + options.put("tuning", tuning); + } } JSONObject request = new JSONObject(); @@ -75,6 +88,31 @@ public class LLMMediaAnalysisOperateService implements LLMOperateService { return TaskNodeExecuteResult.success(output); } + private JSONObject buildVideoTuning(JSONObject source) { + JSONObject tuning = new JSONObject(); + if (source == null || source.isEmpty()) { + return tuning; + } + Integer maxFrames = source.getInteger("maxFrames"); + Integer maxWidth = source.getInteger("maxWidth"); + Double confidenceThreshold = source.getDouble("confidenceThreshold"); + Boolean fallbackToAccurate = source.getBoolean("fallbackToAccurate"); + validateRange("抽帧数量", maxFrames, 2, 16); + validateRange("图片宽度", maxWidth, 640, 1280); + validateRange("通过置信度", confidenceThreshold, 0.5D, 0.95D); + if (maxFrames != null) tuning.put("maxFrames", maxFrames); + if (maxWidth != null) tuning.put("maxWidth", maxWidth); + if (confidenceThreshold != null) tuning.put("confidenceThreshold", confidenceThreshold); + if (fallbackToAccurate != null) tuning.put("fallbackToAccurate", fallbackToAccurate); + return tuning; + } + + private void validateRange(String name, Number value, double minimum, double maximum) { + if (value != null && (value.doubleValue() < minimum || value.doubleValue() > maximum)) { + throw new GlobalException("{}必须在{}到{}之间", name, minimum, maximum); + } + } + private String buildRequestId(TaskNodeExecuteMessage message) { String instance = StringUtils.defaultIfBlank(message.getInstId(), "single"); String node = StringUtils.defaultIfBlank(message.getNodeId(), "node"); diff --git a/cmvr-iot-test/src/test/java/com/cmvr/test/flow/control/FlowControlServiceTest.java b/cmvr-iot-test/src/test/java/com/cmvr/test/flow/control/FlowControlServiceTest.java index 62ee934..ccdeead 100644 --- a/cmvr-iot-test/src/test/java/com/cmvr/test/flow/control/FlowControlServiceTest.java +++ b/cmvr-iot-test/src/test/java/com/cmvr/test/flow/control/FlowControlServiceTest.java @@ -7,9 +7,14 @@ import com.cmvr.test.flow.context.TaskThreadRegistry; import com.cmvr.test.model.domain.TeTaskInst; import com.cmvr.test.service.ITeNodeInstService; import com.cmvr.test.service.ITeTaskInstService; +import com.cmvr.edge.client.service.EdgeCameraService; +import com.cmvr.edge.client.service.EdgeMicrophoneService; +import com.cmvr.edge.client.service.EdgeSystemService; import org.junit.Test; import java.lang.reflect.Proxy; +import java.util.ArrayList; +import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; @@ -36,7 +41,8 @@ public class FlowControlServiceTest { } }; FlowControlService service = new FlowControlService( - null, holder, nodeInstService, new TaskThreadRegistry(), null, null, taskInstService); + null, holder, nodeInstService, new TaskThreadRegistry(), null, + null, null, null, taskInstService); service.stop("inst-1"); @@ -44,6 +50,54 @@ public class FlowControlServiceTest { assertTrue(unfinishedNodesStopped.get()); } + @Test + public void clearsLocalMediaSessionsBeforeStoppingRobot() { + List calls = new ArrayList<>(); + TaskContext context = new TaskContext(); + context.setInstId("inst-1"); + context.setRobotId("robot-1"); + context.setRobotIds(List.of("robot-1")); + TaskInstHolder holder = new TaskInstHolder(null, null, null, null) { + @Override + public TaskContext getContext(String instId) { + return context; + } + + @Override + public void syncStatus(String instId, TaskStatusEnum status) { + context.setStatus(status); + context.setStopped(TaskStatusEnum.STOPPED == status); + } + + @Override + public void unRegister(String instId) { + } + }; + EdgeMicrophoneService microphoneService = proxy(EdgeMicrophoneService.class, (method, args) -> { + if ("abortWorkflowRecordings".equals(method.getName())) { + assertTrue(context.isStopped()); + calls.add("microphone"); + } + return defaultValue(method.getReturnType()); + }); + EdgeCameraService cameraService = proxy(EdgeCameraService.class, (method, args) -> { + if ("abortWorkflowRecordings".equals(method.getName())) calls.add("camera"); + return defaultValue(method.getReturnType()); + }); + EdgeSystemService systemService = proxy(EdgeSystemService.class, (method, args) -> { + if ("stopAll".equals(method.getName())) calls.add("system"); + return defaultValue(method.getReturnType()); + }); + FlowControlService service = new FlowControlService( + null, holder, null, new TaskThreadRegistry(), null, + systemService, microphoneService, cameraService, null); + + service.stop("inst-1"); + + assertEquals(List.of("microphone", "camera", "system"), calls); + assertEquals(TaskStatusEnum.STOPPED, context.getStatus()); + } + private ITeTaskInstService taskInstService(String status) { return (ITeTaskInstService) Proxy.newProxyInstance( ITeTaskInstService.class.getClassLoader(), @@ -71,4 +125,22 @@ public class FlowControlServiceTest { throw new UnsupportedOperationException(method.getName()); }); } + + @SuppressWarnings("unchecked") + private T proxy(Class type, Invocation invocation) { + return (T) Proxy.newProxyInstance(type.getClassLoader(), new Class[]{type}, + (proxy, method, args) -> invocation.invoke(method, args)); + } + + private Object defaultValue(Class type) { + if (!type.isPrimitive()) return null; + if (type == boolean.class) return false; + if (type == char.class) return '\0'; + return 0; + } + + @FunctionalInterface + private interface Invocation { + Object invoke(java.lang.reflect.Method method, Object[] args) throws Throwable; + } } diff --git a/cmvr-iot-test/src/test/java/com/cmvr/test/flow/runtime/operator/llm/LLMMediaAnalysisOperateServiceTest.java b/cmvr-iot-test/src/test/java/com/cmvr/test/flow/runtime/operator/llm/LLMMediaAnalysisOperateServiceTest.java index 71b2165..455770a 100644 --- a/cmvr-iot-test/src/test/java/com/cmvr/test/flow/runtime/operator/llm/LLMMediaAnalysisOperateServiceTest.java +++ b/cmvr-iot-test/src/test/java/com/cmvr/test/flow/runtime/operator/llm/LLMMediaAnalysisOperateServiceTest.java @@ -2,6 +2,7 @@ package com.cmvr.test.flow.runtime.operator.llm; import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONObject; +import com.cmvr.common.exception.GlobalException; import com.cmvr.llm.analysis.MediaAnalysisClient; import com.cmvr.test.enums.ActionEnum; import com.cmvr.test.flow.runtime.message.TaskNodeExecuteMessage; @@ -64,6 +65,11 @@ public class LLMMediaAnalysisOperateServiceTest { .fluentPut("profileCode", "aima.power_video.v1") .fluentPut("videoUrl", "https://files.example/video.mp4") .fluentPut("analysisMode", "FAST") + .fluentPut("analysisTuning", new JSONObject() + .fluentPut("maxFrames", 8) + .fluentPut("maxWidth", 960) + .fluentPut("confidenceThreshold", 0.8D) + .fluentPut("fallbackToAccurate", false)) .fluentPut("instruction", "检查仪表是否点亮"); service.execute(message(ActionEnum.VIDEO_ANALYZE, input)); @@ -72,6 +78,25 @@ public class LLMMediaAnalysisOperateServiceTest { assertEquals("检查仪表是否点亮", captured.get().getJSONObject("options").getString("instruction")); assertEquals("FAST", captured.get().getJSONObject("options").getString("analysisMode")); + assertEquals("FAIL_CLOSED", + captured.get().getJSONObject("options").getString("decisionPolicy")); + JSONObject tuning = captured.get().getJSONObject("options").getJSONObject("tuning"); + assertEquals(8, tuning.getIntValue("maxFrames")); + assertEquals(960, tuning.getIntValue("maxWidth")); + assertEquals(0.8D, tuning.getDoubleValue("confidenceThreshold"), 0.0001D); + assertEquals(false, tuning.getBooleanValue("fallbackToAccurate")); + } + + @Test(expected = GlobalException.class) + public void rejectsOutOfRangeVideoTuning() { + LLMMediaAnalysisOperateService service = new LLMMediaAnalysisOperateService(request -> new JSONObject()); + JSONObject input = new JSONObject() + .fluentPut("profileCode", "aima.power_video.v1") + .fluentPut("videoUrl", "https://files.example/video.mp4") + .fluentPut("analysisMode", "FAST") + .fluentPut("analysisTuning", new JSONObject().fluentPut("maxFrames", 30)); + + service.execute(message(ActionEnum.VIDEO_ANALYZE, input)); } private TaskNodeExecuteMessage message(ActionEnum action, JSONObject input) {