diff --git a/.gitignore b/.gitignore index ed8368a..2163da6 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,7 @@ nbdist/ !*/build/*.java !*/build/*.html !*/build/*.xml + +# Local verification tests +/cmvr-iot-test/src/test/java/com/cmvr/test/flow/runtime/operator/edge/EdgeAgvOperateServiceTest.java +/cmvr-iot-test/src/test/java/com/cmvr/test/flow/runtime/operator/edge/EdgeArmOperateServiceTest.java diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeSystemServiceImpl.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeSystemServiceImpl.java index 4167172..1551fce 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeSystemServiceImpl.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client/src/main/java/com/cmvr/edge/client/service/impl/EdgeSystemServiceImpl.java @@ -1,6 +1,7 @@ package com.cmvr.edge.client.service.impl; import cmvr.api.Common; +import cmvr.api.ArmServiceGrpc; import cmvr.api.SystemCommand; import cmvr.api.SystemServiceGrpc; import com.alibaba.fastjson2.JSON; @@ -63,8 +64,8 @@ public class EdgeSystemServiceImpl implements EdgeSystemService { .setHeader(EdgeCommonUtil.buildRequest(request.getDeviceId())) .setRequestJson(request.getRequestJson() == null ? "" : request.getRequestJson()) .build(); - SystemServiceGrpc.SystemServiceBlockingStub stub = grpcServiceManager.getGrpcClient( - request.getTerminalId(), SystemServiceGrpc.SystemServiceBlockingStub.class); + ArmServiceGrpc.ArmServiceBlockingStub stub = grpcServiceManager.getGrpcClient( + request.getTerminalId(), ArmServiceGrpc.ArmServiceBlockingStub.class); return stub.executeJsonCommand(grpcRequest); } @@ -105,47 +106,69 @@ public class EdgeSystemServiceImpl implements EdgeSystemService { } - public List deviceList(String terminalId){ - + @Override + public List deviceList(String terminalId) { try { - //调用接口获取返回值对象 - SystemCommand.GetSystemStatusCommand.Feedback response=getSystemStatus(terminalId); + SystemServiceGrpc.SystemServiceBlockingStub stub = grpcServiceManager.getGrpcClient( + terminalId, SystemServiceGrpc.SystemServiceBlockingStub.class); + SystemCommand.GetDeviceListCommand.Feedback response = stub.getDeviceList( + SystemCommand.GetDeviceListCommand.Request.newBuilder().build()); - // 获取设备列表 - List deviceList = response.getDeviceListList(); - - // 如果设备列表不为空,则处理设备信息 - if (!deviceList.isEmpty()) { - // 创建Device对象列表,用于存储转换后的设备信息 - List devices = new ArrayList<>(); - - // 遍历设备列表,将每个设备信息转换为Device对象 - for (SystemCommand.DeviceList device : deviceList) { - DeDeviceRegistration d=new DeDeviceRegistration(); - // 设置设备ID - d.setDeviceCode(device.getDeviceId()); - // 设置设备类型,将枚举类型转换为字符串 - d.setDeviceModel(device.getDeviceType().name()); - // 设置设备的终端ID - d.setIdDeDeviceTerminalConfig(terminalId); - - devices.add(d); + List deviceList = response.getDeviceListList(); + List devices = new ArrayList<>(deviceList.size()); + for (SystemCommand.SystemDeviceInfo device : deviceList) { + DeDeviceRegistration registration = new DeDeviceRegistration(); + registration.setDeviceCode(device.getDeviceId()); + registration.setDeviceModel(toDeviceModel(device)); + registration.setIdDeDeviceTerminalConfig(terminalId); + devices.add(registration); } - // 记录获取到的设备数量 - logger.info("获取到设备列表,数量:{}", devices.size()); + logger.info("获取到设备列表,数量:{},设备管理器:{} {}", + devices.size(), response.getManagerName(), response.getManagerVersion()); return devices; + } catch (Exception e) { + logger.error("调用设备列表接口异常", e); + throw new GlobalException("获取设备列表失败: " + e.getMessage()); } + } - // 如果响应为空或设备列表为空,记录错误信息 - logger.error("获取系统状态失败: {}", response != null ? - (response.getHeader() != null ? response.getHeader().getErrorMessage() : "响应头为空") : "响应为空"); - return null; - - }catch (Exception e){ - // 捕获并记录调用过程中的异常 - logger.error("调用系统状态接口异常", e); - return null; + private String toDeviceModel(SystemCommand.SystemDeviceInfo device) { + switch (device.getDeviceType()) { + case SYSTEM_DEVICE_TYPE_AGV: + return "AGV"; + case SYSTEM_DEVICE_TYPE_ARM: + return "ARM"; + case SYSTEM_DEVICE_TYPE_BATTERY: + return "Battery"; + case SYSTEM_DEVICE_TYPE_BIO_HEAD: + return "BioHead"; + case SYSTEM_DEVICE_TYPE_CAMERA: + return "Camera"; + case SYSTEM_DEVICE_TYPE_CAN_BUS: + return "CanBus"; + case SYSTEM_DEVICE_TYPE_DEX_HAND: + return "DexHand"; + case SYSTEM_DEVICE_TYPE_GRIPPER: + return "Gripper"; + case SYSTEM_DEVICE_TYPE_MICROPHONE: + return "Microphone"; + case SYSTEM_DEVICE_TYPE_MOTOR: + return "Motor"; + case SYSTEM_DEVICE_TYPE_MOTOR_SYSTEM: + return "MotorSystem"; + case SYSTEM_DEVICE_TYPE_MUJOCO_VIEWER: + return "MujocoViewer"; + case SYSTEM_DEVICE_TYPE_MUJOCO_WORLD: + return "MujocoWorld"; + case SYSTEM_DEVICE_TYPE_ROBOT: + return "Robot"; + case SYSTEM_DEVICE_TYPE_SPEAKER: + return "Speaker"; + case SYSTEM_DEVICE_TYPE_UNSPECIFIED: + case UNRECOGNIZED: + default: + return device.getTypeName().isEmpty() ? "Unknown" : device.getTypeName(); } } diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/ArmServiceGrpc.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/ArmServiceGrpc.java index 92cd053..e73e501 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/ArmServiceGrpc.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/ArmServiceGrpc.java @@ -449,6 +449,37 @@ public final class ArmServiceGrpc { return getComputeForwardKinematicsMethod; } + private static volatile io.grpc.MethodDescriptor getExecuteJsonCommandMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExecuteJsonCommand", + requestType = cmvr.api.Common.JsonDeviceCommand.Request.class, + responseType = cmvr.api.Common.JsonDeviceCommand.Feedback.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getExecuteJsonCommandMethod() { + io.grpc.MethodDescriptor getExecuteJsonCommandMethod; + if ((getExecuteJsonCommandMethod = ArmServiceGrpc.getExecuteJsonCommandMethod) == null) { + synchronized (ArmServiceGrpc.class) { + if ((getExecuteJsonCommandMethod = ArmServiceGrpc.getExecuteJsonCommandMethod) == null) { + ArmServiceGrpc.getExecuteJsonCommandMethod = getExecuteJsonCommandMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteJsonCommand")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cmvr.api.Common.JsonDeviceCommand.Request.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cmvr.api.Common.JsonDeviceCommand.Feedback.getDefaultInstance())) + .setSchemaDescriptor(new ArmServiceMethodDescriptorSupplier("ExecuteJsonCommand")) + .build(); + } + } + } + return getExecuteJsonCommandMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -595,6 +626,16 @@ public final class ArmServiceGrpc { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeForwardKinematicsMethod(), responseObserver); } + /** + *
+     * Vendor-specific arm extension currently used for AUBO cabinet IO.
+     * 
+ */ + public void executeJsonCommand(cmvr.api.Common.JsonDeviceCommand.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteJsonCommandMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( @@ -695,6 +736,13 @@ public final class ArmServiceGrpc { cmvr.api.ArmCommand.ComputeForwardKinematics.Request, cmvr.api.ArmCommand.ComputeForwardKinematics.Response>( this, METHODID_COMPUTE_FORWARD_KINEMATICS))) + .addMethod( + getExecuteJsonCommandMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + cmvr.api.Common.JsonDeviceCommand.Request, + cmvr.api.Common.JsonDeviceCommand.Feedback>( + this, METHODID_EXECUTE_JSON_COMMAND))) .build(); } } @@ -824,6 +872,17 @@ public final class ArmServiceGrpc { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getComputeForwardKinematicsMethod(), getCallOptions()), request, responseObserver); } + + /** + *
+     * Vendor-specific arm extension currently used for AUBO cabinet IO.
+     * 
+ */ + public void executeJsonCommand(cmvr.api.Common.JsonDeviceCommand.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExecuteJsonCommandMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -937,6 +996,16 @@ public final class ArmServiceGrpc { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getComputeForwardKinematicsMethod(), getCallOptions(), request); } + + /** + *
+     * Vendor-specific arm extension currently used for AUBO cabinet IO.
+     * 
+ */ + public cmvr.api.Common.JsonDeviceCommand.Feedback executeJsonCommand(cmvr.api.Common.JsonDeviceCommand.Request request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExecuteJsonCommandMethod(), getCallOptions(), request); + } } /** @@ -1064,6 +1133,17 @@ public final class ArmServiceGrpc { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getComputeForwardKinematicsMethod(), getCallOptions()), request); } + + /** + *
+     * Vendor-specific arm extension currently used for AUBO cabinet IO.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture executeJsonCommand( + cmvr.api.Common.JsonDeviceCommand.Request request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExecuteJsonCommandMethod(), getCallOptions()), request); + } } private static final int METHODID_TORQUE_OFF = 0; @@ -1080,6 +1160,7 @@ public final class ArmServiceGrpc { private static final int METHODID_CALIBRATE_ZERO_Q = 11; private static final int METHODID_GET_POSE_MATRIX = 12; private static final int METHODID_COMPUTE_FORWARD_KINEMATICS = 13; + private static final int METHODID_EXECUTE_JSON_COMMAND = 14; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1154,6 +1235,10 @@ public final class ArmServiceGrpc { serviceImpl.computeForwardKinematics((cmvr.api.ArmCommand.ComputeForwardKinematics.Request) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXECUTE_JSON_COMMAND: + serviceImpl.executeJsonCommand((cmvr.api.Common.JsonDeviceCommand.Request) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1229,6 +1314,7 @@ public final class ArmServiceGrpc { .addMethod(getCalibrateZeroQMethod()) .addMethod(getGetPoseMatrixMethod()) .addMethod(getComputeForwardKinematicsMethod()) + .addMethod(getExecuteJsonCommandMethod()) .build(); } } diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/ArmServiceOuterClass.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/ArmServiceOuterClass.java index ceb0b01..05bab4f 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/ArmServiceOuterClass.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/ArmServiceOuterClass.java @@ -25,7 +25,7 @@ public final class ArmServiceOuterClass { java.lang.String[] descriptorData = { "\n\032cmvr/api/arm_service.proto\022\010cmvr.api\032\025" + "cmvr/api/common.proto\032\032cmvr/api/arm_comm" + - "and.proto2\246\010\n\nArmService\022N\n\ttorqueOff\022\037." + + "and.proto2\207\t\n\nArmService\022N\n\ttorqueOff\022\037." + "cmvr.api.CommandHeader.Request\032 .cmvr.ap" + "i.CommandHeader.Feedback\022M\n\010torqueOn\022\037.c" + "mvr.api.CommandHeader.Request\032 .cmvr.api" + @@ -51,8 +51,10 @@ public final class ArmServiceOuterClass { "est\032 .cmvr.api.GetPoseMatrix.Response\022s\n" + "\030computeForwardKinematics\022*.cmvr.api.Com" + "puteForwardKinematics.Request\032+.cmvr.api" + - ".ComputeForwardKinematics.Responseb\006prot" + - "o3" + ".ComputeForwardKinematics.Response\022_\n\022Ex" + + "ecuteJsonCommand\022#.cmvr.api.JsonDeviceCo" + + "mmand.Request\032$.cmvr.api.JsonDeviceComma" + + "nd.Feedbackb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/MotorCommand.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/MotorCommand.java index 4c0715c..40893f6 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/MotorCommand.java +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/api/MotorCommand.java @@ -10484,7 +10484,7 @@ public final class MotorCommand { /** *
-     * The PLC/driver watchdog is authoritative. This service watchdog prevents a
+     * The device/driver watchdog is authoritative. This service watchdog prevents a
      * stalled gRPC client from retaining control indefinitely.
      * 
* @@ -10563,7 +10563,7 @@ public final class MotorCommand { private int watchdogTimeoutMs_; /** *
-     * The PLC/driver watchdog is authoritative. This service watchdog prevents a
+     * The device/driver watchdog is authoritative. This service watchdog prevents a
      * stalled gRPC client from retaining control indefinitely.
      * 
* @@ -11049,7 +11049,7 @@ public final class MotorCommand { private int watchdogTimeoutMs_ ; /** *
-       * The PLC/driver watchdog is authoritative. This service watchdog prevents a
+       * The device/driver watchdog is authoritative. This service watchdog prevents a
        * stalled gRPC client from retaining control indefinitely.
        * 
* @@ -11062,7 +11062,7 @@ public final class MotorCommand { } /** *
-       * The PLC/driver watchdog is authoritative. This service watchdog prevents a
+       * The device/driver watchdog is authoritative. This service watchdog prevents a
        * stalled gRPC client from retaining control indefinitely.
        * 
* @@ -11078,7 +11078,7 @@ public final class MotorCommand { } /** *
-       * The PLC/driver watchdog is authoritative. This service watchdog prevents a
+       * The device/driver watchdog is authoritative. This service watchdog prevents a
        * stalled gRPC client from retaining control indefinitely.
        * 
* 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 e3a7717..89a3eea 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 @@ -185,6 +185,534 @@ public final class SystemCommand { // @@protoc_insertion_point(enum_scope:cmvr.api.DeviceType) } + /** + *
+   * Stable device categories used by GetDeviceList. This intentionally does not
+   * reuse the legacy DeviceType enum above: its zero value is AGV and it does not
+   * cover all DeviceManager categories.
+   * 
+ * + * Protobuf enum {@code cmvr.api.SystemDeviceType} + */ + public enum SystemDeviceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SYSTEM_DEVICE_TYPE_UNSPECIFIED = 0; + */ + SYSTEM_DEVICE_TYPE_UNSPECIFIED(0), + /** + * SYSTEM_DEVICE_TYPE_AGV = 1; + */ + SYSTEM_DEVICE_TYPE_AGV(1), + /** + * SYSTEM_DEVICE_TYPE_ARM = 2; + */ + SYSTEM_DEVICE_TYPE_ARM(2), + /** + * SYSTEM_DEVICE_TYPE_BATTERY = 3; + */ + SYSTEM_DEVICE_TYPE_BATTERY(3), + /** + * SYSTEM_DEVICE_TYPE_BIO_HEAD = 4; + */ + SYSTEM_DEVICE_TYPE_BIO_HEAD(4), + /** + * SYSTEM_DEVICE_TYPE_CAMERA = 5; + */ + SYSTEM_DEVICE_TYPE_CAMERA(5), + /** + * SYSTEM_DEVICE_TYPE_CAN_BUS = 6; + */ + SYSTEM_DEVICE_TYPE_CAN_BUS(6), + /** + * SYSTEM_DEVICE_TYPE_DEX_HAND = 7; + */ + SYSTEM_DEVICE_TYPE_DEX_HAND(7), + /** + * SYSTEM_DEVICE_TYPE_GRIPPER = 8; + */ + SYSTEM_DEVICE_TYPE_GRIPPER(8), + /** + * SYSTEM_DEVICE_TYPE_MICROPHONE = 9; + */ + SYSTEM_DEVICE_TYPE_MICROPHONE(9), + /** + * SYSTEM_DEVICE_TYPE_MOTOR = 10; + */ + SYSTEM_DEVICE_TYPE_MOTOR(10), + /** + * SYSTEM_DEVICE_TYPE_MOTOR_SYSTEM = 11; + */ + SYSTEM_DEVICE_TYPE_MOTOR_SYSTEM(11), + /** + * SYSTEM_DEVICE_TYPE_MUJOCO_VIEWER = 12; + */ + SYSTEM_DEVICE_TYPE_MUJOCO_VIEWER(12), + /** + * SYSTEM_DEVICE_TYPE_MUJOCO_WORLD = 13; + */ + SYSTEM_DEVICE_TYPE_MUJOCO_WORLD(13), + /** + * SYSTEM_DEVICE_TYPE_ROBOT = 14; + */ + SYSTEM_DEVICE_TYPE_ROBOT(14), + /** + * SYSTEM_DEVICE_TYPE_SPEAKER = 15; + */ + SYSTEM_DEVICE_TYPE_SPEAKER(15), + UNRECOGNIZED(-1), + ; + + /** + * SYSTEM_DEVICE_TYPE_UNSPECIFIED = 0; + */ + public static final int SYSTEM_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * SYSTEM_DEVICE_TYPE_AGV = 1; + */ + public static final int SYSTEM_DEVICE_TYPE_AGV_VALUE = 1; + /** + * SYSTEM_DEVICE_TYPE_ARM = 2; + */ + public static final int SYSTEM_DEVICE_TYPE_ARM_VALUE = 2; + /** + * SYSTEM_DEVICE_TYPE_BATTERY = 3; + */ + public static final int SYSTEM_DEVICE_TYPE_BATTERY_VALUE = 3; + /** + * SYSTEM_DEVICE_TYPE_BIO_HEAD = 4; + */ + public static final int SYSTEM_DEVICE_TYPE_BIO_HEAD_VALUE = 4; + /** + * SYSTEM_DEVICE_TYPE_CAMERA = 5; + */ + public static final int SYSTEM_DEVICE_TYPE_CAMERA_VALUE = 5; + /** + * SYSTEM_DEVICE_TYPE_CAN_BUS = 6; + */ + public static final int SYSTEM_DEVICE_TYPE_CAN_BUS_VALUE = 6; + /** + * SYSTEM_DEVICE_TYPE_DEX_HAND = 7; + */ + public static final int SYSTEM_DEVICE_TYPE_DEX_HAND_VALUE = 7; + /** + * SYSTEM_DEVICE_TYPE_GRIPPER = 8; + */ + public static final int SYSTEM_DEVICE_TYPE_GRIPPER_VALUE = 8; + /** + * SYSTEM_DEVICE_TYPE_MICROPHONE = 9; + */ + public static final int SYSTEM_DEVICE_TYPE_MICROPHONE_VALUE = 9; + /** + * SYSTEM_DEVICE_TYPE_MOTOR = 10; + */ + public static final int SYSTEM_DEVICE_TYPE_MOTOR_VALUE = 10; + /** + * SYSTEM_DEVICE_TYPE_MOTOR_SYSTEM = 11; + */ + public static final int SYSTEM_DEVICE_TYPE_MOTOR_SYSTEM_VALUE = 11; + /** + * SYSTEM_DEVICE_TYPE_MUJOCO_VIEWER = 12; + */ + public static final int SYSTEM_DEVICE_TYPE_MUJOCO_VIEWER_VALUE = 12; + /** + * SYSTEM_DEVICE_TYPE_MUJOCO_WORLD = 13; + */ + public static final int SYSTEM_DEVICE_TYPE_MUJOCO_WORLD_VALUE = 13; + /** + * SYSTEM_DEVICE_TYPE_ROBOT = 14; + */ + public static final int SYSTEM_DEVICE_TYPE_ROBOT_VALUE = 14; + /** + * SYSTEM_DEVICE_TYPE_SPEAKER = 15; + */ + public static final int SYSTEM_DEVICE_TYPE_SPEAKER_VALUE = 15; + + + 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 SystemDeviceType 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 SystemDeviceType forNumber(int value) { + switch (value) { + case 0: return SYSTEM_DEVICE_TYPE_UNSPECIFIED; + case 1: return SYSTEM_DEVICE_TYPE_AGV; + case 2: return SYSTEM_DEVICE_TYPE_ARM; + case 3: return SYSTEM_DEVICE_TYPE_BATTERY; + case 4: return SYSTEM_DEVICE_TYPE_BIO_HEAD; + case 5: return SYSTEM_DEVICE_TYPE_CAMERA; + case 6: return SYSTEM_DEVICE_TYPE_CAN_BUS; + case 7: return SYSTEM_DEVICE_TYPE_DEX_HAND; + case 8: return SYSTEM_DEVICE_TYPE_GRIPPER; + case 9: return SYSTEM_DEVICE_TYPE_MICROPHONE; + case 10: return SYSTEM_DEVICE_TYPE_MOTOR; + case 11: return SYSTEM_DEVICE_TYPE_MOTOR_SYSTEM; + case 12: return SYSTEM_DEVICE_TYPE_MUJOCO_VIEWER; + case 13: return SYSTEM_DEVICE_TYPE_MUJOCO_WORLD; + case 14: return SYSTEM_DEVICE_TYPE_ROBOT; + case 15: return SYSTEM_DEVICE_TYPE_SPEAKER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SystemDeviceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SystemDeviceType findValueByNumber(int number) { + return SystemDeviceType.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.SystemCommand.getDescriptor().getEnumTypes().get(1); + } + + private static final SystemDeviceType[] VALUES = values(); + + public static SystemDeviceType 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 SystemDeviceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.SystemDeviceType) + } + + /** + * Protobuf enum {@code cmvr.api.SystemDeviceState} + */ + public enum SystemDeviceState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SYSTEM_DEVICE_STATE_UNSPECIFIED = 0; + */ + SYSTEM_DEVICE_STATE_UNSPECIFIED(0), + /** + * SYSTEM_DEVICE_STATE_DISABLED = 1; + */ + SYSTEM_DEVICE_STATE_DISABLED(1), + /** + * SYSTEM_DEVICE_STATE_INITIALIZING = 2; + */ + SYSTEM_DEVICE_STATE_INITIALIZING(2), + /** + * SYSTEM_DEVICE_STATE_REGISTERED = 3; + */ + SYSTEM_DEVICE_STATE_REGISTERED(3), + /** + * SYSTEM_DEVICE_STATE_READY = 4; + */ + SYSTEM_DEVICE_STATE_READY(4), + /** + * SYSTEM_DEVICE_STATE_RUNNING = 5; + */ + SYSTEM_DEVICE_STATE_RUNNING(5), + /** + * SYSTEM_DEVICE_STATE_STOPPED = 6; + */ + SYSTEM_DEVICE_STATE_STOPPED(6), + /** + * SYSTEM_DEVICE_STATE_ERROR = 7; + */ + SYSTEM_DEVICE_STATE_ERROR(7), + UNRECOGNIZED(-1), + ; + + /** + * SYSTEM_DEVICE_STATE_UNSPECIFIED = 0; + */ + public static final int SYSTEM_DEVICE_STATE_UNSPECIFIED_VALUE = 0; + /** + * SYSTEM_DEVICE_STATE_DISABLED = 1; + */ + public static final int SYSTEM_DEVICE_STATE_DISABLED_VALUE = 1; + /** + * SYSTEM_DEVICE_STATE_INITIALIZING = 2; + */ + public static final int SYSTEM_DEVICE_STATE_INITIALIZING_VALUE = 2; + /** + * SYSTEM_DEVICE_STATE_REGISTERED = 3; + */ + public static final int SYSTEM_DEVICE_STATE_REGISTERED_VALUE = 3; + /** + * SYSTEM_DEVICE_STATE_READY = 4; + */ + public static final int SYSTEM_DEVICE_STATE_READY_VALUE = 4; + /** + * SYSTEM_DEVICE_STATE_RUNNING = 5; + */ + public static final int SYSTEM_DEVICE_STATE_RUNNING_VALUE = 5; + /** + * SYSTEM_DEVICE_STATE_STOPPED = 6; + */ + public static final int SYSTEM_DEVICE_STATE_STOPPED_VALUE = 6; + /** + * SYSTEM_DEVICE_STATE_ERROR = 7; + */ + public static final int SYSTEM_DEVICE_STATE_ERROR_VALUE = 7; + + + 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 SystemDeviceState 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 SystemDeviceState forNumber(int value) { + switch (value) { + case 0: return SYSTEM_DEVICE_STATE_UNSPECIFIED; + case 1: return SYSTEM_DEVICE_STATE_DISABLED; + case 2: return SYSTEM_DEVICE_STATE_INITIALIZING; + case 3: return SYSTEM_DEVICE_STATE_REGISTERED; + case 4: return SYSTEM_DEVICE_STATE_READY; + case 5: return SYSTEM_DEVICE_STATE_RUNNING; + case 6: return SYSTEM_DEVICE_STATE_STOPPED; + case 7: return SYSTEM_DEVICE_STATE_ERROR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SystemDeviceState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SystemDeviceState findValueByNumber(int number) { + return SystemDeviceState.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.SystemCommand.getDescriptor().getEnumTypes().get(2); + } + + private static final SystemDeviceState[] VALUES = values(); + + public static SystemDeviceState 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 SystemDeviceState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.SystemDeviceState) + } + + /** + * Protobuf enum {@code cmvr.api.SystemDeviceHealth} + */ + public enum SystemDeviceHealth + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SYSTEM_DEVICE_HEALTH_UNSPECIFIED = 0; + */ + SYSTEM_DEVICE_HEALTH_UNSPECIFIED(0), + /** + * SYSTEM_DEVICE_HEALTH_HEALTHY = 1; + */ + SYSTEM_DEVICE_HEALTH_HEALTHY(1), + /** + * SYSTEM_DEVICE_HEALTH_DEGRADED = 2; + */ + SYSTEM_DEVICE_HEALTH_DEGRADED(2), + /** + * SYSTEM_DEVICE_HEALTH_FAULT = 3; + */ + SYSTEM_DEVICE_HEALTH_FAULT(3), + UNRECOGNIZED(-1), + ; + + /** + * SYSTEM_DEVICE_HEALTH_UNSPECIFIED = 0; + */ + public static final int SYSTEM_DEVICE_HEALTH_UNSPECIFIED_VALUE = 0; + /** + * SYSTEM_DEVICE_HEALTH_HEALTHY = 1; + */ + public static final int SYSTEM_DEVICE_HEALTH_HEALTHY_VALUE = 1; + /** + * SYSTEM_DEVICE_HEALTH_DEGRADED = 2; + */ + public static final int SYSTEM_DEVICE_HEALTH_DEGRADED_VALUE = 2; + /** + * SYSTEM_DEVICE_HEALTH_FAULT = 3; + */ + public static final int SYSTEM_DEVICE_HEALTH_FAULT_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 SystemDeviceHealth 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 SystemDeviceHealth forNumber(int value) { + switch (value) { + case 0: return SYSTEM_DEVICE_HEALTH_UNSPECIFIED; + case 1: return SYSTEM_DEVICE_HEALTH_HEALTHY; + case 2: return SYSTEM_DEVICE_HEALTH_DEGRADED; + case 3: return SYSTEM_DEVICE_HEALTH_FAULT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SystemDeviceHealth> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SystemDeviceHealth findValueByNumber(int number) { + return SystemDeviceHealth.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.SystemCommand.getDescriptor().getEnumTypes().get(3); + } + + private static final SystemDeviceHealth[] VALUES = values(); + + public static SystemDeviceHealth 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 SystemDeviceHealth(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cmvr.api.SystemDeviceHealth) + } + public interface DeviceListOrBuilder extends // @@protoc_insertion_point(interface_extends:cmvr.api.DeviceList) com.google.protobuf.MessageOrBuilder { @@ -840,6 +1368,3744 @@ public final class SystemCommand { } + public interface SystemDeviceInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.SystemDeviceInfo) + 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(); + + /** + * .cmvr.api.SystemDeviceType device_type = 2; + * @return The enum numeric value on the wire for deviceType. + */ + int getDeviceTypeValue(); + /** + * .cmvr.api.SystemDeviceType device_type = 2; + * @return The deviceType. + */ + cmvr.api.SystemCommand.SystemDeviceType getDeviceType(); + + /** + *
+     * Concrete backend name for display and diagnostics only. Consumers must
+     * use device_type, rather than this free-form string, for decisions.
+     * 
+ * + * string type_name = 3; + * @return The typeName. + */ + java.lang.String getTypeName(); + /** + *
+     * Concrete backend name for display and diagnostics only. Consumers must
+     * use device_type, rather than this free-form string, for decisions.
+     * 
+ * + * string type_name = 3; + * @return The bytes for typeName. + */ + com.google.protobuf.ByteString + getTypeNameBytes(); + + /** + *
+     * GetDeviceList currently publishes only enabled entries. Keep this field
+     * explicit so each row remains self-describing and future-compatible.
+     * 
+ * + * bool enabled = 4; + * @return The enabled. + */ + boolean getEnabled(); + + /** + * .cmvr.api.SystemDeviceState manager_state = 5; + * @return The enum numeric value on the wire for managerState. + */ + int getManagerStateValue(); + /** + * .cmvr.api.SystemDeviceState manager_state = 5; + * @return The managerState. + */ + cmvr.api.SystemCommand.SystemDeviceState getManagerState(); + + /** + * .cmvr.api.SystemDeviceHealth health = 6; + * @return The enum numeric value on the wire for health. + */ + int getHealthValue(); + /** + * .cmvr.api.SystemDeviceHealth health = 6; + * @return The health. + */ + cmvr.api.SystemCommand.SystemDeviceHealth getHealth(); + + /** + * bool has_error = 7; + * @return The hasError. + */ + boolean getHasError(); + + /** + * string error_message = 8; + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + * string error_message = 8; + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString + getErrorMessageBytes(); + + /** + * uint64 status_updated_at_unix_ms = 9; + * @return The statusUpdatedAtUnixMs. + */ + long getStatusUpdatedAtUnixMs(); + } + /** + * Protobuf type {@code cmvr.api.SystemDeviceInfo} + */ + public static final class SystemDeviceInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.SystemDeviceInfo) + SystemDeviceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use SystemDeviceInfo.newBuilder() to construct. + private SystemDeviceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SystemDeviceInfo() { + deviceId_ = ""; + deviceType_ = 0; + typeName_ = ""; + managerState_ = 0; + health_ = 0; + errorMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SystemDeviceInfo(); + } + + @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.SystemCommand.internal_static_cmvr_api_SystemDeviceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_SystemDeviceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SystemCommand.SystemDeviceInfo.class, cmvr.api.SystemCommand.SystemDeviceInfo.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_TYPE_FIELD_NUMBER = 2; + private int deviceType_; + /** + * .cmvr.api.SystemDeviceType device_type = 2; + * @return The enum numeric value on the wire for deviceType. + */ + @java.lang.Override public int getDeviceTypeValue() { + return deviceType_; + } + /** + * .cmvr.api.SystemDeviceType device_type = 2; + * @return The deviceType. + */ + @java.lang.Override public cmvr.api.SystemCommand.SystemDeviceType getDeviceType() { + @SuppressWarnings("deprecation") + cmvr.api.SystemCommand.SystemDeviceType result = cmvr.api.SystemCommand.SystemDeviceType.valueOf(deviceType_); + return result == null ? cmvr.api.SystemCommand.SystemDeviceType.UNRECOGNIZED : result; + } + + public static final int TYPE_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object typeName_; + /** + *
+     * Concrete backend name for display and diagnostics only. Consumers must
+     * use device_type, rather than this free-form string, for decisions.
+     * 
+ * + * string type_name = 3; + * @return The typeName. + */ + @java.lang.Override + public java.lang.String getTypeName() { + java.lang.Object ref = typeName_; + 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(); + typeName_ = s; + return s; + } + } + /** + *
+     * Concrete backend name for display and diagnostics only. Consumers must
+     * use device_type, rather than this free-form string, for decisions.
+     * 
+ * + * string type_name = 3; + * @return The bytes for typeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeNameBytes() { + java.lang.Object ref = typeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLED_FIELD_NUMBER = 4; + private boolean enabled_; + /** + *
+     * GetDeviceList currently publishes only enabled entries. Keep this field
+     * explicit so each row remains self-describing and future-compatible.
+     * 
+ * + * bool enabled = 4; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int MANAGER_STATE_FIELD_NUMBER = 5; + private int managerState_; + /** + * .cmvr.api.SystemDeviceState manager_state = 5; + * @return The enum numeric value on the wire for managerState. + */ + @java.lang.Override public int getManagerStateValue() { + return managerState_; + } + /** + * .cmvr.api.SystemDeviceState manager_state = 5; + * @return The managerState. + */ + @java.lang.Override public cmvr.api.SystemCommand.SystemDeviceState getManagerState() { + @SuppressWarnings("deprecation") + cmvr.api.SystemCommand.SystemDeviceState result = cmvr.api.SystemCommand.SystemDeviceState.valueOf(managerState_); + return result == null ? cmvr.api.SystemCommand.SystemDeviceState.UNRECOGNIZED : result; + } + + public static final int HEALTH_FIELD_NUMBER = 6; + private int health_; + /** + * .cmvr.api.SystemDeviceHealth health = 6; + * @return The enum numeric value on the wire for health. + */ + @java.lang.Override public int getHealthValue() { + return health_; + } + /** + * .cmvr.api.SystemDeviceHealth health = 6; + * @return The health. + */ + @java.lang.Override public cmvr.api.SystemCommand.SystemDeviceHealth getHealth() { + @SuppressWarnings("deprecation") + cmvr.api.SystemCommand.SystemDeviceHealth result = cmvr.api.SystemCommand.SystemDeviceHealth.valueOf(health_); + return result == null ? cmvr.api.SystemCommand.SystemDeviceHealth.UNRECOGNIZED : result; + } + + public static final int HAS_ERROR_FIELD_NUMBER = 7; + private boolean hasError_; + /** + * bool has_error = 7; + * @return The hasError. + */ + @java.lang.Override + public boolean getHasError() { + return hasError_; + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 8; + private volatile java.lang.Object errorMessage_; + /** + * string error_message = 8; + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + /** + * string error_message = 8; + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_UPDATED_AT_UNIX_MS_FIELD_NUMBER = 9; + private long statusUpdatedAtUnixMs_; + /** + * uint64 status_updated_at_unix_ms = 9; + * @return The statusUpdatedAtUnixMs. + */ + @java.lang.Override + public long getStatusUpdatedAtUnixMs() { + return statusUpdatedAtUnixMs_; + } + + 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 (deviceType_ != cmvr.api.SystemCommand.SystemDeviceType.SYSTEM_DEVICE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, deviceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeName_); + } + if (enabled_ != false) { + output.writeBool(4, enabled_); + } + if (managerState_ != cmvr.api.SystemCommand.SystemDeviceState.SYSTEM_DEVICE_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, managerState_); + } + if (health_ != cmvr.api.SystemCommand.SystemDeviceHealth.SYSTEM_DEVICE_HEALTH_UNSPECIFIED.getNumber()) { + output.writeEnum(6, health_); + } + if (hasError_ != false) { + output.writeBool(7, hasError_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, errorMessage_); + } + if (statusUpdatedAtUnixMs_ != 0L) { + output.writeUInt64(9, statusUpdatedAtUnixMs_); + } + 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 (deviceType_ != cmvr.api.SystemCommand.SystemDeviceType.SYSTEM_DEVICE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, deviceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeName_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enabled_); + } + if (managerState_ != cmvr.api.SystemCommand.SystemDeviceState.SYSTEM_DEVICE_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, managerState_); + } + if (health_ != cmvr.api.SystemCommand.SystemDeviceHealth.SYSTEM_DEVICE_HEALTH_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, health_); + } + if (hasError_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, hasError_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, errorMessage_); + } + if (statusUpdatedAtUnixMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(9, statusUpdatedAtUnixMs_); + } + 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.SystemCommand.SystemDeviceInfo)) { + return super.equals(obj); + } + cmvr.api.SystemCommand.SystemDeviceInfo other = (cmvr.api.SystemCommand.SystemDeviceInfo) obj; + + if (!getDeviceId() + .equals(other.getDeviceId())) return false; + if (deviceType_ != other.deviceType_) return false; + if (!getTypeName() + .equals(other.getTypeName())) return false; + if (getEnabled() + != other.getEnabled()) return false; + if (managerState_ != other.managerState_) return false; + if (health_ != other.health_) return false; + if (getHasError() + != other.getHasError()) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; + if (getStatusUpdatedAtUnixMs() + != other.getStatusUpdatedAtUnixMs()) 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_TYPE_FIELD_NUMBER; + hash = (53 * hash) + deviceType_; + hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTypeName().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + MANAGER_STATE_FIELD_NUMBER; + hash = (53 * hash) + managerState_; + hash = (37 * hash) + HEALTH_FIELD_NUMBER; + hash = (53 * hash) + health_; + hash = (37 * hash) + HAS_ERROR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasError()); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (37 * hash) + STATUS_UPDATED_AT_UNIX_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStatusUpdatedAtUnixMs()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SystemCommand.SystemDeviceInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.SystemDeviceInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SystemCommand.SystemDeviceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.SystemDeviceInfo 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.SystemCommand.SystemDeviceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.SystemDeviceInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SystemCommand.SystemDeviceInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.SystemDeviceInfo 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.SystemCommand.SystemDeviceInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.SystemDeviceInfo 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.SystemCommand.SystemDeviceInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.SystemDeviceInfo 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.SystemCommand.SystemDeviceInfo 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.SystemDeviceInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.SystemDeviceInfo) + cmvr.api.SystemCommand.SystemDeviceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_SystemDeviceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_SystemDeviceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SystemCommand.SystemDeviceInfo.class, cmvr.api.SystemCommand.SystemDeviceInfo.Builder.class); + } + + // Construct using cmvr.api.SystemCommand.SystemDeviceInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + deviceId_ = ""; + + deviceType_ = 0; + + typeName_ = ""; + + enabled_ = false; + + managerState_ = 0; + + health_ = 0; + + hasError_ = false; + + errorMessage_ = ""; + + statusUpdatedAtUnixMs_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_SystemDeviceInfo_descriptor; + } + + @java.lang.Override + public cmvr.api.SystemCommand.SystemDeviceInfo getDefaultInstanceForType() { + return cmvr.api.SystemCommand.SystemDeviceInfo.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SystemCommand.SystemDeviceInfo build() { + cmvr.api.SystemCommand.SystemDeviceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SystemCommand.SystemDeviceInfo buildPartial() { + cmvr.api.SystemCommand.SystemDeviceInfo result = new cmvr.api.SystemCommand.SystemDeviceInfo(this); + result.deviceId_ = deviceId_; + result.deviceType_ = deviceType_; + result.typeName_ = typeName_; + result.enabled_ = enabled_; + result.managerState_ = managerState_; + result.health_ = health_; + result.hasError_ = hasError_; + result.errorMessage_ = errorMessage_; + result.statusUpdatedAtUnixMs_ = statusUpdatedAtUnixMs_; + 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.SystemCommand.SystemDeviceInfo) { + return mergeFrom((cmvr.api.SystemCommand.SystemDeviceInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SystemCommand.SystemDeviceInfo other) { + if (other == cmvr.api.SystemCommand.SystemDeviceInfo.getDefaultInstance()) return this; + if (!other.getDeviceId().isEmpty()) { + deviceId_ = other.deviceId_; + onChanged(); + } + if (other.deviceType_ != 0) { + setDeviceTypeValue(other.getDeviceTypeValue()); + } + if (!other.getTypeName().isEmpty()) { + typeName_ = other.typeName_; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.managerState_ != 0) { + setManagerStateValue(other.getManagerStateValue()); + } + if (other.health_ != 0) { + setHealthValue(other.getHealthValue()); + } + if (other.getHasError() != false) { + setHasError(other.getHasError()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + onChanged(); + } + if (other.getStatusUpdatedAtUnixMs() != 0L) { + setStatusUpdatedAtUnixMs(other.getStatusUpdatedAtUnixMs()); + } + 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 16: { + deviceType_ = input.readEnum(); + + break; + } // case 16 + case 26: { + typeName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + enabled_ = input.readBool(); + + break; + } // case 32 + case 40: { + managerState_ = input.readEnum(); + + break; + } // case 40 + case 48: { + health_ = input.readEnum(); + + break; + } // case 48 + case 56: { + hasError_ = input.readBool(); + + break; + } // case 56 + case 66: { + errorMessage_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 72: { + statusUpdatedAtUnixMs_ = input.readUInt64(); + + break; + } // case 72 + 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 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 int deviceType_ = 0; + /** + * .cmvr.api.SystemDeviceType device_type = 2; + * @return The enum numeric value on the wire for deviceType. + */ + @java.lang.Override public int getDeviceTypeValue() { + return deviceType_; + } + /** + * .cmvr.api.SystemDeviceType device_type = 2; + * @param value The enum numeric value on the wire for deviceType to set. + * @return This builder for chaining. + */ + public Builder setDeviceTypeValue(int value) { + + deviceType_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SystemDeviceType device_type = 2; + * @return The deviceType. + */ + @java.lang.Override + public cmvr.api.SystemCommand.SystemDeviceType getDeviceType() { + @SuppressWarnings("deprecation") + cmvr.api.SystemCommand.SystemDeviceType result = cmvr.api.SystemCommand.SystemDeviceType.valueOf(deviceType_); + return result == null ? cmvr.api.SystemCommand.SystemDeviceType.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SystemDeviceType device_type = 2; + * @param value The deviceType to set. + * @return This builder for chaining. + */ + public Builder setDeviceType(cmvr.api.SystemCommand.SystemDeviceType value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SystemDeviceType device_type = 2; + * @return This builder for chaining. + */ + public Builder clearDeviceType() { + + deviceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object typeName_ = ""; + /** + *
+       * Concrete backend name for display and diagnostics only. Consumers must
+       * use device_type, rather than this free-form string, for decisions.
+       * 
+ * + * string type_name = 3; + * @return The typeName. + */ + public java.lang.String getTypeName() { + java.lang.Object ref = typeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + typeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Concrete backend name for display and diagnostics only. Consumers must
+       * use device_type, rather than this free-form string, for decisions.
+       * 
+ * + * string type_name = 3; + * @return The bytes for typeName. + */ + public com.google.protobuf.ByteString + getTypeNameBytes() { + java.lang.Object ref = typeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Concrete backend name for display and diagnostics only. Consumers must
+       * use device_type, rather than this free-form string, for decisions.
+       * 
+ * + * string type_name = 3; + * @param value The typeName to set. + * @return This builder for chaining. + */ + public Builder setTypeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + typeName_ = value; + onChanged(); + return this; + } + /** + *
+       * Concrete backend name for display and diagnostics only. Consumers must
+       * use device_type, rather than this free-form string, for decisions.
+       * 
+ * + * string type_name = 3; + * @return This builder for chaining. + */ + public Builder clearTypeName() { + + typeName_ = getDefaultInstance().getTypeName(); + onChanged(); + return this; + } + /** + *
+       * Concrete backend name for display and diagnostics only. Consumers must
+       * use device_type, rather than this free-form string, for decisions.
+       * 
+ * + * string type_name = 3; + * @param value The bytes for typeName to set. + * @return This builder for chaining. + */ + public Builder setTypeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + typeName_ = value; + onChanged(); + return this; + } + + private boolean enabled_ ; + /** + *
+       * GetDeviceList currently publishes only enabled entries. Keep this field
+       * explicit so each row remains self-describing and future-compatible.
+       * 
+ * + * bool enabled = 4; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+       * GetDeviceList currently publishes only enabled entries. Keep this field
+       * explicit so each row remains self-describing and future-compatible.
+       * 
+ * + * bool enabled = 4; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+       * GetDeviceList currently publishes only enabled entries. Keep this field
+       * explicit so each row remains self-describing and future-compatible.
+       * 
+ * + * bool enabled = 4; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private int managerState_ = 0; + /** + * .cmvr.api.SystemDeviceState manager_state = 5; + * @return The enum numeric value on the wire for managerState. + */ + @java.lang.Override public int getManagerStateValue() { + return managerState_; + } + /** + * .cmvr.api.SystemDeviceState manager_state = 5; + * @param value The enum numeric value on the wire for managerState to set. + * @return This builder for chaining. + */ + public Builder setManagerStateValue(int value) { + + managerState_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SystemDeviceState manager_state = 5; + * @return The managerState. + */ + @java.lang.Override + public cmvr.api.SystemCommand.SystemDeviceState getManagerState() { + @SuppressWarnings("deprecation") + cmvr.api.SystemCommand.SystemDeviceState result = cmvr.api.SystemCommand.SystemDeviceState.valueOf(managerState_); + return result == null ? cmvr.api.SystemCommand.SystemDeviceState.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SystemDeviceState manager_state = 5; + * @param value The managerState to set. + * @return This builder for chaining. + */ + public Builder setManagerState(cmvr.api.SystemCommand.SystemDeviceState value) { + if (value == null) { + throw new NullPointerException(); + } + + managerState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SystemDeviceState manager_state = 5; + * @return This builder for chaining. + */ + public Builder clearManagerState() { + + managerState_ = 0; + onChanged(); + return this; + } + + private int health_ = 0; + /** + * .cmvr.api.SystemDeviceHealth health = 6; + * @return The enum numeric value on the wire for health. + */ + @java.lang.Override public int getHealthValue() { + return health_; + } + /** + * .cmvr.api.SystemDeviceHealth health = 6; + * @param value The enum numeric value on the wire for health to set. + * @return This builder for chaining. + */ + public Builder setHealthValue(int value) { + + health_ = value; + onChanged(); + return this; + } + /** + * .cmvr.api.SystemDeviceHealth health = 6; + * @return The health. + */ + @java.lang.Override + public cmvr.api.SystemCommand.SystemDeviceHealth getHealth() { + @SuppressWarnings("deprecation") + cmvr.api.SystemCommand.SystemDeviceHealth result = cmvr.api.SystemCommand.SystemDeviceHealth.valueOf(health_); + return result == null ? cmvr.api.SystemCommand.SystemDeviceHealth.UNRECOGNIZED : result; + } + /** + * .cmvr.api.SystemDeviceHealth health = 6; + * @param value The health to set. + * @return This builder for chaining. + */ + public Builder setHealth(cmvr.api.SystemCommand.SystemDeviceHealth value) { + if (value == null) { + throw new NullPointerException(); + } + + health_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cmvr.api.SystemDeviceHealth health = 6; + * @return This builder for chaining. + */ + public Builder clearHealth() { + + health_ = 0; + onChanged(); + return this; + } + + private boolean hasError_ ; + /** + * bool has_error = 7; + * @return The hasError. + */ + @java.lang.Override + public boolean getHasError() { + return hasError_; + } + /** + * bool has_error = 7; + * @param value The hasError to set. + * @return This builder for chaining. + */ + public Builder setHasError(boolean value) { + + hasError_ = value; + onChanged(); + return this; + } + /** + * bool has_error = 7; + * @return This builder for chaining. + */ + public Builder clearHasError() { + + hasError_ = false; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + * string error_message = 8; + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error_message = 8; + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString + getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error_message = 8; + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errorMessage_ = value; + onChanged(); + return this; + } + /** + * string error_message = 8; + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + + errorMessage_ = getDefaultInstance().getErrorMessage(); + onChanged(); + return this; + } + /** + * string error_message = 8; + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorMessage_ = value; + onChanged(); + return this; + } + + private long statusUpdatedAtUnixMs_ ; + /** + * uint64 status_updated_at_unix_ms = 9; + * @return The statusUpdatedAtUnixMs. + */ + @java.lang.Override + public long getStatusUpdatedAtUnixMs() { + return statusUpdatedAtUnixMs_; + } + /** + * uint64 status_updated_at_unix_ms = 9; + * @param value The statusUpdatedAtUnixMs to set. + * @return This builder for chaining. + */ + public Builder setStatusUpdatedAtUnixMs(long value) { + + statusUpdatedAtUnixMs_ = value; + onChanged(); + return this; + } + /** + * uint64 status_updated_at_unix_ms = 9; + * @return This builder for chaining. + */ + public Builder clearStatusUpdatedAtUnixMs() { + + statusUpdatedAtUnixMs_ = 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.SystemDeviceInfo) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.SystemDeviceInfo) + private static final cmvr.api.SystemCommand.SystemDeviceInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SystemCommand.SystemDeviceInfo(); + } + + public static cmvr.api.SystemCommand.SystemDeviceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SystemDeviceInfo 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.SystemCommand.SystemDeviceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetDeviceListCommandOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.GetDeviceListCommand) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code cmvr.api.GetDeviceListCommand} + */ + public static final class GetDeviceListCommand extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.GetDeviceListCommand) + GetDeviceListCommandOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDeviceListCommand.newBuilder() to construct. + private GetDeviceListCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetDeviceListCommand() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetDeviceListCommand(); + } + + @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.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SystemCommand.GetDeviceListCommand.class, cmvr.api.SystemCommand.GetDeviceListCommand.Builder.class); + } + + public interface RequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.GetDeviceListCommand.Request) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code cmvr.api.GetDeviceListCommand.Request} + */ + public static final class Request extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.GetDeviceListCommand.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.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SystemCommand.GetDeviceListCommand.Request.class, cmvr.api.SystemCommand.GetDeviceListCommand.Request.Builder.class); + } + + 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.SystemCommand.GetDeviceListCommand.Request)) { + return super.equals(obj); + } + cmvr.api.SystemCommand.GetDeviceListCommand.Request other = (cmvr.api.SystemCommand.GetDeviceListCommand.Request) 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.SystemCommand.GetDeviceListCommand.Request parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.Request parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.Request parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.Request parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.Request parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.Request parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.Request parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.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.GetDeviceListCommand.Request} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.GetDeviceListCommand.Request) + cmvr.api.SystemCommand.GetDeviceListCommand.RequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SystemCommand.GetDeviceListCommand.Request.class, cmvr.api.SystemCommand.GetDeviceListCommand.Request.Builder.class); + } + + // Construct using cmvr.api.SystemCommand.GetDeviceListCommand.Request.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.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_Request_descriptor; + } + + @java.lang.Override + public cmvr.api.SystemCommand.GetDeviceListCommand.Request getDefaultInstanceForType() { + return cmvr.api.SystemCommand.GetDeviceListCommand.Request.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SystemCommand.GetDeviceListCommand.Request build() { + cmvr.api.SystemCommand.GetDeviceListCommand.Request result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SystemCommand.GetDeviceListCommand.Request buildPartial() { + cmvr.api.SystemCommand.GetDeviceListCommand.Request result = new cmvr.api.SystemCommand.GetDeviceListCommand.Request(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.SystemCommand.GetDeviceListCommand.Request) { + return mergeFrom((cmvr.api.SystemCommand.GetDeviceListCommand.Request)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SystemCommand.GetDeviceListCommand.Request other) { + if (other == cmvr.api.SystemCommand.GetDeviceListCommand.Request.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.GetDeviceListCommand.Request) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.GetDeviceListCommand.Request) + private static final cmvr.api.SystemCommand.GetDeviceListCommand.Request DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SystemCommand.GetDeviceListCommand.Request(); + } + + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.Request getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FeedbackOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.api.GetDeviceListCommand.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(); + + /** + * string manager_name = 2; + * @return The managerName. + */ + java.lang.String getManagerName(); + /** + * string manager_name = 2; + * @return The bytes for managerName. + */ + com.google.protobuf.ByteString + getManagerNameBytes(); + + /** + * string manager_version = 3; + * @return The managerVersion. + */ + java.lang.String getManagerVersion(); + /** + * string manager_version = 3; + * @return The bytes for managerVersion. + */ + com.google.protobuf.ByteString + getManagerVersionBytes(); + + /** + * string manager_description = 4; + * @return The managerDescription. + */ + java.lang.String getManagerDescription(); + /** + * string manager_description = 4; + * @return The bytes for managerDescription. + */ + com.google.protobuf.ByteString + getManagerDescriptionBytes(); + + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + java.util.List + getDeviceListList(); + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + cmvr.api.SystemCommand.SystemDeviceInfo getDeviceList(int index); + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + int getDeviceListCount(); + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + java.util.List + getDeviceListOrBuilderList(); + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + cmvr.api.SystemCommand.SystemDeviceInfoOrBuilder getDeviceListOrBuilder( + int index); + + /** + * uint64 sampled_at_unix_ms = 6; + * @return The sampledAtUnixMs. + */ + long getSampledAtUnixMs(); + } + /** + * Protobuf type {@code cmvr.api.GetDeviceListCommand.Feedback} + */ + public static final class Feedback extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.api.GetDeviceListCommand.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() { + managerName_ = ""; + managerVersion_ = ""; + managerDescription_ = ""; + deviceList_ = 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.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_Feedback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_Feedback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SystemCommand.GetDeviceListCommand.Feedback.class, cmvr.api.SystemCommand.GetDeviceListCommand.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 MANAGER_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object managerName_; + /** + * string manager_name = 2; + * @return The managerName. + */ + @java.lang.Override + public java.lang.String getManagerName() { + java.lang.Object ref = managerName_; + 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(); + managerName_ = s; + return s; + } + } + /** + * string manager_name = 2; + * @return The bytes for managerName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getManagerNameBytes() { + java.lang.Object ref = managerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + managerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGER_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object managerVersion_; + /** + * string manager_version = 3; + * @return The managerVersion. + */ + @java.lang.Override + public java.lang.String getManagerVersion() { + java.lang.Object ref = managerVersion_; + 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(); + managerVersion_ = s; + return s; + } + } + /** + * string manager_version = 3; + * @return The bytes for managerVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getManagerVersionBytes() { + java.lang.Object ref = managerVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + managerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGER_DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object managerDescription_; + /** + * string manager_description = 4; + * @return The managerDescription. + */ + @java.lang.Override + public java.lang.String getManagerDescription() { + java.lang.Object ref = managerDescription_; + 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(); + managerDescription_ = s; + return s; + } + } + /** + * string manager_description = 4; + * @return The bytes for managerDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getManagerDescriptionBytes() { + java.lang.Object ref = managerDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + managerDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_LIST_FIELD_NUMBER = 5; + private java.util.List deviceList_; + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + @java.lang.Override + public java.util.List getDeviceListList() { + return deviceList_; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + @java.lang.Override + public java.util.List + getDeviceListOrBuilderList() { + return deviceList_; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + @java.lang.Override + public int getDeviceListCount() { + return deviceList_.size(); + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + @java.lang.Override + public cmvr.api.SystemCommand.SystemDeviceInfo getDeviceList(int index) { + return deviceList_.get(index); + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + @java.lang.Override + public cmvr.api.SystemCommand.SystemDeviceInfoOrBuilder getDeviceListOrBuilder( + int index) { + return deviceList_.get(index); + } + + public static final int SAMPLED_AT_UNIX_MS_FIELD_NUMBER = 6; + private long sampledAtUnixMs_; + /** + * uint64 sampled_at_unix_ms = 6; + * @return The sampledAtUnixMs. + */ + @java.lang.Override + public long getSampledAtUnixMs() { + return sampledAtUnixMs_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managerName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, managerName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managerVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, managerVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managerDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, managerDescription_); + } + for (int i = 0; i < deviceList_.size(); i++) { + output.writeMessage(5, deviceList_.get(i)); + } + if (sampledAtUnixMs_ != 0L) { + output.writeUInt64(6, sampledAtUnixMs_); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managerName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, managerName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managerVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, managerVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managerDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, managerDescription_); + } + for (int i = 0; i < deviceList_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, deviceList_.get(i)); + } + if (sampledAtUnixMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, sampledAtUnixMs_); + } + 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.SystemCommand.GetDeviceListCommand.Feedback)) { + return super.equals(obj); + } + cmvr.api.SystemCommand.GetDeviceListCommand.Feedback other = (cmvr.api.SystemCommand.GetDeviceListCommand.Feedback) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getManagerName() + .equals(other.getManagerName())) return false; + if (!getManagerVersion() + .equals(other.getManagerVersion())) return false; + if (!getManagerDescription() + .equals(other.getManagerDescription())) return false; + if (!getDeviceListList() + .equals(other.getDeviceListList())) return false; + if (getSampledAtUnixMs() + != other.getSampledAtUnixMs()) 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) + MANAGER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getManagerName().hashCode(); + hash = (37 * hash) + MANAGER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getManagerVersion().hashCode(); + hash = (37 * hash) + MANAGER_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getManagerDescription().hashCode(); + if (getDeviceListCount() > 0) { + hash = (37 * hash) + DEVICE_LIST_FIELD_NUMBER; + hash = (53 * hash) + getDeviceListList().hashCode(); + } + hash = (37 * hash) + SAMPLED_AT_UNIX_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSampledAtUnixMs()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.api.SystemCommand.GetDeviceListCommand.Feedback parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.Feedback parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.Feedback parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.Feedback parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.Feedback parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.Feedback parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.Feedback parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.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.GetDeviceListCommand.Feedback} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.GetDeviceListCommand.Feedback) + cmvr.api.SystemCommand.GetDeviceListCommand.FeedbackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_Feedback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_Feedback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SystemCommand.GetDeviceListCommand.Feedback.class, cmvr.api.SystemCommand.GetDeviceListCommand.Feedback.Builder.class); + } + + // Construct using cmvr.api.SystemCommand.GetDeviceListCommand.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; + } + managerName_ = ""; + + managerVersion_ = ""; + + managerDescription_ = ""; + + if (deviceListBuilder_ == null) { + deviceList_ = java.util.Collections.emptyList(); + } else { + deviceList_ = null; + deviceListBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + sampledAtUnixMs_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_Feedback_descriptor; + } + + @java.lang.Override + public cmvr.api.SystemCommand.GetDeviceListCommand.Feedback getDefaultInstanceForType() { + return cmvr.api.SystemCommand.GetDeviceListCommand.Feedback.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SystemCommand.GetDeviceListCommand.Feedback build() { + cmvr.api.SystemCommand.GetDeviceListCommand.Feedback result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SystemCommand.GetDeviceListCommand.Feedback buildPartial() { + cmvr.api.SystemCommand.GetDeviceListCommand.Feedback result = new cmvr.api.SystemCommand.GetDeviceListCommand.Feedback(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.managerName_ = managerName_; + result.managerVersion_ = managerVersion_; + result.managerDescription_ = managerDescription_; + if (deviceListBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deviceList_ = java.util.Collections.unmodifiableList(deviceList_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deviceList_ = deviceList_; + } else { + result.deviceList_ = deviceListBuilder_.build(); + } + result.sampledAtUnixMs_ = sampledAtUnixMs_; + 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.SystemCommand.GetDeviceListCommand.Feedback) { + return mergeFrom((cmvr.api.SystemCommand.GetDeviceListCommand.Feedback)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SystemCommand.GetDeviceListCommand.Feedback other) { + if (other == cmvr.api.SystemCommand.GetDeviceListCommand.Feedback.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (!other.getManagerName().isEmpty()) { + managerName_ = other.managerName_; + onChanged(); + } + if (!other.getManagerVersion().isEmpty()) { + managerVersion_ = other.managerVersion_; + onChanged(); + } + if (!other.getManagerDescription().isEmpty()) { + managerDescription_ = other.managerDescription_; + onChanged(); + } + if (deviceListBuilder_ == null) { + if (!other.deviceList_.isEmpty()) { + if (deviceList_.isEmpty()) { + deviceList_ = other.deviceList_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeviceListIsMutable(); + deviceList_.addAll(other.deviceList_); + } + onChanged(); + } + } else { + if (!other.deviceList_.isEmpty()) { + if (deviceListBuilder_.isEmpty()) { + deviceListBuilder_.dispose(); + deviceListBuilder_ = null; + deviceList_ = other.deviceList_; + bitField0_ = (bitField0_ & ~0x00000001); + deviceListBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDeviceListFieldBuilder() : null; + } else { + deviceListBuilder_.addAllMessages(other.deviceList_); + } + } + } + if (other.getSampledAtUnixMs() != 0L) { + setSampledAtUnixMs(other.getSampledAtUnixMs()); + } + 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 18: { + managerName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + managerVersion_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + managerDescription_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + cmvr.api.SystemCommand.SystemDeviceInfo m = + input.readMessage( + cmvr.api.SystemCommand.SystemDeviceInfo.parser(), + extensionRegistry); + if (deviceListBuilder_ == null) { + ensureDeviceListIsMutable(); + deviceList_.add(m); + } else { + deviceListBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: { + sampledAtUnixMs_ = input.readUInt64(); + + 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 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 java.lang.Object managerName_ = ""; + /** + * string manager_name = 2; + * @return The managerName. + */ + public java.lang.String getManagerName() { + java.lang.Object ref = managerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + managerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string manager_name = 2; + * @return The bytes for managerName. + */ + public com.google.protobuf.ByteString + getManagerNameBytes() { + java.lang.Object ref = managerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + managerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string manager_name = 2; + * @param value The managerName to set. + * @return This builder for chaining. + */ + public Builder setManagerName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + managerName_ = value; + onChanged(); + return this; + } + /** + * string manager_name = 2; + * @return This builder for chaining. + */ + public Builder clearManagerName() { + + managerName_ = getDefaultInstance().getManagerName(); + onChanged(); + return this; + } + /** + * string manager_name = 2; + * @param value The bytes for managerName to set. + * @return This builder for chaining. + */ + public Builder setManagerNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + managerName_ = value; + onChanged(); + return this; + } + + private java.lang.Object managerVersion_ = ""; + /** + * string manager_version = 3; + * @return The managerVersion. + */ + public java.lang.String getManagerVersion() { + java.lang.Object ref = managerVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + managerVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string manager_version = 3; + * @return The bytes for managerVersion. + */ + public com.google.protobuf.ByteString + getManagerVersionBytes() { + java.lang.Object ref = managerVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + managerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string manager_version = 3; + * @param value The managerVersion to set. + * @return This builder for chaining. + */ + public Builder setManagerVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + managerVersion_ = value; + onChanged(); + return this; + } + /** + * string manager_version = 3; + * @return This builder for chaining. + */ + public Builder clearManagerVersion() { + + managerVersion_ = getDefaultInstance().getManagerVersion(); + onChanged(); + return this; + } + /** + * string manager_version = 3; + * @param value The bytes for managerVersion to set. + * @return This builder for chaining. + */ + public Builder setManagerVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + managerVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object managerDescription_ = ""; + /** + * string manager_description = 4; + * @return The managerDescription. + */ + public java.lang.String getManagerDescription() { + java.lang.Object ref = managerDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + managerDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string manager_description = 4; + * @return The bytes for managerDescription. + */ + public com.google.protobuf.ByteString + getManagerDescriptionBytes() { + java.lang.Object ref = managerDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + managerDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string manager_description = 4; + * @param value The managerDescription to set. + * @return This builder for chaining. + */ + public Builder setManagerDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + managerDescription_ = value; + onChanged(); + return this; + } + /** + * string manager_description = 4; + * @return This builder for chaining. + */ + public Builder clearManagerDescription() { + + managerDescription_ = getDefaultInstance().getManagerDescription(); + onChanged(); + return this; + } + /** + * string manager_description = 4; + * @param value The bytes for managerDescription to set. + * @return This builder for chaining. + */ + public Builder setManagerDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + managerDescription_ = value; + onChanged(); + return this; + } + + private java.util.List deviceList_ = + java.util.Collections.emptyList(); + private void ensureDeviceListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deviceList_ = new java.util.ArrayList(deviceList_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SystemCommand.SystemDeviceInfo, cmvr.api.SystemCommand.SystemDeviceInfo.Builder, cmvr.api.SystemCommand.SystemDeviceInfoOrBuilder> deviceListBuilder_; + + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public java.util.List getDeviceListList() { + if (deviceListBuilder_ == null) { + return java.util.Collections.unmodifiableList(deviceList_); + } else { + return deviceListBuilder_.getMessageList(); + } + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public int getDeviceListCount() { + if (deviceListBuilder_ == null) { + return deviceList_.size(); + } else { + return deviceListBuilder_.getCount(); + } + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public cmvr.api.SystemCommand.SystemDeviceInfo getDeviceList(int index) { + if (deviceListBuilder_ == null) { + return deviceList_.get(index); + } else { + return deviceListBuilder_.getMessage(index); + } + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public Builder setDeviceList( + int index, cmvr.api.SystemCommand.SystemDeviceInfo value) { + if (deviceListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceListIsMutable(); + deviceList_.set(index, value); + onChanged(); + } else { + deviceListBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public Builder setDeviceList( + int index, cmvr.api.SystemCommand.SystemDeviceInfo.Builder builderForValue) { + if (deviceListBuilder_ == null) { + ensureDeviceListIsMutable(); + deviceList_.set(index, builderForValue.build()); + onChanged(); + } else { + deviceListBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public Builder addDeviceList(cmvr.api.SystemCommand.SystemDeviceInfo value) { + if (deviceListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceListIsMutable(); + deviceList_.add(value); + onChanged(); + } else { + deviceListBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public Builder addDeviceList( + int index, cmvr.api.SystemCommand.SystemDeviceInfo value) { + if (deviceListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceListIsMutable(); + deviceList_.add(index, value); + onChanged(); + } else { + deviceListBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public Builder addDeviceList( + cmvr.api.SystemCommand.SystemDeviceInfo.Builder builderForValue) { + if (deviceListBuilder_ == null) { + ensureDeviceListIsMutable(); + deviceList_.add(builderForValue.build()); + onChanged(); + } else { + deviceListBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public Builder addDeviceList( + int index, cmvr.api.SystemCommand.SystemDeviceInfo.Builder builderForValue) { + if (deviceListBuilder_ == null) { + ensureDeviceListIsMutable(); + deviceList_.add(index, builderForValue.build()); + onChanged(); + } else { + deviceListBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public Builder addAllDeviceList( + java.lang.Iterable values) { + if (deviceListBuilder_ == null) { + ensureDeviceListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deviceList_); + onChanged(); + } else { + deviceListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public Builder clearDeviceList() { + if (deviceListBuilder_ == null) { + deviceList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deviceListBuilder_.clear(); + } + return this; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public Builder removeDeviceList(int index) { + if (deviceListBuilder_ == null) { + ensureDeviceListIsMutable(); + deviceList_.remove(index); + onChanged(); + } else { + deviceListBuilder_.remove(index); + } + return this; + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public cmvr.api.SystemCommand.SystemDeviceInfo.Builder getDeviceListBuilder( + int index) { + return getDeviceListFieldBuilder().getBuilder(index); + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public cmvr.api.SystemCommand.SystemDeviceInfoOrBuilder getDeviceListOrBuilder( + int index) { + if (deviceListBuilder_ == null) { + return deviceList_.get(index); } else { + return deviceListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public java.util.List + getDeviceListOrBuilderList() { + if (deviceListBuilder_ != null) { + return deviceListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deviceList_); + } + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public cmvr.api.SystemCommand.SystemDeviceInfo.Builder addDeviceListBuilder() { + return getDeviceListFieldBuilder().addBuilder( + cmvr.api.SystemCommand.SystemDeviceInfo.getDefaultInstance()); + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public cmvr.api.SystemCommand.SystemDeviceInfo.Builder addDeviceListBuilder( + int index) { + return getDeviceListFieldBuilder().addBuilder( + index, cmvr.api.SystemCommand.SystemDeviceInfo.getDefaultInstance()); + } + /** + * repeated .cmvr.api.SystemDeviceInfo device_list = 5; + */ + public java.util.List + getDeviceListBuilderList() { + return getDeviceListFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SystemCommand.SystemDeviceInfo, cmvr.api.SystemCommand.SystemDeviceInfo.Builder, cmvr.api.SystemCommand.SystemDeviceInfoOrBuilder> + getDeviceListFieldBuilder() { + if (deviceListBuilder_ == null) { + deviceListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + cmvr.api.SystemCommand.SystemDeviceInfo, cmvr.api.SystemCommand.SystemDeviceInfo.Builder, cmvr.api.SystemCommand.SystemDeviceInfoOrBuilder>( + deviceList_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deviceList_ = null; + } + return deviceListBuilder_; + } + + private long sampledAtUnixMs_ ; + /** + * uint64 sampled_at_unix_ms = 6; + * @return The sampledAtUnixMs. + */ + @java.lang.Override + public long getSampledAtUnixMs() { + return sampledAtUnixMs_; + } + /** + * uint64 sampled_at_unix_ms = 6; + * @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 = 6; + * @return This builder for chaining. + */ + public Builder clearSampledAtUnixMs() { + + sampledAtUnixMs_ = 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.GetDeviceListCommand.Feedback) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.GetDeviceListCommand.Feedback) + private static final cmvr.api.SystemCommand.GetDeviceListCommand.Feedback DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SystemCommand.GetDeviceListCommand.Feedback(); + } + + public static cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand.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.SystemCommand.GetDeviceListCommand)) { + return super.equals(obj); + } + cmvr.api.SystemCommand.GetDeviceListCommand other = (cmvr.api.SystemCommand.GetDeviceListCommand) 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.SystemCommand.GetDeviceListCommand parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand 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.SystemCommand.GetDeviceListCommand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand 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.SystemCommand.GetDeviceListCommand parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand 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.SystemCommand.GetDeviceListCommand parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.api.SystemCommand.GetDeviceListCommand 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.SystemCommand.GetDeviceListCommand 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.GetDeviceListCommand} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.api.GetDeviceListCommand) + cmvr.api.SystemCommand.GetDeviceListCommandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.api.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.api.SystemCommand.GetDeviceListCommand.class, cmvr.api.SystemCommand.GetDeviceListCommand.Builder.class); + } + + // Construct using cmvr.api.SystemCommand.GetDeviceListCommand.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.SystemCommand.internal_static_cmvr_api_GetDeviceListCommand_descriptor; + } + + @java.lang.Override + public cmvr.api.SystemCommand.GetDeviceListCommand getDefaultInstanceForType() { + return cmvr.api.SystemCommand.GetDeviceListCommand.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.api.SystemCommand.GetDeviceListCommand build() { + cmvr.api.SystemCommand.GetDeviceListCommand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.api.SystemCommand.GetDeviceListCommand buildPartial() { + cmvr.api.SystemCommand.GetDeviceListCommand result = new cmvr.api.SystemCommand.GetDeviceListCommand(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.SystemCommand.GetDeviceListCommand) { + return mergeFrom((cmvr.api.SystemCommand.GetDeviceListCommand)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.api.SystemCommand.GetDeviceListCommand other) { + if (other == cmvr.api.SystemCommand.GetDeviceListCommand.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.GetDeviceListCommand) + } + + // @@protoc_insertion_point(class_scope:cmvr.api.GetDeviceListCommand) + private static final cmvr.api.SystemCommand.GetDeviceListCommand DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.api.SystemCommand.GetDeviceListCommand(); + } + + public static cmvr.api.SystemCommand.GetDeviceListCommand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeviceListCommand 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.SystemCommand.GetDeviceListCommand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface GetSystemInfoCommandOrBuilder extends // @@protoc_insertion_point(interface_extends:cmvr.api.GetSystemInfoCommand) com.google.protobuf.MessageOrBuilder { @@ -8831,6 +13097,26 @@ public final class SystemCommand { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cmvr_api_DeviceList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_SystemDeviceInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_SystemDeviceInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_GetDeviceListCommand_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_GetDeviceListCommand_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_GetDeviceListCommand_Request_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_GetDeviceListCommand_Request_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_api_GetDeviceListCommand_Feedback_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_api_GetDeviceListCommand_Feedback_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cmvr_api_GetSystemInfoCommand_descriptor; private static final @@ -8903,30 +13189,69 @@ public final class SystemCommand { "\n\035cmvr/api/system_command.proto\022\010cmvr.ap" + "i\032\025cmvr/api/common.proto\"J\n\nDeviceList\022\021" + "\n\tdevice_id\030\001 \001(\t\022)\n\013device_type\030\002 \001(\0162\024" + - ".cmvr.api.DeviceType\"\325\001\n\024GetSystemInfoCo" + - "mmand\032\t\n\007Request\032\261\001\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" + - "\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\"\370\001\n" + - "\026GetSystemStatusCommand\032\t\n\007Request\032\322\001\n\010F" + - "eedback\0220\n\006header\030\001 \001(\0132 .cmvr.api.Comma" + - "ndHeader.Feedback\022\021\n\tcpu_usage\030\002 \001(\002\022\024\n\014" + - "mem_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.Dev" + - "iceList\"\266\001\n\023UpdateParamsCommand\032a\n\007Reque" + - "st\022/\n\006header\030\001 \001(\0132\037.cmvr.api.CommandHea" + - "der.Request\022%\n\006params\030\002 \003(\0132\025.cmvr.api.C" + - "onfigParam\032<\n\010Feedback\0220\n\006header\030\001 \001(\0132 " + - ".cmvr.api.CommandHeader.Feedback\"\212\001\n\016Sto" + - "pAllCommand\032:\n\007Request\022/\n\006header\030\001 \001(\0132\037" + - ".cmvr.api.CommandHeader.Request\032<\n\010Feedb" + - "ack\0220\n\006header\030\001 \001(\0132 .cmvr.api.CommandHe" + - "ader.Feedback*}\n\nDeviceType\022\007\n\003AGV\020\000\022\013\n\007" + - "Battery\020\001\022\n\n\006Camera\020\002\022\013\n\007DexHand\020\003\022\013\n\007Gr" + - "ipper\020\004\022\016\n\nMicrophone\020\005\022\t\n\005Robot\020\006\022\013\n\007Sp" + - "eaker\020\007\022\013\n\007Unknown\020\024b\006proto3" + ".cmvr.api.DeviceType\"\251\002\n\020SystemDeviceInf" + + "o\022\021\n\tdevice_id\030\001 \001(\t\022/\n\013device_type\030\002 \001(" + + "\0162\032.cmvr.api.SystemDeviceType\022\021\n\ttype_na" + + "me\030\003 \001(\t\022\017\n\007enabled\030\004 \001(\010\0222\n\rmanager_sta" + + "te\030\005 \001(\0162\033.cmvr.api.SystemDeviceState\022,\n" + + "\006health\030\006 \001(\0162\034.cmvr.api.SystemDeviceHea" + + "lth\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\024GetDeviceListCommand\032\t\n\007Request\032\325\001\n" + + "\010Feedback\0220\n\006header\030\001 \001(\0132 .cmvr.api.Com" + + "mandHeader.Feedback\022\024\n\014manager_name\030\002 \001(" + + "\t\022\027\n\017manager_version\030\003 \001(\t\022\033\n\023manager_de" + + "scription\030\004 \001(\t\022/\n\013device_list\030\005 \003(\0132\032.c" + + "mvr.api.SystemDeviceInfo\022\032\n\022sampled_at_u" + + "nix_ms\030\006 \001(\004\"\325\001\n\024GetSystemInfoCommand\032\t\n" + + "\007Request\032\261\001\n\010Feedback\0220\n\006header\030\001 \001(\0132 ." + + "cmvr.api.CommandHeader.Feedback\022\023\n\013syste" + + "m_name\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022\023\n\013descrip" + + "tion\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\"\370\001\n\026GetSyst" + + "emStatusCommand\032\t\n\007Request\032\322\001\n\010Feedback\022" + + "0\n\006header\030\001 \001(\0132 .cmvr.api.CommandHeader" + + ".Feedback\022\021\n\tcpu_usage\030\002 \001(\002\022\024\n\014mem_tota" + + "l_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\013" + + "device_list\030\007 \003(\0132\024.cmvr.api.DeviceList\"" + + "\266\001\n\023UpdateParamsCommand\032a\n\007Request\022/\n\006he" + + "ader\030\001 \001(\0132\037.cmvr.api.CommandHeader.Requ" + + "est\022%\n\006params\030\002 \003(\0132\025.cmvr.api.ConfigPar" + + "am\032<\n\010Feedback\0220\n\006header\030\001 \001(\0132 .cmvr.ap" + + "i.CommandHeader.Feedback\"\212\001\n\016StopAllComm" + + "and\032:\n\007Request\022/\n\006header\030\001 \001(\0132\037.cmvr.ap" + + "i.CommandHeader.Request\032<\n\010Feedback\0220\n\006h" + + "eader\030\001 \001(\0132 .cmvr.api.CommandHeader.Fee" + + "dback*}\n\nDeviceType\022\007\n\003AGV\020\000\022\013\n\007Battery\020" + + "\001\022\n\n\006Camera\020\002\022\013\n\007DexHand\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\020SystemDeviceType\022\"\n\036SYS" + + "TEM_DEVICE_TYPE_UNSPECIFIED\020\000\022\032\n\026SYSTEM_" + + "DEVICE_TYPE_AGV\020\001\022\032\n\026SYSTEM_DEVICE_TYPE_" + + "ARM\020\002\022\036\n\032SYSTEM_DEVICE_TYPE_BATTERY\020\003\022\037\n" + + "\033SYSTEM_DEVICE_TYPE_BIO_HEAD\020\004\022\035\n\031SYSTEM" + + "_DEVICE_TYPE_CAMERA\020\005\022\036\n\032SYSTEM_DEVICE_T" + + "YPE_CAN_BUS\020\006\022\037\n\033SYSTEM_DEVICE_TYPE_DEX_" + + "HAND\020\007\022\036\n\032SYSTEM_DEVICE_TYPE_GRIPPER\020\010\022!" + + "\n\035SYSTEM_DEVICE_TYPE_MICROPHONE\020\t\022\034\n\030SYS" + + "TEM_DEVICE_TYPE_MOTOR\020\n\022#\n\037SYSTEM_DEVICE" + + "_TYPE_MOTOR_SYSTEM\020\013\022$\n SYSTEM_DEVICE_TY" + + "PE_MUJOCO_VIEWER\020\014\022#\n\037SYSTEM_DEVICE_TYPE" + + "_MUJOCO_WORLD\020\r\022\034\n\030SYSTEM_DEVICE_TYPE_RO" + + "BOT\020\016\022\036\n\032SYSTEM_DEVICE_TYPE_SPEAKER\020\017*\244\002" + + "\n\021SystemDeviceState\022#\n\037SYSTEM_DEVICE_STA" + + "TE_UNSPECIFIED\020\000\022 \n\034SYSTEM_DEVICE_STATE_" + + "DISABLED\020\001\022$\n SYSTEM_DEVICE_STATE_INITIA" + + "LIZING\020\002\022\"\n\036SYSTEM_DEVICE_STATE_REGISTER" + + "ED\020\003\022\035\n\031SYSTEM_DEVICE_STATE_READY\020\004\022\037\n\033S" + + "YSTEM_DEVICE_STATE_RUNNING\020\005\022\037\n\033SYSTEM_D" + + "EVICE_STATE_STOPPED\020\006\022\035\n\031SYSTEM_DEVICE_S" + + "TATE_ERROR\020\007*\237\001\n\022SystemDeviceHealth\022$\n S" + + "YSTEM_DEVICE_HEALTH_UNSPECIFIED\020\000\022 \n\034SYS" + + "TEM_DEVICE_HEALTH_HEALTHY\020\001\022!\n\035SYSTEM_DE" + + "VICE_HEALTH_DEGRADED\020\002\022\036\n\032SYSTEM_DEVICE_" + + "HEALTH_FAULT\020\003b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -8939,8 +13264,32 @@ public final class SystemCommand { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cmvr_api_DeviceList_descriptor, new java.lang.String[] { "DeviceId", "DeviceType", }); - internal_static_cmvr_api_GetSystemInfoCommand_descriptor = + internal_static_cmvr_api_SystemDeviceInfo_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_cmvr_api_SystemDeviceInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_SystemDeviceInfo_descriptor, + new java.lang.String[] { "DeviceId", "DeviceType", "TypeName", "Enabled", "ManagerState", "Health", "HasError", "ErrorMessage", "StatusUpdatedAtUnixMs", }); + internal_static_cmvr_api_GetDeviceListCommand_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_cmvr_api_GetDeviceListCommand_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_GetDeviceListCommand_descriptor, + new java.lang.String[] { }); + internal_static_cmvr_api_GetDeviceListCommand_Request_descriptor = + internal_static_cmvr_api_GetDeviceListCommand_descriptor.getNestedTypes().get(0); + internal_static_cmvr_api_GetDeviceListCommand_Request_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_GetDeviceListCommand_Request_descriptor, + new java.lang.String[] { }); + internal_static_cmvr_api_GetDeviceListCommand_Feedback_descriptor = + internal_static_cmvr_api_GetDeviceListCommand_descriptor.getNestedTypes().get(1); + internal_static_cmvr_api_GetDeviceListCommand_Feedback_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_api_GetDeviceListCommand_Feedback_descriptor, + new java.lang.String[] { "Header", "ManagerName", "ManagerVersion", "ManagerDescription", "DeviceList", "SampledAtUnixMs", }); + internal_static_cmvr_api_GetSystemInfoCommand_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_cmvr_api_GetSystemInfoCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cmvr_api_GetSystemInfoCommand_descriptor, @@ -8958,7 +13307,7 @@ public final class SystemCommand { internal_static_cmvr_api_GetSystemInfoCommand_Feedback_descriptor, new java.lang.String[] { "Header", "SystemName", "Version", "Description", "Os", "KernelVersion", "Architecture", }); internal_static_cmvr_api_GetSystemStatusCommand_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(4); internal_static_cmvr_api_GetSystemStatusCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cmvr_api_GetSystemStatusCommand_descriptor, @@ -8976,7 +13325,7 @@ public final class SystemCommand { internal_static_cmvr_api_GetSystemStatusCommand_Feedback_descriptor, new java.lang.String[] { "Header", "CpuUsage", "MemTotalMb", "MemUsedMb", "DiskTotalGb", "DiskUsedGb", "DeviceList", }); internal_static_cmvr_api_UpdateParamsCommand_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_cmvr_api_UpdateParamsCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cmvr_api_UpdateParamsCommand_descriptor, @@ -8994,7 +13343,7 @@ public final class SystemCommand { internal_static_cmvr_api_UpdateParamsCommand_Feedback_descriptor, new java.lang.String[] { "Header", }); internal_static_cmvr_api_StopAllCommand_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_cmvr_api_StopAllCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cmvr_api_StopAllCommand_descriptor, 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 6b5fa63..8b5e7c9 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 @@ -77,6 +77,37 @@ public final class SystemServiceGrpc { return getGetSystemStatusMethod; } + private static volatile io.grpc.MethodDescriptor getGetDeviceListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDeviceList", + requestType = cmvr.api.SystemCommand.GetDeviceListCommand.Request.class, + responseType = cmvr.api.SystemCommand.GetDeviceListCommand.Feedback.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDeviceListMethod() { + io.grpc.MethodDescriptor getGetDeviceListMethod; + if ((getGetDeviceListMethod = SystemServiceGrpc.getGetDeviceListMethod) == null) { + synchronized (SystemServiceGrpc.class) { + if ((getGetDeviceListMethod = SystemServiceGrpc.getGetDeviceListMethod) == null) { + SystemServiceGrpc.getGetDeviceListMethod = getGetDeviceListMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeviceList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cmvr.api.SystemCommand.GetDeviceListCommand.Request.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cmvr.api.SystemCommand.GetDeviceListCommand.Feedback.getDefaultInstance())) + .setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("GetDeviceList")) + .build(); + } + } + } + return getGetDeviceListMethod; + } + private static volatile io.grpc.MethodDescriptor getUpdateParamsMethod; @@ -108,37 +139,6 @@ public final class SystemServiceGrpc { return getUpdateParamsMethod; } - private static volatile io.grpc.MethodDescriptor getExecuteJsonCommandMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExecuteJsonCommand", - requestType = cmvr.api.Common.JsonDeviceCommand.Request.class, - responseType = cmvr.api.Common.JsonDeviceCommand.Feedback.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExecuteJsonCommandMethod() { - io.grpc.MethodDescriptor getExecuteJsonCommandMethod; - if ((getExecuteJsonCommandMethod = SystemServiceGrpc.getExecuteJsonCommandMethod) == null) { - synchronized (SystemServiceGrpc.class) { - if ((getExecuteJsonCommandMethod = SystemServiceGrpc.getExecuteJsonCommandMethod) == null) { - SystemServiceGrpc.getExecuteJsonCommandMethod = getExecuteJsonCommandMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteJsonCommand")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cmvr.api.Common.JsonDeviceCommand.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cmvr.api.Common.JsonDeviceCommand.Feedback.getDefaultInstance())) - .setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("ExecuteJsonCommand")) - .build(); - } - } - } - return getExecuteJsonCommandMethod; - } - private static volatile io.grpc.MethodDescriptor getStopAllMethod; @@ -234,16 +234,16 @@ public final class SystemServiceGrpc { /** */ - public void updateParams(cmvr.api.SystemCommand.UpdateParamsCommand.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateParamsMethod(), responseObserver); + public void getDeviceList(cmvr.api.SystemCommand.GetDeviceListCommand.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeviceListMethod(), responseObserver); } /** */ - public void executeJsonCommand(cmvr.api.Common.JsonDeviceCommand.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteJsonCommandMethod(), responseObserver); + public void updateParams(cmvr.api.SystemCommand.UpdateParamsCommand.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateParamsMethod(), responseObserver); } /** @@ -269,6 +269,13 @@ public final class SystemServiceGrpc { cmvr.api.SystemCommand.GetSystemStatusCommand.Request, cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback>( this, METHODID_GET_SYSTEM_STATUS))) + .addMethod( + getGetDeviceListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + cmvr.api.SystemCommand.GetDeviceListCommand.Request, + cmvr.api.SystemCommand.GetDeviceListCommand.Feedback>( + this, METHODID_GET_DEVICE_LIST))) .addMethod( getUpdateParamsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -276,13 +283,6 @@ public final class SystemServiceGrpc { cmvr.api.SystemCommand.UpdateParamsCommand.Request, cmvr.api.SystemCommand.UpdateParamsCommand.Feedback>( this, METHODID_UPDATE_PARAMS))) - .addMethod( - getExecuteJsonCommandMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - cmvr.api.Common.JsonDeviceCommand.Request, - cmvr.api.Common.JsonDeviceCommand.Feedback>( - this, METHODID_EXECUTE_JSON_COMMAND))) .addMethod( getStopAllMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -326,18 +326,18 @@ public final class SystemServiceGrpc { /** */ - public void updateParams(cmvr.api.SystemCommand.UpdateParamsCommand.Request request, - io.grpc.stub.StreamObserver responseObserver) { + public void getDeviceList(cmvr.api.SystemCommand.GetDeviceListCommand.Request request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateParamsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetDeviceListMethod(), getCallOptions()), request, responseObserver); } /** */ - public void executeJsonCommand(cmvr.api.Common.JsonDeviceCommand.Request request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateParams(cmvr.api.SystemCommand.UpdateParamsCommand.Request request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExecuteJsonCommandMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateParamsMethod(), getCallOptions()), request, responseObserver); } /** @@ -379,16 +379,16 @@ public final class SystemServiceGrpc { /** */ - public cmvr.api.SystemCommand.UpdateParamsCommand.Feedback updateParams(cmvr.api.SystemCommand.UpdateParamsCommand.Request request) { + public cmvr.api.SystemCommand.GetDeviceListCommand.Feedback getDeviceList(cmvr.api.SystemCommand.GetDeviceListCommand.Request request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateParamsMethod(), getCallOptions(), request); + getChannel(), getGetDeviceListMethod(), getCallOptions(), request); } /** */ - public cmvr.api.Common.JsonDeviceCommand.Feedback executeJsonCommand(cmvr.api.Common.JsonDeviceCommand.Request request) { + public cmvr.api.SystemCommand.UpdateParamsCommand.Feedback updateParams(cmvr.api.SystemCommand.UpdateParamsCommand.Request request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExecuteJsonCommandMethod(), getCallOptions(), request); + getChannel(), getUpdateParamsMethod(), getCallOptions(), request); } /** @@ -431,18 +431,18 @@ public final class SystemServiceGrpc { /** */ - public com.google.common.util.concurrent.ListenableFuture updateParams( - cmvr.api.SystemCommand.UpdateParamsCommand.Request request) { + public com.google.common.util.concurrent.ListenableFuture getDeviceList( + cmvr.api.SystemCommand.GetDeviceListCommand.Request request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateParamsMethod(), getCallOptions()), request); + getChannel().newCall(getGetDeviceListMethod(), getCallOptions()), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture executeJsonCommand( - cmvr.api.Common.JsonDeviceCommand.Request request) { + public com.google.common.util.concurrent.ListenableFuture updateParams( + cmvr.api.SystemCommand.UpdateParamsCommand.Request request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExecuteJsonCommandMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateParamsMethod(), getCallOptions()), request); } /** @@ -456,8 +456,8 @@ public final class SystemServiceGrpc { private static final int METHODID_GET_SYSTEM_INFO = 0; private static final int METHODID_GET_SYSTEM_STATUS = 1; - private static final int METHODID_UPDATE_PARAMS = 2; - private static final int METHODID_EXECUTE_JSON_COMMAND = 3; + private static final int METHODID_GET_DEVICE_LIST = 2; + private static final int METHODID_UPDATE_PARAMS = 3; private static final int METHODID_STOP_ALL = 4; private static final class MethodHandlers implements @@ -485,14 +485,14 @@ public final class SystemServiceGrpc { serviceImpl.getSystemStatus((cmvr.api.SystemCommand.GetSystemStatusCommand.Request) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_DEVICE_LIST: + serviceImpl.getDeviceList((cmvr.api.SystemCommand.GetDeviceListCommand.Request) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_UPDATE_PARAMS: serviceImpl.updateParams((cmvr.api.SystemCommand.UpdateParamsCommand.Request) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_EXECUTE_JSON_COMMAND: - serviceImpl.executeJsonCommand((cmvr.api.Common.JsonDeviceCommand.Request) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; case METHODID_STOP_ALL: serviceImpl.stopAll((cmvr.api.SystemCommand.StopAllCommand.Request) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -560,8 +560,8 @@ public final class SystemServiceGrpc { .setSchemaDescriptor(new SystemServiceFileDescriptorSupplier()) .addMethod(getGetSystemInfoMethod()) .addMethod(getGetSystemStatusMethod()) + .addMethod(getGetDeviceListMethod()) .addMethod(getUpdateParamsMethod()) - .addMethod(getExecuteJsonCommandMethod()) .addMethod(getStopAllMethod()) .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 68d33c0..5c27447 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,29 +24,26 @@ public final class SystemServiceOuterClass { static { java.lang.String[] descriptorData = { "\n\035cmvr/api/system_service.proto\022\010cmvr.ap" + - "i\032\025cmvr/api/common.proto\032\035cmvr/api/syste" + - "m_command.proto2\363\003\n\rSystemService\022b\n\rGet" + - "SystemInfo\022&.cmvr.api.GetSystemInfoComma" + - "nd.Request\032\'.cmvr.api.GetSystemInfoComma" + - "nd.Feedback\"\000\022h\n\017GetSystemStatus\022(.cmvr." + - "api.GetSystemStatusCommand.Request\032).cmv" + - "r.api.GetSystemStatusCommand.Feedback\"\000\022" + - "_\n\014UpdateParams\022%.cmvr.api.UpdateParamsC" + - "ommand.Request\032&.cmvr.api.UpdateParamsCo" + - "mmand.Feedback\"\000\022a\n\022ExecuteJsonCommand\022#" + - ".cmvr.api.JsonDeviceCommand.Request\032$.cm" + - "vr.api.JsonDeviceCommand.Feedback\"\000\022P\n\007S" + - "topAll\022 .cmvr.api.StopAllCommand.Request" + - "\032!.cmvr.api.StopAllCommand.Feedback\"\000b\006p" + - "roto3" + "i\032\035cmvr/api/system_command.proto2\364\003\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\"\000b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - cmvr.api.Common.getDescriptor(), cmvr.api.SystemCommand.getDescriptor(), }); - cmvr.api.Common.getDescriptor(); cmvr.api.SystemCommand.getDescriptor(); } diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/common/Geometry.java b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/common/Geometry.java new file mode 100644 index 0000000..a8bbd6a --- /dev/null +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/java/cmvr/common/Geometry.java @@ -0,0 +1,9045 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: cmvr/common/geometry.proto + +package cmvr.common; + +public final class Geometry { + private Geometry() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface Vec2OrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.common.Vec2) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + boolean hasX(); + /** + * optional double x = 1; + * @return The x. + */ + double getX(); + + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + boolean hasY(); + /** + * optional double y = 2; + * @return The y. + */ + double getY(); + } + /** + * Protobuf type {@code cmvr.common.Vec2} + */ + public static final class Vec2 extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.common.Vec2) + Vec2OrBuilder { + private static final long serialVersionUID = 0L; + // Use Vec2.newBuilder() to construct. + private Vec2(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Vec2() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Vec2(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec2_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec2_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Vec2.class, cmvr.common.Geometry.Vec2.Builder.class); + } + + private int bitField0_; + public static final int X_FIELD_NUMBER = 1; + private double x_; + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + @java.lang.Override + public boolean hasX() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double x = 1; + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private double y_; + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + @java.lang.Override + public boolean hasY() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double y = 2; + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, x_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, y_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, x_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, y_); + } + 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.common.Geometry.Vec2)) { + return super.equals(obj); + } + cmvr.common.Geometry.Vec2 other = (cmvr.common.Geometry.Vec2) obj; + + if (hasX() != other.hasX()) return false; + if (hasX()) { + if (java.lang.Double.doubleToLongBits(getX()) + != java.lang.Double.doubleToLongBits( + other.getX())) return false; + } + if (hasY() != other.hasY()) return false; + if (hasY()) { + if (java.lang.Double.doubleToLongBits(getY()) + != java.lang.Double.doubleToLongBits( + other.getY())) 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 (hasX()) { + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getX())); + } + if (hasY()) { + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getY())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.common.Geometry.Vec2 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Vec2 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Vec2 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Vec2 parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Vec2 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Vec2 parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Vec2 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Vec2 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.common.Geometry.Vec2 parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Vec2 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.common.Geometry.Vec2 parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Vec2 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.common.Geometry.Vec2 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.common.Vec2} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.common.Vec2) + cmvr.common.Geometry.Vec2OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec2_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec2_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Vec2.class, cmvr.common.Geometry.Vec2.Builder.class); + } + + // Construct using cmvr.common.Geometry.Vec2.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + x_ = 0D; + bitField0_ = (bitField0_ & ~0x00000001); + y_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec2_descriptor; + } + + @java.lang.Override + public cmvr.common.Geometry.Vec2 getDefaultInstanceForType() { + return cmvr.common.Geometry.Vec2.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.common.Geometry.Vec2 build() { + cmvr.common.Geometry.Vec2 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.common.Geometry.Vec2 buildPartial() { + cmvr.common.Geometry.Vec2 result = new cmvr.common.Geometry.Vec2(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.x_ = x_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.y_ = y_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ = to_bitField0_; + 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.common.Geometry.Vec2) { + return mergeFrom((cmvr.common.Geometry.Vec2)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.common.Geometry.Vec2 other) { + if (other == cmvr.common.Geometry.Vec2.getDefaultInstance()) return this; + if (other.hasX()) { + setX(other.getX()); + } + if (other.hasY()) { + setY(other.getY()); + } + 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 9: { + x_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + y_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + 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 double x_ ; + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + @java.lang.Override + public boolean hasX() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double x = 1; + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + /** + * optional double x = 1; + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(double value) { + bitField0_ |= 0x00000001; + x_ = value; + onChanged(); + return this; + } + /** + * optional double x = 1; + * @return This builder for chaining. + */ + public Builder clearX() { + bitField0_ = (bitField0_ & ~0x00000001); + x_ = 0D; + onChanged(); + return this; + } + + private double y_ ; + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + @java.lang.Override + public boolean hasY() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double y = 2; + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + /** + * optional double y = 2; + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(double value) { + bitField0_ |= 0x00000002; + y_ = value; + onChanged(); + return this; + } + /** + * optional double y = 2; + * @return This builder for chaining. + */ + public Builder clearY() { + bitField0_ = (bitField0_ & ~0x00000002); + y_ = 0D; + 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.common.Vec2) + } + + // @@protoc_insertion_point(class_scope:cmvr.common.Vec2) + private static final cmvr.common.Geometry.Vec2 DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.common.Geometry.Vec2(); + } + + public static cmvr.common.Geometry.Vec2 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vec2 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.common.Geometry.Vec2 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Vec3OrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.common.Vec3) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + boolean hasX(); + /** + * optional double x = 1; + * @return The x. + */ + double getX(); + + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + boolean hasY(); + /** + * optional double y = 2; + * @return The y. + */ + double getY(); + + /** + * optional double z = 3; + * @return Whether the z field is set. + */ + boolean hasZ(); + /** + * optional double z = 3; + * @return The z. + */ + double getZ(); + } + /** + * Protobuf type {@code cmvr.common.Vec3} + */ + public static final class Vec3 extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.common.Vec3) + Vec3OrBuilder { + private static final long serialVersionUID = 0L; + // Use Vec3.newBuilder() to construct. + private Vec3(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Vec3() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Vec3(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec3_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec3_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Vec3.class, cmvr.common.Geometry.Vec3.Builder.class); + } + + private int bitField0_; + public static final int X_FIELD_NUMBER = 1; + private double x_; + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + @java.lang.Override + public boolean hasX() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double x = 1; + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private double y_; + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + @java.lang.Override + public boolean hasY() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double y = 2; + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + + public static final int Z_FIELD_NUMBER = 3; + private double z_; + /** + * optional double z = 3; + * @return Whether the z field is set. + */ + @java.lang.Override + public boolean hasZ() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double z = 3; + * @return The z. + */ + @java.lang.Override + public double getZ() { + return z_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, x_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, y_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, z_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, x_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, y_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, z_); + } + 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.common.Geometry.Vec3)) { + return super.equals(obj); + } + cmvr.common.Geometry.Vec3 other = (cmvr.common.Geometry.Vec3) obj; + + if (hasX() != other.hasX()) return false; + if (hasX()) { + if (java.lang.Double.doubleToLongBits(getX()) + != java.lang.Double.doubleToLongBits( + other.getX())) return false; + } + if (hasY() != other.hasY()) return false; + if (hasY()) { + if (java.lang.Double.doubleToLongBits(getY()) + != java.lang.Double.doubleToLongBits( + other.getY())) return false; + } + if (hasZ() != other.hasZ()) return false; + if (hasZ()) { + if (java.lang.Double.doubleToLongBits(getZ()) + != java.lang.Double.doubleToLongBits( + other.getZ())) 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 (hasX()) { + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getX())); + } + if (hasY()) { + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getY())); + } + if (hasZ()) { + hash = (37 * hash) + Z_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getZ())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.common.Geometry.Vec3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Vec3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Vec3 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Vec3 parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Vec3 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Vec3 parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Vec3 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Vec3 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.common.Geometry.Vec3 parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Vec3 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.common.Geometry.Vec3 parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Vec3 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.common.Geometry.Vec3 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.common.Vec3} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.common.Vec3) + cmvr.common.Geometry.Vec3OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec3_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec3_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Vec3.class, cmvr.common.Geometry.Vec3.Builder.class); + } + + // Construct using cmvr.common.Geometry.Vec3.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + x_ = 0D; + bitField0_ = (bitField0_ & ~0x00000001); + y_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); + z_ = 0D; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec3_descriptor; + } + + @java.lang.Override + public cmvr.common.Geometry.Vec3 getDefaultInstanceForType() { + return cmvr.common.Geometry.Vec3.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.common.Geometry.Vec3 build() { + cmvr.common.Geometry.Vec3 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.common.Geometry.Vec3 buildPartial() { + cmvr.common.Geometry.Vec3 result = new cmvr.common.Geometry.Vec3(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.x_ = x_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.y_ = y_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.z_ = z_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ = to_bitField0_; + 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.common.Geometry.Vec3) { + return mergeFrom((cmvr.common.Geometry.Vec3)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.common.Geometry.Vec3 other) { + if (other == cmvr.common.Geometry.Vec3.getDefaultInstance()) return this; + if (other.hasX()) { + setX(other.getX()); + } + if (other.hasY()) { + setY(other.getY()); + } + if (other.hasZ()) { + setZ(other.getZ()); + } + 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 9: { + x_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + y_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + z_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + 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 double x_ ; + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + @java.lang.Override + public boolean hasX() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double x = 1; + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + /** + * optional double x = 1; + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(double value) { + bitField0_ |= 0x00000001; + x_ = value; + onChanged(); + return this; + } + /** + * optional double x = 1; + * @return This builder for chaining. + */ + public Builder clearX() { + bitField0_ = (bitField0_ & ~0x00000001); + x_ = 0D; + onChanged(); + return this; + } + + private double y_ ; + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + @java.lang.Override + public boolean hasY() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double y = 2; + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + /** + * optional double y = 2; + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(double value) { + bitField0_ |= 0x00000002; + y_ = value; + onChanged(); + return this; + } + /** + * optional double y = 2; + * @return This builder for chaining. + */ + public Builder clearY() { + bitField0_ = (bitField0_ & ~0x00000002); + y_ = 0D; + onChanged(); + return this; + } + + private double z_ ; + /** + * optional double z = 3; + * @return Whether the z field is set. + */ + @java.lang.Override + public boolean hasZ() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double z = 3; + * @return The z. + */ + @java.lang.Override + public double getZ() { + return z_; + } + /** + * optional double z = 3; + * @param value The z to set. + * @return This builder for chaining. + */ + public Builder setZ(double value) { + bitField0_ |= 0x00000004; + z_ = value; + onChanged(); + return this; + } + /** + * optional double z = 3; + * @return This builder for chaining. + */ + public Builder clearZ() { + bitField0_ = (bitField0_ & ~0x00000004); + z_ = 0D; + 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.common.Vec3) + } + + // @@protoc_insertion_point(class_scope:cmvr.common.Vec3) + private static final cmvr.common.Geometry.Vec3 DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.common.Geometry.Vec3(); + } + + public static cmvr.common.Geometry.Vec3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vec3 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.common.Geometry.Vec3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Vec6OrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.common.Vec6) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + boolean hasX(); + /** + * optional double x = 1; + * @return The x. + */ + double getX(); + + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + boolean hasY(); + /** + * optional double y = 2; + * @return The y. + */ + double getY(); + + /** + * optional double z = 3; + * @return Whether the z field is set. + */ + boolean hasZ(); + /** + * optional double z = 3; + * @return The z. + */ + double getZ(); + + /** + * optional double rx = 4; + * @return Whether the rx field is set. + */ + boolean hasRx(); + /** + * optional double rx = 4; + * @return The rx. + */ + double getRx(); + + /** + * optional double ry = 5; + * @return Whether the ry field is set. + */ + boolean hasRy(); + /** + * optional double ry = 5; + * @return The ry. + */ + double getRy(); + + /** + * optional double rz = 6; + * @return Whether the rz field is set. + */ + boolean hasRz(); + /** + * optional double rz = 6; + * @return The rz. + */ + double getRz(); + } + /** + * Protobuf type {@code cmvr.common.Vec6} + */ + public static final class Vec6 extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.common.Vec6) + Vec6OrBuilder { + private static final long serialVersionUID = 0L; + // Use Vec6.newBuilder() to construct. + private Vec6(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Vec6() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Vec6(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec6_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec6_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Vec6.class, cmvr.common.Geometry.Vec6.Builder.class); + } + + private int bitField0_; + public static final int X_FIELD_NUMBER = 1; + private double x_; + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + @java.lang.Override + public boolean hasX() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double x = 1; + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private double y_; + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + @java.lang.Override + public boolean hasY() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double y = 2; + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + + public static final int Z_FIELD_NUMBER = 3; + private double z_; + /** + * optional double z = 3; + * @return Whether the z field is set. + */ + @java.lang.Override + public boolean hasZ() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double z = 3; + * @return The z. + */ + @java.lang.Override + public double getZ() { + return z_; + } + + public static final int RX_FIELD_NUMBER = 4; + private double rx_; + /** + * optional double rx = 4; + * @return Whether the rx field is set. + */ + @java.lang.Override + public boolean hasRx() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double rx = 4; + * @return The rx. + */ + @java.lang.Override + public double getRx() { + return rx_; + } + + public static final int RY_FIELD_NUMBER = 5; + private double ry_; + /** + * optional double ry = 5; + * @return Whether the ry field is set. + */ + @java.lang.Override + public boolean hasRy() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double ry = 5; + * @return The ry. + */ + @java.lang.Override + public double getRy() { + return ry_; + } + + public static final int RZ_FIELD_NUMBER = 6; + private double rz_; + /** + * optional double rz = 6; + * @return Whether the rz field is set. + */ + @java.lang.Override + public boolean hasRz() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double rz = 6; + * @return The rz. + */ + @java.lang.Override + public double getRz() { + return rz_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, x_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, y_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, z_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(4, rx_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, ry_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(6, rz_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, x_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, y_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, z_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, rx_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, ry_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, rz_); + } + 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.common.Geometry.Vec6)) { + return super.equals(obj); + } + cmvr.common.Geometry.Vec6 other = (cmvr.common.Geometry.Vec6) obj; + + if (hasX() != other.hasX()) return false; + if (hasX()) { + if (java.lang.Double.doubleToLongBits(getX()) + != java.lang.Double.doubleToLongBits( + other.getX())) return false; + } + if (hasY() != other.hasY()) return false; + if (hasY()) { + if (java.lang.Double.doubleToLongBits(getY()) + != java.lang.Double.doubleToLongBits( + other.getY())) return false; + } + if (hasZ() != other.hasZ()) return false; + if (hasZ()) { + if (java.lang.Double.doubleToLongBits(getZ()) + != java.lang.Double.doubleToLongBits( + other.getZ())) return false; + } + if (hasRx() != other.hasRx()) return false; + if (hasRx()) { + if (java.lang.Double.doubleToLongBits(getRx()) + != java.lang.Double.doubleToLongBits( + other.getRx())) return false; + } + if (hasRy() != other.hasRy()) return false; + if (hasRy()) { + if (java.lang.Double.doubleToLongBits(getRy()) + != java.lang.Double.doubleToLongBits( + other.getRy())) return false; + } + if (hasRz() != other.hasRz()) return false; + if (hasRz()) { + if (java.lang.Double.doubleToLongBits(getRz()) + != java.lang.Double.doubleToLongBits( + other.getRz())) 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 (hasX()) { + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getX())); + } + if (hasY()) { + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getY())); + } + if (hasZ()) { + hash = (37 * hash) + Z_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getZ())); + } + if (hasRx()) { + hash = (37 * hash) + RX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRx())); + } + if (hasRy()) { + hash = (37 * hash) + RY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRy())); + } + if (hasRz()) { + hash = (37 * hash) + RZ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRz())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.common.Geometry.Vec6 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Vec6 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Vec6 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Vec6 parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Vec6 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Vec6 parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Vec6 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Vec6 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.common.Geometry.Vec6 parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Vec6 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.common.Geometry.Vec6 parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Vec6 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.common.Geometry.Vec6 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.common.Vec6} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.common.Vec6) + cmvr.common.Geometry.Vec6OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec6_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec6_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Vec6.class, cmvr.common.Geometry.Vec6.Builder.class); + } + + // Construct using cmvr.common.Geometry.Vec6.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + x_ = 0D; + bitField0_ = (bitField0_ & ~0x00000001); + y_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); + z_ = 0D; + bitField0_ = (bitField0_ & ~0x00000004); + rx_ = 0D; + bitField0_ = (bitField0_ & ~0x00000008); + ry_ = 0D; + bitField0_ = (bitField0_ & ~0x00000010); + rz_ = 0D; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.common.Geometry.internal_static_cmvr_common_Vec6_descriptor; + } + + @java.lang.Override + public cmvr.common.Geometry.Vec6 getDefaultInstanceForType() { + return cmvr.common.Geometry.Vec6.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.common.Geometry.Vec6 build() { + cmvr.common.Geometry.Vec6 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.common.Geometry.Vec6 buildPartial() { + cmvr.common.Geometry.Vec6 result = new cmvr.common.Geometry.Vec6(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.x_ = x_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.y_ = y_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.z_ = z_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.rx_ = rx_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ry_ = ry_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.rz_ = rz_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ = to_bitField0_; + 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.common.Geometry.Vec6) { + return mergeFrom((cmvr.common.Geometry.Vec6)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.common.Geometry.Vec6 other) { + if (other == cmvr.common.Geometry.Vec6.getDefaultInstance()) return this; + if (other.hasX()) { + setX(other.getX()); + } + if (other.hasY()) { + setY(other.getY()); + } + if (other.hasZ()) { + setZ(other.getZ()); + } + if (other.hasRx()) { + setRx(other.getRx()); + } + if (other.hasRy()) { + setRy(other.getRy()); + } + if (other.hasRz()) { + setRz(other.getRz()); + } + 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 9: { + x_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + y_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + z_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 33: { + rx_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 41: { + ry_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 49: { + rz_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + 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 double x_ ; + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + @java.lang.Override + public boolean hasX() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double x = 1; + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + /** + * optional double x = 1; + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(double value) { + bitField0_ |= 0x00000001; + x_ = value; + onChanged(); + return this; + } + /** + * optional double x = 1; + * @return This builder for chaining. + */ + public Builder clearX() { + bitField0_ = (bitField0_ & ~0x00000001); + x_ = 0D; + onChanged(); + return this; + } + + private double y_ ; + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + @java.lang.Override + public boolean hasY() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double y = 2; + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + /** + * optional double y = 2; + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(double value) { + bitField0_ |= 0x00000002; + y_ = value; + onChanged(); + return this; + } + /** + * optional double y = 2; + * @return This builder for chaining. + */ + public Builder clearY() { + bitField0_ = (bitField0_ & ~0x00000002); + y_ = 0D; + onChanged(); + return this; + } + + private double z_ ; + /** + * optional double z = 3; + * @return Whether the z field is set. + */ + @java.lang.Override + public boolean hasZ() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double z = 3; + * @return The z. + */ + @java.lang.Override + public double getZ() { + return z_; + } + /** + * optional double z = 3; + * @param value The z to set. + * @return This builder for chaining. + */ + public Builder setZ(double value) { + bitField0_ |= 0x00000004; + z_ = value; + onChanged(); + return this; + } + /** + * optional double z = 3; + * @return This builder for chaining. + */ + public Builder clearZ() { + bitField0_ = (bitField0_ & ~0x00000004); + z_ = 0D; + onChanged(); + return this; + } + + private double rx_ ; + /** + * optional double rx = 4; + * @return Whether the rx field is set. + */ + @java.lang.Override + public boolean hasRx() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double rx = 4; + * @return The rx. + */ + @java.lang.Override + public double getRx() { + return rx_; + } + /** + * optional double rx = 4; + * @param value The rx to set. + * @return This builder for chaining. + */ + public Builder setRx(double value) { + bitField0_ |= 0x00000008; + rx_ = value; + onChanged(); + return this; + } + /** + * optional double rx = 4; + * @return This builder for chaining. + */ + public Builder clearRx() { + bitField0_ = (bitField0_ & ~0x00000008); + rx_ = 0D; + onChanged(); + return this; + } + + private double ry_ ; + /** + * optional double ry = 5; + * @return Whether the ry field is set. + */ + @java.lang.Override + public boolean hasRy() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double ry = 5; + * @return The ry. + */ + @java.lang.Override + public double getRy() { + return ry_; + } + /** + * optional double ry = 5; + * @param value The ry to set. + * @return This builder for chaining. + */ + public Builder setRy(double value) { + bitField0_ |= 0x00000010; + ry_ = value; + onChanged(); + return this; + } + /** + * optional double ry = 5; + * @return This builder for chaining. + */ + public Builder clearRy() { + bitField0_ = (bitField0_ & ~0x00000010); + ry_ = 0D; + onChanged(); + return this; + } + + private double rz_ ; + /** + * optional double rz = 6; + * @return Whether the rz field is set. + */ + @java.lang.Override + public boolean hasRz() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double rz = 6; + * @return The rz. + */ + @java.lang.Override + public double getRz() { + return rz_; + } + /** + * optional double rz = 6; + * @param value The rz to set. + * @return This builder for chaining. + */ + public Builder setRz(double value) { + bitField0_ |= 0x00000020; + rz_ = value; + onChanged(); + return this; + } + /** + * optional double rz = 6; + * @return This builder for chaining. + */ + public Builder clearRz() { + bitField0_ = (bitField0_ & ~0x00000020); + rz_ = 0D; + 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.common.Vec6) + } + + // @@protoc_insertion_point(class_scope:cmvr.common.Vec6) + private static final cmvr.common.Geometry.Vec6 DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.common.Geometry.Vec6(); + } + + public static cmvr.common.Geometry.Vec6 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vec6 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.common.Geometry.Vec6 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QuatOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.common.Quat) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double w = 1; + * @return Whether the w field is set. + */ + boolean hasW(); + /** + * optional double w = 1; + * @return The w. + */ + double getW(); + + /** + * optional double x = 2; + * @return Whether the x field is set. + */ + boolean hasX(); + /** + * optional double x = 2; + * @return The x. + */ + double getX(); + + /** + * optional double y = 3; + * @return Whether the y field is set. + */ + boolean hasY(); + /** + * optional double y = 3; + * @return The y. + */ + double getY(); + + /** + * optional double z = 4; + * @return Whether the z field is set. + */ + boolean hasZ(); + /** + * optional double z = 4; + * @return The z. + */ + double getZ(); + } + /** + * Protobuf type {@code cmvr.common.Quat} + */ + public static final class Quat extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.common.Quat) + QuatOrBuilder { + private static final long serialVersionUID = 0L; + // Use Quat.newBuilder() to construct. + private Quat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Quat() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Quat(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Quat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Quat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Quat.class, cmvr.common.Geometry.Quat.Builder.class); + } + + private int bitField0_; + public static final int W_FIELD_NUMBER = 1; + private double w_; + /** + * optional double w = 1; + * @return Whether the w field is set. + */ + @java.lang.Override + public boolean hasW() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double w = 1; + * @return The w. + */ + @java.lang.Override + public double getW() { + return w_; + } + + public static final int X_FIELD_NUMBER = 2; + private double x_; + /** + * optional double x = 2; + * @return Whether the x field is set. + */ + @java.lang.Override + public boolean hasX() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double x = 2; + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 3; + private double y_; + /** + * optional double y = 3; + * @return Whether the y field is set. + */ + @java.lang.Override + public boolean hasY() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double y = 3; + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + + public static final int Z_FIELD_NUMBER = 4; + private double z_; + /** + * optional double z = 4; + * @return Whether the z field is set. + */ + @java.lang.Override + public boolean hasZ() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double z = 4; + * @return The z. + */ + @java.lang.Override + public double getZ() { + return z_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, w_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, x_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, y_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(4, z_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, w_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, x_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, y_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, z_); + } + 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.common.Geometry.Quat)) { + return super.equals(obj); + } + cmvr.common.Geometry.Quat other = (cmvr.common.Geometry.Quat) obj; + + if (hasW() != other.hasW()) return false; + if (hasW()) { + if (java.lang.Double.doubleToLongBits(getW()) + != java.lang.Double.doubleToLongBits( + other.getW())) return false; + } + if (hasX() != other.hasX()) return false; + if (hasX()) { + if (java.lang.Double.doubleToLongBits(getX()) + != java.lang.Double.doubleToLongBits( + other.getX())) return false; + } + if (hasY() != other.hasY()) return false; + if (hasY()) { + if (java.lang.Double.doubleToLongBits(getY()) + != java.lang.Double.doubleToLongBits( + other.getY())) return false; + } + if (hasZ() != other.hasZ()) return false; + if (hasZ()) { + if (java.lang.Double.doubleToLongBits(getZ()) + != java.lang.Double.doubleToLongBits( + other.getZ())) 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 (hasW()) { + hash = (37 * hash) + W_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getW())); + } + if (hasX()) { + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getX())); + } + if (hasY()) { + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getY())); + } + if (hasZ()) { + hash = (37 * hash) + Z_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getZ())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.common.Geometry.Quat parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Quat parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Quat parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Quat parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Quat parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Quat parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Quat parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Quat 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.common.Geometry.Quat parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Quat 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.common.Geometry.Quat parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Quat 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.common.Geometry.Quat 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.common.Quat} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.common.Quat) + cmvr.common.Geometry.QuatOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Quat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Quat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Quat.class, cmvr.common.Geometry.Quat.Builder.class); + } + + // Construct using cmvr.common.Geometry.Quat.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + w_ = 0D; + bitField0_ = (bitField0_ & ~0x00000001); + x_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); + y_ = 0D; + bitField0_ = (bitField0_ & ~0x00000004); + z_ = 0D; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.common.Geometry.internal_static_cmvr_common_Quat_descriptor; + } + + @java.lang.Override + public cmvr.common.Geometry.Quat getDefaultInstanceForType() { + return cmvr.common.Geometry.Quat.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.common.Geometry.Quat build() { + cmvr.common.Geometry.Quat result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.common.Geometry.Quat buildPartial() { + cmvr.common.Geometry.Quat result = new cmvr.common.Geometry.Quat(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.w_ = w_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.x_ = x_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.y_ = y_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.z_ = z_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ = to_bitField0_; + 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.common.Geometry.Quat) { + return mergeFrom((cmvr.common.Geometry.Quat)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.common.Geometry.Quat other) { + if (other == cmvr.common.Geometry.Quat.getDefaultInstance()) return this; + if (other.hasW()) { + setW(other.getW()); + } + if (other.hasX()) { + setX(other.getX()); + } + if (other.hasY()) { + setY(other.getY()); + } + if (other.hasZ()) { + setZ(other.getZ()); + } + 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 9: { + w_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + x_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + y_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 33: { + z_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + 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 double w_ ; + /** + * optional double w = 1; + * @return Whether the w field is set. + */ + @java.lang.Override + public boolean hasW() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double w = 1; + * @return The w. + */ + @java.lang.Override + public double getW() { + return w_; + } + /** + * optional double w = 1; + * @param value The w to set. + * @return This builder for chaining. + */ + public Builder setW(double value) { + bitField0_ |= 0x00000001; + w_ = value; + onChanged(); + return this; + } + /** + * optional double w = 1; + * @return This builder for chaining. + */ + public Builder clearW() { + bitField0_ = (bitField0_ & ~0x00000001); + w_ = 0D; + onChanged(); + return this; + } + + private double x_ ; + /** + * optional double x = 2; + * @return Whether the x field is set. + */ + @java.lang.Override + public boolean hasX() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double x = 2; + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + /** + * optional double x = 2; + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(double value) { + bitField0_ |= 0x00000002; + x_ = value; + onChanged(); + return this; + } + /** + * optional double x = 2; + * @return This builder for chaining. + */ + public Builder clearX() { + bitField0_ = (bitField0_ & ~0x00000002); + x_ = 0D; + onChanged(); + return this; + } + + private double y_ ; + /** + * optional double y = 3; + * @return Whether the y field is set. + */ + @java.lang.Override + public boolean hasY() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double y = 3; + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + /** + * optional double y = 3; + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(double value) { + bitField0_ |= 0x00000004; + y_ = value; + onChanged(); + return this; + } + /** + * optional double y = 3; + * @return This builder for chaining. + */ + public Builder clearY() { + bitField0_ = (bitField0_ & ~0x00000004); + y_ = 0D; + onChanged(); + return this; + } + + private double z_ ; + /** + * optional double z = 4; + * @return Whether the z field is set. + */ + @java.lang.Override + public boolean hasZ() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double z = 4; + * @return The z. + */ + @java.lang.Override + public double getZ() { + return z_; + } + /** + * optional double z = 4; + * @param value The z to set. + * @return This builder for chaining. + */ + public Builder setZ(double value) { + bitField0_ |= 0x00000008; + z_ = value; + onChanged(); + return this; + } + /** + * optional double z = 4; + * @return This builder for chaining. + */ + public Builder clearZ() { + bitField0_ = (bitField0_ & ~0x00000008); + z_ = 0D; + 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.common.Quat) + } + + // @@protoc_insertion_point(class_scope:cmvr.common.Quat) + private static final cmvr.common.Geometry.Quat DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.common.Geometry.Quat(); + } + + public static cmvr.common.Geometry.Quat getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Quat 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.common.Geometry.Quat getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EulerOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.common.Euler) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double rx = 1; + * @return Whether the rx field is set. + */ + boolean hasRx(); + /** + * optional double rx = 1; + * @return The rx. + */ + double getRx(); + + /** + * optional double ry = 2; + * @return Whether the ry field is set. + */ + boolean hasRy(); + /** + * optional double ry = 2; + * @return The ry. + */ + double getRy(); + + /** + * optional double rz = 3; + * @return Whether the rz field is set. + */ + boolean hasRz(); + /** + * optional double rz = 3; + * @return The rz. + */ + double getRz(); + } + /** + * Protobuf type {@code cmvr.common.Euler} + */ + public static final class Euler extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.common.Euler) + EulerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Euler.newBuilder() to construct. + private Euler(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Euler() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Euler(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Euler_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Euler_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Euler.class, cmvr.common.Geometry.Euler.Builder.class); + } + + private int bitField0_; + public static final int RX_FIELD_NUMBER = 1; + private double rx_; + /** + * optional double rx = 1; + * @return Whether the rx field is set. + */ + @java.lang.Override + public boolean hasRx() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double rx = 1; + * @return The rx. + */ + @java.lang.Override + public double getRx() { + return rx_; + } + + public static final int RY_FIELD_NUMBER = 2; + private double ry_; + /** + * optional double ry = 2; + * @return Whether the ry field is set. + */ + @java.lang.Override + public boolean hasRy() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double ry = 2; + * @return The ry. + */ + @java.lang.Override + public double getRy() { + return ry_; + } + + public static final int RZ_FIELD_NUMBER = 3; + private double rz_; + /** + * optional double rz = 3; + * @return Whether the rz field is set. + */ + @java.lang.Override + public boolean hasRz() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double rz = 3; + * @return The rz. + */ + @java.lang.Override + public double getRz() { + return rz_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, rx_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, ry_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, rz_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, rx_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, ry_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, rz_); + } + 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.common.Geometry.Euler)) { + return super.equals(obj); + } + cmvr.common.Geometry.Euler other = (cmvr.common.Geometry.Euler) obj; + + if (hasRx() != other.hasRx()) return false; + if (hasRx()) { + if (java.lang.Double.doubleToLongBits(getRx()) + != java.lang.Double.doubleToLongBits( + other.getRx())) return false; + } + if (hasRy() != other.hasRy()) return false; + if (hasRy()) { + if (java.lang.Double.doubleToLongBits(getRy()) + != java.lang.Double.doubleToLongBits( + other.getRy())) return false; + } + if (hasRz() != other.hasRz()) return false; + if (hasRz()) { + if (java.lang.Double.doubleToLongBits(getRz()) + != java.lang.Double.doubleToLongBits( + other.getRz())) 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 (hasRx()) { + hash = (37 * hash) + RX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRx())); + } + if (hasRy()) { + hash = (37 * hash) + RY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRy())); + } + if (hasRz()) { + hash = (37 * hash) + RZ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRz())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.common.Geometry.Euler parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Euler parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Euler parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Euler parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Euler parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Euler parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Euler parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Euler 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.common.Geometry.Euler parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Euler 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.common.Geometry.Euler parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Euler 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.common.Geometry.Euler 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.common.Euler} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.common.Euler) + cmvr.common.Geometry.EulerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Euler_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Euler_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Euler.class, cmvr.common.Geometry.Euler.Builder.class); + } + + // Construct using cmvr.common.Geometry.Euler.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + rx_ = 0D; + bitField0_ = (bitField0_ & ~0x00000001); + ry_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); + rz_ = 0D; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.common.Geometry.internal_static_cmvr_common_Euler_descriptor; + } + + @java.lang.Override + public cmvr.common.Geometry.Euler getDefaultInstanceForType() { + return cmvr.common.Geometry.Euler.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.common.Geometry.Euler build() { + cmvr.common.Geometry.Euler result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.common.Geometry.Euler buildPartial() { + cmvr.common.Geometry.Euler result = new cmvr.common.Geometry.Euler(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rx_ = rx_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ry_ = ry_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rz_ = rz_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ = to_bitField0_; + 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.common.Geometry.Euler) { + return mergeFrom((cmvr.common.Geometry.Euler)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.common.Geometry.Euler other) { + if (other == cmvr.common.Geometry.Euler.getDefaultInstance()) return this; + if (other.hasRx()) { + setRx(other.getRx()); + } + if (other.hasRy()) { + setRy(other.getRy()); + } + if (other.hasRz()) { + setRz(other.getRz()); + } + 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 9: { + rx_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + ry_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + rz_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + 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 double rx_ ; + /** + * optional double rx = 1; + * @return Whether the rx field is set. + */ + @java.lang.Override + public boolean hasRx() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double rx = 1; + * @return The rx. + */ + @java.lang.Override + public double getRx() { + return rx_; + } + /** + * optional double rx = 1; + * @param value The rx to set. + * @return This builder for chaining. + */ + public Builder setRx(double value) { + bitField0_ |= 0x00000001; + rx_ = value; + onChanged(); + return this; + } + /** + * optional double rx = 1; + * @return This builder for chaining. + */ + public Builder clearRx() { + bitField0_ = (bitField0_ & ~0x00000001); + rx_ = 0D; + onChanged(); + return this; + } + + private double ry_ ; + /** + * optional double ry = 2; + * @return Whether the ry field is set. + */ + @java.lang.Override + public boolean hasRy() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double ry = 2; + * @return The ry. + */ + @java.lang.Override + public double getRy() { + return ry_; + } + /** + * optional double ry = 2; + * @param value The ry to set. + * @return This builder for chaining. + */ + public Builder setRy(double value) { + bitField0_ |= 0x00000002; + ry_ = value; + onChanged(); + return this; + } + /** + * optional double ry = 2; + * @return This builder for chaining. + */ + public Builder clearRy() { + bitField0_ = (bitField0_ & ~0x00000002); + ry_ = 0D; + onChanged(); + return this; + } + + private double rz_ ; + /** + * optional double rz = 3; + * @return Whether the rz field is set. + */ + @java.lang.Override + public boolean hasRz() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double rz = 3; + * @return The rz. + */ + @java.lang.Override + public double getRz() { + return rz_; + } + /** + * optional double rz = 3; + * @param value The rz to set. + * @return This builder for chaining. + */ + public Builder setRz(double value) { + bitField0_ |= 0x00000004; + rz_ = value; + onChanged(); + return this; + } + /** + * optional double rz = 3; + * @return This builder for chaining. + */ + public Builder clearRz() { + bitField0_ = (bitField0_ & ~0x00000004); + rz_ = 0D; + 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.common.Euler) + } + + // @@protoc_insertion_point(class_scope:cmvr.common.Euler) + private static final cmvr.common.Geometry.Euler DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.common.Geometry.Euler(); + } + + public static cmvr.common.Geometry.Euler getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Euler 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.common.Geometry.Euler getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Pose3dOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.common.Pose3d) + com.google.protobuf.MessageOrBuilder { + + /** + * .cmvr.common.Vec3 position = 1; + * @return Whether the position field is set. + */ + boolean hasPosition(); + /** + * .cmvr.common.Vec3 position = 1; + * @return The position. + */ + cmvr.common.Geometry.Vec3 getPosition(); + /** + * .cmvr.common.Vec3 position = 1; + */ + cmvr.common.Geometry.Vec3OrBuilder getPositionOrBuilder(); + + /** + * .cmvr.common.Quat quaternion = 2; + * @return Whether the quaternion field is set. + */ + boolean hasQuaternion(); + /** + * .cmvr.common.Quat quaternion = 2; + * @return The quaternion. + */ + cmvr.common.Geometry.Quat getQuaternion(); + /** + * .cmvr.common.Quat quaternion = 2; + */ + cmvr.common.Geometry.QuatOrBuilder getQuaternionOrBuilder(); + + /** + * .cmvr.common.Euler euler = 3; + * @return Whether the euler field is set. + */ + boolean hasEuler(); + /** + * .cmvr.common.Euler euler = 3; + * @return The euler. + */ + cmvr.common.Geometry.Euler getEuler(); + /** + * .cmvr.common.Euler euler = 3; + */ + cmvr.common.Geometry.EulerOrBuilder getEulerOrBuilder(); + } + /** + * Protobuf type {@code cmvr.common.Pose3d} + */ + public static final class Pose3d extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.common.Pose3d) + Pose3dOrBuilder { + private static final long serialVersionUID = 0L; + // Use Pose3d.newBuilder() to construct. + private Pose3d(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Pose3d() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Pose3d(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Pose3d_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Pose3d_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Pose3d.class, cmvr.common.Geometry.Pose3d.Builder.class); + } + + public static final int POSITION_FIELD_NUMBER = 1; + private cmvr.common.Geometry.Vec3 position_; + /** + * .cmvr.common.Vec3 position = 1; + * @return Whether the position field is set. + */ + @java.lang.Override + public boolean hasPosition() { + return position_ != null; + } + /** + * .cmvr.common.Vec3 position = 1; + * @return The position. + */ + @java.lang.Override + public cmvr.common.Geometry.Vec3 getPosition() { + return position_ == null ? cmvr.common.Geometry.Vec3.getDefaultInstance() : position_; + } + /** + * .cmvr.common.Vec3 position = 1; + */ + @java.lang.Override + public cmvr.common.Geometry.Vec3OrBuilder getPositionOrBuilder() { + return getPosition(); + } + + public static final int QUATERNION_FIELD_NUMBER = 2; + private cmvr.common.Geometry.Quat quaternion_; + /** + * .cmvr.common.Quat quaternion = 2; + * @return Whether the quaternion field is set. + */ + @java.lang.Override + public boolean hasQuaternion() { + return quaternion_ != null; + } + /** + * .cmvr.common.Quat quaternion = 2; + * @return The quaternion. + */ + @java.lang.Override + public cmvr.common.Geometry.Quat getQuaternion() { + return quaternion_ == null ? cmvr.common.Geometry.Quat.getDefaultInstance() : quaternion_; + } + /** + * .cmvr.common.Quat quaternion = 2; + */ + @java.lang.Override + public cmvr.common.Geometry.QuatOrBuilder getQuaternionOrBuilder() { + return getQuaternion(); + } + + public static final int EULER_FIELD_NUMBER = 3; + private cmvr.common.Geometry.Euler euler_; + /** + * .cmvr.common.Euler euler = 3; + * @return Whether the euler field is set. + */ + @java.lang.Override + public boolean hasEuler() { + return euler_ != null; + } + /** + * .cmvr.common.Euler euler = 3; + * @return The euler. + */ + @java.lang.Override + public cmvr.common.Geometry.Euler getEuler() { + return euler_ == null ? cmvr.common.Geometry.Euler.getDefaultInstance() : euler_; + } + /** + * .cmvr.common.Euler euler = 3; + */ + @java.lang.Override + public cmvr.common.Geometry.EulerOrBuilder getEulerOrBuilder() { + return getEuler(); + } + + 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 (position_ != null) { + output.writeMessage(1, getPosition()); + } + if (quaternion_ != null) { + output.writeMessage(2, getQuaternion()); + } + if (euler_ != null) { + output.writeMessage(3, getEuler()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (position_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPosition()); + } + if (quaternion_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQuaternion()); + } + if (euler_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEuler()); + } + 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.common.Geometry.Pose3d)) { + return super.equals(obj); + } + cmvr.common.Geometry.Pose3d other = (cmvr.common.Geometry.Pose3d) obj; + + if (hasPosition() != other.hasPosition()) return false; + if (hasPosition()) { + if (!getPosition() + .equals(other.getPosition())) return false; + } + if (hasQuaternion() != other.hasQuaternion()) return false; + if (hasQuaternion()) { + if (!getQuaternion() + .equals(other.getQuaternion())) return false; + } + if (hasEuler() != other.hasEuler()) return false; + if (hasEuler()) { + if (!getEuler() + .equals(other.getEuler())) 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 (hasPosition()) { + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition().hashCode(); + } + if (hasQuaternion()) { + hash = (37 * hash) + QUATERNION_FIELD_NUMBER; + hash = (53 * hash) + getQuaternion().hashCode(); + } + if (hasEuler()) { + hash = (37 * hash) + EULER_FIELD_NUMBER; + hash = (53 * hash) + getEuler().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.common.Geometry.Pose3d parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Pose3d parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Pose3d parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Pose3d parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Pose3d parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Pose3d parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Pose3d parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Pose3d 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.common.Geometry.Pose3d parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Pose3d 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.common.Geometry.Pose3d parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Pose3d 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.common.Geometry.Pose3d 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.common.Pose3d} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.common.Pose3d) + cmvr.common.Geometry.Pose3dOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Pose3d_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Pose3d_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Pose3d.class, cmvr.common.Geometry.Pose3d.Builder.class); + } + + // Construct using cmvr.common.Geometry.Pose3d.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (positionBuilder_ == null) { + position_ = null; + } else { + position_ = null; + positionBuilder_ = null; + } + if (quaternionBuilder_ == null) { + quaternion_ = null; + } else { + quaternion_ = null; + quaternionBuilder_ = null; + } + if (eulerBuilder_ == null) { + euler_ = null; + } else { + euler_ = null; + eulerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.common.Geometry.internal_static_cmvr_common_Pose3d_descriptor; + } + + @java.lang.Override + public cmvr.common.Geometry.Pose3d getDefaultInstanceForType() { + return cmvr.common.Geometry.Pose3d.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.common.Geometry.Pose3d build() { + cmvr.common.Geometry.Pose3d result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.common.Geometry.Pose3d buildPartial() { + cmvr.common.Geometry.Pose3d result = new cmvr.common.Geometry.Pose3d(this); + if (positionBuilder_ == null) { + result.position_ = position_; + } else { + result.position_ = positionBuilder_.build(); + } + if (quaternionBuilder_ == null) { + result.quaternion_ = quaternion_; + } else { + result.quaternion_ = quaternionBuilder_.build(); + } + if (eulerBuilder_ == null) { + result.euler_ = euler_; + } else { + result.euler_ = eulerBuilder_.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.common.Geometry.Pose3d) { + return mergeFrom((cmvr.common.Geometry.Pose3d)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.common.Geometry.Pose3d other) { + if (other == cmvr.common.Geometry.Pose3d.getDefaultInstance()) return this; + if (other.hasPosition()) { + mergePosition(other.getPosition()); + } + if (other.hasQuaternion()) { + mergeQuaternion(other.getQuaternion()); + } + if (other.hasEuler()) { + mergeEuler(other.getEuler()); + } + 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( + getPositionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getQuaternionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getEulerFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + 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.common.Geometry.Vec3 position_; + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.common.Geometry.Vec3, cmvr.common.Geometry.Vec3.Builder, cmvr.common.Geometry.Vec3OrBuilder> positionBuilder_; + /** + * .cmvr.common.Vec3 position = 1; + * @return Whether the position field is set. + */ + public boolean hasPosition() { + return positionBuilder_ != null || position_ != null; + } + /** + * .cmvr.common.Vec3 position = 1; + * @return The position. + */ + public cmvr.common.Geometry.Vec3 getPosition() { + if (positionBuilder_ == null) { + return position_ == null ? cmvr.common.Geometry.Vec3.getDefaultInstance() : position_; + } else { + return positionBuilder_.getMessage(); + } + } + /** + * .cmvr.common.Vec3 position = 1; + */ + public Builder setPosition(cmvr.common.Geometry.Vec3 value) { + if (positionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + position_ = value; + onChanged(); + } else { + positionBuilder_.setMessage(value); + } + + return this; + } + /** + * .cmvr.common.Vec3 position = 1; + */ + public Builder setPosition( + cmvr.common.Geometry.Vec3.Builder builderForValue) { + if (positionBuilder_ == null) { + position_ = builderForValue.build(); + onChanged(); + } else { + positionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .cmvr.common.Vec3 position = 1; + */ + public Builder mergePosition(cmvr.common.Geometry.Vec3 value) { + if (positionBuilder_ == null) { + if (position_ != null) { + position_ = + cmvr.common.Geometry.Vec3.newBuilder(position_).mergeFrom(value).buildPartial(); + } else { + position_ = value; + } + onChanged(); + } else { + positionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .cmvr.common.Vec3 position = 1; + */ + public Builder clearPosition() { + if (positionBuilder_ == null) { + position_ = null; + onChanged(); + } else { + position_ = null; + positionBuilder_ = null; + } + + return this; + } + /** + * .cmvr.common.Vec3 position = 1; + */ + public cmvr.common.Geometry.Vec3.Builder getPositionBuilder() { + + onChanged(); + return getPositionFieldBuilder().getBuilder(); + } + /** + * .cmvr.common.Vec3 position = 1; + */ + public cmvr.common.Geometry.Vec3OrBuilder getPositionOrBuilder() { + if (positionBuilder_ != null) { + return positionBuilder_.getMessageOrBuilder(); + } else { + return position_ == null ? + cmvr.common.Geometry.Vec3.getDefaultInstance() : position_; + } + } + /** + * .cmvr.common.Vec3 position = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.common.Geometry.Vec3, cmvr.common.Geometry.Vec3.Builder, cmvr.common.Geometry.Vec3OrBuilder> + getPositionFieldBuilder() { + if (positionBuilder_ == null) { + positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.common.Geometry.Vec3, cmvr.common.Geometry.Vec3.Builder, cmvr.common.Geometry.Vec3OrBuilder>( + getPosition(), + getParentForChildren(), + isClean()); + position_ = null; + } + return positionBuilder_; + } + + private cmvr.common.Geometry.Quat quaternion_; + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.common.Geometry.Quat, cmvr.common.Geometry.Quat.Builder, cmvr.common.Geometry.QuatOrBuilder> quaternionBuilder_; + /** + * .cmvr.common.Quat quaternion = 2; + * @return Whether the quaternion field is set. + */ + public boolean hasQuaternion() { + return quaternionBuilder_ != null || quaternion_ != null; + } + /** + * .cmvr.common.Quat quaternion = 2; + * @return The quaternion. + */ + public cmvr.common.Geometry.Quat getQuaternion() { + if (quaternionBuilder_ == null) { + return quaternion_ == null ? cmvr.common.Geometry.Quat.getDefaultInstance() : quaternion_; + } else { + return quaternionBuilder_.getMessage(); + } + } + /** + * .cmvr.common.Quat quaternion = 2; + */ + public Builder setQuaternion(cmvr.common.Geometry.Quat value) { + if (quaternionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + quaternion_ = value; + onChanged(); + } else { + quaternionBuilder_.setMessage(value); + } + + return this; + } + /** + * .cmvr.common.Quat quaternion = 2; + */ + public Builder setQuaternion( + cmvr.common.Geometry.Quat.Builder builderForValue) { + if (quaternionBuilder_ == null) { + quaternion_ = builderForValue.build(); + onChanged(); + } else { + quaternionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .cmvr.common.Quat quaternion = 2; + */ + public Builder mergeQuaternion(cmvr.common.Geometry.Quat value) { + if (quaternionBuilder_ == null) { + if (quaternion_ != null) { + quaternion_ = + cmvr.common.Geometry.Quat.newBuilder(quaternion_).mergeFrom(value).buildPartial(); + } else { + quaternion_ = value; + } + onChanged(); + } else { + quaternionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .cmvr.common.Quat quaternion = 2; + */ + public Builder clearQuaternion() { + if (quaternionBuilder_ == null) { + quaternion_ = null; + onChanged(); + } else { + quaternion_ = null; + quaternionBuilder_ = null; + } + + return this; + } + /** + * .cmvr.common.Quat quaternion = 2; + */ + public cmvr.common.Geometry.Quat.Builder getQuaternionBuilder() { + + onChanged(); + return getQuaternionFieldBuilder().getBuilder(); + } + /** + * .cmvr.common.Quat quaternion = 2; + */ + public cmvr.common.Geometry.QuatOrBuilder getQuaternionOrBuilder() { + if (quaternionBuilder_ != null) { + return quaternionBuilder_.getMessageOrBuilder(); + } else { + return quaternion_ == null ? + cmvr.common.Geometry.Quat.getDefaultInstance() : quaternion_; + } + } + /** + * .cmvr.common.Quat quaternion = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.common.Geometry.Quat, cmvr.common.Geometry.Quat.Builder, cmvr.common.Geometry.QuatOrBuilder> + getQuaternionFieldBuilder() { + if (quaternionBuilder_ == null) { + quaternionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.common.Geometry.Quat, cmvr.common.Geometry.Quat.Builder, cmvr.common.Geometry.QuatOrBuilder>( + getQuaternion(), + getParentForChildren(), + isClean()); + quaternion_ = null; + } + return quaternionBuilder_; + } + + private cmvr.common.Geometry.Euler euler_; + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.common.Geometry.Euler, cmvr.common.Geometry.Euler.Builder, cmvr.common.Geometry.EulerOrBuilder> eulerBuilder_; + /** + * .cmvr.common.Euler euler = 3; + * @return Whether the euler field is set. + */ + public boolean hasEuler() { + return eulerBuilder_ != null || euler_ != null; + } + /** + * .cmvr.common.Euler euler = 3; + * @return The euler. + */ + public cmvr.common.Geometry.Euler getEuler() { + if (eulerBuilder_ == null) { + return euler_ == null ? cmvr.common.Geometry.Euler.getDefaultInstance() : euler_; + } else { + return eulerBuilder_.getMessage(); + } + } + /** + * .cmvr.common.Euler euler = 3; + */ + public Builder setEuler(cmvr.common.Geometry.Euler value) { + if (eulerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + euler_ = value; + onChanged(); + } else { + eulerBuilder_.setMessage(value); + } + + return this; + } + /** + * .cmvr.common.Euler euler = 3; + */ + public Builder setEuler( + cmvr.common.Geometry.Euler.Builder builderForValue) { + if (eulerBuilder_ == null) { + euler_ = builderForValue.build(); + onChanged(); + } else { + eulerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .cmvr.common.Euler euler = 3; + */ + public Builder mergeEuler(cmvr.common.Geometry.Euler value) { + if (eulerBuilder_ == null) { + if (euler_ != null) { + euler_ = + cmvr.common.Geometry.Euler.newBuilder(euler_).mergeFrom(value).buildPartial(); + } else { + euler_ = value; + } + onChanged(); + } else { + eulerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .cmvr.common.Euler euler = 3; + */ + public Builder clearEuler() { + if (eulerBuilder_ == null) { + euler_ = null; + onChanged(); + } else { + euler_ = null; + eulerBuilder_ = null; + } + + return this; + } + /** + * .cmvr.common.Euler euler = 3; + */ + public cmvr.common.Geometry.Euler.Builder getEulerBuilder() { + + onChanged(); + return getEulerFieldBuilder().getBuilder(); + } + /** + * .cmvr.common.Euler euler = 3; + */ + public cmvr.common.Geometry.EulerOrBuilder getEulerOrBuilder() { + if (eulerBuilder_ != null) { + return eulerBuilder_.getMessageOrBuilder(); + } else { + return euler_ == null ? + cmvr.common.Geometry.Euler.getDefaultInstance() : euler_; + } + } + /** + * .cmvr.common.Euler euler = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + cmvr.common.Geometry.Euler, cmvr.common.Geometry.Euler.Builder, cmvr.common.Geometry.EulerOrBuilder> + getEulerFieldBuilder() { + if (eulerBuilder_ == null) { + eulerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + cmvr.common.Geometry.Euler, cmvr.common.Geometry.Euler.Builder, cmvr.common.Geometry.EulerOrBuilder>( + getEuler(), + getParentForChildren(), + isClean()); + euler_ = null; + } + return eulerBuilder_; + } + @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.common.Pose3d) + } + + // @@protoc_insertion_point(class_scope:cmvr.common.Pose3d) + private static final cmvr.common.Geometry.Pose3d DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.common.Geometry.Pose3d(); + } + + public static cmvr.common.Geometry.Pose3d getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Pose3d 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.common.Geometry.Pose3d getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Pose2dOrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.common.Pose2d) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + boolean hasX(); + /** + * optional double x = 1; + * @return The x. + */ + double getX(); + + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + boolean hasY(); + /** + * optional double y = 2; + * @return The y. + */ + double getY(); + + /** + * optional double theta = 3; + * @return Whether the theta field is set. + */ + boolean hasTheta(); + /** + * optional double theta = 3; + * @return The theta. + */ + double getTheta(); + } + /** + * Protobuf type {@code cmvr.common.Pose2d} + */ + public static final class Pose2d extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.common.Pose2d) + Pose2dOrBuilder { + private static final long serialVersionUID = 0L; + // Use Pose2d.newBuilder() to construct. + private Pose2d(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Pose2d() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Pose2d(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Pose2d_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Pose2d_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Pose2d.class, cmvr.common.Geometry.Pose2d.Builder.class); + } + + private int bitField0_; + public static final int X_FIELD_NUMBER = 1; + private double x_; + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + @java.lang.Override + public boolean hasX() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double x = 1; + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private double y_; + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + @java.lang.Override + public boolean hasY() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double y = 2; + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + + public static final int THETA_FIELD_NUMBER = 3; + private double theta_; + /** + * optional double theta = 3; + * @return Whether the theta field is set. + */ + @java.lang.Override + public boolean hasTheta() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double theta = 3; + * @return The theta. + */ + @java.lang.Override + public double getTheta() { + return theta_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, x_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, y_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, theta_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, x_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, y_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, theta_); + } + 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.common.Geometry.Pose2d)) { + return super.equals(obj); + } + cmvr.common.Geometry.Pose2d other = (cmvr.common.Geometry.Pose2d) obj; + + if (hasX() != other.hasX()) return false; + if (hasX()) { + if (java.lang.Double.doubleToLongBits(getX()) + != java.lang.Double.doubleToLongBits( + other.getX())) return false; + } + if (hasY() != other.hasY()) return false; + if (hasY()) { + if (java.lang.Double.doubleToLongBits(getY()) + != java.lang.Double.doubleToLongBits( + other.getY())) return false; + } + if (hasTheta() != other.hasTheta()) return false; + if (hasTheta()) { + if (java.lang.Double.doubleToLongBits(getTheta()) + != java.lang.Double.doubleToLongBits( + other.getTheta())) 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 (hasX()) { + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getX())); + } + if (hasY()) { + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getY())); + } + if (hasTheta()) { + hash = (37 * hash) + THETA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTheta())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.common.Geometry.Pose2d parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Pose2d parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Pose2d parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Pose2d parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Pose2d parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Pose2d parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Pose2d parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Pose2d 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.common.Geometry.Pose2d parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Pose2d 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.common.Geometry.Pose2d parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Pose2d 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.common.Geometry.Pose2d 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.common.Pose2d} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.common.Pose2d) + cmvr.common.Geometry.Pose2dOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Pose2d_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Pose2d_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Pose2d.class, cmvr.common.Geometry.Pose2d.Builder.class); + } + + // Construct using cmvr.common.Geometry.Pose2d.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + x_ = 0D; + bitField0_ = (bitField0_ & ~0x00000001); + y_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); + theta_ = 0D; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.common.Geometry.internal_static_cmvr_common_Pose2d_descriptor; + } + + @java.lang.Override + public cmvr.common.Geometry.Pose2d getDefaultInstanceForType() { + return cmvr.common.Geometry.Pose2d.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.common.Geometry.Pose2d build() { + cmvr.common.Geometry.Pose2d result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.common.Geometry.Pose2d buildPartial() { + cmvr.common.Geometry.Pose2d result = new cmvr.common.Geometry.Pose2d(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.x_ = x_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.y_ = y_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.theta_ = theta_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ = to_bitField0_; + 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.common.Geometry.Pose2d) { + return mergeFrom((cmvr.common.Geometry.Pose2d)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.common.Geometry.Pose2d other) { + if (other == cmvr.common.Geometry.Pose2d.getDefaultInstance()) return this; + if (other.hasX()) { + setX(other.getX()); + } + if (other.hasY()) { + setY(other.getY()); + } + if (other.hasTheta()) { + setTheta(other.getTheta()); + } + 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 9: { + x_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + y_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + theta_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + 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 double x_ ; + /** + * optional double x = 1; + * @return Whether the x field is set. + */ + @java.lang.Override + public boolean hasX() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double x = 1; + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + /** + * optional double x = 1; + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(double value) { + bitField0_ |= 0x00000001; + x_ = value; + onChanged(); + return this; + } + /** + * optional double x = 1; + * @return This builder for chaining. + */ + public Builder clearX() { + bitField0_ = (bitField0_ & ~0x00000001); + x_ = 0D; + onChanged(); + return this; + } + + private double y_ ; + /** + * optional double y = 2; + * @return Whether the y field is set. + */ + @java.lang.Override + public boolean hasY() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double y = 2; + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + /** + * optional double y = 2; + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(double value) { + bitField0_ |= 0x00000002; + y_ = value; + onChanged(); + return this; + } + /** + * optional double y = 2; + * @return This builder for chaining. + */ + public Builder clearY() { + bitField0_ = (bitField0_ & ~0x00000002); + y_ = 0D; + onChanged(); + return this; + } + + private double theta_ ; + /** + * optional double theta = 3; + * @return Whether the theta field is set. + */ + @java.lang.Override + public boolean hasTheta() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double theta = 3; + * @return The theta. + */ + @java.lang.Override + public double getTheta() { + return theta_; + } + /** + * optional double theta = 3; + * @param value The theta to set. + * @return This builder for chaining. + */ + public Builder setTheta(double value) { + bitField0_ |= 0x00000004; + theta_ = value; + onChanged(); + return this; + } + /** + * optional double theta = 3; + * @return This builder for chaining. + */ + public Builder clearTheta() { + bitField0_ = (bitField0_ & ~0x00000004); + theta_ = 0D; + 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.common.Pose2d) + } + + // @@protoc_insertion_point(class_scope:cmvr.common.Pose2d) + private static final cmvr.common.Geometry.Pose2d DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.common.Geometry.Pose2d(); + } + + public static cmvr.common.Geometry.Pose2d getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Pose2d 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.common.Geometry.Pose2d getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Mat3OrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.common.Mat3) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double m00 = 1; + * @return Whether the m00 field is set. + */ + boolean hasM00(); + /** + * optional double m00 = 1; + * @return The m00. + */ + double getM00(); + + /** + * optional double m01 = 2; + * @return Whether the m01 field is set. + */ + boolean hasM01(); + /** + * optional double m01 = 2; + * @return The m01. + */ + double getM01(); + + /** + * optional double m02 = 3; + * @return Whether the m02 field is set. + */ + boolean hasM02(); + /** + * optional double m02 = 3; + * @return The m02. + */ + double getM02(); + + /** + * optional double m10 = 4; + * @return Whether the m10 field is set. + */ + boolean hasM10(); + /** + * optional double m10 = 4; + * @return The m10. + */ + double getM10(); + + /** + * optional double m11 = 5; + * @return Whether the m11 field is set. + */ + boolean hasM11(); + /** + * optional double m11 = 5; + * @return The m11. + */ + double getM11(); + + /** + * optional double m12 = 6; + * @return Whether the m12 field is set. + */ + boolean hasM12(); + /** + * optional double m12 = 6; + * @return The m12. + */ + double getM12(); + + /** + * optional double m20 = 7; + * @return Whether the m20 field is set. + */ + boolean hasM20(); + /** + * optional double m20 = 7; + * @return The m20. + */ + double getM20(); + + /** + * optional double m21 = 8; + * @return Whether the m21 field is set. + */ + boolean hasM21(); + /** + * optional double m21 = 8; + * @return The m21. + */ + double getM21(); + + /** + * optional double m22 = 9; + * @return Whether the m22 field is set. + */ + boolean hasM22(); + /** + * optional double m22 = 9; + * @return The m22. + */ + double getM22(); + } + /** + * Protobuf type {@code cmvr.common.Mat3} + */ + public static final class Mat3 extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.common.Mat3) + Mat3OrBuilder { + private static final long serialVersionUID = 0L; + // Use Mat3.newBuilder() to construct. + private Mat3(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Mat3() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Mat3(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Mat3_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Mat3_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Mat3.class, cmvr.common.Geometry.Mat3.Builder.class); + } + + private int bitField0_; + public static final int M00_FIELD_NUMBER = 1; + private double m00_; + /** + * optional double m00 = 1; + * @return Whether the m00 field is set. + */ + @java.lang.Override + public boolean hasM00() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double m00 = 1; + * @return The m00. + */ + @java.lang.Override + public double getM00() { + return m00_; + } + + public static final int M01_FIELD_NUMBER = 2; + private double m01_; + /** + * optional double m01 = 2; + * @return Whether the m01 field is set. + */ + @java.lang.Override + public boolean hasM01() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double m01 = 2; + * @return The m01. + */ + @java.lang.Override + public double getM01() { + return m01_; + } + + public static final int M02_FIELD_NUMBER = 3; + private double m02_; + /** + * optional double m02 = 3; + * @return Whether the m02 field is set. + */ + @java.lang.Override + public boolean hasM02() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double m02 = 3; + * @return The m02. + */ + @java.lang.Override + public double getM02() { + return m02_; + } + + public static final int M10_FIELD_NUMBER = 4; + private double m10_; + /** + * optional double m10 = 4; + * @return Whether the m10 field is set. + */ + @java.lang.Override + public boolean hasM10() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double m10 = 4; + * @return The m10. + */ + @java.lang.Override + public double getM10() { + return m10_; + } + + public static final int M11_FIELD_NUMBER = 5; + private double m11_; + /** + * optional double m11 = 5; + * @return Whether the m11 field is set. + */ + @java.lang.Override + public boolean hasM11() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double m11 = 5; + * @return The m11. + */ + @java.lang.Override + public double getM11() { + return m11_; + } + + public static final int M12_FIELD_NUMBER = 6; + private double m12_; + /** + * optional double m12 = 6; + * @return Whether the m12 field is set. + */ + @java.lang.Override + public boolean hasM12() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double m12 = 6; + * @return The m12. + */ + @java.lang.Override + public double getM12() { + return m12_; + } + + public static final int M20_FIELD_NUMBER = 7; + private double m20_; + /** + * optional double m20 = 7; + * @return Whether the m20 field is set. + */ + @java.lang.Override + public boolean hasM20() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double m20 = 7; + * @return The m20. + */ + @java.lang.Override + public double getM20() { + return m20_; + } + + public static final int M21_FIELD_NUMBER = 8; + private double m21_; + /** + * optional double m21 = 8; + * @return Whether the m21 field is set. + */ + @java.lang.Override + public boolean hasM21() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional double m21 = 8; + * @return The m21. + */ + @java.lang.Override + public double getM21() { + return m21_; + } + + public static final int M22_FIELD_NUMBER = 9; + private double m22_; + /** + * optional double m22 = 9; + * @return Whether the m22 field is set. + */ + @java.lang.Override + public boolean hasM22() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional double m22 = 9; + * @return The m22. + */ + @java.lang.Override + public double getM22() { + return m22_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, m00_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, m01_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, m02_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(4, m10_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, m11_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(6, m12_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(7, m20_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeDouble(8, m21_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeDouble(9, m22_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, m00_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, m01_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, m02_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, m10_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, m11_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, m12_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, m20_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, m21_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, m22_); + } + 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.common.Geometry.Mat3)) { + return super.equals(obj); + } + cmvr.common.Geometry.Mat3 other = (cmvr.common.Geometry.Mat3) obj; + + if (hasM00() != other.hasM00()) return false; + if (hasM00()) { + if (java.lang.Double.doubleToLongBits(getM00()) + != java.lang.Double.doubleToLongBits( + other.getM00())) return false; + } + if (hasM01() != other.hasM01()) return false; + if (hasM01()) { + if (java.lang.Double.doubleToLongBits(getM01()) + != java.lang.Double.doubleToLongBits( + other.getM01())) return false; + } + if (hasM02() != other.hasM02()) return false; + if (hasM02()) { + if (java.lang.Double.doubleToLongBits(getM02()) + != java.lang.Double.doubleToLongBits( + other.getM02())) return false; + } + if (hasM10() != other.hasM10()) return false; + if (hasM10()) { + if (java.lang.Double.doubleToLongBits(getM10()) + != java.lang.Double.doubleToLongBits( + other.getM10())) return false; + } + if (hasM11() != other.hasM11()) return false; + if (hasM11()) { + if (java.lang.Double.doubleToLongBits(getM11()) + != java.lang.Double.doubleToLongBits( + other.getM11())) return false; + } + if (hasM12() != other.hasM12()) return false; + if (hasM12()) { + if (java.lang.Double.doubleToLongBits(getM12()) + != java.lang.Double.doubleToLongBits( + other.getM12())) return false; + } + if (hasM20() != other.hasM20()) return false; + if (hasM20()) { + if (java.lang.Double.doubleToLongBits(getM20()) + != java.lang.Double.doubleToLongBits( + other.getM20())) return false; + } + if (hasM21() != other.hasM21()) return false; + if (hasM21()) { + if (java.lang.Double.doubleToLongBits(getM21()) + != java.lang.Double.doubleToLongBits( + other.getM21())) return false; + } + if (hasM22() != other.hasM22()) return false; + if (hasM22()) { + if (java.lang.Double.doubleToLongBits(getM22()) + != java.lang.Double.doubleToLongBits( + other.getM22())) 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 (hasM00()) { + hash = (37 * hash) + M00_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM00())); + } + if (hasM01()) { + hash = (37 * hash) + M01_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM01())); + } + if (hasM02()) { + hash = (37 * hash) + M02_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM02())); + } + if (hasM10()) { + hash = (37 * hash) + M10_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM10())); + } + if (hasM11()) { + hash = (37 * hash) + M11_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM11())); + } + if (hasM12()) { + hash = (37 * hash) + M12_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM12())); + } + if (hasM20()) { + hash = (37 * hash) + M20_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM20())); + } + if (hasM21()) { + hash = (37 * hash) + M21_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM21())); + } + if (hasM22()) { + hash = (37 * hash) + M22_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM22())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.common.Geometry.Mat3 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Mat3 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Mat3 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Mat3 parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Mat3 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Mat3 parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Mat3 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Mat3 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.common.Geometry.Mat3 parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Mat3 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.common.Geometry.Mat3 parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Mat3 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.common.Geometry.Mat3 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.common.Mat3} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.common.Mat3) + cmvr.common.Geometry.Mat3OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Mat3_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Mat3_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Mat3.class, cmvr.common.Geometry.Mat3.Builder.class); + } + + // Construct using cmvr.common.Geometry.Mat3.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + m00_ = 0D; + bitField0_ = (bitField0_ & ~0x00000001); + m01_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); + m02_ = 0D; + bitField0_ = (bitField0_ & ~0x00000004); + m10_ = 0D; + bitField0_ = (bitField0_ & ~0x00000008); + m11_ = 0D; + bitField0_ = (bitField0_ & ~0x00000010); + m12_ = 0D; + bitField0_ = (bitField0_ & ~0x00000020); + m20_ = 0D; + bitField0_ = (bitField0_ & ~0x00000040); + m21_ = 0D; + bitField0_ = (bitField0_ & ~0x00000080); + m22_ = 0D; + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.common.Geometry.internal_static_cmvr_common_Mat3_descriptor; + } + + @java.lang.Override + public cmvr.common.Geometry.Mat3 getDefaultInstanceForType() { + return cmvr.common.Geometry.Mat3.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.common.Geometry.Mat3 build() { + cmvr.common.Geometry.Mat3 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.common.Geometry.Mat3 buildPartial() { + cmvr.common.Geometry.Mat3 result = new cmvr.common.Geometry.Mat3(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.m00_ = m00_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.m01_ = m01_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.m02_ = m02_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.m10_ = m10_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.m11_ = m11_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.m12_ = m12_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.m20_ = m20_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.m21_ = m21_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.m22_ = m22_; + to_bitField0_ |= 0x00000100; + } + result.bitField0_ = to_bitField0_; + 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.common.Geometry.Mat3) { + return mergeFrom((cmvr.common.Geometry.Mat3)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.common.Geometry.Mat3 other) { + if (other == cmvr.common.Geometry.Mat3.getDefaultInstance()) return this; + if (other.hasM00()) { + setM00(other.getM00()); + } + if (other.hasM01()) { + setM01(other.getM01()); + } + if (other.hasM02()) { + setM02(other.getM02()); + } + if (other.hasM10()) { + setM10(other.getM10()); + } + if (other.hasM11()) { + setM11(other.getM11()); + } + if (other.hasM12()) { + setM12(other.getM12()); + } + if (other.hasM20()) { + setM20(other.getM20()); + } + if (other.hasM21()) { + setM21(other.getM21()); + } + if (other.hasM22()) { + setM22(other.getM22()); + } + 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 9: { + m00_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + m01_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + m02_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 33: { + m10_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 41: { + m11_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 49: { + m12_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + case 57: { + m20_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 65: { + m21_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 65 + case 73: { + m22_ = input.readDouble(); + bitField0_ |= 0x00000100; + break; + } // case 73 + 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 double m00_ ; + /** + * optional double m00 = 1; + * @return Whether the m00 field is set. + */ + @java.lang.Override + public boolean hasM00() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double m00 = 1; + * @return The m00. + */ + @java.lang.Override + public double getM00() { + return m00_; + } + /** + * optional double m00 = 1; + * @param value The m00 to set. + * @return This builder for chaining. + */ + public Builder setM00(double value) { + bitField0_ |= 0x00000001; + m00_ = value; + onChanged(); + return this; + } + /** + * optional double m00 = 1; + * @return This builder for chaining. + */ + public Builder clearM00() { + bitField0_ = (bitField0_ & ~0x00000001); + m00_ = 0D; + onChanged(); + return this; + } + + private double m01_ ; + /** + * optional double m01 = 2; + * @return Whether the m01 field is set. + */ + @java.lang.Override + public boolean hasM01() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double m01 = 2; + * @return The m01. + */ + @java.lang.Override + public double getM01() { + return m01_; + } + /** + * optional double m01 = 2; + * @param value The m01 to set. + * @return This builder for chaining. + */ + public Builder setM01(double value) { + bitField0_ |= 0x00000002; + m01_ = value; + onChanged(); + return this; + } + /** + * optional double m01 = 2; + * @return This builder for chaining. + */ + public Builder clearM01() { + bitField0_ = (bitField0_ & ~0x00000002); + m01_ = 0D; + onChanged(); + return this; + } + + private double m02_ ; + /** + * optional double m02 = 3; + * @return Whether the m02 field is set. + */ + @java.lang.Override + public boolean hasM02() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double m02 = 3; + * @return The m02. + */ + @java.lang.Override + public double getM02() { + return m02_; + } + /** + * optional double m02 = 3; + * @param value The m02 to set. + * @return This builder for chaining. + */ + public Builder setM02(double value) { + bitField0_ |= 0x00000004; + m02_ = value; + onChanged(); + return this; + } + /** + * optional double m02 = 3; + * @return This builder for chaining. + */ + public Builder clearM02() { + bitField0_ = (bitField0_ & ~0x00000004); + m02_ = 0D; + onChanged(); + return this; + } + + private double m10_ ; + /** + * optional double m10 = 4; + * @return Whether the m10 field is set. + */ + @java.lang.Override + public boolean hasM10() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double m10 = 4; + * @return The m10. + */ + @java.lang.Override + public double getM10() { + return m10_; + } + /** + * optional double m10 = 4; + * @param value The m10 to set. + * @return This builder for chaining. + */ + public Builder setM10(double value) { + bitField0_ |= 0x00000008; + m10_ = value; + onChanged(); + return this; + } + /** + * optional double m10 = 4; + * @return This builder for chaining. + */ + public Builder clearM10() { + bitField0_ = (bitField0_ & ~0x00000008); + m10_ = 0D; + onChanged(); + return this; + } + + private double m11_ ; + /** + * optional double m11 = 5; + * @return Whether the m11 field is set. + */ + @java.lang.Override + public boolean hasM11() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double m11 = 5; + * @return The m11. + */ + @java.lang.Override + public double getM11() { + return m11_; + } + /** + * optional double m11 = 5; + * @param value The m11 to set. + * @return This builder for chaining. + */ + public Builder setM11(double value) { + bitField0_ |= 0x00000010; + m11_ = value; + onChanged(); + return this; + } + /** + * optional double m11 = 5; + * @return This builder for chaining. + */ + public Builder clearM11() { + bitField0_ = (bitField0_ & ~0x00000010); + m11_ = 0D; + onChanged(); + return this; + } + + private double m12_ ; + /** + * optional double m12 = 6; + * @return Whether the m12 field is set. + */ + @java.lang.Override + public boolean hasM12() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double m12 = 6; + * @return The m12. + */ + @java.lang.Override + public double getM12() { + return m12_; + } + /** + * optional double m12 = 6; + * @param value The m12 to set. + * @return This builder for chaining. + */ + public Builder setM12(double value) { + bitField0_ |= 0x00000020; + m12_ = value; + onChanged(); + return this; + } + /** + * optional double m12 = 6; + * @return This builder for chaining. + */ + public Builder clearM12() { + bitField0_ = (bitField0_ & ~0x00000020); + m12_ = 0D; + onChanged(); + return this; + } + + private double m20_ ; + /** + * optional double m20 = 7; + * @return Whether the m20 field is set. + */ + @java.lang.Override + public boolean hasM20() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double m20 = 7; + * @return The m20. + */ + @java.lang.Override + public double getM20() { + return m20_; + } + /** + * optional double m20 = 7; + * @param value The m20 to set. + * @return This builder for chaining. + */ + public Builder setM20(double value) { + bitField0_ |= 0x00000040; + m20_ = value; + onChanged(); + return this; + } + /** + * optional double m20 = 7; + * @return This builder for chaining. + */ + public Builder clearM20() { + bitField0_ = (bitField0_ & ~0x00000040); + m20_ = 0D; + onChanged(); + return this; + } + + private double m21_ ; + /** + * optional double m21 = 8; + * @return Whether the m21 field is set. + */ + @java.lang.Override + public boolean hasM21() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional double m21 = 8; + * @return The m21. + */ + @java.lang.Override + public double getM21() { + return m21_; + } + /** + * optional double m21 = 8; + * @param value The m21 to set. + * @return This builder for chaining. + */ + public Builder setM21(double value) { + bitField0_ |= 0x00000080; + m21_ = value; + onChanged(); + return this; + } + /** + * optional double m21 = 8; + * @return This builder for chaining. + */ + public Builder clearM21() { + bitField0_ = (bitField0_ & ~0x00000080); + m21_ = 0D; + onChanged(); + return this; + } + + private double m22_ ; + /** + * optional double m22 = 9; + * @return Whether the m22 field is set. + */ + @java.lang.Override + public boolean hasM22() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional double m22 = 9; + * @return The m22. + */ + @java.lang.Override + public double getM22() { + return m22_; + } + /** + * optional double m22 = 9; + * @param value The m22 to set. + * @return This builder for chaining. + */ + public Builder setM22(double value) { + bitField0_ |= 0x00000100; + m22_ = value; + onChanged(); + return this; + } + /** + * optional double m22 = 9; + * @return This builder for chaining. + */ + public Builder clearM22() { + bitField0_ = (bitField0_ & ~0x00000100); + m22_ = 0D; + 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.common.Mat3) + } + + // @@protoc_insertion_point(class_scope:cmvr.common.Mat3) + private static final cmvr.common.Geometry.Mat3 DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.common.Geometry.Mat3(); + } + + public static cmvr.common.Geometry.Mat3 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Mat3 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.common.Geometry.Mat3 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Mat4OrBuilder extends + // @@protoc_insertion_point(interface_extends:cmvr.common.Mat4) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double m00 = 1; + * @return Whether the m00 field is set. + */ + boolean hasM00(); + /** + * optional double m00 = 1; + * @return The m00. + */ + double getM00(); + + /** + * optional double m01 = 2; + * @return Whether the m01 field is set. + */ + boolean hasM01(); + /** + * optional double m01 = 2; + * @return The m01. + */ + double getM01(); + + /** + * optional double m02 = 3; + * @return Whether the m02 field is set. + */ + boolean hasM02(); + /** + * optional double m02 = 3; + * @return The m02. + */ + double getM02(); + + /** + * optional double m03 = 4; + * @return Whether the m03 field is set. + */ + boolean hasM03(); + /** + * optional double m03 = 4; + * @return The m03. + */ + double getM03(); + + /** + * optional double m10 = 5; + * @return Whether the m10 field is set. + */ + boolean hasM10(); + /** + * optional double m10 = 5; + * @return The m10. + */ + double getM10(); + + /** + * optional double m11 = 6; + * @return Whether the m11 field is set. + */ + boolean hasM11(); + /** + * optional double m11 = 6; + * @return The m11. + */ + double getM11(); + + /** + * optional double m12 = 7; + * @return Whether the m12 field is set. + */ + boolean hasM12(); + /** + * optional double m12 = 7; + * @return The m12. + */ + double getM12(); + + /** + * optional double m13 = 8; + * @return Whether the m13 field is set. + */ + boolean hasM13(); + /** + * optional double m13 = 8; + * @return The m13. + */ + double getM13(); + + /** + * optional double m20 = 9; + * @return Whether the m20 field is set. + */ + boolean hasM20(); + /** + * optional double m20 = 9; + * @return The m20. + */ + double getM20(); + + /** + * optional double m21 = 10; + * @return Whether the m21 field is set. + */ + boolean hasM21(); + /** + * optional double m21 = 10; + * @return The m21. + */ + double getM21(); + + /** + * optional double m22 = 11; + * @return Whether the m22 field is set. + */ + boolean hasM22(); + /** + * optional double m22 = 11; + * @return The m22. + */ + double getM22(); + + /** + * optional double m23 = 12; + * @return Whether the m23 field is set. + */ + boolean hasM23(); + /** + * optional double m23 = 12; + * @return The m23. + */ + double getM23(); + + /** + * optional double m30 = 13; + * @return Whether the m30 field is set. + */ + boolean hasM30(); + /** + * optional double m30 = 13; + * @return The m30. + */ + double getM30(); + + /** + * optional double m31 = 14; + * @return Whether the m31 field is set. + */ + boolean hasM31(); + /** + * optional double m31 = 14; + * @return The m31. + */ + double getM31(); + + /** + * optional double m32 = 15; + * @return Whether the m32 field is set. + */ + boolean hasM32(); + /** + * optional double m32 = 15; + * @return The m32. + */ + double getM32(); + + /** + * optional double m33 = 16; + * @return Whether the m33 field is set. + */ + boolean hasM33(); + /** + * optional double m33 = 16; + * @return The m33. + */ + double getM33(); + } + /** + * Protobuf type {@code cmvr.common.Mat4} + */ + public static final class Mat4 extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:cmvr.common.Mat4) + Mat4OrBuilder { + private static final long serialVersionUID = 0L; + // Use Mat4.newBuilder() to construct. + private Mat4(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Mat4() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Mat4(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Mat4_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Mat4_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Mat4.class, cmvr.common.Geometry.Mat4.Builder.class); + } + + private int bitField0_; + public static final int M00_FIELD_NUMBER = 1; + private double m00_; + /** + * optional double m00 = 1; + * @return Whether the m00 field is set. + */ + @java.lang.Override + public boolean hasM00() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double m00 = 1; + * @return The m00. + */ + @java.lang.Override + public double getM00() { + return m00_; + } + + public static final int M01_FIELD_NUMBER = 2; + private double m01_; + /** + * optional double m01 = 2; + * @return Whether the m01 field is set. + */ + @java.lang.Override + public boolean hasM01() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double m01 = 2; + * @return The m01. + */ + @java.lang.Override + public double getM01() { + return m01_; + } + + public static final int M02_FIELD_NUMBER = 3; + private double m02_; + /** + * optional double m02 = 3; + * @return Whether the m02 field is set. + */ + @java.lang.Override + public boolean hasM02() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double m02 = 3; + * @return The m02. + */ + @java.lang.Override + public double getM02() { + return m02_; + } + + public static final int M03_FIELD_NUMBER = 4; + private double m03_; + /** + * optional double m03 = 4; + * @return Whether the m03 field is set. + */ + @java.lang.Override + public boolean hasM03() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double m03 = 4; + * @return The m03. + */ + @java.lang.Override + public double getM03() { + return m03_; + } + + public static final int M10_FIELD_NUMBER = 5; + private double m10_; + /** + * optional double m10 = 5; + * @return Whether the m10 field is set. + */ + @java.lang.Override + public boolean hasM10() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double m10 = 5; + * @return The m10. + */ + @java.lang.Override + public double getM10() { + return m10_; + } + + public static final int M11_FIELD_NUMBER = 6; + private double m11_; + /** + * optional double m11 = 6; + * @return Whether the m11 field is set. + */ + @java.lang.Override + public boolean hasM11() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double m11 = 6; + * @return The m11. + */ + @java.lang.Override + public double getM11() { + return m11_; + } + + public static final int M12_FIELD_NUMBER = 7; + private double m12_; + /** + * optional double m12 = 7; + * @return Whether the m12 field is set. + */ + @java.lang.Override + public boolean hasM12() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double m12 = 7; + * @return The m12. + */ + @java.lang.Override + public double getM12() { + return m12_; + } + + public static final int M13_FIELD_NUMBER = 8; + private double m13_; + /** + * optional double m13 = 8; + * @return Whether the m13 field is set. + */ + @java.lang.Override + public boolean hasM13() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional double m13 = 8; + * @return The m13. + */ + @java.lang.Override + public double getM13() { + return m13_; + } + + public static final int M20_FIELD_NUMBER = 9; + private double m20_; + /** + * optional double m20 = 9; + * @return Whether the m20 field is set. + */ + @java.lang.Override + public boolean hasM20() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional double m20 = 9; + * @return The m20. + */ + @java.lang.Override + public double getM20() { + return m20_; + } + + public static final int M21_FIELD_NUMBER = 10; + private double m21_; + /** + * optional double m21 = 10; + * @return Whether the m21 field is set. + */ + @java.lang.Override + public boolean hasM21() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional double m21 = 10; + * @return The m21. + */ + @java.lang.Override + public double getM21() { + return m21_; + } + + public static final int M22_FIELD_NUMBER = 11; + private double m22_; + /** + * optional double m22 = 11; + * @return Whether the m22 field is set. + */ + @java.lang.Override + public boolean hasM22() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional double m22 = 11; + * @return The m22. + */ + @java.lang.Override + public double getM22() { + return m22_; + } + + public static final int M23_FIELD_NUMBER = 12; + private double m23_; + /** + * optional double m23 = 12; + * @return Whether the m23 field is set. + */ + @java.lang.Override + public boolean hasM23() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional double m23 = 12; + * @return The m23. + */ + @java.lang.Override + public double getM23() { + return m23_; + } + + public static final int M30_FIELD_NUMBER = 13; + private double m30_; + /** + * optional double m30 = 13; + * @return Whether the m30 field is set. + */ + @java.lang.Override + public boolean hasM30() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional double m30 = 13; + * @return The m30. + */ + @java.lang.Override + public double getM30() { + return m30_; + } + + public static final int M31_FIELD_NUMBER = 14; + private double m31_; + /** + * optional double m31 = 14; + * @return Whether the m31 field is set. + */ + @java.lang.Override + public boolean hasM31() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional double m31 = 14; + * @return The m31. + */ + @java.lang.Override + public double getM31() { + return m31_; + } + + public static final int M32_FIELD_NUMBER = 15; + private double m32_; + /** + * optional double m32 = 15; + * @return Whether the m32 field is set. + */ + @java.lang.Override + public boolean hasM32() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * optional double m32 = 15; + * @return The m32. + */ + @java.lang.Override + public double getM32() { + return m32_; + } + + public static final int M33_FIELD_NUMBER = 16; + private double m33_; + /** + * optional double m33 = 16; + * @return Whether the m33 field is set. + */ + @java.lang.Override + public boolean hasM33() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * optional double m33 = 16; + * @return The m33. + */ + @java.lang.Override + public double getM33() { + return m33_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, m00_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, m01_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, m02_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(4, m03_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, m10_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(6, m11_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(7, m12_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeDouble(8, m13_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeDouble(9, m20_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeDouble(10, m21_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeDouble(11, m22_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeDouble(12, m23_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeDouble(13, m30_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeDouble(14, m31_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeDouble(15, m32_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeDouble(16, m33_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, m00_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, m01_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, m02_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, m03_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, m10_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, m11_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, m12_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, m13_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, m20_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(10, m21_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(11, m22_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(12, m23_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(13, m30_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(14, m31_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(15, m32_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(16, m33_); + } + 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.common.Geometry.Mat4)) { + return super.equals(obj); + } + cmvr.common.Geometry.Mat4 other = (cmvr.common.Geometry.Mat4) obj; + + if (hasM00() != other.hasM00()) return false; + if (hasM00()) { + if (java.lang.Double.doubleToLongBits(getM00()) + != java.lang.Double.doubleToLongBits( + other.getM00())) return false; + } + if (hasM01() != other.hasM01()) return false; + if (hasM01()) { + if (java.lang.Double.doubleToLongBits(getM01()) + != java.lang.Double.doubleToLongBits( + other.getM01())) return false; + } + if (hasM02() != other.hasM02()) return false; + if (hasM02()) { + if (java.lang.Double.doubleToLongBits(getM02()) + != java.lang.Double.doubleToLongBits( + other.getM02())) return false; + } + if (hasM03() != other.hasM03()) return false; + if (hasM03()) { + if (java.lang.Double.doubleToLongBits(getM03()) + != java.lang.Double.doubleToLongBits( + other.getM03())) return false; + } + if (hasM10() != other.hasM10()) return false; + if (hasM10()) { + if (java.lang.Double.doubleToLongBits(getM10()) + != java.lang.Double.doubleToLongBits( + other.getM10())) return false; + } + if (hasM11() != other.hasM11()) return false; + if (hasM11()) { + if (java.lang.Double.doubleToLongBits(getM11()) + != java.lang.Double.doubleToLongBits( + other.getM11())) return false; + } + if (hasM12() != other.hasM12()) return false; + if (hasM12()) { + if (java.lang.Double.doubleToLongBits(getM12()) + != java.lang.Double.doubleToLongBits( + other.getM12())) return false; + } + if (hasM13() != other.hasM13()) return false; + if (hasM13()) { + if (java.lang.Double.doubleToLongBits(getM13()) + != java.lang.Double.doubleToLongBits( + other.getM13())) return false; + } + if (hasM20() != other.hasM20()) return false; + if (hasM20()) { + if (java.lang.Double.doubleToLongBits(getM20()) + != java.lang.Double.doubleToLongBits( + other.getM20())) return false; + } + if (hasM21() != other.hasM21()) return false; + if (hasM21()) { + if (java.lang.Double.doubleToLongBits(getM21()) + != java.lang.Double.doubleToLongBits( + other.getM21())) return false; + } + if (hasM22() != other.hasM22()) return false; + if (hasM22()) { + if (java.lang.Double.doubleToLongBits(getM22()) + != java.lang.Double.doubleToLongBits( + other.getM22())) return false; + } + if (hasM23() != other.hasM23()) return false; + if (hasM23()) { + if (java.lang.Double.doubleToLongBits(getM23()) + != java.lang.Double.doubleToLongBits( + other.getM23())) return false; + } + if (hasM30() != other.hasM30()) return false; + if (hasM30()) { + if (java.lang.Double.doubleToLongBits(getM30()) + != java.lang.Double.doubleToLongBits( + other.getM30())) return false; + } + if (hasM31() != other.hasM31()) return false; + if (hasM31()) { + if (java.lang.Double.doubleToLongBits(getM31()) + != java.lang.Double.doubleToLongBits( + other.getM31())) return false; + } + if (hasM32() != other.hasM32()) return false; + if (hasM32()) { + if (java.lang.Double.doubleToLongBits(getM32()) + != java.lang.Double.doubleToLongBits( + other.getM32())) return false; + } + if (hasM33() != other.hasM33()) return false; + if (hasM33()) { + if (java.lang.Double.doubleToLongBits(getM33()) + != java.lang.Double.doubleToLongBits( + other.getM33())) 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 (hasM00()) { + hash = (37 * hash) + M00_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM00())); + } + if (hasM01()) { + hash = (37 * hash) + M01_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM01())); + } + if (hasM02()) { + hash = (37 * hash) + M02_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM02())); + } + if (hasM03()) { + hash = (37 * hash) + M03_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM03())); + } + if (hasM10()) { + hash = (37 * hash) + M10_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM10())); + } + if (hasM11()) { + hash = (37 * hash) + M11_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM11())); + } + if (hasM12()) { + hash = (37 * hash) + M12_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM12())); + } + if (hasM13()) { + hash = (37 * hash) + M13_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM13())); + } + if (hasM20()) { + hash = (37 * hash) + M20_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM20())); + } + if (hasM21()) { + hash = (37 * hash) + M21_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM21())); + } + if (hasM22()) { + hash = (37 * hash) + M22_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM22())); + } + if (hasM23()) { + hash = (37 * hash) + M23_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM23())); + } + if (hasM30()) { + hash = (37 * hash) + M30_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM30())); + } + if (hasM31()) { + hash = (37 * hash) + M31_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM31())); + } + if (hasM32()) { + hash = (37 * hash) + M32_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM32())); + } + if (hasM33()) { + hash = (37 * hash) + M33_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getM33())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cmvr.common.Geometry.Mat4 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Mat4 parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Mat4 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Mat4 parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Mat4 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static cmvr.common.Geometry.Mat4 parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static cmvr.common.Geometry.Mat4 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Mat4 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.common.Geometry.Mat4 parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Mat4 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.common.Geometry.Mat4 parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static cmvr.common.Geometry.Mat4 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.common.Geometry.Mat4 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.common.Mat4} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:cmvr.common.Mat4) + cmvr.common.Geometry.Mat4OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return cmvr.common.Geometry.internal_static_cmvr_common_Mat4_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return cmvr.common.Geometry.internal_static_cmvr_common_Mat4_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cmvr.common.Geometry.Mat4.class, cmvr.common.Geometry.Mat4.Builder.class); + } + + // Construct using cmvr.common.Geometry.Mat4.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + m00_ = 0D; + bitField0_ = (bitField0_ & ~0x00000001); + m01_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); + m02_ = 0D; + bitField0_ = (bitField0_ & ~0x00000004); + m03_ = 0D; + bitField0_ = (bitField0_ & ~0x00000008); + m10_ = 0D; + bitField0_ = (bitField0_ & ~0x00000010); + m11_ = 0D; + bitField0_ = (bitField0_ & ~0x00000020); + m12_ = 0D; + bitField0_ = (bitField0_ & ~0x00000040); + m13_ = 0D; + bitField0_ = (bitField0_ & ~0x00000080); + m20_ = 0D; + bitField0_ = (bitField0_ & ~0x00000100); + m21_ = 0D; + bitField0_ = (bitField0_ & ~0x00000200); + m22_ = 0D; + bitField0_ = (bitField0_ & ~0x00000400); + m23_ = 0D; + bitField0_ = (bitField0_ & ~0x00000800); + m30_ = 0D; + bitField0_ = (bitField0_ & ~0x00001000); + m31_ = 0D; + bitField0_ = (bitField0_ & ~0x00002000); + m32_ = 0D; + bitField0_ = (bitField0_ & ~0x00004000); + m33_ = 0D; + bitField0_ = (bitField0_ & ~0x00008000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return cmvr.common.Geometry.internal_static_cmvr_common_Mat4_descriptor; + } + + @java.lang.Override + public cmvr.common.Geometry.Mat4 getDefaultInstanceForType() { + return cmvr.common.Geometry.Mat4.getDefaultInstance(); + } + + @java.lang.Override + public cmvr.common.Geometry.Mat4 build() { + cmvr.common.Geometry.Mat4 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cmvr.common.Geometry.Mat4 buildPartial() { + cmvr.common.Geometry.Mat4 result = new cmvr.common.Geometry.Mat4(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.m00_ = m00_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.m01_ = m01_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.m02_ = m02_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.m03_ = m03_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.m10_ = m10_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.m11_ = m11_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.m12_ = m12_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.m13_ = m13_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.m20_ = m20_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.m21_ = m21_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.m22_ = m22_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.m23_ = m23_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.m30_ = m30_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.m31_ = m31_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.m32_ = m32_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.m33_ = m33_; + to_bitField0_ |= 0x00008000; + } + result.bitField0_ = to_bitField0_; + 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.common.Geometry.Mat4) { + return mergeFrom((cmvr.common.Geometry.Mat4)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cmvr.common.Geometry.Mat4 other) { + if (other == cmvr.common.Geometry.Mat4.getDefaultInstance()) return this; + if (other.hasM00()) { + setM00(other.getM00()); + } + if (other.hasM01()) { + setM01(other.getM01()); + } + if (other.hasM02()) { + setM02(other.getM02()); + } + if (other.hasM03()) { + setM03(other.getM03()); + } + if (other.hasM10()) { + setM10(other.getM10()); + } + if (other.hasM11()) { + setM11(other.getM11()); + } + if (other.hasM12()) { + setM12(other.getM12()); + } + if (other.hasM13()) { + setM13(other.getM13()); + } + if (other.hasM20()) { + setM20(other.getM20()); + } + if (other.hasM21()) { + setM21(other.getM21()); + } + if (other.hasM22()) { + setM22(other.getM22()); + } + if (other.hasM23()) { + setM23(other.getM23()); + } + if (other.hasM30()) { + setM30(other.getM30()); + } + if (other.hasM31()) { + setM31(other.getM31()); + } + if (other.hasM32()) { + setM32(other.getM32()); + } + if (other.hasM33()) { + setM33(other.getM33()); + } + 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 9: { + m00_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + m01_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + m02_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 33: { + m03_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 41: { + m10_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 49: { + m11_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + case 57: { + m12_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 65: { + m13_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 65 + case 73: { + m20_ = input.readDouble(); + bitField0_ |= 0x00000100; + break; + } // case 73 + case 81: { + m21_ = input.readDouble(); + bitField0_ |= 0x00000200; + break; + } // case 81 + case 89: { + m22_ = input.readDouble(); + bitField0_ |= 0x00000400; + break; + } // case 89 + case 97: { + m23_ = input.readDouble(); + bitField0_ |= 0x00000800; + break; + } // case 97 + case 105: { + m30_ = input.readDouble(); + bitField0_ |= 0x00001000; + break; + } // case 105 + case 113: { + m31_ = input.readDouble(); + bitField0_ |= 0x00002000; + break; + } // case 113 + case 121: { + m32_ = input.readDouble(); + bitField0_ |= 0x00004000; + break; + } // case 121 + case 129: { + m33_ = input.readDouble(); + bitField0_ |= 0x00008000; + break; + } // case 129 + 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 double m00_ ; + /** + * optional double m00 = 1; + * @return Whether the m00 field is set. + */ + @java.lang.Override + public boolean hasM00() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double m00 = 1; + * @return The m00. + */ + @java.lang.Override + public double getM00() { + return m00_; + } + /** + * optional double m00 = 1; + * @param value The m00 to set. + * @return This builder for chaining. + */ + public Builder setM00(double value) { + bitField0_ |= 0x00000001; + m00_ = value; + onChanged(); + return this; + } + /** + * optional double m00 = 1; + * @return This builder for chaining. + */ + public Builder clearM00() { + bitField0_ = (bitField0_ & ~0x00000001); + m00_ = 0D; + onChanged(); + return this; + } + + private double m01_ ; + /** + * optional double m01 = 2; + * @return Whether the m01 field is set. + */ + @java.lang.Override + public boolean hasM01() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double m01 = 2; + * @return The m01. + */ + @java.lang.Override + public double getM01() { + return m01_; + } + /** + * optional double m01 = 2; + * @param value The m01 to set. + * @return This builder for chaining. + */ + public Builder setM01(double value) { + bitField0_ |= 0x00000002; + m01_ = value; + onChanged(); + return this; + } + /** + * optional double m01 = 2; + * @return This builder for chaining. + */ + public Builder clearM01() { + bitField0_ = (bitField0_ & ~0x00000002); + m01_ = 0D; + onChanged(); + return this; + } + + private double m02_ ; + /** + * optional double m02 = 3; + * @return Whether the m02 field is set. + */ + @java.lang.Override + public boolean hasM02() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double m02 = 3; + * @return The m02. + */ + @java.lang.Override + public double getM02() { + return m02_; + } + /** + * optional double m02 = 3; + * @param value The m02 to set. + * @return This builder for chaining. + */ + public Builder setM02(double value) { + bitField0_ |= 0x00000004; + m02_ = value; + onChanged(); + return this; + } + /** + * optional double m02 = 3; + * @return This builder for chaining. + */ + public Builder clearM02() { + bitField0_ = (bitField0_ & ~0x00000004); + m02_ = 0D; + onChanged(); + return this; + } + + private double m03_ ; + /** + * optional double m03 = 4; + * @return Whether the m03 field is set. + */ + @java.lang.Override + public boolean hasM03() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double m03 = 4; + * @return The m03. + */ + @java.lang.Override + public double getM03() { + return m03_; + } + /** + * optional double m03 = 4; + * @param value The m03 to set. + * @return This builder for chaining. + */ + public Builder setM03(double value) { + bitField0_ |= 0x00000008; + m03_ = value; + onChanged(); + return this; + } + /** + * optional double m03 = 4; + * @return This builder for chaining. + */ + public Builder clearM03() { + bitField0_ = (bitField0_ & ~0x00000008); + m03_ = 0D; + onChanged(); + return this; + } + + private double m10_ ; + /** + * optional double m10 = 5; + * @return Whether the m10 field is set. + */ + @java.lang.Override + public boolean hasM10() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double m10 = 5; + * @return The m10. + */ + @java.lang.Override + public double getM10() { + return m10_; + } + /** + * optional double m10 = 5; + * @param value The m10 to set. + * @return This builder for chaining. + */ + public Builder setM10(double value) { + bitField0_ |= 0x00000010; + m10_ = value; + onChanged(); + return this; + } + /** + * optional double m10 = 5; + * @return This builder for chaining. + */ + public Builder clearM10() { + bitField0_ = (bitField0_ & ~0x00000010); + m10_ = 0D; + onChanged(); + return this; + } + + private double m11_ ; + /** + * optional double m11 = 6; + * @return Whether the m11 field is set. + */ + @java.lang.Override + public boolean hasM11() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double m11 = 6; + * @return The m11. + */ + @java.lang.Override + public double getM11() { + return m11_; + } + /** + * optional double m11 = 6; + * @param value The m11 to set. + * @return This builder for chaining. + */ + public Builder setM11(double value) { + bitField0_ |= 0x00000020; + m11_ = value; + onChanged(); + return this; + } + /** + * optional double m11 = 6; + * @return This builder for chaining. + */ + public Builder clearM11() { + bitField0_ = (bitField0_ & ~0x00000020); + m11_ = 0D; + onChanged(); + return this; + } + + private double m12_ ; + /** + * optional double m12 = 7; + * @return Whether the m12 field is set. + */ + @java.lang.Override + public boolean hasM12() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double m12 = 7; + * @return The m12. + */ + @java.lang.Override + public double getM12() { + return m12_; + } + /** + * optional double m12 = 7; + * @param value The m12 to set. + * @return This builder for chaining. + */ + public Builder setM12(double value) { + bitField0_ |= 0x00000040; + m12_ = value; + onChanged(); + return this; + } + /** + * optional double m12 = 7; + * @return This builder for chaining. + */ + public Builder clearM12() { + bitField0_ = (bitField0_ & ~0x00000040); + m12_ = 0D; + onChanged(); + return this; + } + + private double m13_ ; + /** + * optional double m13 = 8; + * @return Whether the m13 field is set. + */ + @java.lang.Override + public boolean hasM13() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional double m13 = 8; + * @return The m13. + */ + @java.lang.Override + public double getM13() { + return m13_; + } + /** + * optional double m13 = 8; + * @param value The m13 to set. + * @return This builder for chaining. + */ + public Builder setM13(double value) { + bitField0_ |= 0x00000080; + m13_ = value; + onChanged(); + return this; + } + /** + * optional double m13 = 8; + * @return This builder for chaining. + */ + public Builder clearM13() { + bitField0_ = (bitField0_ & ~0x00000080); + m13_ = 0D; + onChanged(); + return this; + } + + private double m20_ ; + /** + * optional double m20 = 9; + * @return Whether the m20 field is set. + */ + @java.lang.Override + public boolean hasM20() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional double m20 = 9; + * @return The m20. + */ + @java.lang.Override + public double getM20() { + return m20_; + } + /** + * optional double m20 = 9; + * @param value The m20 to set. + * @return This builder for chaining. + */ + public Builder setM20(double value) { + bitField0_ |= 0x00000100; + m20_ = value; + onChanged(); + return this; + } + /** + * optional double m20 = 9; + * @return This builder for chaining. + */ + public Builder clearM20() { + bitField0_ = (bitField0_ & ~0x00000100); + m20_ = 0D; + onChanged(); + return this; + } + + private double m21_ ; + /** + * optional double m21 = 10; + * @return Whether the m21 field is set. + */ + @java.lang.Override + public boolean hasM21() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional double m21 = 10; + * @return The m21. + */ + @java.lang.Override + public double getM21() { + return m21_; + } + /** + * optional double m21 = 10; + * @param value The m21 to set. + * @return This builder for chaining. + */ + public Builder setM21(double value) { + bitField0_ |= 0x00000200; + m21_ = value; + onChanged(); + return this; + } + /** + * optional double m21 = 10; + * @return This builder for chaining. + */ + public Builder clearM21() { + bitField0_ = (bitField0_ & ~0x00000200); + m21_ = 0D; + onChanged(); + return this; + } + + private double m22_ ; + /** + * optional double m22 = 11; + * @return Whether the m22 field is set. + */ + @java.lang.Override + public boolean hasM22() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional double m22 = 11; + * @return The m22. + */ + @java.lang.Override + public double getM22() { + return m22_; + } + /** + * optional double m22 = 11; + * @param value The m22 to set. + * @return This builder for chaining. + */ + public Builder setM22(double value) { + bitField0_ |= 0x00000400; + m22_ = value; + onChanged(); + return this; + } + /** + * optional double m22 = 11; + * @return This builder for chaining. + */ + public Builder clearM22() { + bitField0_ = (bitField0_ & ~0x00000400); + m22_ = 0D; + onChanged(); + return this; + } + + private double m23_ ; + /** + * optional double m23 = 12; + * @return Whether the m23 field is set. + */ + @java.lang.Override + public boolean hasM23() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional double m23 = 12; + * @return The m23. + */ + @java.lang.Override + public double getM23() { + return m23_; + } + /** + * optional double m23 = 12; + * @param value The m23 to set. + * @return This builder for chaining. + */ + public Builder setM23(double value) { + bitField0_ |= 0x00000800; + m23_ = value; + onChanged(); + return this; + } + /** + * optional double m23 = 12; + * @return This builder for chaining. + */ + public Builder clearM23() { + bitField0_ = (bitField0_ & ~0x00000800); + m23_ = 0D; + onChanged(); + return this; + } + + private double m30_ ; + /** + * optional double m30 = 13; + * @return Whether the m30 field is set. + */ + @java.lang.Override + public boolean hasM30() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional double m30 = 13; + * @return The m30. + */ + @java.lang.Override + public double getM30() { + return m30_; + } + /** + * optional double m30 = 13; + * @param value The m30 to set. + * @return This builder for chaining. + */ + public Builder setM30(double value) { + bitField0_ |= 0x00001000; + m30_ = value; + onChanged(); + return this; + } + /** + * optional double m30 = 13; + * @return This builder for chaining. + */ + public Builder clearM30() { + bitField0_ = (bitField0_ & ~0x00001000); + m30_ = 0D; + onChanged(); + return this; + } + + private double m31_ ; + /** + * optional double m31 = 14; + * @return Whether the m31 field is set. + */ + @java.lang.Override + public boolean hasM31() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional double m31 = 14; + * @return The m31. + */ + @java.lang.Override + public double getM31() { + return m31_; + } + /** + * optional double m31 = 14; + * @param value The m31 to set. + * @return This builder for chaining. + */ + public Builder setM31(double value) { + bitField0_ |= 0x00002000; + m31_ = value; + onChanged(); + return this; + } + /** + * optional double m31 = 14; + * @return This builder for chaining. + */ + public Builder clearM31() { + bitField0_ = (bitField0_ & ~0x00002000); + m31_ = 0D; + onChanged(); + return this; + } + + private double m32_ ; + /** + * optional double m32 = 15; + * @return Whether the m32 field is set. + */ + @java.lang.Override + public boolean hasM32() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * optional double m32 = 15; + * @return The m32. + */ + @java.lang.Override + public double getM32() { + return m32_; + } + /** + * optional double m32 = 15; + * @param value The m32 to set. + * @return This builder for chaining. + */ + public Builder setM32(double value) { + bitField0_ |= 0x00004000; + m32_ = value; + onChanged(); + return this; + } + /** + * optional double m32 = 15; + * @return This builder for chaining. + */ + public Builder clearM32() { + bitField0_ = (bitField0_ & ~0x00004000); + m32_ = 0D; + onChanged(); + return this; + } + + private double m33_ ; + /** + * optional double m33 = 16; + * @return Whether the m33 field is set. + */ + @java.lang.Override + public boolean hasM33() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * optional double m33 = 16; + * @return The m33. + */ + @java.lang.Override + public double getM33() { + return m33_; + } + /** + * optional double m33 = 16; + * @param value The m33 to set. + * @return This builder for chaining. + */ + public Builder setM33(double value) { + bitField0_ |= 0x00008000; + m33_ = value; + onChanged(); + return this; + } + /** + * optional double m33 = 16; + * @return This builder for chaining. + */ + public Builder clearM33() { + bitField0_ = (bitField0_ & ~0x00008000); + m33_ = 0D; + 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.common.Mat4) + } + + // @@protoc_insertion_point(class_scope:cmvr.common.Mat4) + private static final cmvr.common.Geometry.Mat4 DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cmvr.common.Geometry.Mat4(); + } + + public static cmvr.common.Geometry.Mat4 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Mat4 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.common.Geometry.Mat4 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_common_Vec2_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_common_Vec2_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_common_Vec3_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_common_Vec3_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_common_Vec6_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_common_Vec6_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_common_Quat_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_common_Quat_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_common_Euler_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_common_Euler_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_common_Pose3d_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_common_Pose3d_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_common_Pose2d_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_common_Pose2d_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_common_Mat3_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_common_Mat3_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cmvr_common_Mat4_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_cmvr_common_Mat4_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\032cmvr/common/geometry.proto\022\013cmvr.commo" + + "n\"2\n\004Vec2\022\016\n\001x\030\001 \001(\001H\000\210\001\001\022\016\n\001y\030\002 \001(\001H\001\210\001" + + "\001B\004\n\002_xB\004\n\002_y\"H\n\004Vec3\022\016\n\001x\030\001 \001(\001H\000\210\001\001\022\016\n" + + "\001y\030\002 \001(\001H\001\210\001\001\022\016\n\001z\030\003 \001(\001H\002\210\001\001B\004\n\002_xB\004\n\002_" + + "yB\004\n\002_z\"\220\001\n\004Vec6\022\016\n\001x\030\001 \001(\001H\000\210\001\001\022\016\n\001y\030\002 " + + "\001(\001H\001\210\001\001\022\016\n\001z\030\003 \001(\001H\002\210\001\001\022\017\n\002rx\030\004 \001(\001H\003\210\001" + + "\001\022\017\n\002ry\030\005 \001(\001H\004\210\001\001\022\017\n\002rz\030\006 \001(\001H\005\210\001\001B\004\n\002_" + + "xB\004\n\002_yB\004\n\002_zB\005\n\003_rxB\005\n\003_ryB\005\n\003_rz\"^\n\004Qu" + + "at\022\016\n\001w\030\001 \001(\001H\000\210\001\001\022\016\n\001x\030\002 \001(\001H\001\210\001\001\022\016\n\001y\030" + + "\003 \001(\001H\002\210\001\001\022\016\n\001z\030\004 \001(\001H\003\210\001\001B\004\n\002_wB\004\n\002_xB\004" + + "\n\002_yB\004\n\002_z\"O\n\005Euler\022\017\n\002rx\030\001 \001(\001H\000\210\001\001\022\017\n\002" + + "ry\030\002 \001(\001H\001\210\001\001\022\017\n\002rz\030\003 \001(\001H\002\210\001\001B\005\n\003_rxB\005\n" + + "\003_ryB\005\n\003_rz\"w\n\006Pose3d\022#\n\010position\030\001 \001(\0132" + + "\021.cmvr.common.Vec3\022%\n\nquaternion\030\002 \001(\0132\021" + + ".cmvr.common.Quat\022!\n\005euler\030\003 \001(\0132\022.cmvr." + + "common.Euler\"R\n\006Pose2d\022\016\n\001x\030\001 \001(\001H\000\210\001\001\022\016" + + "\n\001y\030\002 \001(\001H\001\210\001\001\022\022\n\005theta\030\003 \001(\001H\002\210\001\001B\004\n\002_x" + + "B\004\n\002_yB\010\n\006_theta\"\360\001\n\004Mat3\022\020\n\003m00\030\001 \001(\001H\000" + + "\210\001\001\022\020\n\003m01\030\002 \001(\001H\001\210\001\001\022\020\n\003m02\030\003 \001(\001H\002\210\001\001\022" + + "\020\n\003m10\030\004 \001(\001H\003\210\001\001\022\020\n\003m11\030\005 \001(\001H\004\210\001\001\022\020\n\003m" + + "12\030\006 \001(\001H\005\210\001\001\022\020\n\003m20\030\007 \001(\001H\006\210\001\001\022\020\n\003m21\030\010" + + " \001(\001H\007\210\001\001\022\020\n\003m22\030\t \001(\001H\010\210\001\001B\006\n\004_m00B\006\n\004_" + + "m01B\006\n\004_m02B\006\n\004_m10B\006\n\004_m11B\006\n\004_m12B\006\n\004_" + + "m20B\006\n\004_m21B\006\n\004_m22\"\246\003\n\004Mat4\022\020\n\003m00\030\001 \001(" + + "\001H\000\210\001\001\022\020\n\003m01\030\002 \001(\001H\001\210\001\001\022\020\n\003m02\030\003 \001(\001H\002\210" + + "\001\001\022\020\n\003m03\030\004 \001(\001H\003\210\001\001\022\020\n\003m10\030\005 \001(\001H\004\210\001\001\022\020" + + "\n\003m11\030\006 \001(\001H\005\210\001\001\022\020\n\003m12\030\007 \001(\001H\006\210\001\001\022\020\n\003m1" + + "3\030\010 \001(\001H\007\210\001\001\022\020\n\003m20\030\t \001(\001H\010\210\001\001\022\020\n\003m21\030\n " + + "\001(\001H\t\210\001\001\022\020\n\003m22\030\013 \001(\001H\n\210\001\001\022\020\n\003m23\030\014 \001(\001H" + + "\013\210\001\001\022\020\n\003m30\030\r \001(\001H\014\210\001\001\022\020\n\003m31\030\016 \001(\001H\r\210\001\001" + + "\022\020\n\003m32\030\017 \001(\001H\016\210\001\001\022\020\n\003m33\030\020 \001(\001H\017\210\001\001B\006\n\004" + + "_m00B\006\n\004_m01B\006\n\004_m02B\006\n\004_m03B\006\n\004_m10B\006\n\004" + + "_m11B\006\n\004_m12B\006\n\004_m13B\006\n\004_m20B\006\n\004_m21B\006\n\004" + + "_m22B\006\n\004_m23B\006\n\004_m30B\006\n\004_m31B\006\n\004_m32B\006\n\004" + + "_m33b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_cmvr_common_Vec2_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_cmvr_common_Vec2_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_common_Vec2_descriptor, + new java.lang.String[] { "X", "Y", "X", "Y", }); + internal_static_cmvr_common_Vec3_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_cmvr_common_Vec3_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_common_Vec3_descriptor, + new java.lang.String[] { "X", "Y", "Z", "X", "Y", "Z", }); + internal_static_cmvr_common_Vec6_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_cmvr_common_Vec6_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_common_Vec6_descriptor, + new java.lang.String[] { "X", "Y", "Z", "Rx", "Ry", "Rz", "X", "Y", "Z", "Rx", "Ry", "Rz", }); + internal_static_cmvr_common_Quat_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_cmvr_common_Quat_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_common_Quat_descriptor, + new java.lang.String[] { "W", "X", "Y", "Z", "W", "X", "Y", "Z", }); + internal_static_cmvr_common_Euler_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_cmvr_common_Euler_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_common_Euler_descriptor, + new java.lang.String[] { "Rx", "Ry", "Rz", "Rx", "Ry", "Rz", }); + internal_static_cmvr_common_Pose3d_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_cmvr_common_Pose3d_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_common_Pose3d_descriptor, + new java.lang.String[] { "Position", "Quaternion", "Euler", }); + internal_static_cmvr_common_Pose2d_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_cmvr_common_Pose2d_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_common_Pose2d_descriptor, + new java.lang.String[] { "X", "Y", "Theta", "X", "Y", "Theta", }); + internal_static_cmvr_common_Mat3_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_cmvr_common_Mat3_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_common_Mat3_descriptor, + new java.lang.String[] { "M00", "M01", "M02", "M10", "M11", "M12", "M20", "M21", "M22", "M00", "M01", "M02", "M10", "M11", "M12", "M20", "M21", "M22", }); + internal_static_cmvr_common_Mat4_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_cmvr_common_Mat4_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_cmvr_common_Mat4_descriptor, + new java.lang.String[] { "M00", "M01", "M02", "M03", "M10", "M11", "M12", "M13", "M20", "M21", "M22", "M23", "M30", "M31", "M32", "M33", "M00", "M01", "M02", "M03", "M10", "M11", "M12", "M13", "M20", "M21", "M22", "M23", "M30", "M31", "M32", "M33", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/arm_service.proto b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/arm_service.proto index 92562f4..a050532 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/arm_service.proto +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/arm_service.proto @@ -20,4 +20,7 @@ service ArmService { rpc calibrateZeroQ(CalibrateZeroQ.Request) returns (CalibrateZeroQ.Response); rpc getPoseMatrix(GetPoseMatrix.Request) returns (GetPoseMatrix.Response); rpc computeForwardKinematics(ComputeForwardKinematics.Request) returns (ComputeForwardKinematics.Response); + + // Vendor-specific arm extension currently used for AUBO cabinet IO. + rpc ExecuteJsonCommand(JsonDeviceCommand.Request) returns (JsonDeviceCommand.Feedback); } diff --git a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/motor_command.proto b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/motor_command.proto index a02657d..a15c181 100644 --- a/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/motor_command.proto +++ b/cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib/src/main/proto/cmvr/api/motor_command.proto @@ -101,7 +101,7 @@ message SetMotorEnabledRequest { message CyclicStreamOpen { MotorTarget target = 1; - // The PLC/driver watchdog is authoritative. This service watchdog prevents a + // The device/driver watchdog is authoritative. This service watchdog prevents a // stalled gRPC client from retaining control indefinitely. uint32 watchdog_timeout_ms = 2; } 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 52b9922..c61fa36 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 @@ -21,6 +21,77 @@ message DeviceList { DeviceType device_type = 2; } +// Stable device categories used by GetDeviceList. This intentionally does not +// reuse the legacy DeviceType enum above: its zero value is AGV and it does not +// cover all DeviceManager categories. +enum SystemDeviceType { + SYSTEM_DEVICE_TYPE_UNSPECIFIED = 0; + SYSTEM_DEVICE_TYPE_AGV = 1; + SYSTEM_DEVICE_TYPE_ARM = 2; + SYSTEM_DEVICE_TYPE_BATTERY = 3; + SYSTEM_DEVICE_TYPE_BIO_HEAD = 4; + SYSTEM_DEVICE_TYPE_CAMERA = 5; + SYSTEM_DEVICE_TYPE_CAN_BUS = 6; + SYSTEM_DEVICE_TYPE_DEX_HAND = 7; + SYSTEM_DEVICE_TYPE_GRIPPER = 8; + SYSTEM_DEVICE_TYPE_MICROPHONE = 9; + SYSTEM_DEVICE_TYPE_MOTOR = 10; + SYSTEM_DEVICE_TYPE_MOTOR_SYSTEM = 11; + SYSTEM_DEVICE_TYPE_MUJOCO_VIEWER = 12; + SYSTEM_DEVICE_TYPE_MUJOCO_WORLD = 13; + SYSTEM_DEVICE_TYPE_ROBOT = 14; + SYSTEM_DEVICE_TYPE_SPEAKER = 15; +} + +enum SystemDeviceState { + SYSTEM_DEVICE_STATE_UNSPECIFIED = 0; + SYSTEM_DEVICE_STATE_DISABLED = 1; + SYSTEM_DEVICE_STATE_INITIALIZING = 2; + SYSTEM_DEVICE_STATE_REGISTERED = 3; + SYSTEM_DEVICE_STATE_READY = 4; + SYSTEM_DEVICE_STATE_RUNNING = 5; + SYSTEM_DEVICE_STATE_STOPPED = 6; + SYSTEM_DEVICE_STATE_ERROR = 7; +} + +enum SystemDeviceHealth { + SYSTEM_DEVICE_HEALTH_UNSPECIFIED = 0; + SYSTEM_DEVICE_HEALTH_HEALTHY = 1; + SYSTEM_DEVICE_HEALTH_DEGRADED = 2; + SYSTEM_DEVICE_HEALTH_FAULT = 3; +} + +message SystemDeviceInfo { + string device_id = 1; + SystemDeviceType device_type = 2; + + // Concrete backend name for display and diagnostics only. Consumers must + // use device_type, rather than this free-form string, for decisions. + string type_name = 3; + + // GetDeviceList currently publishes only enabled entries. Keep this field + // explicit so each row remains self-describing and future-compatible. + bool enabled = 4; + SystemDeviceState manager_state = 5; + SystemDeviceHealth health = 6; + bool has_error = 7; + string error_message = 8; + uint64 status_updated_at_unix_ms = 9; +} + +message GetDeviceListCommand { + message Request {} + + message Feedback { + CommandHeader.Feedback header = 1; + string manager_name = 2; + string manager_version = 3; + string manager_description = 4; + repeated SystemDeviceInfo device_list = 5; + uint64 sampled_at_unix_ms = 6; + } +} + message GetSystemInfoCommand { message Request {} @@ -69,4 +140,4 @@ message StopAllCommand { message Feedback { CommandHeader.Feedback header = 1; } -} \ No newline at end of file +} 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 84d1c9b..83f19af 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,5 @@ syntax = "proto3"; -import "cmvr/api/common.proto"; import "cmvr/api/system_command.proto"; package cmvr.api; @@ -9,9 +8,9 @@ package cmvr.api; service SystemService { rpc GetSystemInfo(GetSystemInfoCommand.Request) returns (GetSystemInfoCommand.Feedback) {} rpc GetSystemStatus(GetSystemStatusCommand.Request) returns (GetSystemStatusCommand.Feedback) {} + rpc GetDeviceList(GetDeviceListCommand.Request) returns (GetDeviceListCommand.Feedback) {} rpc UpdateParams(UpdateParamsCommand.Request) returns (UpdateParamsCommand.Feedback) {} - rpc ExecuteJsonCommand(JsonDeviceCommand.Request) returns (JsonDeviceCommand.Feedback) {} rpc StopAll(StopAllCommand.Request) returns (StopAllCommand.Feedback) {} } diff --git a/cmvr-iot-quic-contract/src/main/proto/cmvr/quic_edge/v1/quic_edge.proto b/cmvr-iot-quic-contract/src/main/proto/cmvr/quic_edge/v1/quic_edge.proto index 01a70d5..48f3a32 100644 --- a/cmvr-iot-quic-contract/src/main/proto/cmvr/quic_edge/v1/quic_edge.proto +++ b/cmvr-iot-quic-contract/src/main/proto/cmvr/quic_edge/v1/quic_edge.proto @@ -2,11 +2,10 @@ syntax = "proto3"; package cmvr.quic_edge.v1; -option java_package = "com.cmvr.quic.edge.v1"; -option java_multiple_files = true; -option java_outer_classname = "QuicEdgeProtocol"; - -// 本文件与cmvr-es提交428ee328中的QUIC edge v1协议保持线兼容。 +// Every application message on the edge-opened reliable bidirectional stream +// is carried by this envelope. message_sequence is strictly increasing per +// sender (gaps are allowed) and is independent from the heartbeat sequence used +// for liveness acknowledgement. message EdgeControlEnvelope { uint32 protocol_version = 1; uint64 message_sequence = 2; @@ -16,9 +15,11 @@ message EdgeControlEnvelope { NodeRegisterResponse node_register_response = 11; NodeHeartbeat node_heartbeat = 12; NodeHeartbeatAck node_heartbeat_ack = 13; + MediaSessionOpen media_session_open = 20; MediaTrackDescriptor media_track_descriptor = 21; MediaSessionClose media_session_close = 22; + ProtocolError protocol_error = 30; } } @@ -29,18 +30,24 @@ message NetworkInterfaceAddress { ADDRESS_FAMILY_IPV4 = 1; ADDRESS_FAMILY_IPV6 = 2; } + string interface_name = 1; string ip_address = 2; AddressFamily family = 3; bool loopback = 4; } +// The existing cmvr-es gRPC server remains the robot-control endpoint. The +// edge advertises its current reachable address through the QUIC control plane. message GrpcEndpoint { string host = 1; uint32 port = 2; bool tls = 3; } +// Stable protocol-level categories for devices managed by cmvr-es. These +// values intentionally do not reuse the configuration or gRPC API enums: +// their zero values and supported categories have different semantics. enum DeviceKind { DEVICE_KIND_UNSPECIFIED = 0; DEVICE_KIND_AGV = 1; @@ -58,6 +65,8 @@ enum DeviceKind { DEVICE_KIND_SPEAKER = 13; } +// DeviceManager's view of a configured entry. REGISTERED means that the +// manager owns a device record but has no more specific lifecycle signal. enum ManagedDeviceState { MANAGED_DEVICE_STATE_UNSPECIFIED = 0; MANAGED_DEVICE_STATE_DISABLED = 1; @@ -69,6 +78,8 @@ enum ManagedDeviceState { MANAGED_DEVICE_STATE_ERROR = 7; } +// Health is independent of lifecycle. UNSPECIFIED means that no trustworthy +// health observation is available and must never be interpreted as healthy. enum DeviceHealthStatus { DEVICE_HEALTH_STATUS_UNSPECIFIED = 0; DEVICE_HEALTH_STATUS_HEALTHY = 1; @@ -79,12 +90,24 @@ enum DeviceHealthStatus { message ManagedDeviceStatus { string device_id = 1; DeviceKind kind = 2; + + // Concrete implementation name when a device object exists; otherwise a + // category label. It is for display/diagnostics only. Consumers use kind, + // rather than this free-form string, for machine decisions. string type_name = 3; + bool enabled = 4; ManagedDeviceState manager_state = 5; DeviceHealthStatus health = 6; + + // false means that no error is currently confirmed. It does not turn + // DEVICE_HEALTH_STATUS_UNSPECIFIED into a healthy observation. bool has_error = 7; string error_message = 8; + + // Time at which DeviceManager last changed the lifecycle/error record. + // DeviceManagerSnapshot.sampled_at_unix_ms is the freshness timestamp for + // the health observation carried by this heartbeat. uint64 status_updated_at_unix_ms = 9; } @@ -92,6 +115,9 @@ message DeviceManagerSnapshot { string manager_name = 1; string manager_version = 2; string manager_description = 3; + + // Current cmvr-es senders include only enabled devices. The enabled field in + // each row and DISABLED enum value remain part of v1 for wire compatibility. repeated ManagedDeviceStatus devices = 4; uint64 sampled_at_unix_ms = 5; } @@ -102,8 +128,11 @@ message NodeDescriptor { string software_version = 3; repeated NetworkInterfaceAddress local_interfaces = 4; GrpcEndpoint grpc_endpoint = 5; + string robot_id = 6; } +// This must be the first application message sent after each QUIC connection +// is established. A reconnect always creates a new registration session. message NodeRegisterRequest { NodeDescriptor node = 1; uint64 sent_at_unix_ms = 2; @@ -113,10 +142,17 @@ message NodeRegisterResponse { bool accepted = 1; string session_id = 2; string message = 3; + + // Zero tells the edge to keep its locally configured interval. uint32 heartbeat_interval_ms = 4; + + // Derived by the receiver from the authenticated QUIC peer address. It is + // not copied from a client-supplied local interface. string observed_source_ip = 5; } +// A heartbeat carries a fresh network snapshot so address changes are reported +// without opening a second protocol or connection. message NodeHeartbeat { string node_id = 1; string boot_id = 2; @@ -127,6 +163,7 @@ message NodeHeartbeat { repeated NetworkInterfaceAddress local_interfaces = 7; GrpcEndpoint grpc_endpoint = 8; DeviceManagerSnapshot device_manager = 9; + string robot_id = 10; } message NodeHeartbeatAck { @@ -141,6 +178,9 @@ message NodeHeartbeatAck { message MediaSessionOpen { string node_id = 1; uint64 session_epoch = 2; + + // Binds the media epoch to the accepted node registration on this QUIC + // connection. Media must not start before this session is assigned. string session_id = 3; } @@ -156,14 +196,25 @@ message MediaTrackDescriptor { string device_id = 3; string codec = 4; uint64 codec_generation = 5; + + // The exact MediaSourceHub track and the 32-bit token repeated in every + // DATAGRAM header. The full generation remains on the reliable stream. string source_track_id = 6; uint32 codec_generation_token = 7; string payload_format = 8; + + // Video fields. They are zero for audio tracks. uint32 width = 10; uint32 height = 11; uint32 frames_per_second = 12; + + // Audio fields. They are zero for video tracks. uint32 sample_rate = 20; uint32 channels = 21; + + // Decoder initialization bytes, for example AVCC/HVCC or AudioSpecificConfig. + // Existing cmvr-es sources may leave this empty when configuration NAL units + // are carried in-band. bytes codec_config = 30; } diff --git a/cmvr-iot-quic-contract/src/main/proto/cmvr/quic_gateway/v1/quic_gateway.proto b/cmvr-iot-quic-contract/src/main/proto/cmvr/quic_gateway/v1/quic_gateway.proto index e8c6061..ef97aa9 100644 --- a/cmvr-iot-quic-contract/src/main/proto/cmvr/quic_gateway/v1/quic_gateway.proto +++ b/cmvr-iot-quic-contract/src/main/proto/cmvr/quic_gateway/v1/quic_gateway.proto @@ -35,6 +35,7 @@ message NodeSnapshot { DeviceManagerSnapshot device_manager = 12; uint64 media_session_epoch = 13; repeated MediaTrack tracks = 14; + string robot_id = 15; } message GrpcEndpoint { diff --git a/cmvr-iot-quic/src/main/java/com/cmvr/quic/gateway/core/ConnectionSession.java b/cmvr-iot-quic/src/main/java/com/cmvr/quic/gateway/core/ConnectionSession.java index 6088583..c2e588e 100644 --- a/cmvr-iot-quic/src/main/java/com/cmvr/quic/gateway/core/ConnectionSession.java +++ b/cmvr-iot-quic/src/main/java/com/cmvr/quic/gateway/core/ConnectionSession.java @@ -1,15 +1,18 @@ package com.cmvr.quic.gateway.core; -import com.cmvr.quic.edge.v1.DeviceManagerSnapshot; -import com.cmvr.quic.edge.v1.EdgeControlEnvelope; -import com.cmvr.quic.edge.v1.GrpcEndpoint; -import com.cmvr.quic.edge.v1.ManagedDeviceStatus; -import com.cmvr.quic.edge.v1.MediaSessionOpen; -import com.cmvr.quic.edge.v1.MediaTrackDescriptor; -import com.cmvr.quic.edge.v1.NetworkInterfaceAddress; -import com.cmvr.quic.edge.v1.NodeDescriptor; -import com.cmvr.quic.edge.v1.NodeHeartbeat; -import com.cmvr.quic.edge.v1.NodeRegisterRequest; +import cmvr.quic_edge.v1.QuicEdge.DeviceManagerSnapshot; +import cmvr.quic_edge.v1.QuicEdge.EdgeControlEnvelope; +import cmvr.quic_edge.v1.QuicEdge.GrpcEndpoint; +import cmvr.quic_edge.v1.QuicEdge.ManagedDeviceStatus; +import cmvr.quic_edge.v1.QuicEdge.MediaSessionOpen; +import cmvr.quic_edge.v1.QuicEdge.MediaTrackDescriptor; +import cmvr.quic_edge.v1.QuicEdge.NetworkInterfaceAddress; +import cmvr.quic_edge.v1.QuicEdge.NodeDescriptor; +import cmvr.quic_edge.v1.QuicEdge.NodeHeartbeat; +import cmvr.quic_edge.v1.QuicEdge.NodeHeartbeatAck; +import cmvr.quic_edge.v1.QuicEdge.NodeRegisterRequest; +import cmvr.quic_edge.v1.QuicEdge.NodeRegisterResponse; +import cmvr.quic_edge.v1.QuicEdge.ProtocolError; import com.cmvr.quic.gateway.config.GatewayConfig; import com.cmvr.quic.gateway.protocol.DatagramHeader; import com.cmvr.quic.gateway.protocol.MediaReassembler; @@ -61,6 +64,7 @@ public final class ConnectionSession { private String bootId = ""; private String sessionId = ""; private String softwareVersion = ""; + private String robotId = ""; private long registeredAtMs; private long lastHeartbeatAtMs; private long heartbeatSequence; @@ -142,6 +146,7 @@ public final class ConnectionSession { registered = true; nodeId = node.getNodeId(); bootId = node.getBootId(); + robotId = node.getRobotId(); sessionId = UUID.randomUUID().toString(); softwareVersion = node.getSoftwareVersion(); localInterfaces = node.getLocalInterfacesList(); @@ -152,7 +157,7 @@ public final class ConnectionSession { EdgeControlEnvelope response = EdgeControlEnvelope.newBuilder() .setProtocolVersion(PROTOCOL_VERSION) .setMessageSequence(nextOutboundSequence()) - .setNodeRegisterResponse(com.cmvr.quic.edge.v1.NodeRegisterResponse.newBuilder() + .setNodeRegisterResponse(NodeRegisterResponse.newBuilder() .setAccepted(true) .setSessionId(sessionId) .setMessage("accepted by cmvr Java QUIC gateway") @@ -160,9 +165,9 @@ public final class ConnectionSession { .setObservedSourceIp(observedSourceIp)) .build(); send(response); - log.info("QUIC终端注册成功,nodeId={},bootId={},sessionId={},remoteIp={}," + log.info("QUIC终端注册成功,nodeId={},robotId={},bootId={},sessionId={},remoteIp={}," + "grpcAdvertised={}:{},grpcEffective={}:{}", - nodeId, bootId, sessionId, observedSourceIp, + nodeId, robotId, bootId, sessionId, observedSourceIp, grpcEndpoint.getHost(), grpcEndpoint.getPort(), observedSourceIp, grpcEndpoint.getPort()); } @@ -179,6 +184,9 @@ public final class ConnectionSession { heartbeatSequence = heartbeat.getSequence(); lastHeartbeatAtMs = System.currentTimeMillis(); softwareVersion = heartbeat.getSoftwareVersion(); + if (!heartbeat.getRobotId().isEmpty()) { + robotId = heartbeat.getRobotId(); + } localInterfaces = heartbeat.getLocalInterfacesList(); grpcEndpoint = heartbeat.getGrpcEndpoint(); if (heartbeat.hasDeviceManager()) { @@ -191,7 +199,7 @@ public final class ConnectionSession { send(EdgeControlEnvelope.newBuilder() .setProtocolVersion(PROTOCOL_VERSION) .setMessageSequence(nextOutboundSequence()) - .setNodeHeartbeatAck(com.cmvr.quic.edge.v1.NodeHeartbeatAck.newBuilder() + .setNodeHeartbeatAck(NodeHeartbeatAck.newBuilder() .setAccepted(true) .setAcknowledgedSequence(heartbeat.getSequence()) .setMessage("ok") @@ -207,10 +215,10 @@ public final class ConnectionSession { && heartbeatMessagesReceived % HEARTBEAT_LOG_INTERVAL != 0) { return; } - log.info("收到QUIC终端心跳,nodeId={},sessionId={},count={},sequence={}," + log.info("收到QUIC终端心跳,nodeId={},robotId={},sessionId={},count={},sequence={}," + "sentAtUnixMs={},softwareVersion={},interfaces={}," + "grpcAdvertised={}:{},grpcEffective={}:{},devices={}", - nodeId, sessionId, heartbeatMessagesReceived, heartbeat.getSequence(), + nodeId, robotId, sessionId, heartbeatMessagesReceived, heartbeat.getSequence(), heartbeat.getSentAtUnixMs(), softwareVersion, localInterfaces.size(), grpcEndpoint.getHost(), grpcEndpoint.getPort(), observedSourceIp, grpcEndpoint.getPort(), deviceManager.getDevicesCount()); @@ -365,7 +373,7 @@ public final class ConnectionSession { EdgeControlEnvelope response = EdgeControlEnvelope.newBuilder() .setProtocolVersion(PROTOCOL_VERSION) .setMessageSequence(nextOutboundSequence()) - .setProtocolError(com.cmvr.quic.edge.v1.ProtocolError.newBuilder() + .setProtocolError(ProtocolError.newBuilder() .setCode(PROTOCOL_ERROR_CODE) .setMessage(message) .setRelatedMessageSequence(relatedSequence) @@ -380,6 +388,7 @@ public final class ConnectionSession { .setBootId(bootId) .setSessionId(sessionId) .setSoftwareVersion(softwareVersion) + .setRobotId(robotId) .setOnline(online) .setRegisteredAtUnixMs(registeredAtMs) .setLastHeartbeatAtUnixMs(lastHeartbeatAtMs) diff --git a/cmvr-iot-quic/src/main/java/com/cmvr/quic/gateway/server/ControlStreamHandler.java b/cmvr-iot-quic/src/main/java/com/cmvr/quic/gateway/server/ControlStreamHandler.java index 17627d5..39d3401 100644 --- a/cmvr-iot-quic/src/main/java/com/cmvr/quic/gateway/server/ControlStreamHandler.java +++ b/cmvr-iot-quic/src/main/java/com/cmvr/quic/gateway/server/ControlStreamHandler.java @@ -1,6 +1,6 @@ package com.cmvr.quic.gateway.server; -import com.cmvr.quic.edge.v1.EdgeControlEnvelope; +import cmvr.quic_edge.v1.QuicEdge.EdgeControlEnvelope; import com.cmvr.quic.gateway.core.ConnectionSession; import com.cmvr.quic.gateway.protocol.ControlFrameDecoder; import com.google.protobuf.InvalidProtocolBufferException; diff --git a/cmvr-iot-test/src/main/java/com/cmvr/test/enums/ActionEnum.java b/cmvr-iot-test/src/main/java/com/cmvr/test/enums/ActionEnum.java index 3851235..ff98483 100644 --- a/cmvr-iot-test/src/main/java/com/cmvr/test/enums/ActionEnum.java +++ b/cmvr-iot-test/src/main/java/com/cmvr/test/enums/ActionEnum.java @@ -61,6 +61,7 @@ public enum ActionEnum { TOUCH("EDGE", "TOUCH", "触控"), // 末端运动 ARM_MOVE_TO_POINT("EDGE", "ARM_MOVE_TO_POINT", "运动到指定点"), + ARM_MOVE_TO_J("EDGE", "ARM_MOVE_TO_J", "关节空间运动"), // --------------- 头部 --------------- BIO_HEAD_SPEAK_START("EDGE", "BIO_HEAD_SPEAK_START", "开始说话"), diff --git a/cmvr-iot-test/src/main/java/com/cmvr/test/flow/runtime/operator/edge/EdgeArmOperateService.java b/cmvr-iot-test/src/main/java/com/cmvr/test/flow/runtime/operator/edge/EdgeArmOperateService.java index bb8d925..9d0d939 100644 --- a/cmvr-iot-test/src/main/java/com/cmvr/test/flow/runtime/operator/edge/EdgeArmOperateService.java +++ b/cmvr-iot-test/src/main/java/com/cmvr/test/flow/runtime/operator/edge/EdgeArmOperateService.java @@ -1,5 +1,7 @@ package com.cmvr.test.flow.runtime.operator.edge; +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONObject; import com.cmvr.common.exception.GlobalException; import com.cmvr.edge.client.model.EdgeCommonVO; @@ -91,10 +93,70 @@ public class EdgeArmOperateService implements EdgeOperateService { ); log.info("机械臂末端运动任务下发成功"); + } else if (action == ActionEnum.ARM_MOVE_TO_J) { + executeMoveJ(edgeCommonVO, inputParams); } else { throw new GlobalException("不支持的机械臂操作类型: " + action); } return TaskNodeExecuteResult.success(); } + + private void executeMoveJ(EdgeCommonVO edgeCommonVO, JSONObject inputParams) { + double[] target = parseDoubleArray(inputParams.get("target"), "target", true); + double[] jointVelocityLimits = parseDoubleArray( + inputParams.get("jointVelocityLimits"), "jointVelocityLimits", false); + + log.info("执行机械臂关节空间运动,设备ID: {},目标关节数: {}", + edgeCommonVO.getDeviceId(), target.length); + edgeArmService.moveJ( + edgeCommonVO, + target, + inputParams.getDouble("velocity"), + inputParams.getDouble("acceleration"), + inputParams.getDouble("blendRadius"), + jointVelocityLimits, + inputParams.getBoolean("asynchronous") + ); + log.info("机械臂关节空间运动任务下发成功,设备ID: {}", edgeCommonVO.getDeviceId()); + } + + private double[] parseDoubleArray(Object value, String parameterName, boolean required) { + if (value == null || value instanceof String && ((String) value).trim().isEmpty()) { + if (required) { + throw new GlobalException("参数" + parameterName + "不能为空"); + } + return null; + } + + try { + JSONArray array; + if (value instanceof String) { + String text = ((String) value).trim(); + array = JSON.parseArray(text.startsWith("[") ? text : "[" + text + "]"); + } else { + array = JSON.parseArray(JSON.toJSONString(value)); + } + if (array == null || array.isEmpty()) { + if (required) { + throw new GlobalException("参数" + parameterName + "不能为空"); + } + return null; + } + + double[] result = new double[array.size()]; + for (int index = 0; index < array.size(); index++) { + Double number = array.getDouble(index); + if (number == null) { + throw new GlobalException("参数" + parameterName + "的第" + (index + 1) + "项不是有效数字"); + } + result[index] = number; + } + return result; + } catch (GlobalException exception) { + throw exception; + } catch (RuntimeException exception) { + throw new GlobalException("参数" + parameterName + "必须是数字数组,例如[0,0,0,0,0,0]"); + } + } } diff --git a/cmvr-iot-test/src/main/java/com/cmvr/test/service/FlowActionExecutorService.java b/cmvr-iot-test/src/main/java/com/cmvr/test/service/FlowActionExecutorService.java index e63a37f..45475b8 100644 --- a/cmvr-iot-test/src/main/java/com/cmvr/test/service/FlowActionExecutorService.java +++ b/cmvr-iot-test/src/main/java/com/cmvr/test/service/FlowActionExecutorService.java @@ -14,13 +14,13 @@ import com.cmvr.edge.client.service.EdgeHlcService; import com.cmvr.edge.client.service.EdgeMicrophoneService; import com.cmvr.edge.client.service.EdgeSpeakerService; import com.cmvr.edge.client.service.EdgeAgvService; -import com.cmvr.edge.client.service.EdgeArmService; import com.cmvr.device.service.InspectionAlertListenService; import com.cmvr.llm.service.LLMAiAgentPlatformService; import com.cmvr.test.enums.ActionEnum; import com.cmvr.test.flow.runtime.message.TaskNodeExecuteMessage; import com.cmvr.test.flow.runtime.operator.edge.EdgeManualInspectionOperateService; import com.cmvr.test.flow.runtime.operator.edge.EdgeDeviceCommandOperateService; +import com.cmvr.test.flow.runtime.operator.edge.EdgeArmOperateService; import com.cmvr.test.flow.runtime.operator.llm.InspectionMeterRecognizeOperateService; import com.cmvr.test.model.vo.FlowActionRequestVO; import lombok.RequiredArgsConstructor; @@ -39,7 +39,7 @@ public class FlowActionExecutorService { private final LLMAiAgentPlatformService llmAiAgentPlatformService; private final EdgeAgvService edgeAgvService; private final InspectionAlertListenService inspectionAlertListenService; - private final EdgeArmService edgeArmService; + private final EdgeArmOperateService edgeArmOperateService; private final EdgeManualInspectionOperateService edgeManualInspectionOperateService; private final EdgeDeviceCommandOperateService edgeDeviceCommandOperateService; private final InspectionMeterRecognizeOperateService inspectionMeterRecognizeOperateService; @@ -117,7 +117,14 @@ public class FlowActionExecutorService { // ==== 机械臂 ==== case ARM_MOVE_TO_POINT: - return executeArmMoveToPoint(edgeCommonVO, payload); + case ARM_MOVE_TO_J: { + TaskNodeExecuteMessage message = buildSingleNodeMessage(action, payload); + message.setTerminalId(terminalId); + edgeArmOperateService.execute(message); + return action == ActionEnum.ARM_MOVE_TO_J + ? "机械臂关节空间运动任务下发成功" + : "机械臂末端运动任务下发成功"; + } // ==== 语料 ==== case VI_PLAY_CORPUS: @@ -185,43 +192,6 @@ public class FlowActionExecutorService { } } - private String executeArmMoveToPoint(EdgeCommonVO edgeCommonVO, JSONObject payload) { - Double x = payload.getDouble("x"); - Double y = payload.getDouble("y"); - Double z = payload.getDouble("z"); - Double rx = payload.getDouble("rx"); - Double ry = payload.getDouble("ry"); - Double rz = payload.getDouble("rz"); - String frame = payload.getString("frame"); - Double velocity = payload.getDouble("velocity"); - Double acceleration = payload.getDouble("acceleration"); - Double blendRadius = payload.getDouble("blendRadius"); - - if (x == null || y == null || z == null) { - throw new GlobalException("X、Y、Z坐标不能为空"); - } - if (rx == null || ry == null || rz == null) { - throw new GlobalException("RX、RY、RZ旋转角度不能为空"); - } - - // 单节点执行和正式工作流保持一致:先开启力矩,再下发笛卡尔直线运动。 - edgeArmService.torqueOn(edgeCommonVO); - edgeArmService.moveL( - edgeCommonVO, - x, - y, - z, - rx, - ry, - rz, - frame, - velocity, - acceleration, - blendRadius - ); - return "机械臂末端运动任务下发成功"; - } - private String executeInspectionAlertAction(ActionEnum action, JSONObject payload) { String terminalId = payload.getString("terminalId"); java.util.List types = resolveInspectionAlertEventTypes(payload);