// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cmvr/api/safety_command.proto
package cmvr.api;
public final class SafetyCommand {
private SafetyCommand() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code cmvr.api.SafetyTriState}
*/
public enum SafetyTriState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SAFETY_TRI_STATE_UNKNOWN = 0;
*/
SAFETY_TRI_STATE_UNKNOWN(0),
/**
* SAFETY_TRI_STATE_FALSE = 1;
*/
SAFETY_TRI_STATE_FALSE(1),
/**
* SAFETY_TRI_STATE_TRUE = 2;
*/
SAFETY_TRI_STATE_TRUE(2),
UNRECOGNIZED(-1),
;
/**
* SAFETY_TRI_STATE_UNKNOWN = 0;
*/
public static final int SAFETY_TRI_STATE_UNKNOWN_VALUE = 0;
/**
* SAFETY_TRI_STATE_FALSE = 1;
*/
public static final int SAFETY_TRI_STATE_FALSE_VALUE = 1;
/**
* SAFETY_TRI_STATE_TRUE = 2;
*/
public static final int SAFETY_TRI_STATE_TRUE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SafetyTriState valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SafetyTriState forNumber(int value) {
switch (value) {
case 0: return SAFETY_TRI_STATE_UNKNOWN;
case 1: return SAFETY_TRI_STATE_FALSE;
case 2: return SAFETY_TRI_STATE_TRUE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SafetyTriState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SafetyTriState findValueByNumber(int number) {
return SafetyTriState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(0);
}
private static final SafetyTriState[] VALUES = values();
public static SafetyTriState valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SafetyTriState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.api.SafetyTriState)
}
/**
* Protobuf enum {@code cmvr.api.SafetyCondition}
*/
public enum SafetyCondition
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SAFETY_CONDITION_UNKNOWN = 0;
*/
SAFETY_CONDITION_UNKNOWN(0),
/**
* SAFETY_CONDITION_NOMINAL = 1;
*/
SAFETY_CONDITION_NOMINAL(1),
/**
* SAFETY_CONDITION_RESTRICTED = 2;
*/
SAFETY_CONDITION_RESTRICTED(2),
/**
* SAFETY_CONDITION_UNSAFE = 3;
*/
SAFETY_CONDITION_UNSAFE(3),
UNRECOGNIZED(-1),
;
/**
* SAFETY_CONDITION_UNKNOWN = 0;
*/
public static final int SAFETY_CONDITION_UNKNOWN_VALUE = 0;
/**
* SAFETY_CONDITION_NOMINAL = 1;
*/
public static final int SAFETY_CONDITION_NOMINAL_VALUE = 1;
/**
* SAFETY_CONDITION_RESTRICTED = 2;
*/
public static final int SAFETY_CONDITION_RESTRICTED_VALUE = 2;
/**
* SAFETY_CONDITION_UNSAFE = 3;
*/
public static final int SAFETY_CONDITION_UNSAFE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SafetyCondition valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SafetyCondition forNumber(int value) {
switch (value) {
case 0: return SAFETY_CONDITION_UNKNOWN;
case 1: return SAFETY_CONDITION_NOMINAL;
case 2: return SAFETY_CONDITION_RESTRICTED;
case 3: return SAFETY_CONDITION_UNSAFE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SafetyCondition> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SafetyCondition findValueByNumber(int number) {
return SafetyCondition.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(1);
}
private static final SafetyCondition[] VALUES = values();
public static SafetyCondition valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SafetyCondition(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.api.SafetyCondition)
}
/**
* Protobuf enum {@code cmvr.api.SystemAdmissionState}
*/
public enum SystemAdmissionState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SYSTEM_ADMISSION_STATE_UNSPECIFIED = 0;
*/
SYSTEM_ADMISSION_STATE_UNSPECIFIED(0),
/**
* SYSTEM_ADMISSION_STATE_STARTING = 1;
*/
SYSTEM_ADMISSION_STATE_STARTING(1),
/**
* SYSTEM_ADMISSION_STATE_OPEN = 2;
*/
SYSTEM_ADMISSION_STATE_OPEN(2),
/**
* SYSTEM_ADMISSION_STATE_STOPPING = 3;
*/
SYSTEM_ADMISSION_STATE_STOPPING(3),
/**
* SYSTEM_ADMISSION_STATE_LATCHED = 4;
*/
SYSTEM_ADMISSION_STATE_LATCHED(4),
/**
* SYSTEM_ADMISSION_STATE_RECOVERING = 5;
*/
SYSTEM_ADMISSION_STATE_RECOVERING(5),
/**
* SYSTEM_ADMISSION_STATE_SHUTTING_DOWN = 6;
*/
SYSTEM_ADMISSION_STATE_SHUTTING_DOWN(6),
UNRECOGNIZED(-1),
;
/**
* SYSTEM_ADMISSION_STATE_UNSPECIFIED = 0;
*/
public static final int SYSTEM_ADMISSION_STATE_UNSPECIFIED_VALUE = 0;
/**
* SYSTEM_ADMISSION_STATE_STARTING = 1;
*/
public static final int SYSTEM_ADMISSION_STATE_STARTING_VALUE = 1;
/**
* SYSTEM_ADMISSION_STATE_OPEN = 2;
*/
public static final int SYSTEM_ADMISSION_STATE_OPEN_VALUE = 2;
/**
* SYSTEM_ADMISSION_STATE_STOPPING = 3;
*/
public static final int SYSTEM_ADMISSION_STATE_STOPPING_VALUE = 3;
/**
* SYSTEM_ADMISSION_STATE_LATCHED = 4;
*/
public static final int SYSTEM_ADMISSION_STATE_LATCHED_VALUE = 4;
/**
* SYSTEM_ADMISSION_STATE_RECOVERING = 5;
*/
public static final int SYSTEM_ADMISSION_STATE_RECOVERING_VALUE = 5;
/**
* SYSTEM_ADMISSION_STATE_SHUTTING_DOWN = 6;
*/
public static final int SYSTEM_ADMISSION_STATE_SHUTTING_DOWN_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SystemAdmissionState valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SystemAdmissionState forNumber(int value) {
switch (value) {
case 0: return SYSTEM_ADMISSION_STATE_UNSPECIFIED;
case 1: return SYSTEM_ADMISSION_STATE_STARTING;
case 2: return SYSTEM_ADMISSION_STATE_OPEN;
case 3: return SYSTEM_ADMISSION_STATE_STOPPING;
case 4: return SYSTEM_ADMISSION_STATE_LATCHED;
case 5: return SYSTEM_ADMISSION_STATE_RECOVERING;
case 6: return SYSTEM_ADMISSION_STATE_SHUTTING_DOWN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SystemAdmissionState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SystemAdmissionState findValueByNumber(int number) {
return SystemAdmissionState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(2);
}
private static final SystemAdmissionState[] VALUES = values();
public static SystemAdmissionState valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SystemAdmissionState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.api.SystemAdmissionState)
}
/**
* Protobuf enum {@code cmvr.api.DeviceAdmissionState}
*/
public enum DeviceAdmissionState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DEVICE_ADMISSION_STATE_UNSPECIFIED = 0;
*/
DEVICE_ADMISSION_STATE_UNSPECIFIED(0),
/**
* DEVICE_ADMISSION_STATE_OBSERVING = 1;
*/
DEVICE_ADMISSION_STATE_OBSERVING(1),
/**
* DEVICE_ADMISSION_STATE_OPEN = 2;
*/
DEVICE_ADMISSION_STATE_OPEN(2),
/**
* DEVICE_ADMISSION_STATE_BLOCKED = 3;
*/
DEVICE_ADMISSION_STATE_BLOCKED(3),
/**
* DEVICE_ADMISSION_STATE_QUARANTINED = 4;
*/
DEVICE_ADMISSION_STATE_QUARANTINED(4),
/**
* DEVICE_ADMISSION_STATE_RECOVERING = 5;
*/
DEVICE_ADMISSION_STATE_RECOVERING(5),
/**
* DEVICE_ADMISSION_STATE_REMOVED = 6;
*/
DEVICE_ADMISSION_STATE_REMOVED(6),
UNRECOGNIZED(-1),
;
/**
* DEVICE_ADMISSION_STATE_UNSPECIFIED = 0;
*/
public static final int DEVICE_ADMISSION_STATE_UNSPECIFIED_VALUE = 0;
/**
* DEVICE_ADMISSION_STATE_OBSERVING = 1;
*/
public static final int DEVICE_ADMISSION_STATE_OBSERVING_VALUE = 1;
/**
* DEVICE_ADMISSION_STATE_OPEN = 2;
*/
public static final int DEVICE_ADMISSION_STATE_OPEN_VALUE = 2;
/**
* DEVICE_ADMISSION_STATE_BLOCKED = 3;
*/
public static final int DEVICE_ADMISSION_STATE_BLOCKED_VALUE = 3;
/**
* DEVICE_ADMISSION_STATE_QUARANTINED = 4;
*/
public static final int DEVICE_ADMISSION_STATE_QUARANTINED_VALUE = 4;
/**
* DEVICE_ADMISSION_STATE_RECOVERING = 5;
*/
public static final int DEVICE_ADMISSION_STATE_RECOVERING_VALUE = 5;
/**
* DEVICE_ADMISSION_STATE_REMOVED = 6;
*/
public static final int DEVICE_ADMISSION_STATE_REMOVED_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DeviceAdmissionState valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DeviceAdmissionState forNumber(int value) {
switch (value) {
case 0: return DEVICE_ADMISSION_STATE_UNSPECIFIED;
case 1: return DEVICE_ADMISSION_STATE_OBSERVING;
case 2: return DEVICE_ADMISSION_STATE_OPEN;
case 3: return DEVICE_ADMISSION_STATE_BLOCKED;
case 4: return DEVICE_ADMISSION_STATE_QUARANTINED;
case 5: return DEVICE_ADMISSION_STATE_RECOVERING;
case 6: return DEVICE_ADMISSION_STATE_REMOVED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DeviceAdmissionState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DeviceAdmissionState findValueByNumber(int number) {
return DeviceAdmissionState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(3);
}
private static final DeviceAdmissionState[] VALUES = values();
public static DeviceAdmissionState valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private DeviceAdmissionState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.api.DeviceAdmissionState)
}
/**
* Protobuf enum {@code cmvr.api.SafetyBlockerScope}
*/
public enum SafetyBlockerScope
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SAFETY_BLOCKER_SCOPE_UNSPECIFIED = 0;
*/
SAFETY_BLOCKER_SCOPE_UNSPECIFIED(0),
/**
* SAFETY_BLOCKER_SCOPE_DEVICE = 1;
*/
SAFETY_BLOCKER_SCOPE_DEVICE(1),
/**
* SAFETY_BLOCKER_SCOPE_SYSTEM = 2;
*/
SAFETY_BLOCKER_SCOPE_SYSTEM(2),
UNRECOGNIZED(-1),
;
/**
* SAFETY_BLOCKER_SCOPE_UNSPECIFIED = 0;
*/
public static final int SAFETY_BLOCKER_SCOPE_UNSPECIFIED_VALUE = 0;
/**
* SAFETY_BLOCKER_SCOPE_DEVICE = 1;
*/
public static final int SAFETY_BLOCKER_SCOPE_DEVICE_VALUE = 1;
/**
* SAFETY_BLOCKER_SCOPE_SYSTEM = 2;
*/
public static final int SAFETY_BLOCKER_SCOPE_SYSTEM_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SafetyBlockerScope valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SafetyBlockerScope forNumber(int value) {
switch (value) {
case 0: return SAFETY_BLOCKER_SCOPE_UNSPECIFIED;
case 1: return SAFETY_BLOCKER_SCOPE_DEVICE;
case 2: return SAFETY_BLOCKER_SCOPE_SYSTEM;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SafetyBlockerScope> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SafetyBlockerScope findValueByNumber(int number) {
return SafetyBlockerScope.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(4);
}
private static final SafetyBlockerScope[] VALUES = values();
public static SafetyBlockerScope valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SafetyBlockerScope(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.api.SafetyBlockerScope)
}
/**
* Protobuf enum {@code cmvr.api.SafetyRecoveryRequirement}
*/
public enum SafetyRecoveryRequirement
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED = 0;
*/
SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED(0),
/**
* SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY = 1;
*/
SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY(1),
/**
* SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH = 2;
*/
SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH(2),
/**
* SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED = 3;
*/
SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED(3),
/**
* SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED = 4;
*/
SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED(4),
UNRECOGNIZED(-1),
;
/**
* SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED = 0;
*/
public static final int SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED_VALUE = 0;
/**
* SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY = 1;
*/
public static final int SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY_VALUE = 1;
/**
* SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH = 2;
*/
public static final int SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH_VALUE = 2;
/**
* SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED = 3;
*/
public static final int SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED_VALUE = 3;
/**
* SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED = 4;
*/
public static final int SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SafetyRecoveryRequirement valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SafetyRecoveryRequirement forNumber(int value) {
switch (value) {
case 0: return SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED;
case 1: return SAFETY_RECOVERY_REQUIREMENT_REFRESH_ONLY;
case 2: return SAFETY_RECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH;
case 3: return SAFETY_RECOVERY_REQUIREMENT_HARDWARE_RELEASE_REQUIRED;
case 4: return SAFETY_RECOVERY_REQUIREMENT_MANUAL_INSPECTION_REQUIRED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SafetyRecoveryRequirement> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SafetyRecoveryRequirement findValueByNumber(int number) {
return SafetyRecoveryRequirement.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(5);
}
private static final SafetyRecoveryRequirement[] VALUES = values();
public static SafetyRecoveryRequirement valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SafetyRecoveryRequirement(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.api.SafetyRecoveryRequirement)
}
/**
* Protobuf enum {@code cmvr.api.SafetyOperationResult}
*/
public enum SafetyOperationResult
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SAFETY_OPERATION_RESULT_UNSPECIFIED = 0;
*/
SAFETY_OPERATION_RESULT_UNSPECIFIED(0),
/**
* SAFETY_OPERATION_RESULT_SUCCEEDED = 1;
*/
SAFETY_OPERATION_RESULT_SUCCEEDED(1),
/**
* SAFETY_OPERATION_RESULT_RECOVERED = 2;
*/
SAFETY_OPERATION_RESULT_RECOVERED(2),
/**
* SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED = 3;
*/
SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED(3),
/**
* SAFETY_OPERATION_RESULT_BLOCKER_REMAINS = 4;
*/
SAFETY_OPERATION_RESULT_BLOCKER_REMAINS(4),
/**
* SAFETY_OPERATION_RESULT_EPOCH_MISMATCH = 5;
*/
SAFETY_OPERATION_RESULT_EPOCH_MISMATCH(5),
/**
* SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER = 6;
*/
SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER(6),
/**
* SAFETY_OPERATION_RESULT_TIMED_OUT = 7;
*/
SAFETY_OPERATION_RESULT_TIMED_OUT(7),
/**
* SAFETY_OPERATION_RESULT_FAILED = 8;
*/
SAFETY_OPERATION_RESULT_FAILED(8),
UNRECOGNIZED(-1),
;
/**
* SAFETY_OPERATION_RESULT_UNSPECIFIED = 0;
*/
public static final int SAFETY_OPERATION_RESULT_UNSPECIFIED_VALUE = 0;
/**
* SAFETY_OPERATION_RESULT_SUCCEEDED = 1;
*/
public static final int SAFETY_OPERATION_RESULT_SUCCEEDED_VALUE = 1;
/**
* SAFETY_OPERATION_RESULT_RECOVERED = 2;
*/
public static final int SAFETY_OPERATION_RESULT_RECOVERED_VALUE = 2;
/**
* SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED = 3;
*/
public static final int SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED_VALUE = 3;
/**
* SAFETY_OPERATION_RESULT_BLOCKER_REMAINS = 4;
*/
public static final int SAFETY_OPERATION_RESULT_BLOCKER_REMAINS_VALUE = 4;
/**
* SAFETY_OPERATION_RESULT_EPOCH_MISMATCH = 5;
*/
public static final int SAFETY_OPERATION_RESULT_EPOCH_MISMATCH_VALUE = 5;
/**
* SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER = 6;
*/
public static final int SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER_VALUE = 6;
/**
* SAFETY_OPERATION_RESULT_TIMED_OUT = 7;
*/
public static final int SAFETY_OPERATION_RESULT_TIMED_OUT_VALUE = 7;
/**
* SAFETY_OPERATION_RESULT_FAILED = 8;
*/
public static final int SAFETY_OPERATION_RESULT_FAILED_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SafetyOperationResult valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SafetyOperationResult forNumber(int value) {
switch (value) {
case 0: return SAFETY_OPERATION_RESULT_UNSPECIFIED;
case 1: return SAFETY_OPERATION_RESULT_SUCCEEDED;
case 2: return SAFETY_OPERATION_RESULT_RECOVERED;
case 3: return SAFETY_OPERATION_RESULT_VERIFIED_BUT_STILL_BLOCKED;
case 4: return SAFETY_OPERATION_RESULT_BLOCKER_REMAINS;
case 5: return SAFETY_OPERATION_RESULT_EPOCH_MISMATCH;
case 6: return SAFETY_OPERATION_RESULT_NOTHING_TO_RECOVER;
case 7: return SAFETY_OPERATION_RESULT_TIMED_OUT;
case 8: return SAFETY_OPERATION_RESULT_FAILED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SafetyOperationResult> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SafetyOperationResult findValueByNumber(int number) {
return SafetyOperationResult.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cmvr.api.SafetyCommand.getDescriptor().getEnumTypes().get(6);
}
private static final SafetyOperationResult[] VALUES = values();
public static SafetyOperationResult valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SafetyOperationResult(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.api.SafetyOperationResult)
}
public interface DeviceIdListOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.DeviceIdList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string device_ids = 1;
* @return A list containing the deviceIds.
*/
java.util.List
getDeviceIdsList();
/**
* repeated string device_ids = 1;
* @return The count of deviceIds.
*/
int getDeviceIdsCount();
/**
* repeated string device_ids = 1;
* @param index The index of the element to return.
* @return The deviceIds at the given index.
*/
java.lang.String getDeviceIds(int index);
/**
* repeated string device_ids = 1;
* @param index The index of the value to return.
* @return The bytes of the deviceIds at the given index.
*/
com.google.protobuf.ByteString
getDeviceIdsBytes(int index);
}
/**
* Protobuf type {@code cmvr.api.DeviceIdList}
*/
public static final class DeviceIdList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.DeviceIdList)
DeviceIdListOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeviceIdList.newBuilder() to construct.
private DeviceIdList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeviceIdList() {
deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeviceIdList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceIdList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceIdList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.DeviceIdList.class, cmvr.api.SafetyCommand.DeviceIdList.Builder.class);
}
public static final int DEVICE_IDS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList deviceIds_;
/**
* repeated string device_ids = 1;
* @return A list containing the deviceIds.
*/
public com.google.protobuf.ProtocolStringList
getDeviceIdsList() {
return deviceIds_;
}
/**
* repeated string device_ids = 1;
* @return The count of deviceIds.
*/
public int getDeviceIdsCount() {
return deviceIds_.size();
}
/**
* repeated string device_ids = 1;
* @param index The index of the element to return.
* @return The deviceIds at the given index.
*/
public java.lang.String getDeviceIds(int index) {
return deviceIds_.get(index);
}
/**
* repeated string device_ids = 1;
* @param index The index of the value to return.
* @return The bytes of the deviceIds at the given index.
*/
public com.google.protobuf.ByteString
getDeviceIdsBytes(int index) {
return deviceIds_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < deviceIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceIds_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < deviceIds_.size(); i++) {
dataSize += computeStringSizeNoTag(deviceIds_.getRaw(i));
}
size += dataSize;
size += 1 * getDeviceIdsList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.DeviceIdList)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.DeviceIdList other = (cmvr.api.SafetyCommand.DeviceIdList) obj;
if (!getDeviceIdsList()
.equals(other.getDeviceIdsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getDeviceIdsCount() > 0) {
hash = (37 * hash) + DEVICE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getDeviceIdsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.DeviceIdList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.DeviceIdList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.DeviceIdList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.DeviceIdList)
cmvr.api.SafetyCommand.DeviceIdListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceIdList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceIdList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.DeviceIdList.class, cmvr.api.SafetyCommand.DeviceIdList.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.DeviceIdList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceIdList_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceIdList getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceIdList build() {
cmvr.api.SafetyCommand.DeviceIdList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceIdList buildPartial() {
cmvr.api.SafetyCommand.DeviceIdList result = new cmvr.api.SafetyCommand.DeviceIdList(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
deviceIds_ = deviceIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.deviceIds_ = deviceIds_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.DeviceIdList) {
return mergeFrom((cmvr.api.SafetyCommand.DeviceIdList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.DeviceIdList other) {
if (other == cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance()) return this;
if (!other.deviceIds_.isEmpty()) {
if (deviceIds_.isEmpty()) {
deviceIds_ = other.deviceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeviceIdsIsMutable();
deviceIds_.addAll(other.deviceIds_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureDeviceIdsIsMutable();
deviceIds_.add(s);
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDeviceIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
deviceIds_ = new com.google.protobuf.LazyStringArrayList(deviceIds_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string device_ids = 1;
* @return A list containing the deviceIds.
*/
public com.google.protobuf.ProtocolStringList
getDeviceIdsList() {
return deviceIds_.getUnmodifiableView();
}
/**
* repeated string device_ids = 1;
* @return The count of deviceIds.
*/
public int getDeviceIdsCount() {
return deviceIds_.size();
}
/**
* repeated string device_ids = 1;
* @param index The index of the element to return.
* @return The deviceIds at the given index.
*/
public java.lang.String getDeviceIds(int index) {
return deviceIds_.get(index);
}
/**
* repeated string device_ids = 1;
* @param index The index of the value to return.
* @return The bytes of the deviceIds at the given index.
*/
public com.google.protobuf.ByteString
getDeviceIdsBytes(int index) {
return deviceIds_.getByteString(index);
}
/**
* repeated string device_ids = 1;
* @param index The index to set the value at.
* @param value The deviceIds to set.
* @return This builder for chaining.
*/
public Builder setDeviceIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceIdsIsMutable();
deviceIds_.set(index, value);
onChanged();
return this;
}
/**
* repeated string device_ids = 1;
* @param value The deviceIds to add.
* @return This builder for chaining.
*/
public Builder addDeviceIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceIdsIsMutable();
deviceIds_.add(value);
onChanged();
return this;
}
/**
* repeated string device_ids = 1;
* @param values The deviceIds to add.
* @return This builder for chaining.
*/
public Builder addAllDeviceIds(
java.lang.Iterable values) {
ensureDeviceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deviceIds_);
onChanged();
return this;
}
/**
* repeated string device_ids = 1;
* @return This builder for chaining.
*/
public Builder clearDeviceIds() {
deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string device_ids = 1;
* @param value The bytes of the deviceIds to add.
* @return This builder for chaining.
*/
public Builder addDeviceIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDeviceIdsIsMutable();
deviceIds_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.DeviceIdList)
}
// @@protoc_insertion_point(class_scope:cmvr.api.DeviceIdList)
private static final cmvr.api.SafetyCommand.DeviceIdList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.DeviceIdList();
}
public static cmvr.api.SafetyCommand.DeviceIdList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeviceIdList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceIdList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SafetyScopeOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.SafetyScope)
com.google.protobuf.MessageOrBuilder {
/**
* bool all_devices = 1;
* @return Whether the allDevices field is set.
*/
boolean hasAllDevices();
/**
* bool all_devices = 1;
* @return The allDevices.
*/
boolean getAllDevices();
/**
* .cmvr.api.DeviceIdList devices = 2;
* @return Whether the devices field is set.
*/
boolean hasDevices();
/**
* .cmvr.api.DeviceIdList devices = 2;
* @return The devices.
*/
cmvr.api.SafetyCommand.DeviceIdList getDevices();
/**
* .cmvr.api.DeviceIdList devices = 2;
*/
cmvr.api.SafetyCommand.DeviceIdListOrBuilder getDevicesOrBuilder();
public cmvr.api.SafetyCommand.SafetyScope.TargetCase getTargetCase();
}
/**
* Protobuf type {@code cmvr.api.SafetyScope}
*/
public static final class SafetyScope extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.SafetyScope)
SafetyScopeOrBuilder {
private static final long serialVersionUID = 0L;
// Use SafetyScope.newBuilder() to construct.
private SafetyScope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SafetyScope() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SafetyScope();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyScope_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyScope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.SafetyScope.class, cmvr.api.SafetyCommand.SafetyScope.Builder.class);
}
private int targetCase_ = 0;
private java.lang.Object target_;
public enum TargetCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ALL_DEVICES(1),
DEVICES(2),
TARGET_NOT_SET(0);
private final int value;
private TargetCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TargetCase valueOf(int value) {
return forNumber(value);
}
public static TargetCase forNumber(int value) {
switch (value) {
case 1: return ALL_DEVICES;
case 2: return DEVICES;
case 0: return TARGET_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TargetCase
getTargetCase() {
return TargetCase.forNumber(
targetCase_);
}
public static final int ALL_DEVICES_FIELD_NUMBER = 1;
/**
* bool all_devices = 1;
* @return Whether the allDevices field is set.
*/
@java.lang.Override
public boolean hasAllDevices() {
return targetCase_ == 1;
}
/**
* bool all_devices = 1;
* @return The allDevices.
*/
@java.lang.Override
public boolean getAllDevices() {
if (targetCase_ == 1) {
return (java.lang.Boolean) target_;
}
return false;
}
public static final int DEVICES_FIELD_NUMBER = 2;
/**
* .cmvr.api.DeviceIdList devices = 2;
* @return Whether the devices field is set.
*/
@java.lang.Override
public boolean hasDevices() {
return targetCase_ == 2;
}
/**
* .cmvr.api.DeviceIdList devices = 2;
* @return The devices.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceIdList getDevices() {
if (targetCase_ == 2) {
return (cmvr.api.SafetyCommand.DeviceIdList) target_;
}
return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance();
}
/**
* .cmvr.api.DeviceIdList devices = 2;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceIdListOrBuilder getDevicesOrBuilder() {
if (targetCase_ == 2) {
return (cmvr.api.SafetyCommand.DeviceIdList) target_;
}
return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (targetCase_ == 1) {
output.writeBool(
1, (boolean)((java.lang.Boolean) target_));
}
if (targetCase_ == 2) {
output.writeMessage(2, (cmvr.api.SafetyCommand.DeviceIdList) target_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (targetCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
1, (boolean)((java.lang.Boolean) target_));
}
if (targetCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (cmvr.api.SafetyCommand.DeviceIdList) target_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.SafetyScope)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.SafetyScope other = (cmvr.api.SafetyCommand.SafetyScope) obj;
if (!getTargetCase().equals(other.getTargetCase())) return false;
switch (targetCase_) {
case 1:
if (getAllDevices()
!= other.getAllDevices()) return false;
break;
case 2:
if (!getDevices()
.equals(other.getDevices())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (targetCase_) {
case 1:
hash = (37 * hash) + ALL_DEVICES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllDevices());
break;
case 2:
hash = (37 * hash) + DEVICES_FIELD_NUMBER;
hash = (53 * hash) + getDevices().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.SafetyScope parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyScope parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyScope parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyScope parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyScope parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyScope parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyScope parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyScope parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyScope parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyScope parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyScope parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyScope parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.SafetyScope prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.SafetyScope}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.SafetyScope)
cmvr.api.SafetyCommand.SafetyScopeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyScope_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyScope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.SafetyScope.class, cmvr.api.SafetyCommand.SafetyScope.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.SafetyScope.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (devicesBuilder_ != null) {
devicesBuilder_.clear();
}
targetCase_ = 0;
target_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyScope_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyScope getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyScope build() {
cmvr.api.SafetyCommand.SafetyScope result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyScope buildPartial() {
cmvr.api.SafetyCommand.SafetyScope result = new cmvr.api.SafetyCommand.SafetyScope(this);
if (targetCase_ == 1) {
result.target_ = target_;
}
if (targetCase_ == 2) {
if (devicesBuilder_ == null) {
result.target_ = target_;
} else {
result.target_ = devicesBuilder_.build();
}
}
result.targetCase_ = targetCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.SafetyScope) {
return mergeFrom((cmvr.api.SafetyCommand.SafetyScope)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.SafetyScope other) {
if (other == cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance()) return this;
switch (other.getTargetCase()) {
case ALL_DEVICES: {
setAllDevices(other.getAllDevices());
break;
}
case DEVICES: {
mergeDevices(other.getDevices());
break;
}
case TARGET_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
target_ = input.readBool();
targetCase_ = 1;
break;
} // case 8
case 18: {
input.readMessage(
getDevicesFieldBuilder().getBuilder(),
extensionRegistry);
targetCase_ = 2;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int targetCase_ = 0;
private java.lang.Object target_;
public TargetCase
getTargetCase() {
return TargetCase.forNumber(
targetCase_);
}
public Builder clearTarget() {
targetCase_ = 0;
target_ = null;
onChanged();
return this;
}
/**
* bool all_devices = 1;
* @return Whether the allDevices field is set.
*/
public boolean hasAllDevices() {
return targetCase_ == 1;
}
/**
* bool all_devices = 1;
* @return The allDevices.
*/
public boolean getAllDevices() {
if (targetCase_ == 1) {
return (java.lang.Boolean) target_;
}
return false;
}
/**
* bool all_devices = 1;
* @param value The allDevices to set.
* @return This builder for chaining.
*/
public Builder setAllDevices(boolean value) {
targetCase_ = 1;
target_ = value;
onChanged();
return this;
}
/**
* bool all_devices = 1;
* @return This builder for chaining.
*/
public Builder clearAllDevices() {
if (targetCase_ == 1) {
targetCase_ = 0;
target_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.DeviceIdList, cmvr.api.SafetyCommand.DeviceIdList.Builder, cmvr.api.SafetyCommand.DeviceIdListOrBuilder> devicesBuilder_;
/**
* .cmvr.api.DeviceIdList devices = 2;
* @return Whether the devices field is set.
*/
@java.lang.Override
public boolean hasDevices() {
return targetCase_ == 2;
}
/**
* .cmvr.api.DeviceIdList devices = 2;
* @return The devices.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceIdList getDevices() {
if (devicesBuilder_ == null) {
if (targetCase_ == 2) {
return (cmvr.api.SafetyCommand.DeviceIdList) target_;
}
return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance();
} else {
if (targetCase_ == 2) {
return devicesBuilder_.getMessage();
}
return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance();
}
}
/**
* .cmvr.api.DeviceIdList devices = 2;
*/
public Builder setDevices(cmvr.api.SafetyCommand.DeviceIdList value) {
if (devicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
} else {
devicesBuilder_.setMessage(value);
}
targetCase_ = 2;
return this;
}
/**
* .cmvr.api.DeviceIdList devices = 2;
*/
public Builder setDevices(
cmvr.api.SafetyCommand.DeviceIdList.Builder builderForValue) {
if (devicesBuilder_ == null) {
target_ = builderForValue.build();
onChanged();
} else {
devicesBuilder_.setMessage(builderForValue.build());
}
targetCase_ = 2;
return this;
}
/**
* .cmvr.api.DeviceIdList devices = 2;
*/
public Builder mergeDevices(cmvr.api.SafetyCommand.DeviceIdList value) {
if (devicesBuilder_ == null) {
if (targetCase_ == 2 &&
target_ != cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance()) {
target_ = cmvr.api.SafetyCommand.DeviceIdList.newBuilder((cmvr.api.SafetyCommand.DeviceIdList) target_)
.mergeFrom(value).buildPartial();
} else {
target_ = value;
}
onChanged();
} else {
if (targetCase_ == 2) {
devicesBuilder_.mergeFrom(value);
} else {
devicesBuilder_.setMessage(value);
}
}
targetCase_ = 2;
return this;
}
/**
* .cmvr.api.DeviceIdList devices = 2;
*/
public Builder clearDevices() {
if (devicesBuilder_ == null) {
if (targetCase_ == 2) {
targetCase_ = 0;
target_ = null;
onChanged();
}
} else {
if (targetCase_ == 2) {
targetCase_ = 0;
target_ = null;
}
devicesBuilder_.clear();
}
return this;
}
/**
* .cmvr.api.DeviceIdList devices = 2;
*/
public cmvr.api.SafetyCommand.DeviceIdList.Builder getDevicesBuilder() {
return getDevicesFieldBuilder().getBuilder();
}
/**
* .cmvr.api.DeviceIdList devices = 2;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceIdListOrBuilder getDevicesOrBuilder() {
if ((targetCase_ == 2) && (devicesBuilder_ != null)) {
return devicesBuilder_.getMessageOrBuilder();
} else {
if (targetCase_ == 2) {
return (cmvr.api.SafetyCommand.DeviceIdList) target_;
}
return cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance();
}
}
/**
* .cmvr.api.DeviceIdList devices = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.DeviceIdList, cmvr.api.SafetyCommand.DeviceIdList.Builder, cmvr.api.SafetyCommand.DeviceIdListOrBuilder>
getDevicesFieldBuilder() {
if (devicesBuilder_ == null) {
if (!(targetCase_ == 2)) {
target_ = cmvr.api.SafetyCommand.DeviceIdList.getDefaultInstance();
}
devicesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.DeviceIdList, cmvr.api.SafetyCommand.DeviceIdList.Builder, cmvr.api.SafetyCommand.DeviceIdListOrBuilder>(
(cmvr.api.SafetyCommand.DeviceIdList) target_,
getParentForChildren(),
isClean());
target_ = null;
}
targetCase_ = 2;
onChanged();;
return devicesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.SafetyScope)
}
// @@protoc_insertion_point(class_scope:cmvr.api.SafetyScope)
private static final cmvr.api.SafetyCommand.SafetyScope DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.SafetyScope();
}
public static cmvr.api.SafetyCommand.SafetyScope getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SafetyScope parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyScope getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SafetyBlockerInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.SafetyBlockerInfo)
com.google.protobuf.MessageOrBuilder {
/**
* .cmvr.api.CommandReasonCode reason_code = 1;
* @return The enum numeric value on the wire for reasonCode.
*/
int getReasonCodeValue();
/**
* .cmvr.api.CommandReasonCode reason_code = 1;
* @return The reasonCode.
*/
cmvr.api.Common.CommandReasonCode getReasonCode();
/**
* .cmvr.api.SafetyBlockerScope scope = 2;
* @return The enum numeric value on the wire for scope.
*/
int getScopeValue();
/**
* .cmvr.api.SafetyBlockerScope scope = 2;
* @return The scope.
*/
cmvr.api.SafetyCommand.SafetyBlockerScope getScope();
/**
* .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3;
* @return The enum numeric value on the wire for recoveryRequirement.
*/
int getRecoveryRequirementValue();
/**
* .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3;
* @return The recoveryRequirement.
*/
cmvr.api.SafetyCommand.SafetyRecoveryRequirement getRecoveryRequirement();
/**
* string source_id = 4;
* @return The sourceId.
*/
java.lang.String getSourceId();
/**
* string source_id = 4;
* @return The bytes for sourceId.
*/
com.google.protobuf.ByteString
getSourceIdBytes();
/**
* string operation_id = 5;
* @return The operationId.
*/
java.lang.String getOperationId();
/**
* string operation_id = 5;
* @return The bytes for operationId.
*/
com.google.protobuf.ByteString
getOperationIdBytes();
/**
* uint64 first_observed_at_unix_ms = 6;
* @return The firstObservedAtUnixMs.
*/
long getFirstObservedAtUnixMs();
/**
* uint64 last_observed_at_unix_ms = 7;
* @return The lastObservedAtUnixMs.
*/
long getLastObservedAtUnixMs();
}
/**
* Protobuf type {@code cmvr.api.SafetyBlockerInfo}
*/
public static final class SafetyBlockerInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.SafetyBlockerInfo)
SafetyBlockerInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SafetyBlockerInfo.newBuilder() to construct.
private SafetyBlockerInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SafetyBlockerInfo() {
reasonCode_ = 0;
scope_ = 0;
recoveryRequirement_ = 0;
sourceId_ = "";
operationId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SafetyBlockerInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyBlockerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyBlockerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.SafetyBlockerInfo.class, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder.class);
}
public static final int REASON_CODE_FIELD_NUMBER = 1;
private int reasonCode_;
/**
* .cmvr.api.CommandReasonCode reason_code = 1;
* @return The enum numeric value on the wire for reasonCode.
*/
@java.lang.Override public int getReasonCodeValue() {
return reasonCode_;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 1;
* @return The reasonCode.
*/
@java.lang.Override public cmvr.api.Common.CommandReasonCode getReasonCode() {
@SuppressWarnings("deprecation")
cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_);
return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result;
}
public static final int SCOPE_FIELD_NUMBER = 2;
private int scope_;
/**
* .cmvr.api.SafetyBlockerScope scope = 2;
* @return The enum numeric value on the wire for scope.
*/
@java.lang.Override public int getScopeValue() {
return scope_;
}
/**
* .cmvr.api.SafetyBlockerScope scope = 2;
* @return The scope.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyBlockerScope getScope() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyBlockerScope result = cmvr.api.SafetyCommand.SafetyBlockerScope.valueOf(scope_);
return result == null ? cmvr.api.SafetyCommand.SafetyBlockerScope.UNRECOGNIZED : result;
}
public static final int RECOVERY_REQUIREMENT_FIELD_NUMBER = 3;
private int recoveryRequirement_;
/**
* .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3;
* @return The enum numeric value on the wire for recoveryRequirement.
*/
@java.lang.Override public int getRecoveryRequirementValue() {
return recoveryRequirement_;
}
/**
* .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3;
* @return The recoveryRequirement.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyRecoveryRequirement getRecoveryRequirement() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyRecoveryRequirement result = cmvr.api.SafetyCommand.SafetyRecoveryRequirement.valueOf(recoveryRequirement_);
return result == null ? cmvr.api.SafetyCommand.SafetyRecoveryRequirement.UNRECOGNIZED : result;
}
public static final int SOURCE_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object sourceId_;
/**
* string source_id = 4;
* @return The sourceId.
*/
@java.lang.Override
public java.lang.String getSourceId() {
java.lang.Object ref = sourceId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sourceId_ = s;
return s;
}
}
/**
* string source_id = 4;
* @return The bytes for sourceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceIdBytes() {
java.lang.Object ref = sourceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATION_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object operationId_;
/**
* string operation_id = 5;
* @return The operationId.
*/
@java.lang.Override
public java.lang.String getOperationId() {
java.lang.Object ref = operationId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operationId_ = s;
return s;
}
}
/**
* string operation_id = 5;
* @return The bytes for operationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOperationIdBytes() {
java.lang.Object ref = operationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIRST_OBSERVED_AT_UNIX_MS_FIELD_NUMBER = 6;
private long firstObservedAtUnixMs_;
/**
* uint64 first_observed_at_unix_ms = 6;
* @return The firstObservedAtUnixMs.
*/
@java.lang.Override
public long getFirstObservedAtUnixMs() {
return firstObservedAtUnixMs_;
}
public static final int LAST_OBSERVED_AT_UNIX_MS_FIELD_NUMBER = 7;
private long lastObservedAtUnixMs_;
/**
* uint64 last_observed_at_unix_ms = 7;
* @return The lastObservedAtUnixMs.
*/
@java.lang.Override
public long getLastObservedAtUnixMs() {
return lastObservedAtUnixMs_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, reasonCode_);
}
if (scope_ != cmvr.api.SafetyCommand.SafetyBlockerScope.SAFETY_BLOCKER_SCOPE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, scope_);
}
if (recoveryRequirement_ != cmvr.api.SafetyCommand.SafetyRecoveryRequirement.SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED.getNumber()) {
output.writeEnum(3, recoveryRequirement_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, operationId_);
}
if (firstObservedAtUnixMs_ != 0L) {
output.writeUInt64(6, firstObservedAtUnixMs_);
}
if (lastObservedAtUnixMs_ != 0L) {
output.writeUInt64(7, lastObservedAtUnixMs_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, reasonCode_);
}
if (scope_ != cmvr.api.SafetyCommand.SafetyBlockerScope.SAFETY_BLOCKER_SCOPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, scope_);
}
if (recoveryRequirement_ != cmvr.api.SafetyCommand.SafetyRecoveryRequirement.SAFETY_RECOVERY_REQUIREMENT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, recoveryRequirement_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, operationId_);
}
if (firstObservedAtUnixMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, firstObservedAtUnixMs_);
}
if (lastObservedAtUnixMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, lastObservedAtUnixMs_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.SafetyBlockerInfo)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.SafetyBlockerInfo other = (cmvr.api.SafetyCommand.SafetyBlockerInfo) obj;
if (reasonCode_ != other.reasonCode_) return false;
if (scope_ != other.scope_) return false;
if (recoveryRequirement_ != other.recoveryRequirement_) return false;
if (!getSourceId()
.equals(other.getSourceId())) return false;
if (!getOperationId()
.equals(other.getOperationId())) return false;
if (getFirstObservedAtUnixMs()
!= other.getFirstObservedAtUnixMs()) return false;
if (getLastObservedAtUnixMs()
!= other.getLastObservedAtUnixMs()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REASON_CODE_FIELD_NUMBER;
hash = (53 * hash) + reasonCode_;
hash = (37 * hash) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + scope_;
hash = (37 * hash) + RECOVERY_REQUIREMENT_FIELD_NUMBER;
hash = (53 * hash) + recoveryRequirement_;
hash = (37 * hash) + SOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getSourceId().hashCode();
hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getOperationId().hashCode();
hash = (37 * hash) + FIRST_OBSERVED_AT_UNIX_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFirstObservedAtUnixMs());
hash = (37 * hash) + LAST_OBSERVED_AT_UNIX_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastObservedAtUnixMs());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.SafetyBlockerInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.SafetyBlockerInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.SafetyBlockerInfo)
cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyBlockerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyBlockerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.SafetyBlockerInfo.class, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.SafetyBlockerInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
reasonCode_ = 0;
scope_ = 0;
recoveryRequirement_ = 0;
sourceId_ = "";
operationId_ = "";
firstObservedAtUnixMs_ = 0L;
lastObservedAtUnixMs_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyBlockerInfo_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyBlockerInfo getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.SafetyBlockerInfo.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyBlockerInfo build() {
cmvr.api.SafetyCommand.SafetyBlockerInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyBlockerInfo buildPartial() {
cmvr.api.SafetyCommand.SafetyBlockerInfo result = new cmvr.api.SafetyCommand.SafetyBlockerInfo(this);
result.reasonCode_ = reasonCode_;
result.scope_ = scope_;
result.recoveryRequirement_ = recoveryRequirement_;
result.sourceId_ = sourceId_;
result.operationId_ = operationId_;
result.firstObservedAtUnixMs_ = firstObservedAtUnixMs_;
result.lastObservedAtUnixMs_ = lastObservedAtUnixMs_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.SafetyBlockerInfo) {
return mergeFrom((cmvr.api.SafetyCommand.SafetyBlockerInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.SafetyBlockerInfo other) {
if (other == cmvr.api.SafetyCommand.SafetyBlockerInfo.getDefaultInstance()) return this;
if (other.reasonCode_ != 0) {
setReasonCodeValue(other.getReasonCodeValue());
}
if (other.scope_ != 0) {
setScopeValue(other.getScopeValue());
}
if (other.recoveryRequirement_ != 0) {
setRecoveryRequirementValue(other.getRecoveryRequirementValue());
}
if (!other.getSourceId().isEmpty()) {
sourceId_ = other.sourceId_;
onChanged();
}
if (!other.getOperationId().isEmpty()) {
operationId_ = other.operationId_;
onChanged();
}
if (other.getFirstObservedAtUnixMs() != 0L) {
setFirstObservedAtUnixMs(other.getFirstObservedAtUnixMs());
}
if (other.getLastObservedAtUnixMs() != 0L) {
setLastObservedAtUnixMs(other.getLastObservedAtUnixMs());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
reasonCode_ = input.readEnum();
break;
} // case 8
case 16: {
scope_ = input.readEnum();
break;
} // case 16
case 24: {
recoveryRequirement_ = input.readEnum();
break;
} // case 24
case 34: {
sourceId_ = input.readStringRequireUtf8();
break;
} // case 34
case 42: {
operationId_ = input.readStringRequireUtf8();
break;
} // case 42
case 48: {
firstObservedAtUnixMs_ = input.readUInt64();
break;
} // case 48
case 56: {
lastObservedAtUnixMs_ = input.readUInt64();
break;
} // case 56
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int reasonCode_ = 0;
/**
* .cmvr.api.CommandReasonCode reason_code = 1;
* @return The enum numeric value on the wire for reasonCode.
*/
@java.lang.Override public int getReasonCodeValue() {
return reasonCode_;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 1;
* @param value The enum numeric value on the wire for reasonCode to set.
* @return This builder for chaining.
*/
public Builder setReasonCodeValue(int value) {
reasonCode_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 1;
* @return The reasonCode.
*/
@java.lang.Override
public cmvr.api.Common.CommandReasonCode getReasonCode() {
@SuppressWarnings("deprecation")
cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_);
return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 1;
* @param value The reasonCode to set.
* @return This builder for chaining.
*/
public Builder setReasonCode(cmvr.api.Common.CommandReasonCode value) {
if (value == null) {
throw new NullPointerException();
}
reasonCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 1;
* @return This builder for chaining.
*/
public Builder clearReasonCode() {
reasonCode_ = 0;
onChanged();
return this;
}
private int scope_ = 0;
/**
* .cmvr.api.SafetyBlockerScope scope = 2;
* @return The enum numeric value on the wire for scope.
*/
@java.lang.Override public int getScopeValue() {
return scope_;
}
/**
* .cmvr.api.SafetyBlockerScope scope = 2;
* @param value The enum numeric value on the wire for scope to set.
* @return This builder for chaining.
*/
public Builder setScopeValue(int value) {
scope_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyBlockerScope scope = 2;
* @return The scope.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyBlockerScope getScope() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyBlockerScope result = cmvr.api.SafetyCommand.SafetyBlockerScope.valueOf(scope_);
return result == null ? cmvr.api.SafetyCommand.SafetyBlockerScope.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyBlockerScope scope = 2;
* @param value The scope to set.
* @return This builder for chaining.
*/
public Builder setScope(cmvr.api.SafetyCommand.SafetyBlockerScope value) {
if (value == null) {
throw new NullPointerException();
}
scope_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyBlockerScope scope = 2;
* @return This builder for chaining.
*/
public Builder clearScope() {
scope_ = 0;
onChanged();
return this;
}
private int recoveryRequirement_ = 0;
/**
* .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3;
* @return The enum numeric value on the wire for recoveryRequirement.
*/
@java.lang.Override public int getRecoveryRequirementValue() {
return recoveryRequirement_;
}
/**
* .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3;
* @param value The enum numeric value on the wire for recoveryRequirement to set.
* @return This builder for chaining.
*/
public Builder setRecoveryRequirementValue(int value) {
recoveryRequirement_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3;
* @return The recoveryRequirement.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyRecoveryRequirement getRecoveryRequirement() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyRecoveryRequirement result = cmvr.api.SafetyCommand.SafetyRecoveryRequirement.valueOf(recoveryRequirement_);
return result == null ? cmvr.api.SafetyCommand.SafetyRecoveryRequirement.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3;
* @param value The recoveryRequirement to set.
* @return This builder for chaining.
*/
public Builder setRecoveryRequirement(cmvr.api.SafetyCommand.SafetyRecoveryRequirement value) {
if (value == null) {
throw new NullPointerException();
}
recoveryRequirement_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyRecoveryRequirement recovery_requirement = 3;
* @return This builder for chaining.
*/
public Builder clearRecoveryRequirement() {
recoveryRequirement_ = 0;
onChanged();
return this;
}
private java.lang.Object sourceId_ = "";
/**
* string source_id = 4;
* @return The sourceId.
*/
public java.lang.String getSourceId() {
java.lang.Object ref = sourceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sourceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string source_id = 4;
* @return The bytes for sourceId.
*/
public com.google.protobuf.ByteString
getSourceIdBytes() {
java.lang.Object ref = sourceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string source_id = 4;
* @param value The sourceId to set.
* @return This builder for chaining.
*/
public Builder setSourceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sourceId_ = value;
onChanged();
return this;
}
/**
* string source_id = 4;
* @return This builder for chaining.
*/
public Builder clearSourceId() {
sourceId_ = getDefaultInstance().getSourceId();
onChanged();
return this;
}
/**
* string source_id = 4;
* @param value The bytes for sourceId to set.
* @return This builder for chaining.
*/
public Builder setSourceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sourceId_ = value;
onChanged();
return this;
}
private java.lang.Object operationId_ = "";
/**
* string operation_id = 5;
* @return The operationId.
*/
public java.lang.String getOperationId() {
java.lang.Object ref = operationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string operation_id = 5;
* @return The bytes for operationId.
*/
public com.google.protobuf.ByteString
getOperationIdBytes() {
java.lang.Object ref = operationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string operation_id = 5;
* @param value The operationId to set.
* @return This builder for chaining.
*/
public Builder setOperationId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
operationId_ = value;
onChanged();
return this;
}
/**
* string operation_id = 5;
* @return This builder for chaining.
*/
public Builder clearOperationId() {
operationId_ = getDefaultInstance().getOperationId();
onChanged();
return this;
}
/**
* string operation_id = 5;
* @param value The bytes for operationId to set.
* @return This builder for chaining.
*/
public Builder setOperationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
operationId_ = value;
onChanged();
return this;
}
private long firstObservedAtUnixMs_ ;
/**
* uint64 first_observed_at_unix_ms = 6;
* @return The firstObservedAtUnixMs.
*/
@java.lang.Override
public long getFirstObservedAtUnixMs() {
return firstObservedAtUnixMs_;
}
/**
* uint64 first_observed_at_unix_ms = 6;
* @param value The firstObservedAtUnixMs to set.
* @return This builder for chaining.
*/
public Builder setFirstObservedAtUnixMs(long value) {
firstObservedAtUnixMs_ = value;
onChanged();
return this;
}
/**
* uint64 first_observed_at_unix_ms = 6;
* @return This builder for chaining.
*/
public Builder clearFirstObservedAtUnixMs() {
firstObservedAtUnixMs_ = 0L;
onChanged();
return this;
}
private long lastObservedAtUnixMs_ ;
/**
* uint64 last_observed_at_unix_ms = 7;
* @return The lastObservedAtUnixMs.
*/
@java.lang.Override
public long getLastObservedAtUnixMs() {
return lastObservedAtUnixMs_;
}
/**
* uint64 last_observed_at_unix_ms = 7;
* @param value The lastObservedAtUnixMs to set.
* @return This builder for chaining.
*/
public Builder setLastObservedAtUnixMs(long value) {
lastObservedAtUnixMs_ = value;
onChanged();
return this;
}
/**
* uint64 last_observed_at_unix_ms = 7;
* @return This builder for chaining.
*/
public Builder clearLastObservedAtUnixMs() {
lastObservedAtUnixMs_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.SafetyBlockerInfo)
}
// @@protoc_insertion_point(class_scope:cmvr.api.SafetyBlockerInfo)
private static final cmvr.api.SafetyCommand.SafetyBlockerInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.SafetyBlockerInfo();
}
public static cmvr.api.SafetyCommand.SafetyBlockerInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SafetyBlockerInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyBlockerInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeviceSafetyStateInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.DeviceSafetyStateInfo)
com.google.protobuf.MessageOrBuilder {
/**
* string device_id = 1;
* @return The deviceId.
*/
java.lang.String getDeviceId();
/**
* string device_id = 1;
* @return The bytes for deviceId.
*/
com.google.protobuf.ByteString
getDeviceIdBytes();
/**
* string device_kind = 2;
* @return The deviceKind.
*/
java.lang.String getDeviceKind();
/**
* string device_kind = 2;
* @return The bytes for deviceKind.
*/
com.google.protobuf.ByteString
getDeviceKindBytes();
/**
* string policy_family = 3;
* @return The policyFamily.
*/
java.lang.String getPolicyFamily();
/**
* string policy_family = 3;
* @return The bytes for policyFamily.
*/
com.google.protobuf.ByteString
getPolicyFamilyBytes();
/**
* string lifecycle_state = 4;
* @return The lifecycleState.
*/
java.lang.String getLifecycleState();
/**
* string lifecycle_state = 4;
* @return The bytes for lifecycleState.
*/
com.google.protobuf.ByteString
getLifecycleStateBytes();
/**
* string health_state = 5;
* @return The healthState.
*/
java.lang.String getHealthState();
/**
* string health_state = 5;
* @return The bytes for healthState.
*/
com.google.protobuf.ByteString
getHealthStateBytes();
/**
* .cmvr.api.DeviceAdmissionState admission_state = 6;
* @return The enum numeric value on the wire for admissionState.
*/
int getAdmissionStateValue();
/**
* .cmvr.api.DeviceAdmissionState admission_state = 6;
* @return The admissionState.
*/
cmvr.api.SafetyCommand.DeviceAdmissionState getAdmissionState();
/**
* .cmvr.api.SafetyCondition condition = 7;
* @return The enum numeric value on the wire for condition.
*/
int getConditionValue();
/**
* .cmvr.api.SafetyCondition condition = 7;
* @return The condition.
*/
cmvr.api.SafetyCommand.SafetyCondition getCondition();
/**
* bool has_sample = 8;
* @return The hasSample.
*/
boolean getHasSample();
/**
* bool snapshot_fresh = 9;
* @return The snapshotFresh.
*/
boolean getSnapshotFresh();
/**
* uint64 sample_age_ms = 10;
* @return The sampleAgeMs.
*/
long getSampleAgeMs();
/**
* uint64 sample_sequence = 11;
* @return The sampleSequence.
*/
long getSampleSequence();
/**
* uint64 observed_at_unix_ms = 12;
* @return The observedAtUnixMs.
*/
long getObservedAtUnixMs();
/**
* uint64 device_generation = 13;
* @return The deviceGeneration.
*/
long getDeviceGeneration();
/**
* .cmvr.api.SafetyTriState connected = 14;
* @return The enum numeric value on the wire for connected.
*/
int getConnectedValue();
/**
* .cmvr.api.SafetyTriState connected = 14;
* @return The connected.
*/
cmvr.api.SafetyCommand.SafetyTriState getConnected();
/**
* .cmvr.api.SafetyTriState operational_ready = 15;
* @return The enum numeric value on the wire for operationalReady.
*/
int getOperationalReadyValue();
/**
* .cmvr.api.SafetyTriState operational_ready = 15;
* @return The operationalReady.
*/
cmvr.api.SafetyCommand.SafetyTriState getOperationalReady();
/**
* .cmvr.api.SafetyTriState quiescent = 16;
* @return The enum numeric value on the wire for quiescent.
*/
int getQuiescentValue();
/**
* .cmvr.api.SafetyTriState quiescent = 16;
* @return The quiescent.
*/
cmvr.api.SafetyCommand.SafetyTriState getQuiescent();
/**
* .cmvr.api.SafetyTriState motion_active = 17;
* @return The enum numeric value on the wire for motionActive.
*/
int getMotionActiveValue();
/**
* .cmvr.api.SafetyTriState motion_active = 17;
* @return The motionActive.
*/
cmvr.api.SafetyCommand.SafetyTriState getMotionActive();
/**
* .cmvr.api.SafetyTriState actuator_enabled = 18;
* @return The enum numeric value on the wire for actuatorEnabled.
*/
int getActuatorEnabledValue();
/**
* .cmvr.api.SafetyTriState actuator_enabled = 18;
* @return The actuatorEnabled.
*/
cmvr.api.SafetyCommand.SafetyTriState getActuatorEnabled();
/**
* .cmvr.api.SafetyTriState emergency_stop_active = 19;
* @return The enum numeric value on the wire for emergencyStopActive.
*/
int getEmergencyStopActiveValue();
/**
* .cmvr.api.SafetyTriState emergency_stop_active = 19;
* @return The emergencyStopActive.
*/
cmvr.api.SafetyCommand.SafetyTriState getEmergencyStopActive();
/**
* .cmvr.api.SafetyTriState protective_stop_active = 20;
* @return The enum numeric value on the wire for protectiveStopActive.
*/
int getProtectiveStopActiveValue();
/**
* .cmvr.api.SafetyTriState protective_stop_active = 20;
* @return The protectiveStopActive.
*/
cmvr.api.SafetyCommand.SafetyTriState getProtectiveStopActive();
/**
* .cmvr.api.SafetyTriState fault_active = 21;
* @return The enum numeric value on the wire for faultActive.
*/
int getFaultActiveValue();
/**
* .cmvr.api.SafetyTriState fault_active = 21;
* @return The faultActive.
*/
cmvr.api.SafetyCommand.SafetyTriState getFaultActive();
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
java.util.List
getBlockersList();
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
cmvr.api.SafetyCommand.SafetyBlockerInfo getBlockers(int index);
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
int getBlockersCount();
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
java.util.List extends cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder>
getBlockersOrBuilderList();
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder getBlockersOrBuilder(
int index);
}
/**
* Protobuf type {@code cmvr.api.DeviceSafetyStateInfo}
*/
public static final class DeviceSafetyStateInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.DeviceSafetyStateInfo)
DeviceSafetyStateInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeviceSafetyStateInfo.newBuilder() to construct.
private DeviceSafetyStateInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeviceSafetyStateInfo() {
deviceId_ = "";
deviceKind_ = "";
policyFamily_ = "";
lifecycleState_ = "";
healthState_ = "";
admissionState_ = 0;
condition_ = 0;
connected_ = 0;
operationalReady_ = 0;
quiescent_ = 0;
motionActive_ = 0;
actuatorEnabled_ = 0;
emergencyStopActive_ = 0;
protectiveStopActive_ = 0;
faultActive_ = 0;
blockers_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeviceSafetyStateInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceSafetyStateInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.DeviceSafetyStateInfo.class, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder.class);
}
public static final int DEVICE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object deviceId_;
/**
* string device_id = 1;
* @return The deviceId.
*/
@java.lang.Override
public java.lang.String getDeviceId() {
java.lang.Object ref = deviceId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceId_ = s;
return s;
}
}
/**
* string device_id = 1;
* @return The bytes for deviceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceIdBytes() {
java.lang.Object ref = deviceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEVICE_KIND_FIELD_NUMBER = 2;
private volatile java.lang.Object deviceKind_;
/**
* string device_kind = 2;
* @return The deviceKind.
*/
@java.lang.Override
public java.lang.String getDeviceKind() {
java.lang.Object ref = deviceKind_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceKind_ = s;
return s;
}
}
/**
* string device_kind = 2;
* @return The bytes for deviceKind.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceKindBytes() {
java.lang.Object ref = deviceKind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceKind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POLICY_FAMILY_FIELD_NUMBER = 3;
private volatile java.lang.Object policyFamily_;
/**
* string policy_family = 3;
* @return The policyFamily.
*/
@java.lang.Override
public java.lang.String getPolicyFamily() {
java.lang.Object ref = policyFamily_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
policyFamily_ = s;
return s;
}
}
/**
* string policy_family = 3;
* @return The bytes for policyFamily.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPolicyFamilyBytes() {
java.lang.Object ref = policyFamily_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
policyFamily_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LIFECYCLE_STATE_FIELD_NUMBER = 4;
private volatile java.lang.Object lifecycleState_;
/**
* string lifecycle_state = 4;
* @return The lifecycleState.
*/
@java.lang.Override
public java.lang.String getLifecycleState() {
java.lang.Object ref = lifecycleState_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lifecycleState_ = s;
return s;
}
}
/**
* string lifecycle_state = 4;
* @return The bytes for lifecycleState.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLifecycleStateBytes() {
java.lang.Object ref = lifecycleState_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lifecycleState_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HEALTH_STATE_FIELD_NUMBER = 5;
private volatile java.lang.Object healthState_;
/**
* string health_state = 5;
* @return The healthState.
*/
@java.lang.Override
public java.lang.String getHealthState() {
java.lang.Object ref = healthState_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
healthState_ = s;
return s;
}
}
/**
* string health_state = 5;
* @return The bytes for healthState.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHealthStateBytes() {
java.lang.Object ref = healthState_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
healthState_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADMISSION_STATE_FIELD_NUMBER = 6;
private int admissionState_;
/**
* .cmvr.api.DeviceAdmissionState admission_state = 6;
* @return The enum numeric value on the wire for admissionState.
*/
@java.lang.Override public int getAdmissionStateValue() {
return admissionState_;
}
/**
* .cmvr.api.DeviceAdmissionState admission_state = 6;
* @return The admissionState.
*/
@java.lang.Override public cmvr.api.SafetyCommand.DeviceAdmissionState getAdmissionState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(admissionState_);
return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result;
}
public static final int CONDITION_FIELD_NUMBER = 7;
private int condition_;
/**
* .cmvr.api.SafetyCondition condition = 7;
* @return The enum numeric value on the wire for condition.
*/
@java.lang.Override public int getConditionValue() {
return condition_;
}
/**
* .cmvr.api.SafetyCondition condition = 7;
* @return The condition.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyCondition getCondition() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyCondition result = cmvr.api.SafetyCommand.SafetyCondition.valueOf(condition_);
return result == null ? cmvr.api.SafetyCommand.SafetyCondition.UNRECOGNIZED : result;
}
public static final int HAS_SAMPLE_FIELD_NUMBER = 8;
private boolean hasSample_;
/**
* bool has_sample = 8;
* @return The hasSample.
*/
@java.lang.Override
public boolean getHasSample() {
return hasSample_;
}
public static final int SNAPSHOT_FRESH_FIELD_NUMBER = 9;
private boolean snapshotFresh_;
/**
* bool snapshot_fresh = 9;
* @return The snapshotFresh.
*/
@java.lang.Override
public boolean getSnapshotFresh() {
return snapshotFresh_;
}
public static final int SAMPLE_AGE_MS_FIELD_NUMBER = 10;
private long sampleAgeMs_;
/**
* uint64 sample_age_ms = 10;
* @return The sampleAgeMs.
*/
@java.lang.Override
public long getSampleAgeMs() {
return sampleAgeMs_;
}
public static final int SAMPLE_SEQUENCE_FIELD_NUMBER = 11;
private long sampleSequence_;
/**
* uint64 sample_sequence = 11;
* @return The sampleSequence.
*/
@java.lang.Override
public long getSampleSequence() {
return sampleSequence_;
}
public static final int OBSERVED_AT_UNIX_MS_FIELD_NUMBER = 12;
private long observedAtUnixMs_;
/**
* uint64 observed_at_unix_ms = 12;
* @return The observedAtUnixMs.
*/
@java.lang.Override
public long getObservedAtUnixMs() {
return observedAtUnixMs_;
}
public static final int DEVICE_GENERATION_FIELD_NUMBER = 13;
private long deviceGeneration_;
/**
* uint64 device_generation = 13;
* @return The deviceGeneration.
*/
@java.lang.Override
public long getDeviceGeneration() {
return deviceGeneration_;
}
public static final int CONNECTED_FIELD_NUMBER = 14;
private int connected_;
/**
* .cmvr.api.SafetyTriState connected = 14;
* @return The enum numeric value on the wire for connected.
*/
@java.lang.Override public int getConnectedValue() {
return connected_;
}
/**
* .cmvr.api.SafetyTriState connected = 14;
* @return The connected.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getConnected() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(connected_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
public static final int OPERATIONAL_READY_FIELD_NUMBER = 15;
private int operationalReady_;
/**
* .cmvr.api.SafetyTriState operational_ready = 15;
* @return The enum numeric value on the wire for operationalReady.
*/
@java.lang.Override public int getOperationalReadyValue() {
return operationalReady_;
}
/**
* .cmvr.api.SafetyTriState operational_ready = 15;
* @return The operationalReady.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getOperationalReady() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(operationalReady_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
public static final int QUIESCENT_FIELD_NUMBER = 16;
private int quiescent_;
/**
* .cmvr.api.SafetyTriState quiescent = 16;
* @return The enum numeric value on the wire for quiescent.
*/
@java.lang.Override public int getQuiescentValue() {
return quiescent_;
}
/**
* .cmvr.api.SafetyTriState quiescent = 16;
* @return The quiescent.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getQuiescent() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(quiescent_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
public static final int MOTION_ACTIVE_FIELD_NUMBER = 17;
private int motionActive_;
/**
* .cmvr.api.SafetyTriState motion_active = 17;
* @return The enum numeric value on the wire for motionActive.
*/
@java.lang.Override public int getMotionActiveValue() {
return motionActive_;
}
/**
* .cmvr.api.SafetyTriState motion_active = 17;
* @return The motionActive.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getMotionActive() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(motionActive_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
public static final int ACTUATOR_ENABLED_FIELD_NUMBER = 18;
private int actuatorEnabled_;
/**
* .cmvr.api.SafetyTriState actuator_enabled = 18;
* @return The enum numeric value on the wire for actuatorEnabled.
*/
@java.lang.Override public int getActuatorEnabledValue() {
return actuatorEnabled_;
}
/**
* .cmvr.api.SafetyTriState actuator_enabled = 18;
* @return The actuatorEnabled.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getActuatorEnabled() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(actuatorEnabled_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
public static final int EMERGENCY_STOP_ACTIVE_FIELD_NUMBER = 19;
private int emergencyStopActive_;
/**
* .cmvr.api.SafetyTriState emergency_stop_active = 19;
* @return The enum numeric value on the wire for emergencyStopActive.
*/
@java.lang.Override public int getEmergencyStopActiveValue() {
return emergencyStopActive_;
}
/**
* .cmvr.api.SafetyTriState emergency_stop_active = 19;
* @return The emergencyStopActive.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getEmergencyStopActive() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(emergencyStopActive_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
public static final int PROTECTIVE_STOP_ACTIVE_FIELD_NUMBER = 20;
private int protectiveStopActive_;
/**
* .cmvr.api.SafetyTriState protective_stop_active = 20;
* @return The enum numeric value on the wire for protectiveStopActive.
*/
@java.lang.Override public int getProtectiveStopActiveValue() {
return protectiveStopActive_;
}
/**
* .cmvr.api.SafetyTriState protective_stop_active = 20;
* @return The protectiveStopActive.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getProtectiveStopActive() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(protectiveStopActive_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
public static final int FAULT_ACTIVE_FIELD_NUMBER = 21;
private int faultActive_;
/**
* .cmvr.api.SafetyTriState fault_active = 21;
* @return The enum numeric value on the wire for faultActive.
*/
@java.lang.Override public int getFaultActiveValue() {
return faultActive_;
}
/**
* .cmvr.api.SafetyTriState fault_active = 21;
* @return The faultActive.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyTriState getFaultActive() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(faultActive_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
public static final int BLOCKERS_FIELD_NUMBER = 22;
private java.util.List blockers_;
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
@java.lang.Override
public java.util.List getBlockersList() {
return blockers_;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
@java.lang.Override
public java.util.List extends cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder>
getBlockersOrBuilderList() {
return blockers_;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
@java.lang.Override
public int getBlockersCount() {
return blockers_.size();
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyBlockerInfo getBlockers(int index) {
return blockers_.get(index);
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder getBlockersOrBuilder(
int index) {
return blockers_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceKind_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceKind_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyFamily_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, policyFamily_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleState_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lifecycleState_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthState_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, healthState_);
}
if (admissionState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(6, admissionState_);
}
if (condition_ != cmvr.api.SafetyCommand.SafetyCondition.SAFETY_CONDITION_UNKNOWN.getNumber()) {
output.writeEnum(7, condition_);
}
if (hasSample_ != false) {
output.writeBool(8, hasSample_);
}
if (snapshotFresh_ != false) {
output.writeBool(9, snapshotFresh_);
}
if (sampleAgeMs_ != 0L) {
output.writeUInt64(10, sampleAgeMs_);
}
if (sampleSequence_ != 0L) {
output.writeUInt64(11, sampleSequence_);
}
if (observedAtUnixMs_ != 0L) {
output.writeUInt64(12, observedAtUnixMs_);
}
if (deviceGeneration_ != 0L) {
output.writeUInt64(13, deviceGeneration_);
}
if (connected_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
output.writeEnum(14, connected_);
}
if (operationalReady_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
output.writeEnum(15, operationalReady_);
}
if (quiescent_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
output.writeEnum(16, quiescent_);
}
if (motionActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
output.writeEnum(17, motionActive_);
}
if (actuatorEnabled_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
output.writeEnum(18, actuatorEnabled_);
}
if (emergencyStopActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
output.writeEnum(19, emergencyStopActive_);
}
if (protectiveStopActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
output.writeEnum(20, protectiveStopActive_);
}
if (faultActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
output.writeEnum(21, faultActive_);
}
for (int i = 0; i < blockers_.size(); i++) {
output.writeMessage(22, blockers_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceKind_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceKind_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyFamily_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyFamily_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleState_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lifecycleState_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthState_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, healthState_);
}
if (admissionState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, admissionState_);
}
if (condition_ != cmvr.api.SafetyCommand.SafetyCondition.SAFETY_CONDITION_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, condition_);
}
if (hasSample_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, hasSample_);
}
if (snapshotFresh_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, snapshotFresh_);
}
if (sampleAgeMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(10, sampleAgeMs_);
}
if (sampleSequence_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(11, sampleSequence_);
}
if (observedAtUnixMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(12, observedAtUnixMs_);
}
if (deviceGeneration_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(13, deviceGeneration_);
}
if (connected_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(14, connected_);
}
if (operationalReady_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(15, operationalReady_);
}
if (quiescent_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(16, quiescent_);
}
if (motionActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(17, motionActive_);
}
if (actuatorEnabled_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(18, actuatorEnabled_);
}
if (emergencyStopActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(19, emergencyStopActive_);
}
if (protectiveStopActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(20, protectiveStopActive_);
}
if (faultActive_ != cmvr.api.SafetyCommand.SafetyTriState.SAFETY_TRI_STATE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(21, faultActive_);
}
for (int i = 0; i < blockers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, blockers_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.DeviceSafetyStateInfo)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.DeviceSafetyStateInfo other = (cmvr.api.SafetyCommand.DeviceSafetyStateInfo) obj;
if (!getDeviceId()
.equals(other.getDeviceId())) return false;
if (!getDeviceKind()
.equals(other.getDeviceKind())) return false;
if (!getPolicyFamily()
.equals(other.getPolicyFamily())) return false;
if (!getLifecycleState()
.equals(other.getLifecycleState())) return false;
if (!getHealthState()
.equals(other.getHealthState())) return false;
if (admissionState_ != other.admissionState_) return false;
if (condition_ != other.condition_) return false;
if (getHasSample()
!= other.getHasSample()) return false;
if (getSnapshotFresh()
!= other.getSnapshotFresh()) return false;
if (getSampleAgeMs()
!= other.getSampleAgeMs()) return false;
if (getSampleSequence()
!= other.getSampleSequence()) return false;
if (getObservedAtUnixMs()
!= other.getObservedAtUnixMs()) return false;
if (getDeviceGeneration()
!= other.getDeviceGeneration()) return false;
if (connected_ != other.connected_) return false;
if (operationalReady_ != other.operationalReady_) return false;
if (quiescent_ != other.quiescent_) return false;
if (motionActive_ != other.motionActive_) return false;
if (actuatorEnabled_ != other.actuatorEnabled_) return false;
if (emergencyStopActive_ != other.emergencyStopActive_) return false;
if (protectiveStopActive_ != other.protectiveStopActive_) return false;
if (faultActive_ != other.faultActive_) return false;
if (!getBlockersList()
.equals(other.getBlockersList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DEVICE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDeviceId().hashCode();
hash = (37 * hash) + DEVICE_KIND_FIELD_NUMBER;
hash = (53 * hash) + getDeviceKind().hashCode();
hash = (37 * hash) + POLICY_FAMILY_FIELD_NUMBER;
hash = (53 * hash) + getPolicyFamily().hashCode();
hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER;
hash = (53 * hash) + getLifecycleState().hashCode();
hash = (37 * hash) + HEALTH_STATE_FIELD_NUMBER;
hash = (53 * hash) + getHealthState().hashCode();
hash = (37 * hash) + ADMISSION_STATE_FIELD_NUMBER;
hash = (53 * hash) + admissionState_;
hash = (37 * hash) + CONDITION_FIELD_NUMBER;
hash = (53 * hash) + condition_;
hash = (37 * hash) + HAS_SAMPLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasSample());
hash = (37 * hash) + SNAPSHOT_FRESH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSnapshotFresh());
hash = (37 * hash) + SAMPLE_AGE_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSampleAgeMs());
hash = (37 * hash) + SAMPLE_SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSampleSequence());
hash = (37 * hash) + OBSERVED_AT_UNIX_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getObservedAtUnixMs());
hash = (37 * hash) + DEVICE_GENERATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDeviceGeneration());
hash = (37 * hash) + CONNECTED_FIELD_NUMBER;
hash = (53 * hash) + connected_;
hash = (37 * hash) + OPERATIONAL_READY_FIELD_NUMBER;
hash = (53 * hash) + operationalReady_;
hash = (37 * hash) + QUIESCENT_FIELD_NUMBER;
hash = (53 * hash) + quiescent_;
hash = (37 * hash) + MOTION_ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + motionActive_;
hash = (37 * hash) + ACTUATOR_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + actuatorEnabled_;
hash = (37 * hash) + EMERGENCY_STOP_ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + emergencyStopActive_;
hash = (37 * hash) + PROTECTIVE_STOP_ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + protectiveStopActive_;
hash = (37 * hash) + FAULT_ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + faultActive_;
if (getBlockersCount() > 0) {
hash = (37 * hash) + BLOCKERS_FIELD_NUMBER;
hash = (53 * hash) + getBlockersList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.DeviceSafetyStateInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.DeviceSafetyStateInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.DeviceSafetyStateInfo)
cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceSafetyStateInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.DeviceSafetyStateInfo.class, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.DeviceSafetyStateInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
deviceId_ = "";
deviceKind_ = "";
policyFamily_ = "";
lifecycleState_ = "";
healthState_ = "";
admissionState_ = 0;
condition_ = 0;
hasSample_ = false;
snapshotFresh_ = false;
sampleAgeMs_ = 0L;
sampleSequence_ = 0L;
observedAtUnixMs_ = 0L;
deviceGeneration_ = 0L;
connected_ = 0;
operationalReady_ = 0;
quiescent_ = 0;
motionActive_ = 0;
actuatorEnabled_ = 0;
emergencyStopActive_ = 0;
protectiveStopActive_ = 0;
faultActive_ = 0;
if (blockersBuilder_ == null) {
blockers_ = java.util.Collections.emptyList();
} else {
blockers_ = null;
blockersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.DeviceSafetyStateInfo.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceSafetyStateInfo build() {
cmvr.api.SafetyCommand.DeviceSafetyStateInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceSafetyStateInfo buildPartial() {
cmvr.api.SafetyCommand.DeviceSafetyStateInfo result = new cmvr.api.SafetyCommand.DeviceSafetyStateInfo(this);
int from_bitField0_ = bitField0_;
result.deviceId_ = deviceId_;
result.deviceKind_ = deviceKind_;
result.policyFamily_ = policyFamily_;
result.lifecycleState_ = lifecycleState_;
result.healthState_ = healthState_;
result.admissionState_ = admissionState_;
result.condition_ = condition_;
result.hasSample_ = hasSample_;
result.snapshotFresh_ = snapshotFresh_;
result.sampleAgeMs_ = sampleAgeMs_;
result.sampleSequence_ = sampleSequence_;
result.observedAtUnixMs_ = observedAtUnixMs_;
result.deviceGeneration_ = deviceGeneration_;
result.connected_ = connected_;
result.operationalReady_ = operationalReady_;
result.quiescent_ = quiescent_;
result.motionActive_ = motionActive_;
result.actuatorEnabled_ = actuatorEnabled_;
result.emergencyStopActive_ = emergencyStopActive_;
result.protectiveStopActive_ = protectiveStopActive_;
result.faultActive_ = faultActive_;
if (blockersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
blockers_ = java.util.Collections.unmodifiableList(blockers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.blockers_ = blockers_;
} else {
result.blockers_ = blockersBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.DeviceSafetyStateInfo) {
return mergeFrom((cmvr.api.SafetyCommand.DeviceSafetyStateInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.DeviceSafetyStateInfo other) {
if (other == cmvr.api.SafetyCommand.DeviceSafetyStateInfo.getDefaultInstance()) return this;
if (!other.getDeviceId().isEmpty()) {
deviceId_ = other.deviceId_;
onChanged();
}
if (!other.getDeviceKind().isEmpty()) {
deviceKind_ = other.deviceKind_;
onChanged();
}
if (!other.getPolicyFamily().isEmpty()) {
policyFamily_ = other.policyFamily_;
onChanged();
}
if (!other.getLifecycleState().isEmpty()) {
lifecycleState_ = other.lifecycleState_;
onChanged();
}
if (!other.getHealthState().isEmpty()) {
healthState_ = other.healthState_;
onChanged();
}
if (other.admissionState_ != 0) {
setAdmissionStateValue(other.getAdmissionStateValue());
}
if (other.condition_ != 0) {
setConditionValue(other.getConditionValue());
}
if (other.getHasSample() != false) {
setHasSample(other.getHasSample());
}
if (other.getSnapshotFresh() != false) {
setSnapshotFresh(other.getSnapshotFresh());
}
if (other.getSampleAgeMs() != 0L) {
setSampleAgeMs(other.getSampleAgeMs());
}
if (other.getSampleSequence() != 0L) {
setSampleSequence(other.getSampleSequence());
}
if (other.getObservedAtUnixMs() != 0L) {
setObservedAtUnixMs(other.getObservedAtUnixMs());
}
if (other.getDeviceGeneration() != 0L) {
setDeviceGeneration(other.getDeviceGeneration());
}
if (other.connected_ != 0) {
setConnectedValue(other.getConnectedValue());
}
if (other.operationalReady_ != 0) {
setOperationalReadyValue(other.getOperationalReadyValue());
}
if (other.quiescent_ != 0) {
setQuiescentValue(other.getQuiescentValue());
}
if (other.motionActive_ != 0) {
setMotionActiveValue(other.getMotionActiveValue());
}
if (other.actuatorEnabled_ != 0) {
setActuatorEnabledValue(other.getActuatorEnabledValue());
}
if (other.emergencyStopActive_ != 0) {
setEmergencyStopActiveValue(other.getEmergencyStopActiveValue());
}
if (other.protectiveStopActive_ != 0) {
setProtectiveStopActiveValue(other.getProtectiveStopActiveValue());
}
if (other.faultActive_ != 0) {
setFaultActiveValue(other.getFaultActiveValue());
}
if (blockersBuilder_ == null) {
if (!other.blockers_.isEmpty()) {
if (blockers_.isEmpty()) {
blockers_ = other.blockers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBlockersIsMutable();
blockers_.addAll(other.blockers_);
}
onChanged();
}
} else {
if (!other.blockers_.isEmpty()) {
if (blockersBuilder_.isEmpty()) {
blockersBuilder_.dispose();
blockersBuilder_ = null;
blockers_ = other.blockers_;
bitField0_ = (bitField0_ & ~0x00000001);
blockersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBlockersFieldBuilder() : null;
} else {
blockersBuilder_.addAllMessages(other.blockers_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
deviceId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
deviceKind_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
policyFamily_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
lifecycleState_ = input.readStringRequireUtf8();
break;
} // case 34
case 42: {
healthState_ = input.readStringRequireUtf8();
break;
} // case 42
case 48: {
admissionState_ = input.readEnum();
break;
} // case 48
case 56: {
condition_ = input.readEnum();
break;
} // case 56
case 64: {
hasSample_ = input.readBool();
break;
} // case 64
case 72: {
snapshotFresh_ = input.readBool();
break;
} // case 72
case 80: {
sampleAgeMs_ = input.readUInt64();
break;
} // case 80
case 88: {
sampleSequence_ = input.readUInt64();
break;
} // case 88
case 96: {
observedAtUnixMs_ = input.readUInt64();
break;
} // case 96
case 104: {
deviceGeneration_ = input.readUInt64();
break;
} // case 104
case 112: {
connected_ = input.readEnum();
break;
} // case 112
case 120: {
operationalReady_ = input.readEnum();
break;
} // case 120
case 128: {
quiescent_ = input.readEnum();
break;
} // case 128
case 136: {
motionActive_ = input.readEnum();
break;
} // case 136
case 144: {
actuatorEnabled_ = input.readEnum();
break;
} // case 144
case 152: {
emergencyStopActive_ = input.readEnum();
break;
} // case 152
case 160: {
protectiveStopActive_ = input.readEnum();
break;
} // case 160
case 168: {
faultActive_ = input.readEnum();
break;
} // case 168
case 178: {
cmvr.api.SafetyCommand.SafetyBlockerInfo m =
input.readMessage(
cmvr.api.SafetyCommand.SafetyBlockerInfo.parser(),
extensionRegistry);
if (blockersBuilder_ == null) {
ensureBlockersIsMutable();
blockers_.add(m);
} else {
blockersBuilder_.addMessage(m);
}
break;
} // case 178
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object deviceId_ = "";
/**
* string device_id = 1;
* @return The deviceId.
*/
public java.lang.String getDeviceId() {
java.lang.Object ref = deviceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string device_id = 1;
* @return The bytes for deviceId.
*/
public com.google.protobuf.ByteString
getDeviceIdBytes() {
java.lang.Object ref = deviceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string device_id = 1;
* @param value The deviceId to set.
* @return This builder for chaining.
*/
public Builder setDeviceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deviceId_ = value;
onChanged();
return this;
}
/**
* string device_id = 1;
* @return This builder for chaining.
*/
public Builder clearDeviceId() {
deviceId_ = getDefaultInstance().getDeviceId();
onChanged();
return this;
}
/**
* string device_id = 1;
* @param value The bytes for deviceId to set.
* @return This builder for chaining.
*/
public Builder setDeviceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deviceId_ = value;
onChanged();
return this;
}
private java.lang.Object deviceKind_ = "";
/**
* string device_kind = 2;
* @return The deviceKind.
*/
public java.lang.String getDeviceKind() {
java.lang.Object ref = deviceKind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceKind_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string device_kind = 2;
* @return The bytes for deviceKind.
*/
public com.google.protobuf.ByteString
getDeviceKindBytes() {
java.lang.Object ref = deviceKind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceKind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string device_kind = 2;
* @param value The deviceKind to set.
* @return This builder for chaining.
*/
public Builder setDeviceKind(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deviceKind_ = value;
onChanged();
return this;
}
/**
* string device_kind = 2;
* @return This builder for chaining.
*/
public Builder clearDeviceKind() {
deviceKind_ = getDefaultInstance().getDeviceKind();
onChanged();
return this;
}
/**
* string device_kind = 2;
* @param value The bytes for deviceKind to set.
* @return This builder for chaining.
*/
public Builder setDeviceKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deviceKind_ = value;
onChanged();
return this;
}
private java.lang.Object policyFamily_ = "";
/**
* string policy_family = 3;
* @return The policyFamily.
*/
public java.lang.String getPolicyFamily() {
java.lang.Object ref = policyFamily_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
policyFamily_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string policy_family = 3;
* @return The bytes for policyFamily.
*/
public com.google.protobuf.ByteString
getPolicyFamilyBytes() {
java.lang.Object ref = policyFamily_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
policyFamily_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string policy_family = 3;
* @param value The policyFamily to set.
* @return This builder for chaining.
*/
public Builder setPolicyFamily(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
policyFamily_ = value;
onChanged();
return this;
}
/**
* string policy_family = 3;
* @return This builder for chaining.
*/
public Builder clearPolicyFamily() {
policyFamily_ = getDefaultInstance().getPolicyFamily();
onChanged();
return this;
}
/**
* string policy_family = 3;
* @param value The bytes for policyFamily to set.
* @return This builder for chaining.
*/
public Builder setPolicyFamilyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
policyFamily_ = value;
onChanged();
return this;
}
private java.lang.Object lifecycleState_ = "";
/**
* string lifecycle_state = 4;
* @return The lifecycleState.
*/
public java.lang.String getLifecycleState() {
java.lang.Object ref = lifecycleState_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lifecycleState_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string lifecycle_state = 4;
* @return The bytes for lifecycleState.
*/
public com.google.protobuf.ByteString
getLifecycleStateBytes() {
java.lang.Object ref = lifecycleState_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lifecycleState_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string lifecycle_state = 4;
* @param value The lifecycleState to set.
* @return This builder for chaining.
*/
public Builder setLifecycleState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
lifecycleState_ = value;
onChanged();
return this;
}
/**
* string lifecycle_state = 4;
* @return This builder for chaining.
*/
public Builder clearLifecycleState() {
lifecycleState_ = getDefaultInstance().getLifecycleState();
onChanged();
return this;
}
/**
* string lifecycle_state = 4;
* @param value The bytes for lifecycleState to set.
* @return This builder for chaining.
*/
public Builder setLifecycleStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
lifecycleState_ = value;
onChanged();
return this;
}
private java.lang.Object healthState_ = "";
/**
* string health_state = 5;
* @return The healthState.
*/
public java.lang.String getHealthState() {
java.lang.Object ref = healthState_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
healthState_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string health_state = 5;
* @return The bytes for healthState.
*/
public com.google.protobuf.ByteString
getHealthStateBytes() {
java.lang.Object ref = healthState_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
healthState_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string health_state = 5;
* @param value The healthState to set.
* @return This builder for chaining.
*/
public Builder setHealthState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
healthState_ = value;
onChanged();
return this;
}
/**
* string health_state = 5;
* @return This builder for chaining.
*/
public Builder clearHealthState() {
healthState_ = getDefaultInstance().getHealthState();
onChanged();
return this;
}
/**
* string health_state = 5;
* @param value The bytes for healthState to set.
* @return This builder for chaining.
*/
public Builder setHealthStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
healthState_ = value;
onChanged();
return this;
}
private int admissionState_ = 0;
/**
* .cmvr.api.DeviceAdmissionState admission_state = 6;
* @return The enum numeric value on the wire for admissionState.
*/
@java.lang.Override public int getAdmissionStateValue() {
return admissionState_;
}
/**
* .cmvr.api.DeviceAdmissionState admission_state = 6;
* @param value The enum numeric value on the wire for admissionState to set.
* @return This builder for chaining.
*/
public Builder setAdmissionStateValue(int value) {
admissionState_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.DeviceAdmissionState admission_state = 6;
* @return The admissionState.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceAdmissionState getAdmissionState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(admissionState_);
return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.DeviceAdmissionState admission_state = 6;
* @param value The admissionState to set.
* @return This builder for chaining.
*/
public Builder setAdmissionState(cmvr.api.SafetyCommand.DeviceAdmissionState value) {
if (value == null) {
throw new NullPointerException();
}
admissionState_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.DeviceAdmissionState admission_state = 6;
* @return This builder for chaining.
*/
public Builder clearAdmissionState() {
admissionState_ = 0;
onChanged();
return this;
}
private int condition_ = 0;
/**
* .cmvr.api.SafetyCondition condition = 7;
* @return The enum numeric value on the wire for condition.
*/
@java.lang.Override public int getConditionValue() {
return condition_;
}
/**
* .cmvr.api.SafetyCondition condition = 7;
* @param value The enum numeric value on the wire for condition to set.
* @return This builder for chaining.
*/
public Builder setConditionValue(int value) {
condition_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyCondition condition = 7;
* @return The condition.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyCondition getCondition() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyCondition result = cmvr.api.SafetyCommand.SafetyCondition.valueOf(condition_);
return result == null ? cmvr.api.SafetyCommand.SafetyCondition.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyCondition condition = 7;
* @param value The condition to set.
* @return This builder for chaining.
*/
public Builder setCondition(cmvr.api.SafetyCommand.SafetyCondition value) {
if (value == null) {
throw new NullPointerException();
}
condition_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyCondition condition = 7;
* @return This builder for chaining.
*/
public Builder clearCondition() {
condition_ = 0;
onChanged();
return this;
}
private boolean hasSample_ ;
/**
* bool has_sample = 8;
* @return The hasSample.
*/
@java.lang.Override
public boolean getHasSample() {
return hasSample_;
}
/**
* bool has_sample = 8;
* @param value The hasSample to set.
* @return This builder for chaining.
*/
public Builder setHasSample(boolean value) {
hasSample_ = value;
onChanged();
return this;
}
/**
* bool has_sample = 8;
* @return This builder for chaining.
*/
public Builder clearHasSample() {
hasSample_ = false;
onChanged();
return this;
}
private boolean snapshotFresh_ ;
/**
* bool snapshot_fresh = 9;
* @return The snapshotFresh.
*/
@java.lang.Override
public boolean getSnapshotFresh() {
return snapshotFresh_;
}
/**
* bool snapshot_fresh = 9;
* @param value The snapshotFresh to set.
* @return This builder for chaining.
*/
public Builder setSnapshotFresh(boolean value) {
snapshotFresh_ = value;
onChanged();
return this;
}
/**
* bool snapshot_fresh = 9;
* @return This builder for chaining.
*/
public Builder clearSnapshotFresh() {
snapshotFresh_ = false;
onChanged();
return this;
}
private long sampleAgeMs_ ;
/**
* uint64 sample_age_ms = 10;
* @return The sampleAgeMs.
*/
@java.lang.Override
public long getSampleAgeMs() {
return sampleAgeMs_;
}
/**
* uint64 sample_age_ms = 10;
* @param value The sampleAgeMs to set.
* @return This builder for chaining.
*/
public Builder setSampleAgeMs(long value) {
sampleAgeMs_ = value;
onChanged();
return this;
}
/**
* uint64 sample_age_ms = 10;
* @return This builder for chaining.
*/
public Builder clearSampleAgeMs() {
sampleAgeMs_ = 0L;
onChanged();
return this;
}
private long sampleSequence_ ;
/**
* uint64 sample_sequence = 11;
* @return The sampleSequence.
*/
@java.lang.Override
public long getSampleSequence() {
return sampleSequence_;
}
/**
* uint64 sample_sequence = 11;
* @param value The sampleSequence to set.
* @return This builder for chaining.
*/
public Builder setSampleSequence(long value) {
sampleSequence_ = value;
onChanged();
return this;
}
/**
* uint64 sample_sequence = 11;
* @return This builder for chaining.
*/
public Builder clearSampleSequence() {
sampleSequence_ = 0L;
onChanged();
return this;
}
private long observedAtUnixMs_ ;
/**
* uint64 observed_at_unix_ms = 12;
* @return The observedAtUnixMs.
*/
@java.lang.Override
public long getObservedAtUnixMs() {
return observedAtUnixMs_;
}
/**
* uint64 observed_at_unix_ms = 12;
* @param value The observedAtUnixMs to set.
* @return This builder for chaining.
*/
public Builder setObservedAtUnixMs(long value) {
observedAtUnixMs_ = value;
onChanged();
return this;
}
/**
* uint64 observed_at_unix_ms = 12;
* @return This builder for chaining.
*/
public Builder clearObservedAtUnixMs() {
observedAtUnixMs_ = 0L;
onChanged();
return this;
}
private long deviceGeneration_ ;
/**
* uint64 device_generation = 13;
* @return The deviceGeneration.
*/
@java.lang.Override
public long getDeviceGeneration() {
return deviceGeneration_;
}
/**
* uint64 device_generation = 13;
* @param value The deviceGeneration to set.
* @return This builder for chaining.
*/
public Builder setDeviceGeneration(long value) {
deviceGeneration_ = value;
onChanged();
return this;
}
/**
* uint64 device_generation = 13;
* @return This builder for chaining.
*/
public Builder clearDeviceGeneration() {
deviceGeneration_ = 0L;
onChanged();
return this;
}
private int connected_ = 0;
/**
* .cmvr.api.SafetyTriState connected = 14;
* @return The enum numeric value on the wire for connected.
*/
@java.lang.Override public int getConnectedValue() {
return connected_;
}
/**
* .cmvr.api.SafetyTriState connected = 14;
* @param value The enum numeric value on the wire for connected to set.
* @return This builder for chaining.
*/
public Builder setConnectedValue(int value) {
connected_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState connected = 14;
* @return The connected.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyTriState getConnected() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(connected_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyTriState connected = 14;
* @param value The connected to set.
* @return This builder for chaining.
*/
public Builder setConnected(cmvr.api.SafetyCommand.SafetyTriState value) {
if (value == null) {
throw new NullPointerException();
}
connected_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState connected = 14;
* @return This builder for chaining.
*/
public Builder clearConnected() {
connected_ = 0;
onChanged();
return this;
}
private int operationalReady_ = 0;
/**
* .cmvr.api.SafetyTriState operational_ready = 15;
* @return The enum numeric value on the wire for operationalReady.
*/
@java.lang.Override public int getOperationalReadyValue() {
return operationalReady_;
}
/**
* .cmvr.api.SafetyTriState operational_ready = 15;
* @param value The enum numeric value on the wire for operationalReady to set.
* @return This builder for chaining.
*/
public Builder setOperationalReadyValue(int value) {
operationalReady_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState operational_ready = 15;
* @return The operationalReady.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyTriState getOperationalReady() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(operationalReady_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyTriState operational_ready = 15;
* @param value The operationalReady to set.
* @return This builder for chaining.
*/
public Builder setOperationalReady(cmvr.api.SafetyCommand.SafetyTriState value) {
if (value == null) {
throw new NullPointerException();
}
operationalReady_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState operational_ready = 15;
* @return This builder for chaining.
*/
public Builder clearOperationalReady() {
operationalReady_ = 0;
onChanged();
return this;
}
private int quiescent_ = 0;
/**
* .cmvr.api.SafetyTriState quiescent = 16;
* @return The enum numeric value on the wire for quiescent.
*/
@java.lang.Override public int getQuiescentValue() {
return quiescent_;
}
/**
* .cmvr.api.SafetyTriState quiescent = 16;
* @param value The enum numeric value on the wire for quiescent to set.
* @return This builder for chaining.
*/
public Builder setQuiescentValue(int value) {
quiescent_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState quiescent = 16;
* @return The quiescent.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyTriState getQuiescent() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(quiescent_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyTriState quiescent = 16;
* @param value The quiescent to set.
* @return This builder for chaining.
*/
public Builder setQuiescent(cmvr.api.SafetyCommand.SafetyTriState value) {
if (value == null) {
throw new NullPointerException();
}
quiescent_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState quiescent = 16;
* @return This builder for chaining.
*/
public Builder clearQuiescent() {
quiescent_ = 0;
onChanged();
return this;
}
private int motionActive_ = 0;
/**
* .cmvr.api.SafetyTriState motion_active = 17;
* @return The enum numeric value on the wire for motionActive.
*/
@java.lang.Override public int getMotionActiveValue() {
return motionActive_;
}
/**
* .cmvr.api.SafetyTriState motion_active = 17;
* @param value The enum numeric value on the wire for motionActive to set.
* @return This builder for chaining.
*/
public Builder setMotionActiveValue(int value) {
motionActive_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState motion_active = 17;
* @return The motionActive.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyTriState getMotionActive() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(motionActive_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyTriState motion_active = 17;
* @param value The motionActive to set.
* @return This builder for chaining.
*/
public Builder setMotionActive(cmvr.api.SafetyCommand.SafetyTriState value) {
if (value == null) {
throw new NullPointerException();
}
motionActive_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState motion_active = 17;
* @return This builder for chaining.
*/
public Builder clearMotionActive() {
motionActive_ = 0;
onChanged();
return this;
}
private int actuatorEnabled_ = 0;
/**
* .cmvr.api.SafetyTriState actuator_enabled = 18;
* @return The enum numeric value on the wire for actuatorEnabled.
*/
@java.lang.Override public int getActuatorEnabledValue() {
return actuatorEnabled_;
}
/**
* .cmvr.api.SafetyTriState actuator_enabled = 18;
* @param value The enum numeric value on the wire for actuatorEnabled to set.
* @return This builder for chaining.
*/
public Builder setActuatorEnabledValue(int value) {
actuatorEnabled_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState actuator_enabled = 18;
* @return The actuatorEnabled.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyTriState getActuatorEnabled() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(actuatorEnabled_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyTriState actuator_enabled = 18;
* @param value The actuatorEnabled to set.
* @return This builder for chaining.
*/
public Builder setActuatorEnabled(cmvr.api.SafetyCommand.SafetyTriState value) {
if (value == null) {
throw new NullPointerException();
}
actuatorEnabled_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState actuator_enabled = 18;
* @return This builder for chaining.
*/
public Builder clearActuatorEnabled() {
actuatorEnabled_ = 0;
onChanged();
return this;
}
private int emergencyStopActive_ = 0;
/**
* .cmvr.api.SafetyTriState emergency_stop_active = 19;
* @return The enum numeric value on the wire for emergencyStopActive.
*/
@java.lang.Override public int getEmergencyStopActiveValue() {
return emergencyStopActive_;
}
/**
* .cmvr.api.SafetyTriState emergency_stop_active = 19;
* @param value The enum numeric value on the wire for emergencyStopActive to set.
* @return This builder for chaining.
*/
public Builder setEmergencyStopActiveValue(int value) {
emergencyStopActive_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState emergency_stop_active = 19;
* @return The emergencyStopActive.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyTriState getEmergencyStopActive() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(emergencyStopActive_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyTriState emergency_stop_active = 19;
* @param value The emergencyStopActive to set.
* @return This builder for chaining.
*/
public Builder setEmergencyStopActive(cmvr.api.SafetyCommand.SafetyTriState value) {
if (value == null) {
throw new NullPointerException();
}
emergencyStopActive_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState emergency_stop_active = 19;
* @return This builder for chaining.
*/
public Builder clearEmergencyStopActive() {
emergencyStopActive_ = 0;
onChanged();
return this;
}
private int protectiveStopActive_ = 0;
/**
* .cmvr.api.SafetyTriState protective_stop_active = 20;
* @return The enum numeric value on the wire for protectiveStopActive.
*/
@java.lang.Override public int getProtectiveStopActiveValue() {
return protectiveStopActive_;
}
/**
* .cmvr.api.SafetyTriState protective_stop_active = 20;
* @param value The enum numeric value on the wire for protectiveStopActive to set.
* @return This builder for chaining.
*/
public Builder setProtectiveStopActiveValue(int value) {
protectiveStopActive_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState protective_stop_active = 20;
* @return The protectiveStopActive.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyTriState getProtectiveStopActive() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(protectiveStopActive_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyTriState protective_stop_active = 20;
* @param value The protectiveStopActive to set.
* @return This builder for chaining.
*/
public Builder setProtectiveStopActive(cmvr.api.SafetyCommand.SafetyTriState value) {
if (value == null) {
throw new NullPointerException();
}
protectiveStopActive_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState protective_stop_active = 20;
* @return This builder for chaining.
*/
public Builder clearProtectiveStopActive() {
protectiveStopActive_ = 0;
onChanged();
return this;
}
private int faultActive_ = 0;
/**
* .cmvr.api.SafetyTriState fault_active = 21;
* @return The enum numeric value on the wire for faultActive.
*/
@java.lang.Override public int getFaultActiveValue() {
return faultActive_;
}
/**
* .cmvr.api.SafetyTriState fault_active = 21;
* @param value The enum numeric value on the wire for faultActive to set.
* @return This builder for chaining.
*/
public Builder setFaultActiveValue(int value) {
faultActive_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState fault_active = 21;
* @return The faultActive.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyTriState getFaultActive() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyTriState result = cmvr.api.SafetyCommand.SafetyTriState.valueOf(faultActive_);
return result == null ? cmvr.api.SafetyCommand.SafetyTriState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyTriState fault_active = 21;
* @param value The faultActive to set.
* @return This builder for chaining.
*/
public Builder setFaultActive(cmvr.api.SafetyCommand.SafetyTriState value) {
if (value == null) {
throw new NullPointerException();
}
faultActive_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyTriState fault_active = 21;
* @return This builder for chaining.
*/
public Builder clearFaultActive() {
faultActive_ = 0;
onChanged();
return this;
}
private java.util.List blockers_ =
java.util.Collections.emptyList();
private void ensureBlockersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
blockers_ = new java.util.ArrayList(blockers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyBlockerInfo, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder, cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder> blockersBuilder_;
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public java.util.List getBlockersList() {
if (blockersBuilder_ == null) {
return java.util.Collections.unmodifiableList(blockers_);
} else {
return blockersBuilder_.getMessageList();
}
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public int getBlockersCount() {
if (blockersBuilder_ == null) {
return blockers_.size();
} else {
return blockersBuilder_.getCount();
}
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public cmvr.api.SafetyCommand.SafetyBlockerInfo getBlockers(int index) {
if (blockersBuilder_ == null) {
return blockers_.get(index);
} else {
return blockersBuilder_.getMessage(index);
}
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public Builder setBlockers(
int index, cmvr.api.SafetyCommand.SafetyBlockerInfo value) {
if (blockersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockersIsMutable();
blockers_.set(index, value);
onChanged();
} else {
blockersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public Builder setBlockers(
int index, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder builderForValue) {
if (blockersBuilder_ == null) {
ensureBlockersIsMutable();
blockers_.set(index, builderForValue.build());
onChanged();
} else {
blockersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public Builder addBlockers(cmvr.api.SafetyCommand.SafetyBlockerInfo value) {
if (blockersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockersIsMutable();
blockers_.add(value);
onChanged();
} else {
blockersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public Builder addBlockers(
int index, cmvr.api.SafetyCommand.SafetyBlockerInfo value) {
if (blockersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockersIsMutable();
blockers_.add(index, value);
onChanged();
} else {
blockersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public Builder addBlockers(
cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder builderForValue) {
if (blockersBuilder_ == null) {
ensureBlockersIsMutable();
blockers_.add(builderForValue.build());
onChanged();
} else {
blockersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public Builder addBlockers(
int index, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder builderForValue) {
if (blockersBuilder_ == null) {
ensureBlockersIsMutable();
blockers_.add(index, builderForValue.build());
onChanged();
} else {
blockersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public Builder addAllBlockers(
java.lang.Iterable extends cmvr.api.SafetyCommand.SafetyBlockerInfo> values) {
if (blockersBuilder_ == null) {
ensureBlockersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, blockers_);
onChanged();
} else {
blockersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public Builder clearBlockers() {
if (blockersBuilder_ == null) {
blockers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
blockersBuilder_.clear();
}
return this;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public Builder removeBlockers(int index) {
if (blockersBuilder_ == null) {
ensureBlockersIsMutable();
blockers_.remove(index);
onChanged();
} else {
blockersBuilder_.remove(index);
}
return this;
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder getBlockersBuilder(
int index) {
return getBlockersFieldBuilder().getBuilder(index);
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder getBlockersOrBuilder(
int index) {
if (blockersBuilder_ == null) {
return blockers_.get(index); } else {
return blockersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public java.util.List extends cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder>
getBlockersOrBuilderList() {
if (blockersBuilder_ != null) {
return blockersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(blockers_);
}
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder addBlockersBuilder() {
return getBlockersFieldBuilder().addBuilder(
cmvr.api.SafetyCommand.SafetyBlockerInfo.getDefaultInstance());
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder addBlockersBuilder(
int index) {
return getBlockersFieldBuilder().addBuilder(
index, cmvr.api.SafetyCommand.SafetyBlockerInfo.getDefaultInstance());
}
/**
* repeated .cmvr.api.SafetyBlockerInfo blockers = 22;
*/
public java.util.List
getBlockersBuilderList() {
return getBlockersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyBlockerInfo, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder, cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder>
getBlockersFieldBuilder() {
if (blockersBuilder_ == null) {
blockersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyBlockerInfo, cmvr.api.SafetyCommand.SafetyBlockerInfo.Builder, cmvr.api.SafetyCommand.SafetyBlockerInfoOrBuilder>(
blockers_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
blockers_ = null;
}
return blockersBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.DeviceSafetyStateInfo)
}
// @@protoc_insertion_point(class_scope:cmvr.api.DeviceSafetyStateInfo)
private static final cmvr.api.SafetyCommand.DeviceSafetyStateInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.DeviceSafetyStateInfo();
}
public static cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeviceSafetyStateInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SafetyOperationTargetResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.SafetyOperationTargetResult)
com.google.protobuf.MessageOrBuilder {
/**
* string target_id = 1;
* @return The targetId.
*/
java.lang.String getTargetId();
/**
* string target_id = 1;
* @return The bytes for targetId.
*/
com.google.protobuf.ByteString
getTargetIdBytes();
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The enum numeric value on the wire for result.
*/
int getResultValue();
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The result.
*/
cmvr.api.SafetyCommand.SafetyOperationResult getResult();
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The enum numeric value on the wire for reasonCode.
*/
int getReasonCodeValue();
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The reasonCode.
*/
cmvr.api.Common.CommandReasonCode getReasonCode();
/**
* string detail = 4;
* @return The detail.
*/
java.lang.String getDetail();
/**
* string detail = 4;
* @return The bytes for detail.
*/
com.google.protobuf.ByteString
getDetailBytes();
/**
* .cmvr.api.DeviceAdmissionState before_state = 5;
* @return The enum numeric value on the wire for beforeState.
*/
int getBeforeStateValue();
/**
* .cmvr.api.DeviceAdmissionState before_state = 5;
* @return The beforeState.
*/
cmvr.api.SafetyCommand.DeviceAdmissionState getBeforeState();
/**
* .cmvr.api.DeviceAdmissionState after_state = 6;
* @return The enum numeric value on the wire for afterState.
*/
int getAfterStateValue();
/**
* .cmvr.api.DeviceAdmissionState after_state = 6;
* @return The afterState.
*/
cmvr.api.SafetyCommand.DeviceAdmissionState getAfterState();
}
/**
* Protobuf type {@code cmvr.api.SafetyOperationTargetResult}
*/
public static final class SafetyOperationTargetResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.SafetyOperationTargetResult)
SafetyOperationTargetResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use SafetyOperationTargetResult.newBuilder() to construct.
private SafetyOperationTargetResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SafetyOperationTargetResult() {
targetId_ = "";
result_ = 0;
reasonCode_ = 0;
detail_ = "";
beforeState_ = 0;
afterState_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SafetyOperationTargetResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyOperationTargetResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyOperationTargetResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.SafetyOperationTargetResult.class, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder.class);
}
public static final int TARGET_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object targetId_;
/**
* string target_id = 1;
* @return The targetId.
*/
@java.lang.Override
public java.lang.String getTargetId() {
java.lang.Object ref = targetId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
targetId_ = s;
return s;
}
}
/**
* string target_id = 1;
* @return The bytes for targetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTargetIdBytes() {
java.lang.Object ref = targetId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESULT_FIELD_NUMBER = 2;
private int result_;
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The result.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyOperationResult getResult() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyOperationResult result = cmvr.api.SafetyCommand.SafetyOperationResult.valueOf(result_);
return result == null ? cmvr.api.SafetyCommand.SafetyOperationResult.UNRECOGNIZED : result;
}
public static final int REASON_CODE_FIELD_NUMBER = 3;
private int reasonCode_;
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The enum numeric value on the wire for reasonCode.
*/
@java.lang.Override public int getReasonCodeValue() {
return reasonCode_;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The reasonCode.
*/
@java.lang.Override public cmvr.api.Common.CommandReasonCode getReasonCode() {
@SuppressWarnings("deprecation")
cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_);
return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result;
}
public static final int DETAIL_FIELD_NUMBER = 4;
private volatile java.lang.Object detail_;
/**
* string detail = 4;
* @return The detail.
*/
@java.lang.Override
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
detail_ = s;
return s;
}
}
/**
* string detail = 4;
* @return The bytes for detail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BEFORE_STATE_FIELD_NUMBER = 5;
private int beforeState_;
/**
* .cmvr.api.DeviceAdmissionState before_state = 5;
* @return The enum numeric value on the wire for beforeState.
*/
@java.lang.Override public int getBeforeStateValue() {
return beforeState_;
}
/**
* .cmvr.api.DeviceAdmissionState before_state = 5;
* @return The beforeState.
*/
@java.lang.Override public cmvr.api.SafetyCommand.DeviceAdmissionState getBeforeState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(beforeState_);
return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result;
}
public static final int AFTER_STATE_FIELD_NUMBER = 6;
private int afterState_;
/**
* .cmvr.api.DeviceAdmissionState after_state = 6;
* @return The enum numeric value on the wire for afterState.
*/
@java.lang.Override public int getAfterStateValue() {
return afterState_;
}
/**
* .cmvr.api.DeviceAdmissionState after_state = 6;
* @return The afterState.
*/
@java.lang.Override public cmvr.api.SafetyCommand.DeviceAdmissionState getAfterState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(afterState_);
return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetId_);
}
if (result_ != cmvr.api.SafetyCommand.SafetyOperationResult.SAFETY_OPERATION_RESULT_UNSPECIFIED.getNumber()) {
output.writeEnum(2, result_);
}
if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) {
output.writeEnum(3, reasonCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, detail_);
}
if (beforeState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, beforeState_);
}
if (afterState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(6, afterState_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetId_);
}
if (result_ != cmvr.api.SafetyCommand.SafetyOperationResult.SAFETY_OPERATION_RESULT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, result_);
}
if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, reasonCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detail_);
}
if (beforeState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, beforeState_);
}
if (afterState_ != cmvr.api.SafetyCommand.DeviceAdmissionState.DEVICE_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, afterState_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.SafetyOperationTargetResult)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.SafetyOperationTargetResult other = (cmvr.api.SafetyCommand.SafetyOperationTargetResult) obj;
if (!getTargetId()
.equals(other.getTargetId())) return false;
if (result_ != other.result_) return false;
if (reasonCode_ != other.reasonCode_) return false;
if (!getDetail()
.equals(other.getDetail())) return false;
if (beforeState_ != other.beforeState_) return false;
if (afterState_ != other.afterState_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TARGET_ID_FIELD_NUMBER;
hash = (53 * hash) + getTargetId().hashCode();
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
hash = (37 * hash) + REASON_CODE_FIELD_NUMBER;
hash = (53 * hash) + reasonCode_;
hash = (37 * hash) + DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getDetail().hashCode();
hash = (37 * hash) + BEFORE_STATE_FIELD_NUMBER;
hash = (53 * hash) + beforeState_;
hash = (37 * hash) + AFTER_STATE_FIELD_NUMBER;
hash = (53 * hash) + afterState_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.SafetyOperationTargetResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.SafetyOperationTargetResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.SafetyOperationTargetResult)
cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyOperationTargetResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyOperationTargetResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.SafetyOperationTargetResult.class, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.SafetyOperationTargetResult.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
targetId_ = "";
result_ = 0;
reasonCode_ = 0;
detail_ = "";
beforeState_ = 0;
afterState_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyOperationTargetResult_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationTargetResult getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationTargetResult build() {
cmvr.api.SafetyCommand.SafetyOperationTargetResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationTargetResult buildPartial() {
cmvr.api.SafetyCommand.SafetyOperationTargetResult result = new cmvr.api.SafetyCommand.SafetyOperationTargetResult(this);
result.targetId_ = targetId_;
result.result_ = result_;
result.reasonCode_ = reasonCode_;
result.detail_ = detail_;
result.beforeState_ = beforeState_;
result.afterState_ = afterState_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.SafetyOperationTargetResult) {
return mergeFrom((cmvr.api.SafetyCommand.SafetyOperationTargetResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.SafetyOperationTargetResult other) {
if (other == cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance()) return this;
if (!other.getTargetId().isEmpty()) {
targetId_ = other.targetId_;
onChanged();
}
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
if (other.reasonCode_ != 0) {
setReasonCodeValue(other.getReasonCodeValue());
}
if (!other.getDetail().isEmpty()) {
detail_ = other.detail_;
onChanged();
}
if (other.beforeState_ != 0) {
setBeforeStateValue(other.getBeforeStateValue());
}
if (other.afterState_ != 0) {
setAfterStateValue(other.getAfterStateValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
targetId_ = input.readStringRequireUtf8();
break;
} // case 10
case 16: {
result_ = input.readEnum();
break;
} // case 16
case 24: {
reasonCode_ = input.readEnum();
break;
} // case 24
case 34: {
detail_ = input.readStringRequireUtf8();
break;
} // case 34
case 40: {
beforeState_ = input.readEnum();
break;
} // case 40
case 48: {
afterState_ = input.readEnum();
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private java.lang.Object targetId_ = "";
/**
* string target_id = 1;
* @return The targetId.
*/
public java.lang.String getTargetId() {
java.lang.Object ref = targetId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
targetId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string target_id = 1;
* @return The bytes for targetId.
*/
public com.google.protobuf.ByteString
getTargetIdBytes() {
java.lang.Object ref = targetId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string target_id = 1;
* @param value The targetId to set.
* @return This builder for chaining.
*/
public Builder setTargetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
targetId_ = value;
onChanged();
return this;
}
/**
* string target_id = 1;
* @return This builder for chaining.
*/
public Builder clearTargetId() {
targetId_ = getDefaultInstance().getTargetId();
onChanged();
return this;
}
/**
* string target_id = 1;
* @param value The bytes for targetId to set.
* @return This builder for chaining.
*/
public Builder setTargetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
targetId_ = value;
onChanged();
return this;
}
private int result_ = 0;
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @param value The enum numeric value on the wire for result to set.
* @return This builder for chaining.
*/
public Builder setResultValue(int value) {
result_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The result.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationResult getResult() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyOperationResult result = cmvr.api.SafetyCommand.SafetyOperationResult.valueOf(result_);
return result == null ? cmvr.api.SafetyCommand.SafetyOperationResult.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(cmvr.api.SafetyCommand.SafetyOperationResult value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return This builder for chaining.
*/
public Builder clearResult() {
result_ = 0;
onChanged();
return this;
}
private int reasonCode_ = 0;
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The enum numeric value on the wire for reasonCode.
*/
@java.lang.Override public int getReasonCodeValue() {
return reasonCode_;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @param value The enum numeric value on the wire for reasonCode to set.
* @return This builder for chaining.
*/
public Builder setReasonCodeValue(int value) {
reasonCode_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The reasonCode.
*/
@java.lang.Override
public cmvr.api.Common.CommandReasonCode getReasonCode() {
@SuppressWarnings("deprecation")
cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_);
return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @param value The reasonCode to set.
* @return This builder for chaining.
*/
public Builder setReasonCode(cmvr.api.Common.CommandReasonCode value) {
if (value == null) {
throw new NullPointerException();
}
reasonCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return This builder for chaining.
*/
public Builder clearReasonCode() {
reasonCode_ = 0;
onChanged();
return this;
}
private java.lang.Object detail_ = "";
/**
* string detail = 4;
* @return The detail.
*/
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
detail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string detail = 4;
* @return The bytes for detail.
*/
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string detail = 4;
* @param value The detail to set.
* @return This builder for chaining.
*/
public Builder setDetail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
detail_ = value;
onChanged();
return this;
}
/**
* string detail = 4;
* @return This builder for chaining.
*/
public Builder clearDetail() {
detail_ = getDefaultInstance().getDetail();
onChanged();
return this;
}
/**
* string detail = 4;
* @param value The bytes for detail to set.
* @return This builder for chaining.
*/
public Builder setDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
detail_ = value;
onChanged();
return this;
}
private int beforeState_ = 0;
/**
* .cmvr.api.DeviceAdmissionState before_state = 5;
* @return The enum numeric value on the wire for beforeState.
*/
@java.lang.Override public int getBeforeStateValue() {
return beforeState_;
}
/**
* .cmvr.api.DeviceAdmissionState before_state = 5;
* @param value The enum numeric value on the wire for beforeState to set.
* @return This builder for chaining.
*/
public Builder setBeforeStateValue(int value) {
beforeState_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.DeviceAdmissionState before_state = 5;
* @return The beforeState.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceAdmissionState getBeforeState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(beforeState_);
return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.DeviceAdmissionState before_state = 5;
* @param value The beforeState to set.
* @return This builder for chaining.
*/
public Builder setBeforeState(cmvr.api.SafetyCommand.DeviceAdmissionState value) {
if (value == null) {
throw new NullPointerException();
}
beforeState_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.DeviceAdmissionState before_state = 5;
* @return This builder for chaining.
*/
public Builder clearBeforeState() {
beforeState_ = 0;
onChanged();
return this;
}
private int afterState_ = 0;
/**
* .cmvr.api.DeviceAdmissionState after_state = 6;
* @return The enum numeric value on the wire for afterState.
*/
@java.lang.Override public int getAfterStateValue() {
return afterState_;
}
/**
* .cmvr.api.DeviceAdmissionState after_state = 6;
* @param value The enum numeric value on the wire for afterState to set.
* @return This builder for chaining.
*/
public Builder setAfterStateValue(int value) {
afterState_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.DeviceAdmissionState after_state = 6;
* @return The afterState.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceAdmissionState getAfterState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.DeviceAdmissionState result = cmvr.api.SafetyCommand.DeviceAdmissionState.valueOf(afterState_);
return result == null ? cmvr.api.SafetyCommand.DeviceAdmissionState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.DeviceAdmissionState after_state = 6;
* @param value The afterState to set.
* @return This builder for chaining.
*/
public Builder setAfterState(cmvr.api.SafetyCommand.DeviceAdmissionState value) {
if (value == null) {
throw new NullPointerException();
}
afterState_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.DeviceAdmissionState after_state = 6;
* @return This builder for chaining.
*/
public Builder clearAfterState() {
afterState_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.SafetyOperationTargetResult)
}
// @@protoc_insertion_point(class_scope:cmvr.api.SafetyOperationTargetResult)
private static final cmvr.api.SafetyCommand.SafetyOperationTargetResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.SafetyOperationTargetResult();
}
public static cmvr.api.SafetyCommand.SafetyOperationTargetResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SafetyOperationTargetResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationTargetResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SafetyParticipantResultInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.SafetyParticipantResultInfo)
com.google.protobuf.MessageOrBuilder {
/**
* bool recorded = 1;
* @return The recorded.
*/
boolean getRecorded();
/**
* bool success = 2;
* @return The success.
*/
boolean getSuccess();
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The enum numeric value on the wire for reasonCode.
*/
int getReasonCodeValue();
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The reasonCode.
*/
cmvr.api.Common.CommandReasonCode getReasonCode();
/**
* string detail = 4;
* @return The detail.
*/
java.lang.String getDetail();
/**
* string detail = 4;
* @return The bytes for detail.
*/
com.google.protobuf.ByteString
getDetailBytes();
}
/**
* Protobuf type {@code cmvr.api.SafetyParticipantResultInfo}
*/
public static final class SafetyParticipantResultInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.SafetyParticipantResultInfo)
SafetyParticipantResultInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SafetyParticipantResultInfo.newBuilder() to construct.
private SafetyParticipantResultInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SafetyParticipantResultInfo() {
reasonCode_ = 0;
detail_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SafetyParticipantResultInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantResultInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.class, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder.class);
}
public static final int RECORDED_FIELD_NUMBER = 1;
private boolean recorded_;
/**
* bool recorded = 1;
* @return The recorded.
*/
@java.lang.Override
public boolean getRecorded() {
return recorded_;
}
public static final int SUCCESS_FIELD_NUMBER = 2;
private boolean success_;
/**
* bool success = 2;
* @return The success.
*/
@java.lang.Override
public boolean getSuccess() {
return success_;
}
public static final int REASON_CODE_FIELD_NUMBER = 3;
private int reasonCode_;
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The enum numeric value on the wire for reasonCode.
*/
@java.lang.Override public int getReasonCodeValue() {
return reasonCode_;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The reasonCode.
*/
@java.lang.Override public cmvr.api.Common.CommandReasonCode getReasonCode() {
@SuppressWarnings("deprecation")
cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_);
return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result;
}
public static final int DETAIL_FIELD_NUMBER = 4;
private volatile java.lang.Object detail_;
/**
* string detail = 4;
* @return The detail.
*/
@java.lang.Override
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
detail_ = s;
return s;
}
}
/**
* string detail = 4;
* @return The bytes for detail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (recorded_ != false) {
output.writeBool(1, recorded_);
}
if (success_ != false) {
output.writeBool(2, success_);
}
if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) {
output.writeEnum(3, reasonCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, detail_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (recorded_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, recorded_);
}
if (success_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, success_);
}
if (reasonCode_ != cmvr.api.Common.CommandReasonCode.COMMAND_REASON_CODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, reasonCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detail_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.SafetyParticipantResultInfo)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.SafetyParticipantResultInfo other = (cmvr.api.SafetyCommand.SafetyParticipantResultInfo) obj;
if (getRecorded()
!= other.getRecorded()) return false;
if (getSuccess()
!= other.getSuccess()) return false;
if (reasonCode_ != other.reasonCode_) return false;
if (!getDetail()
.equals(other.getDetail())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RECORDED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRecorded());
hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSuccess());
hash = (37 * hash) + REASON_CODE_FIELD_NUMBER;
hash = (53 * hash) + reasonCode_;
hash = (37 * hash) + DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getDetail().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.SafetyParticipantResultInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.SafetyParticipantResultInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.SafetyParticipantResultInfo)
cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantResultInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.class, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.SafetyParticipantResultInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
recorded_ = false;
success_ = false;
reasonCode_ = 0;
detail_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo build() {
cmvr.api.SafetyCommand.SafetyParticipantResultInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo buildPartial() {
cmvr.api.SafetyCommand.SafetyParticipantResultInfo result = new cmvr.api.SafetyCommand.SafetyParticipantResultInfo(this);
result.recorded_ = recorded_;
result.success_ = success_;
result.reasonCode_ = reasonCode_;
result.detail_ = detail_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.SafetyParticipantResultInfo) {
return mergeFrom((cmvr.api.SafetyCommand.SafetyParticipantResultInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.SafetyParticipantResultInfo other) {
if (other == cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance()) return this;
if (other.getRecorded() != false) {
setRecorded(other.getRecorded());
}
if (other.getSuccess() != false) {
setSuccess(other.getSuccess());
}
if (other.reasonCode_ != 0) {
setReasonCodeValue(other.getReasonCodeValue());
}
if (!other.getDetail().isEmpty()) {
detail_ = other.detail_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
recorded_ = input.readBool();
break;
} // case 8
case 16: {
success_ = input.readBool();
break;
} // case 16
case 24: {
reasonCode_ = input.readEnum();
break;
} // case 24
case 34: {
detail_ = input.readStringRequireUtf8();
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private boolean recorded_ ;
/**
* bool recorded = 1;
* @return The recorded.
*/
@java.lang.Override
public boolean getRecorded() {
return recorded_;
}
/**
* bool recorded = 1;
* @param value The recorded to set.
* @return This builder for chaining.
*/
public Builder setRecorded(boolean value) {
recorded_ = value;
onChanged();
return this;
}
/**
* bool recorded = 1;
* @return This builder for chaining.
*/
public Builder clearRecorded() {
recorded_ = false;
onChanged();
return this;
}
private boolean success_ ;
/**
* bool success = 2;
* @return The success.
*/
@java.lang.Override
public boolean getSuccess() {
return success_;
}
/**
* bool success = 2;
* @param value The success to set.
* @return This builder for chaining.
*/
public Builder setSuccess(boolean value) {
success_ = value;
onChanged();
return this;
}
/**
* bool success = 2;
* @return This builder for chaining.
*/
public Builder clearSuccess() {
success_ = false;
onChanged();
return this;
}
private int reasonCode_ = 0;
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The enum numeric value on the wire for reasonCode.
*/
@java.lang.Override public int getReasonCodeValue() {
return reasonCode_;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @param value The enum numeric value on the wire for reasonCode to set.
* @return This builder for chaining.
*/
public Builder setReasonCodeValue(int value) {
reasonCode_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return The reasonCode.
*/
@java.lang.Override
public cmvr.api.Common.CommandReasonCode getReasonCode() {
@SuppressWarnings("deprecation")
cmvr.api.Common.CommandReasonCode result = cmvr.api.Common.CommandReasonCode.valueOf(reasonCode_);
return result == null ? cmvr.api.Common.CommandReasonCode.UNRECOGNIZED : result;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @param value The reasonCode to set.
* @return This builder for chaining.
*/
public Builder setReasonCode(cmvr.api.Common.CommandReasonCode value) {
if (value == null) {
throw new NullPointerException();
}
reasonCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.CommandReasonCode reason_code = 3;
* @return This builder for chaining.
*/
public Builder clearReasonCode() {
reasonCode_ = 0;
onChanged();
return this;
}
private java.lang.Object detail_ = "";
/**
* string detail = 4;
* @return The detail.
*/
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
detail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string detail = 4;
* @return The bytes for detail.
*/
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string detail = 4;
* @param value The detail to set.
* @return This builder for chaining.
*/
public Builder setDetail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
detail_ = value;
onChanged();
return this;
}
/**
* string detail = 4;
* @return This builder for chaining.
*/
public Builder clearDetail() {
detail_ = getDefaultInstance().getDetail();
onChanged();
return this;
}
/**
* string detail = 4;
* @param value The bytes for detail to set.
* @return This builder for chaining.
*/
public Builder setDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
detail_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.SafetyParticipantResultInfo)
}
// @@protoc_insertion_point(class_scope:cmvr.api.SafetyParticipantResultInfo)
private static final cmvr.api.SafetyCommand.SafetyParticipantResultInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.SafetyParticipantResultInfo();
}
public static cmvr.api.SafetyCommand.SafetyParticipantResultInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SafetyParticipantResultInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SafetyParticipantStateInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.SafetyParticipantStateInfo)
com.google.protobuf.MessageOrBuilder {
/**
* string participant_id = 1;
* @return The participantId.
*/
java.lang.String getParticipantId();
/**
* string participant_id = 1;
* @return The bytes for participantId.
*/
com.google.protobuf.ByteString
getParticipantIdBytes();
/**
* string phase = 2;
* @return The phase.
*/
java.lang.String getPhase();
/**
* string phase = 2;
* @return The bytes for phase.
*/
com.google.protobuf.ByteString
getPhaseBytes();
/**
* bool required = 3;
* @return The required.
*/
boolean getRequired();
/**
* bool registered = 4;
* @return The registered.
*/
boolean getRegistered();
/**
* bool barrier_active = 5;
* @return The barrierActive.
*/
boolean getBarrierActive();
/**
* bool barrier_retained = 6;
* @return The barrierRetained.
*/
boolean getBarrierRetained();
/**
* string operation_id = 7;
* @return The operationId.
*/
java.lang.String getOperationId();
/**
* string operation_id = 7;
* @return The bytes for operationId.
*/
com.google.protobuf.ByteString
getOperationIdBytes();
/**
* uint64 safety_epoch = 8;
* @return The safetyEpoch.
*/
long getSafetyEpoch();
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
* @return Whether the lastRequest field is set.
*/
boolean hasLastRequest();
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
* @return The lastRequest.
*/
cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRequest();
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
*/
cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastRequestOrBuilder();
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
* @return Whether the lastVerify field is set.
*/
boolean hasLastVerify();
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
* @return The lastVerify.
*/
cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastVerify();
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
*/
cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastVerifyOrBuilder();
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
* @return Whether the lastRelease field is set.
*/
boolean hasLastRelease();
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
* @return The lastRelease.
*/
cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRelease();
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
*/
cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastReleaseOrBuilder();
}
/**
* Protobuf type {@code cmvr.api.SafetyParticipantStateInfo}
*/
public static final class SafetyParticipantStateInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.SafetyParticipantStateInfo)
SafetyParticipantStateInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SafetyParticipantStateInfo.newBuilder() to construct.
private SafetyParticipantStateInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SafetyParticipantStateInfo() {
participantId_ = "";
phase_ = "";
operationId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SafetyParticipantStateInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantStateInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.SafetyParticipantStateInfo.class, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder.class);
}
public static final int PARTICIPANT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object participantId_;
/**
* string participant_id = 1;
* @return The participantId.
*/
@java.lang.Override
public java.lang.String getParticipantId() {
java.lang.Object ref = participantId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
participantId_ = s;
return s;
}
}
/**
* string participant_id = 1;
* @return The bytes for participantId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getParticipantIdBytes() {
java.lang.Object ref = participantId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
participantId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PHASE_FIELD_NUMBER = 2;
private volatile java.lang.Object phase_;
/**
* string phase = 2;
* @return The phase.
*/
@java.lang.Override
public java.lang.String getPhase() {
java.lang.Object ref = phase_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
phase_ = s;
return s;
}
}
/**
* string phase = 2;
* @return The bytes for phase.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPhaseBytes() {
java.lang.Object ref = phase_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
phase_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REQUIRED_FIELD_NUMBER = 3;
private boolean required_;
/**
* bool required = 3;
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
public static final int REGISTERED_FIELD_NUMBER = 4;
private boolean registered_;
/**
* bool registered = 4;
* @return The registered.
*/
@java.lang.Override
public boolean getRegistered() {
return registered_;
}
public static final int BARRIER_ACTIVE_FIELD_NUMBER = 5;
private boolean barrierActive_;
/**
* bool barrier_active = 5;
* @return The barrierActive.
*/
@java.lang.Override
public boolean getBarrierActive() {
return barrierActive_;
}
public static final int BARRIER_RETAINED_FIELD_NUMBER = 6;
private boolean barrierRetained_;
/**
* bool barrier_retained = 6;
* @return The barrierRetained.
*/
@java.lang.Override
public boolean getBarrierRetained() {
return barrierRetained_;
}
public static final int OPERATION_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object operationId_;
/**
* string operation_id = 7;
* @return The operationId.
*/
@java.lang.Override
public java.lang.String getOperationId() {
java.lang.Object ref = operationId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operationId_ = s;
return s;
}
}
/**
* string operation_id = 7;
* @return The bytes for operationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOperationIdBytes() {
java.lang.Object ref = operationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SAFETY_EPOCH_FIELD_NUMBER = 8;
private long safetyEpoch_;
/**
* uint64 safety_epoch = 8;
* @return The safetyEpoch.
*/
@java.lang.Override
public long getSafetyEpoch() {
return safetyEpoch_;
}
public static final int LAST_REQUEST_FIELD_NUMBER = 9;
private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastRequest_;
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
* @return Whether the lastRequest field is set.
*/
@java.lang.Override
public boolean hasLastRequest() {
return lastRequest_ != null;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
* @return The lastRequest.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRequest() {
return lastRequest_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRequest_;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastRequestOrBuilder() {
return getLastRequest();
}
public static final int LAST_VERIFY_FIELD_NUMBER = 10;
private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastVerify_;
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
* @return Whether the lastVerify field is set.
*/
@java.lang.Override
public boolean hasLastVerify() {
return lastVerify_ != null;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
* @return The lastVerify.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastVerify() {
return lastVerify_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastVerify_;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastVerifyOrBuilder() {
return getLastVerify();
}
public static final int LAST_RELEASE_FIELD_NUMBER = 11;
private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastRelease_;
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
* @return Whether the lastRelease field is set.
*/
@java.lang.Override
public boolean hasLastRelease() {
return lastRelease_ != null;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
* @return The lastRelease.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRelease() {
return lastRelease_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRelease_;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastReleaseOrBuilder() {
return getLastRelease();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(participantId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, participantId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phase_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, phase_);
}
if (required_ != false) {
output.writeBool(3, required_);
}
if (registered_ != false) {
output.writeBool(4, registered_);
}
if (barrierActive_ != false) {
output.writeBool(5, barrierActive_);
}
if (barrierRetained_ != false) {
output.writeBool(6, barrierRetained_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, operationId_);
}
if (safetyEpoch_ != 0L) {
output.writeUInt64(8, safetyEpoch_);
}
if (lastRequest_ != null) {
output.writeMessage(9, getLastRequest());
}
if (lastVerify_ != null) {
output.writeMessage(10, getLastVerify());
}
if (lastRelease_ != null) {
output.writeMessage(11, getLastRelease());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(participantId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, participantId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phase_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phase_);
}
if (required_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, required_);
}
if (registered_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, registered_);
}
if (barrierActive_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, barrierActive_);
}
if (barrierRetained_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, barrierRetained_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, operationId_);
}
if (safetyEpoch_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, safetyEpoch_);
}
if (lastRequest_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getLastRequest());
}
if (lastVerify_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getLastVerify());
}
if (lastRelease_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getLastRelease());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.SafetyParticipantStateInfo)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.SafetyParticipantStateInfo other = (cmvr.api.SafetyCommand.SafetyParticipantStateInfo) obj;
if (!getParticipantId()
.equals(other.getParticipantId())) return false;
if (!getPhase()
.equals(other.getPhase())) return false;
if (getRequired()
!= other.getRequired()) return false;
if (getRegistered()
!= other.getRegistered()) return false;
if (getBarrierActive()
!= other.getBarrierActive()) return false;
if (getBarrierRetained()
!= other.getBarrierRetained()) return false;
if (!getOperationId()
.equals(other.getOperationId())) return false;
if (getSafetyEpoch()
!= other.getSafetyEpoch()) return false;
if (hasLastRequest() != other.hasLastRequest()) return false;
if (hasLastRequest()) {
if (!getLastRequest()
.equals(other.getLastRequest())) return false;
}
if (hasLastVerify() != other.hasLastVerify()) return false;
if (hasLastVerify()) {
if (!getLastVerify()
.equals(other.getLastVerify())) return false;
}
if (hasLastRelease() != other.hasLastRelease()) return false;
if (hasLastRelease()) {
if (!getLastRelease()
.equals(other.getLastRelease())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PARTICIPANT_ID_FIELD_NUMBER;
hash = (53 * hash) + getParticipantId().hashCode();
hash = (37 * hash) + PHASE_FIELD_NUMBER;
hash = (53 * hash) + getPhase().hashCode();
hash = (37 * hash) + REQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRequired());
hash = (37 * hash) + REGISTERED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRegistered());
hash = (37 * hash) + BARRIER_ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBarrierActive());
hash = (37 * hash) + BARRIER_RETAINED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBarrierRetained());
hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getOperationId().hashCode();
hash = (37 * hash) + SAFETY_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSafetyEpoch());
if (hasLastRequest()) {
hash = (37 * hash) + LAST_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getLastRequest().hashCode();
}
if (hasLastVerify()) {
hash = (37 * hash) + LAST_VERIFY_FIELD_NUMBER;
hash = (53 * hash) + getLastVerify().hashCode();
}
if (hasLastRelease()) {
hash = (37 * hash) + LAST_RELEASE_FIELD_NUMBER;
hash = (53 * hash) + getLastRelease().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.SafetyParticipantStateInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.SafetyParticipantStateInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.SafetyParticipantStateInfo)
cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantStateInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.SafetyParticipantStateInfo.class, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.SafetyParticipantStateInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
participantId_ = "";
phase_ = "";
required_ = false;
registered_ = false;
barrierActive_ = false;
barrierRetained_ = false;
operationId_ = "";
safetyEpoch_ = 0L;
if (lastRequestBuilder_ == null) {
lastRequest_ = null;
} else {
lastRequest_ = null;
lastRequestBuilder_ = null;
}
if (lastVerifyBuilder_ == null) {
lastVerify_ = null;
} else {
lastVerify_ = null;
lastVerifyBuilder_ = null;
}
if (lastReleaseBuilder_ == null) {
lastRelease_ = null;
} else {
lastRelease_ = null;
lastReleaseBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantStateInfo getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.SafetyParticipantStateInfo.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantStateInfo build() {
cmvr.api.SafetyCommand.SafetyParticipantStateInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantStateInfo buildPartial() {
cmvr.api.SafetyCommand.SafetyParticipantStateInfo result = new cmvr.api.SafetyCommand.SafetyParticipantStateInfo(this);
result.participantId_ = participantId_;
result.phase_ = phase_;
result.required_ = required_;
result.registered_ = registered_;
result.barrierActive_ = barrierActive_;
result.barrierRetained_ = barrierRetained_;
result.operationId_ = operationId_;
result.safetyEpoch_ = safetyEpoch_;
if (lastRequestBuilder_ == null) {
result.lastRequest_ = lastRequest_;
} else {
result.lastRequest_ = lastRequestBuilder_.build();
}
if (lastVerifyBuilder_ == null) {
result.lastVerify_ = lastVerify_;
} else {
result.lastVerify_ = lastVerifyBuilder_.build();
}
if (lastReleaseBuilder_ == null) {
result.lastRelease_ = lastRelease_;
} else {
result.lastRelease_ = lastReleaseBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.SafetyParticipantStateInfo) {
return mergeFrom((cmvr.api.SafetyCommand.SafetyParticipantStateInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.SafetyParticipantStateInfo other) {
if (other == cmvr.api.SafetyCommand.SafetyParticipantStateInfo.getDefaultInstance()) return this;
if (!other.getParticipantId().isEmpty()) {
participantId_ = other.participantId_;
onChanged();
}
if (!other.getPhase().isEmpty()) {
phase_ = other.phase_;
onChanged();
}
if (other.getRequired() != false) {
setRequired(other.getRequired());
}
if (other.getRegistered() != false) {
setRegistered(other.getRegistered());
}
if (other.getBarrierActive() != false) {
setBarrierActive(other.getBarrierActive());
}
if (other.getBarrierRetained() != false) {
setBarrierRetained(other.getBarrierRetained());
}
if (!other.getOperationId().isEmpty()) {
operationId_ = other.operationId_;
onChanged();
}
if (other.getSafetyEpoch() != 0L) {
setSafetyEpoch(other.getSafetyEpoch());
}
if (other.hasLastRequest()) {
mergeLastRequest(other.getLastRequest());
}
if (other.hasLastVerify()) {
mergeLastVerify(other.getLastVerify());
}
if (other.hasLastRelease()) {
mergeLastRelease(other.getLastRelease());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
participantId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
phase_ = input.readStringRequireUtf8();
break;
} // case 18
case 24: {
required_ = input.readBool();
break;
} // case 24
case 32: {
registered_ = input.readBool();
break;
} // case 32
case 40: {
barrierActive_ = input.readBool();
break;
} // case 40
case 48: {
barrierRetained_ = input.readBool();
break;
} // case 48
case 58: {
operationId_ = input.readStringRequireUtf8();
break;
} // case 58
case 64: {
safetyEpoch_ = input.readUInt64();
break;
} // case 64
case 74: {
input.readMessage(
getLastRequestFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 74
case 82: {
input.readMessage(
getLastVerifyFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 82
case 90: {
input.readMessage(
getLastReleaseFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 90
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private java.lang.Object participantId_ = "";
/**
* string participant_id = 1;
* @return The participantId.
*/
public java.lang.String getParticipantId() {
java.lang.Object ref = participantId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
participantId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string participant_id = 1;
* @return The bytes for participantId.
*/
public com.google.protobuf.ByteString
getParticipantIdBytes() {
java.lang.Object ref = participantId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
participantId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string participant_id = 1;
* @param value The participantId to set.
* @return This builder for chaining.
*/
public Builder setParticipantId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
participantId_ = value;
onChanged();
return this;
}
/**
* string participant_id = 1;
* @return This builder for chaining.
*/
public Builder clearParticipantId() {
participantId_ = getDefaultInstance().getParticipantId();
onChanged();
return this;
}
/**
* string participant_id = 1;
* @param value The bytes for participantId to set.
* @return This builder for chaining.
*/
public Builder setParticipantIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
participantId_ = value;
onChanged();
return this;
}
private java.lang.Object phase_ = "";
/**
* string phase = 2;
* @return The phase.
*/
public java.lang.String getPhase() {
java.lang.Object ref = phase_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
phase_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string phase = 2;
* @return The bytes for phase.
*/
public com.google.protobuf.ByteString
getPhaseBytes() {
java.lang.Object ref = phase_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
phase_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string phase = 2;
* @param value The phase to set.
* @return This builder for chaining.
*/
public Builder setPhase(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
phase_ = value;
onChanged();
return this;
}
/**
* string phase = 2;
* @return This builder for chaining.
*/
public Builder clearPhase() {
phase_ = getDefaultInstance().getPhase();
onChanged();
return this;
}
/**
* string phase = 2;
* @param value The bytes for phase to set.
* @return This builder for chaining.
*/
public Builder setPhaseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
phase_ = value;
onChanged();
return this;
}
private boolean required_ ;
/**
* bool required = 3;
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
/**
* bool required = 3;
* @param value The required to set.
* @return This builder for chaining.
*/
public Builder setRequired(boolean value) {
required_ = value;
onChanged();
return this;
}
/**
* bool required = 3;
* @return This builder for chaining.
*/
public Builder clearRequired() {
required_ = false;
onChanged();
return this;
}
private boolean registered_ ;
/**
* bool registered = 4;
* @return The registered.
*/
@java.lang.Override
public boolean getRegistered() {
return registered_;
}
/**
* bool registered = 4;
* @param value The registered to set.
* @return This builder for chaining.
*/
public Builder setRegistered(boolean value) {
registered_ = value;
onChanged();
return this;
}
/**
* bool registered = 4;
* @return This builder for chaining.
*/
public Builder clearRegistered() {
registered_ = false;
onChanged();
return this;
}
private boolean barrierActive_ ;
/**
* bool barrier_active = 5;
* @return The barrierActive.
*/
@java.lang.Override
public boolean getBarrierActive() {
return barrierActive_;
}
/**
* bool barrier_active = 5;
* @param value The barrierActive to set.
* @return This builder for chaining.
*/
public Builder setBarrierActive(boolean value) {
barrierActive_ = value;
onChanged();
return this;
}
/**
* bool barrier_active = 5;
* @return This builder for chaining.
*/
public Builder clearBarrierActive() {
barrierActive_ = false;
onChanged();
return this;
}
private boolean barrierRetained_ ;
/**
* bool barrier_retained = 6;
* @return The barrierRetained.
*/
@java.lang.Override
public boolean getBarrierRetained() {
return barrierRetained_;
}
/**
* bool barrier_retained = 6;
* @param value The barrierRetained to set.
* @return This builder for chaining.
*/
public Builder setBarrierRetained(boolean value) {
barrierRetained_ = value;
onChanged();
return this;
}
/**
* bool barrier_retained = 6;
* @return This builder for chaining.
*/
public Builder clearBarrierRetained() {
barrierRetained_ = false;
onChanged();
return this;
}
private java.lang.Object operationId_ = "";
/**
* string operation_id = 7;
* @return The operationId.
*/
public java.lang.String getOperationId() {
java.lang.Object ref = operationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string operation_id = 7;
* @return The bytes for operationId.
*/
public com.google.protobuf.ByteString
getOperationIdBytes() {
java.lang.Object ref = operationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string operation_id = 7;
* @param value The operationId to set.
* @return This builder for chaining.
*/
public Builder setOperationId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
operationId_ = value;
onChanged();
return this;
}
/**
* string operation_id = 7;
* @return This builder for chaining.
*/
public Builder clearOperationId() {
operationId_ = getDefaultInstance().getOperationId();
onChanged();
return this;
}
/**
* string operation_id = 7;
* @param value The bytes for operationId to set.
* @return This builder for chaining.
*/
public Builder setOperationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
operationId_ = value;
onChanged();
return this;
}
private long safetyEpoch_ ;
/**
* uint64 safety_epoch = 8;
* @return The safetyEpoch.
*/
@java.lang.Override
public long getSafetyEpoch() {
return safetyEpoch_;
}
/**
* uint64 safety_epoch = 8;
* @param value The safetyEpoch to set.
* @return This builder for chaining.
*/
public Builder setSafetyEpoch(long value) {
safetyEpoch_ = value;
onChanged();
return this;
}
/**
* uint64 safety_epoch = 8;
* @return This builder for chaining.
*/
public Builder clearSafetyEpoch() {
safetyEpoch_ = 0L;
onChanged();
return this;
}
private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder> lastRequestBuilder_;
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
* @return Whether the lastRequest field is set.
*/
public boolean hasLastRequest() {
return lastRequestBuilder_ != null || lastRequest_ != null;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
* @return The lastRequest.
*/
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRequest() {
if (lastRequestBuilder_ == null) {
return lastRequest_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRequest_;
} else {
return lastRequestBuilder_.getMessage();
}
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
*/
public Builder setLastRequest(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) {
if (lastRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastRequest_ = value;
onChanged();
} else {
lastRequestBuilder_.setMessage(value);
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
*/
public Builder setLastRequest(
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder builderForValue) {
if (lastRequestBuilder_ == null) {
lastRequest_ = builderForValue.build();
onChanged();
} else {
lastRequestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
*/
public Builder mergeLastRequest(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) {
if (lastRequestBuilder_ == null) {
if (lastRequest_ != null) {
lastRequest_ =
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.newBuilder(lastRequest_).mergeFrom(value).buildPartial();
} else {
lastRequest_ = value;
}
onChanged();
} else {
lastRequestBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
*/
public Builder clearLastRequest() {
if (lastRequestBuilder_ == null) {
lastRequest_ = null;
onChanged();
} else {
lastRequest_ = null;
lastRequestBuilder_ = null;
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
*/
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder getLastRequestBuilder() {
onChanged();
return getLastRequestFieldBuilder().getBuilder();
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
*/
public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastRequestOrBuilder() {
if (lastRequestBuilder_ != null) {
return lastRequestBuilder_.getMessageOrBuilder();
} else {
return lastRequest_ == null ?
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRequest_;
}
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_request = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder>
getLastRequestFieldBuilder() {
if (lastRequestBuilder_ == null) {
lastRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder>(
getLastRequest(),
getParentForChildren(),
isClean());
lastRequest_ = null;
}
return lastRequestBuilder_;
}
private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastVerify_;
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder> lastVerifyBuilder_;
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
* @return Whether the lastVerify field is set.
*/
public boolean hasLastVerify() {
return lastVerifyBuilder_ != null || lastVerify_ != null;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
* @return The lastVerify.
*/
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastVerify() {
if (lastVerifyBuilder_ == null) {
return lastVerify_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastVerify_;
} else {
return lastVerifyBuilder_.getMessage();
}
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
*/
public Builder setLastVerify(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) {
if (lastVerifyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastVerify_ = value;
onChanged();
} else {
lastVerifyBuilder_.setMessage(value);
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
*/
public Builder setLastVerify(
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder builderForValue) {
if (lastVerifyBuilder_ == null) {
lastVerify_ = builderForValue.build();
onChanged();
} else {
lastVerifyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
*/
public Builder mergeLastVerify(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) {
if (lastVerifyBuilder_ == null) {
if (lastVerify_ != null) {
lastVerify_ =
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.newBuilder(lastVerify_).mergeFrom(value).buildPartial();
} else {
lastVerify_ = value;
}
onChanged();
} else {
lastVerifyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
*/
public Builder clearLastVerify() {
if (lastVerifyBuilder_ == null) {
lastVerify_ = null;
onChanged();
} else {
lastVerify_ = null;
lastVerifyBuilder_ = null;
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
*/
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder getLastVerifyBuilder() {
onChanged();
return getLastVerifyFieldBuilder().getBuilder();
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
*/
public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastVerifyOrBuilder() {
if (lastVerifyBuilder_ != null) {
return lastVerifyBuilder_.getMessageOrBuilder();
} else {
return lastVerify_ == null ?
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastVerify_;
}
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_verify = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder>
getLastVerifyFieldBuilder() {
if (lastVerifyBuilder_ == null) {
lastVerifyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder>(
getLastVerify(),
getParentForChildren(),
isClean());
lastVerify_ = null;
}
return lastVerifyBuilder_;
}
private cmvr.api.SafetyCommand.SafetyParticipantResultInfo lastRelease_;
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder> lastReleaseBuilder_;
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
* @return Whether the lastRelease field is set.
*/
public boolean hasLastRelease() {
return lastReleaseBuilder_ != null || lastRelease_ != null;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
* @return The lastRelease.
*/
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo getLastRelease() {
if (lastReleaseBuilder_ == null) {
return lastRelease_ == null ? cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRelease_;
} else {
return lastReleaseBuilder_.getMessage();
}
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
*/
public Builder setLastRelease(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) {
if (lastReleaseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastRelease_ = value;
onChanged();
} else {
lastReleaseBuilder_.setMessage(value);
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
*/
public Builder setLastRelease(
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder builderForValue) {
if (lastReleaseBuilder_ == null) {
lastRelease_ = builderForValue.build();
onChanged();
} else {
lastReleaseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
*/
public Builder mergeLastRelease(cmvr.api.SafetyCommand.SafetyParticipantResultInfo value) {
if (lastReleaseBuilder_ == null) {
if (lastRelease_ != null) {
lastRelease_ =
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.newBuilder(lastRelease_).mergeFrom(value).buildPartial();
} else {
lastRelease_ = value;
}
onChanged();
} else {
lastReleaseBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
*/
public Builder clearLastRelease() {
if (lastReleaseBuilder_ == null) {
lastRelease_ = null;
onChanged();
} else {
lastRelease_ = null;
lastReleaseBuilder_ = null;
}
return this;
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
*/
public cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder getLastReleaseBuilder() {
onChanged();
return getLastReleaseFieldBuilder().getBuilder();
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
*/
public cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder getLastReleaseOrBuilder() {
if (lastReleaseBuilder_ != null) {
return lastReleaseBuilder_.getMessageOrBuilder();
} else {
return lastRelease_ == null ?
cmvr.api.SafetyCommand.SafetyParticipantResultInfo.getDefaultInstance() : lastRelease_;
}
}
/**
* .cmvr.api.SafetyParticipantResultInfo last_release = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder>
getLastReleaseFieldBuilder() {
if (lastReleaseBuilder_ == null) {
lastReleaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantResultInfo, cmvr.api.SafetyCommand.SafetyParticipantResultInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantResultInfoOrBuilder>(
getLastRelease(),
getParentForChildren(),
isClean());
lastRelease_ = null;
}
return lastReleaseBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.SafetyParticipantStateInfo)
}
// @@protoc_insertion_point(class_scope:cmvr.api.SafetyParticipantStateInfo)
private static final cmvr.api.SafetyCommand.SafetyParticipantStateInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.SafetyParticipantStateInfo();
}
public static cmvr.api.SafetyCommand.SafetyParticipantStateInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SafetyParticipantStateInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantStateInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetSafetyStateCommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.GetSafetyStateCommand)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code cmvr.api.GetSafetyStateCommand}
*/
public static final class GetSafetyStateCommand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.GetSafetyStateCommand)
GetSafetyStateCommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetSafetyStateCommand.newBuilder() to construct.
private GetSafetyStateCommand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetSafetyStateCommand() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetSafetyStateCommand();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.GetSafetyStateCommand.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Builder.class);
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.GetSafetyStateCommand.Request)
com.google.protobuf.MessageOrBuilder {
/**
* .cmvr.api.SafetyScope scope = 1;
* @return Whether the scope field is set.
*/
boolean hasScope();
/**
* .cmvr.api.SafetyScope scope = 1;
* @return The scope.
*/
cmvr.api.SafetyCommand.SafetyScope getScope();
/**
* .cmvr.api.SafetyScope scope = 1;
*/
cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder();
}
/**
* Protobuf type {@code cmvr.api.GetSafetyStateCommand.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.GetSafetyStateCommand.Request)
RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Request() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Request();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.Builder.class);
}
public static final int SCOPE_FIELD_NUMBER = 1;
private cmvr.api.SafetyCommand.SafetyScope scope_;
/**
* .cmvr.api.SafetyScope scope = 1;
* @return Whether the scope field is set.
*/
@java.lang.Override
public boolean hasScope() {
return scope_ != null;
}
/**
* .cmvr.api.SafetyScope scope = 1;
* @return The scope.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyScope getScope() {
return scope_ == null ? cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_;
}
/**
* .cmvr.api.SafetyScope scope = 1;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder() {
return getScope();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (scope_ != null) {
output.writeMessage(1, getScope());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (scope_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getScope());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand.Request)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.GetSafetyStateCommand.Request other = (cmvr.api.SafetyCommand.GetSafetyStateCommand.Request) obj;
if (hasScope() != other.hasScope()) return false;
if (hasScope()) {
if (!getScope()
.equals(other.getScope())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasScope()) {
hash = (37 * hash) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + getScope().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.GetSafetyStateCommand.Request prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.GetSafetyStateCommand.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.GetSafetyStateCommand.Request)
cmvr.api.SafetyCommand.GetSafetyStateCommand.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (scopeBuilder_ == null) {
scope_ = null;
} else {
scope_ = null;
scopeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand.Request getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand.Request build() {
cmvr.api.SafetyCommand.GetSafetyStateCommand.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand.Request buildPartial() {
cmvr.api.SafetyCommand.GetSafetyStateCommand.Request result = new cmvr.api.SafetyCommand.GetSafetyStateCommand.Request(this);
if (scopeBuilder_ == null) {
result.scope_ = scope_;
} else {
result.scope_ = scopeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand.Request) {
return mergeFrom((cmvr.api.SafetyCommand.GetSafetyStateCommand.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.GetSafetyStateCommand.Request other) {
if (other == cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.getDefaultInstance()) return this;
if (other.hasScope()) {
mergeScope(other.getScope());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getScopeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private cmvr.api.SafetyCommand.SafetyScope scope_;
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder> scopeBuilder_;
/**
* .cmvr.api.SafetyScope scope = 1;
* @return Whether the scope field is set.
*/
public boolean hasScope() {
return scopeBuilder_ != null || scope_ != null;
}
/**
* .cmvr.api.SafetyScope scope = 1;
* @return The scope.
*/
public cmvr.api.SafetyCommand.SafetyScope getScope() {
if (scopeBuilder_ == null) {
return scope_ == null ? cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_;
} else {
return scopeBuilder_.getMessage();
}
}
/**
* .cmvr.api.SafetyScope scope = 1;
*/
public Builder setScope(cmvr.api.SafetyCommand.SafetyScope value) {
if (scopeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scope_ = value;
onChanged();
} else {
scopeBuilder_.setMessage(value);
}
return this;
}
/**
* .cmvr.api.SafetyScope scope = 1;
*/
public Builder setScope(
cmvr.api.SafetyCommand.SafetyScope.Builder builderForValue) {
if (scopeBuilder_ == null) {
scope_ = builderForValue.build();
onChanged();
} else {
scopeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cmvr.api.SafetyScope scope = 1;
*/
public Builder mergeScope(cmvr.api.SafetyCommand.SafetyScope value) {
if (scopeBuilder_ == null) {
if (scope_ != null) {
scope_ =
cmvr.api.SafetyCommand.SafetyScope.newBuilder(scope_).mergeFrom(value).buildPartial();
} else {
scope_ = value;
}
onChanged();
} else {
scopeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cmvr.api.SafetyScope scope = 1;
*/
public Builder clearScope() {
if (scopeBuilder_ == null) {
scope_ = null;
onChanged();
} else {
scope_ = null;
scopeBuilder_ = null;
}
return this;
}
/**
* .cmvr.api.SafetyScope scope = 1;
*/
public cmvr.api.SafetyCommand.SafetyScope.Builder getScopeBuilder() {
onChanged();
return getScopeFieldBuilder().getBuilder();
}
/**
* .cmvr.api.SafetyScope scope = 1;
*/
public cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder() {
if (scopeBuilder_ != null) {
return scopeBuilder_.getMessageOrBuilder();
} else {
return scope_ == null ?
cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_;
}
}
/**
* .cmvr.api.SafetyScope scope = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder>
getScopeFieldBuilder() {
if (scopeBuilder_ == null) {
scopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder>(
getScope(),
getParentForChildren(),
isClean());
scope_ = null;
}
return scopeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.GetSafetyStateCommand.Request)
}
// @@protoc_insertion_point(class_scope:cmvr.api.GetSafetyStateCommand.Request)
private static final cmvr.api.SafetyCommand.GetSafetyStateCommand.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.GetSafetyStateCommand.Request();
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FeedbackOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.GetSafetyStateCommand.Feedback)
com.google.protobuf.MessageOrBuilder {
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return Whether the header field is set.
*/
boolean hasHeader();
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return The header.
*/
cmvr.api.Common.CommandHeader.Feedback getHeader();
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder();
/**
* .cmvr.api.SystemAdmissionState system_state = 2;
* @return The enum numeric value on the wire for systemState.
*/
int getSystemStateValue();
/**
* .cmvr.api.SystemAdmissionState system_state = 2;
* @return The systemState.
*/
cmvr.api.SafetyCommand.SystemAdmissionState getSystemState();
/**
* uint64 safety_epoch = 3;
* @return The safetyEpoch.
*/
long getSafetyEpoch();
/**
* string control_service_instance_id = 4;
* @return The controlServiceInstanceId.
*/
java.lang.String getControlServiceInstanceId();
/**
* string control_service_instance_id = 4;
* @return The bytes for controlServiceInstanceId.
*/
com.google.protobuf.ByteString
getControlServiceInstanceIdBytes();
/**
* string enforcement_mode = 5;
* @return The enforcementMode.
*/
java.lang.String getEnforcementMode();
/**
* string enforcement_mode = 5;
* @return The bytes for enforcementMode.
*/
com.google.protobuf.ByteString
getEnforcementModeBytes();
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
java.util.List
getDevicesList();
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDevices(int index);
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
int getDevicesCount();
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
java.util.List extends cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder>
getDevicesOrBuilderList();
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder getDevicesOrBuilder(
int index);
/**
* string active_operation_id = 7;
* @return The activeOperationId.
*/
java.lang.String getActiveOperationId();
/**
* string active_operation_id = 7;
* @return The bytes for activeOperationId.
*/
com.google.protobuf.ByteString
getActiveOperationIdBytes();
/**
* string active_operation_phase = 8;
* @return The activeOperationPhase.
*/
java.lang.String getActiveOperationPhase();
/**
* string active_operation_phase = 8;
* @return The bytes for activeOperationPhase.
*/
com.google.protobuf.ByteString
getActiveOperationPhaseBytes();
/**
* uint64 sampled_at_unix_ms = 9;
* @return The sampledAtUnixMs.
*/
long getSampledAtUnixMs();
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
java.util.List
getParticipantsList();
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
cmvr.api.SafetyCommand.SafetyParticipantStateInfo getParticipants(int index);
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
int getParticipantsCount();
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
java.util.List extends cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder>
getParticipantsOrBuilderList();
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder getParticipantsOrBuilder(
int index);
}
/**
* Protobuf type {@code cmvr.api.GetSafetyStateCommand.Feedback}
*/
public static final class Feedback extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.GetSafetyStateCommand.Feedback)
FeedbackOrBuilder {
private static final long serialVersionUID = 0L;
// Use Feedback.newBuilder() to construct.
private Feedback(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Feedback() {
systemState_ = 0;
controlServiceInstanceId_ = "";
enforcementMode_ = "";
devices_ = java.util.Collections.emptyList();
activeOperationId_ = "";
activeOperationPhase_ = "";
participants_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Feedback();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Feedback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.Builder.class);
}
public static final int HEADER_FIELD_NUMBER = 1;
private cmvr.api.Common.CommandHeader.Feedback header_;
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return header_ != null;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return The header.
*/
@java.lang.Override
public cmvr.api.Common.CommandHeader.Feedback getHeader() {
return header_ == null ? cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
@java.lang.Override
public cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int SYSTEM_STATE_FIELD_NUMBER = 2;
private int systemState_;
/**
* .cmvr.api.SystemAdmissionState system_state = 2;
* @return The enum numeric value on the wire for systemState.
*/
@java.lang.Override public int getSystemStateValue() {
return systemState_;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 2;
* @return The systemState.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_);
return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result;
}
public static final int SAFETY_EPOCH_FIELD_NUMBER = 3;
private long safetyEpoch_;
/**
* uint64 safety_epoch = 3;
* @return The safetyEpoch.
*/
@java.lang.Override
public long getSafetyEpoch() {
return safetyEpoch_;
}
public static final int CONTROL_SERVICE_INSTANCE_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object controlServiceInstanceId_;
/**
* string control_service_instance_id = 4;
* @return The controlServiceInstanceId.
*/
@java.lang.Override
public java.lang.String getControlServiceInstanceId() {
java.lang.Object ref = controlServiceInstanceId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
controlServiceInstanceId_ = s;
return s;
}
}
/**
* string control_service_instance_id = 4;
* @return The bytes for controlServiceInstanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getControlServiceInstanceIdBytes() {
java.lang.Object ref = controlServiceInstanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
controlServiceInstanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENFORCEMENT_MODE_FIELD_NUMBER = 5;
private volatile java.lang.Object enforcementMode_;
/**
* string enforcement_mode = 5;
* @return The enforcementMode.
*/
@java.lang.Override
public java.lang.String getEnforcementMode() {
java.lang.Object ref = enforcementMode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
enforcementMode_ = s;
return s;
}
}
/**
* string enforcement_mode = 5;
* @return The bytes for enforcementMode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEnforcementModeBytes() {
java.lang.Object ref = enforcementMode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
enforcementMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEVICES_FIELD_NUMBER = 6;
private java.util.List devices_;
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
@java.lang.Override
public java.util.List getDevicesList() {
return devices_;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
@java.lang.Override
public java.util.List extends cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder>
getDevicesOrBuilderList() {
return devices_;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
@java.lang.Override
public int getDevicesCount() {
return devices_.size();
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDevices(int index) {
return devices_.get(index);
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder getDevicesOrBuilder(
int index) {
return devices_.get(index);
}
public static final int ACTIVE_OPERATION_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object activeOperationId_;
/**
* string active_operation_id = 7;
* @return The activeOperationId.
*/
@java.lang.Override
public java.lang.String getActiveOperationId() {
java.lang.Object ref = activeOperationId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
activeOperationId_ = s;
return s;
}
}
/**
* string active_operation_id = 7;
* @return The bytes for activeOperationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getActiveOperationIdBytes() {
java.lang.Object ref = activeOperationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
activeOperationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTIVE_OPERATION_PHASE_FIELD_NUMBER = 8;
private volatile java.lang.Object activeOperationPhase_;
/**
* string active_operation_phase = 8;
* @return The activeOperationPhase.
*/
@java.lang.Override
public java.lang.String getActiveOperationPhase() {
java.lang.Object ref = activeOperationPhase_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
activeOperationPhase_ = s;
return s;
}
}
/**
* string active_operation_phase = 8;
* @return The bytes for activeOperationPhase.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getActiveOperationPhaseBytes() {
java.lang.Object ref = activeOperationPhase_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
activeOperationPhase_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SAMPLED_AT_UNIX_MS_FIELD_NUMBER = 9;
private long sampledAtUnixMs_;
/**
* uint64 sampled_at_unix_ms = 9;
* @return The sampledAtUnixMs.
*/
@java.lang.Override
public long getSampledAtUnixMs() {
return sampledAtUnixMs_;
}
public static final int PARTICIPANTS_FIELD_NUMBER = 10;
private java.util.List participants_;
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
@java.lang.Override
public java.util.List getParticipantsList() {
return participants_;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
@java.lang.Override
public java.util.List extends cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder>
getParticipantsOrBuilderList() {
return participants_;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
@java.lang.Override
public int getParticipantsCount() {
return participants_.size();
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantStateInfo getParticipants(int index) {
return participants_.get(index);
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder getParticipantsOrBuilder(
int index) {
return participants_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (header_ != null) {
output.writeMessage(1, getHeader());
}
if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, systemState_);
}
if (safetyEpoch_ != 0L) {
output.writeUInt64(3, safetyEpoch_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlServiceInstanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, controlServiceInstanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enforcementMode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, enforcementMode_);
}
for (int i = 0; i < devices_.size(); i++) {
output.writeMessage(6, devices_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeOperationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, activeOperationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeOperationPhase_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, activeOperationPhase_);
}
if (sampledAtUnixMs_ != 0L) {
output.writeUInt64(9, sampledAtUnixMs_);
}
for (int i = 0; i < participants_.size(); i++) {
output.writeMessage(10, participants_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, systemState_);
}
if (safetyEpoch_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, safetyEpoch_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlServiceInstanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, controlServiceInstanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enforcementMode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, enforcementMode_);
}
for (int i = 0; i < devices_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, devices_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeOperationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, activeOperationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeOperationPhase_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, activeOperationPhase_);
}
if (sampledAtUnixMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(9, sampledAtUnixMs_);
}
for (int i = 0; i < participants_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, participants_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback other = (cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (systemState_ != other.systemState_) return false;
if (getSafetyEpoch()
!= other.getSafetyEpoch()) return false;
if (!getControlServiceInstanceId()
.equals(other.getControlServiceInstanceId())) return false;
if (!getEnforcementMode()
.equals(other.getEnforcementMode())) return false;
if (!getDevicesList()
.equals(other.getDevicesList())) return false;
if (!getActiveOperationId()
.equals(other.getActiveOperationId())) return false;
if (!getActiveOperationPhase()
.equals(other.getActiveOperationPhase())) return false;
if (getSampledAtUnixMs()
!= other.getSampledAtUnixMs()) return false;
if (!getParticipantsList()
.equals(other.getParticipantsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
hash = (37 * hash) + SYSTEM_STATE_FIELD_NUMBER;
hash = (53 * hash) + systemState_;
hash = (37 * hash) + SAFETY_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSafetyEpoch());
hash = (37 * hash) + CONTROL_SERVICE_INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getControlServiceInstanceId().hashCode();
hash = (37 * hash) + ENFORCEMENT_MODE_FIELD_NUMBER;
hash = (53 * hash) + getEnforcementMode().hashCode();
if (getDevicesCount() > 0) {
hash = (37 * hash) + DEVICES_FIELD_NUMBER;
hash = (53 * hash) + getDevicesList().hashCode();
}
hash = (37 * hash) + ACTIVE_OPERATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getActiveOperationId().hashCode();
hash = (37 * hash) + ACTIVE_OPERATION_PHASE_FIELD_NUMBER;
hash = (53 * hash) + getActiveOperationPhase().hashCode();
hash = (37 * hash) + SAMPLED_AT_UNIX_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSampledAtUnixMs());
if (getParticipantsCount() > 0) {
hash = (37 * hash) + PARTICIPANTS_FIELD_NUMBER;
hash = (53 * hash) + getParticipantsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.GetSafetyStateCommand.Feedback}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.GetSafetyStateCommand.Feedback)
cmvr.api.SafetyCommand.GetSafetyStateCommand.FeedbackOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Feedback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
systemState_ = 0;
safetyEpoch_ = 0L;
controlServiceInstanceId_ = "";
enforcementMode_ = "";
if (devicesBuilder_ == null) {
devices_ = java.util.Collections.emptyList();
} else {
devices_ = null;
devicesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
activeOperationId_ = "";
activeOperationPhase_ = "";
sampledAtUnixMs_ = 0L;
if (participantsBuilder_ == null) {
participants_ = java.util.Collections.emptyList();
} else {
participants_ = null;
participantsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback build() {
cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback buildPartial() {
cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback result = new cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback(this);
int from_bitField0_ = bitField0_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
result.systemState_ = systemState_;
result.safetyEpoch_ = safetyEpoch_;
result.controlServiceInstanceId_ = controlServiceInstanceId_;
result.enforcementMode_ = enforcementMode_;
if (devicesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
devices_ = java.util.Collections.unmodifiableList(devices_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.devices_ = devices_;
} else {
result.devices_ = devicesBuilder_.build();
}
result.activeOperationId_ = activeOperationId_;
result.activeOperationPhase_ = activeOperationPhase_;
result.sampledAtUnixMs_ = sampledAtUnixMs_;
if (participantsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
participants_ = java.util.Collections.unmodifiableList(participants_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.participants_ = participants_;
} else {
result.participants_ = participantsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback) {
return mergeFrom((cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback other) {
if (other == cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.systemState_ != 0) {
setSystemStateValue(other.getSystemStateValue());
}
if (other.getSafetyEpoch() != 0L) {
setSafetyEpoch(other.getSafetyEpoch());
}
if (!other.getControlServiceInstanceId().isEmpty()) {
controlServiceInstanceId_ = other.controlServiceInstanceId_;
onChanged();
}
if (!other.getEnforcementMode().isEmpty()) {
enforcementMode_ = other.enforcementMode_;
onChanged();
}
if (devicesBuilder_ == null) {
if (!other.devices_.isEmpty()) {
if (devices_.isEmpty()) {
devices_ = other.devices_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDevicesIsMutable();
devices_.addAll(other.devices_);
}
onChanged();
}
} else {
if (!other.devices_.isEmpty()) {
if (devicesBuilder_.isEmpty()) {
devicesBuilder_.dispose();
devicesBuilder_ = null;
devices_ = other.devices_;
bitField0_ = (bitField0_ & ~0x00000001);
devicesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDevicesFieldBuilder() : null;
} else {
devicesBuilder_.addAllMessages(other.devices_);
}
}
}
if (!other.getActiveOperationId().isEmpty()) {
activeOperationId_ = other.activeOperationId_;
onChanged();
}
if (!other.getActiveOperationPhase().isEmpty()) {
activeOperationPhase_ = other.activeOperationPhase_;
onChanged();
}
if (other.getSampledAtUnixMs() != 0L) {
setSampledAtUnixMs(other.getSampledAtUnixMs());
}
if (participantsBuilder_ == null) {
if (!other.participants_.isEmpty()) {
if (participants_.isEmpty()) {
participants_ = other.participants_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureParticipantsIsMutable();
participants_.addAll(other.participants_);
}
onChanged();
}
} else {
if (!other.participants_.isEmpty()) {
if (participantsBuilder_.isEmpty()) {
participantsBuilder_.dispose();
participantsBuilder_ = null;
participants_ = other.participants_;
bitField0_ = (bitField0_ & ~0x00000002);
participantsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParticipantsFieldBuilder() : null;
} else {
participantsBuilder_.addAllMessages(other.participants_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getHeaderFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 16: {
systemState_ = input.readEnum();
break;
} // case 16
case 24: {
safetyEpoch_ = input.readUInt64();
break;
} // case 24
case 34: {
controlServiceInstanceId_ = input.readStringRequireUtf8();
break;
} // case 34
case 42: {
enforcementMode_ = input.readStringRequireUtf8();
break;
} // case 42
case 50: {
cmvr.api.SafetyCommand.DeviceSafetyStateInfo m =
input.readMessage(
cmvr.api.SafetyCommand.DeviceSafetyStateInfo.parser(),
extensionRegistry);
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
devices_.add(m);
} else {
devicesBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
activeOperationId_ = input.readStringRequireUtf8();
break;
} // case 58
case 66: {
activeOperationPhase_ = input.readStringRequireUtf8();
break;
} // case 66
case 72: {
sampledAtUnixMs_ = input.readUInt64();
break;
} // case 72
case 82: {
cmvr.api.SafetyCommand.SafetyParticipantStateInfo m =
input.readMessage(
cmvr.api.SafetyCommand.SafetyParticipantStateInfo.parser(),
extensionRegistry);
if (participantsBuilder_ == null) {
ensureParticipantsIsMutable();
participants_.add(m);
} else {
participantsBuilder_.addMessage(m);
}
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private cmvr.api.Common.CommandHeader.Feedback header_;
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder> headerBuilder_;
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return The header.
*/
public cmvr.api.Common.CommandHeader.Feedback getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder setHeader(cmvr.api.Common.CommandHeader.Feedback value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder setHeader(
cmvr.api.Common.CommandHeader.Feedback.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder mergeHeader(cmvr.api.Common.CommandHeader.Feedback value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
cmvr.api.Common.CommandHeader.Feedback.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public cmvr.api.Common.CommandHeader.Feedback.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_;
}
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private int systemState_ = 0;
/**
* .cmvr.api.SystemAdmissionState system_state = 2;
* @return The enum numeric value on the wire for systemState.
*/
@java.lang.Override public int getSystemStateValue() {
return systemState_;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 2;
* @param value The enum numeric value on the wire for systemState to set.
* @return This builder for chaining.
*/
public Builder setSystemStateValue(int value) {
systemState_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 2;
* @return The systemState.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_);
return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 2;
* @param value The systemState to set.
* @return This builder for chaining.
*/
public Builder setSystemState(cmvr.api.SafetyCommand.SystemAdmissionState value) {
if (value == null) {
throw new NullPointerException();
}
systemState_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 2;
* @return This builder for chaining.
*/
public Builder clearSystemState() {
systemState_ = 0;
onChanged();
return this;
}
private long safetyEpoch_ ;
/**
* uint64 safety_epoch = 3;
* @return The safetyEpoch.
*/
@java.lang.Override
public long getSafetyEpoch() {
return safetyEpoch_;
}
/**
* uint64 safety_epoch = 3;
* @param value The safetyEpoch to set.
* @return This builder for chaining.
*/
public Builder setSafetyEpoch(long value) {
safetyEpoch_ = value;
onChanged();
return this;
}
/**
* uint64 safety_epoch = 3;
* @return This builder for chaining.
*/
public Builder clearSafetyEpoch() {
safetyEpoch_ = 0L;
onChanged();
return this;
}
private java.lang.Object controlServiceInstanceId_ = "";
/**
* string control_service_instance_id = 4;
* @return The controlServiceInstanceId.
*/
public java.lang.String getControlServiceInstanceId() {
java.lang.Object ref = controlServiceInstanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
controlServiceInstanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string control_service_instance_id = 4;
* @return The bytes for controlServiceInstanceId.
*/
public com.google.protobuf.ByteString
getControlServiceInstanceIdBytes() {
java.lang.Object ref = controlServiceInstanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
controlServiceInstanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string control_service_instance_id = 4;
* @param value The controlServiceInstanceId to set.
* @return This builder for chaining.
*/
public Builder setControlServiceInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
controlServiceInstanceId_ = value;
onChanged();
return this;
}
/**
* string control_service_instance_id = 4;
* @return This builder for chaining.
*/
public Builder clearControlServiceInstanceId() {
controlServiceInstanceId_ = getDefaultInstance().getControlServiceInstanceId();
onChanged();
return this;
}
/**
* string control_service_instance_id = 4;
* @param value The bytes for controlServiceInstanceId to set.
* @return This builder for chaining.
*/
public Builder setControlServiceInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
controlServiceInstanceId_ = value;
onChanged();
return this;
}
private java.lang.Object enforcementMode_ = "";
/**
* string enforcement_mode = 5;
* @return The enforcementMode.
*/
public java.lang.String getEnforcementMode() {
java.lang.Object ref = enforcementMode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
enforcementMode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string enforcement_mode = 5;
* @return The bytes for enforcementMode.
*/
public com.google.protobuf.ByteString
getEnforcementModeBytes() {
java.lang.Object ref = enforcementMode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
enforcementMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string enforcement_mode = 5;
* @param value The enforcementMode to set.
* @return This builder for chaining.
*/
public Builder setEnforcementMode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
enforcementMode_ = value;
onChanged();
return this;
}
/**
* string enforcement_mode = 5;
* @return This builder for chaining.
*/
public Builder clearEnforcementMode() {
enforcementMode_ = getDefaultInstance().getEnforcementMode();
onChanged();
return this;
}
/**
* string enforcement_mode = 5;
* @param value The bytes for enforcementMode to set.
* @return This builder for chaining.
*/
public Builder setEnforcementModeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
enforcementMode_ = value;
onChanged();
return this;
}
private java.util.List devices_ =
java.util.Collections.emptyList();
private void ensureDevicesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
devices_ = new java.util.ArrayList(devices_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.DeviceSafetyStateInfo, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder, cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder> devicesBuilder_;
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public java.util.List getDevicesList() {
if (devicesBuilder_ == null) {
return java.util.Collections.unmodifiableList(devices_);
} else {
return devicesBuilder_.getMessageList();
}
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public int getDevicesCount() {
if (devicesBuilder_ == null) {
return devices_.size();
} else {
return devicesBuilder_.getCount();
}
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public cmvr.api.SafetyCommand.DeviceSafetyStateInfo getDevices(int index) {
if (devicesBuilder_ == null) {
return devices_.get(index);
} else {
return devicesBuilder_.getMessage(index);
}
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public Builder setDevices(
int index, cmvr.api.SafetyCommand.DeviceSafetyStateInfo value) {
if (devicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDevicesIsMutable();
devices_.set(index, value);
onChanged();
} else {
devicesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public Builder setDevices(
int index, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder builderForValue) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
devices_.set(index, builderForValue.build());
onChanged();
} else {
devicesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public Builder addDevices(cmvr.api.SafetyCommand.DeviceSafetyStateInfo value) {
if (devicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDevicesIsMutable();
devices_.add(value);
onChanged();
} else {
devicesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public Builder addDevices(
int index, cmvr.api.SafetyCommand.DeviceSafetyStateInfo value) {
if (devicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDevicesIsMutable();
devices_.add(index, value);
onChanged();
} else {
devicesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public Builder addDevices(
cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder builderForValue) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
devices_.add(builderForValue.build());
onChanged();
} else {
devicesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public Builder addDevices(
int index, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder builderForValue) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
devices_.add(index, builderForValue.build());
onChanged();
} else {
devicesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public Builder addAllDevices(
java.lang.Iterable extends cmvr.api.SafetyCommand.DeviceSafetyStateInfo> values) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, devices_);
onChanged();
} else {
devicesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public Builder clearDevices() {
if (devicesBuilder_ == null) {
devices_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
devicesBuilder_.clear();
}
return this;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public Builder removeDevices(int index) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
devices_.remove(index);
onChanged();
} else {
devicesBuilder_.remove(index);
}
return this;
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder getDevicesBuilder(
int index) {
return getDevicesFieldBuilder().getBuilder(index);
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder getDevicesOrBuilder(
int index) {
if (devicesBuilder_ == null) {
return devices_.get(index); } else {
return devicesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public java.util.List extends cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder>
getDevicesOrBuilderList() {
if (devicesBuilder_ != null) {
return devicesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(devices_);
}
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder addDevicesBuilder() {
return getDevicesFieldBuilder().addBuilder(
cmvr.api.SafetyCommand.DeviceSafetyStateInfo.getDefaultInstance());
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder addDevicesBuilder(
int index) {
return getDevicesFieldBuilder().addBuilder(
index, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.getDefaultInstance());
}
/**
* repeated .cmvr.api.DeviceSafetyStateInfo devices = 6;
*/
public java.util.List
getDevicesBuilderList() {
return getDevicesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.DeviceSafetyStateInfo, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder, cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder>
getDevicesFieldBuilder() {
if (devicesBuilder_ == null) {
devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.DeviceSafetyStateInfo, cmvr.api.SafetyCommand.DeviceSafetyStateInfo.Builder, cmvr.api.SafetyCommand.DeviceSafetyStateInfoOrBuilder>(
devices_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
devices_ = null;
}
return devicesBuilder_;
}
private java.lang.Object activeOperationId_ = "";
/**
* string active_operation_id = 7;
* @return The activeOperationId.
*/
public java.lang.String getActiveOperationId() {
java.lang.Object ref = activeOperationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
activeOperationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string active_operation_id = 7;
* @return The bytes for activeOperationId.
*/
public com.google.protobuf.ByteString
getActiveOperationIdBytes() {
java.lang.Object ref = activeOperationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
activeOperationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string active_operation_id = 7;
* @param value The activeOperationId to set.
* @return This builder for chaining.
*/
public Builder setActiveOperationId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
activeOperationId_ = value;
onChanged();
return this;
}
/**
* string active_operation_id = 7;
* @return This builder for chaining.
*/
public Builder clearActiveOperationId() {
activeOperationId_ = getDefaultInstance().getActiveOperationId();
onChanged();
return this;
}
/**
* string active_operation_id = 7;
* @param value The bytes for activeOperationId to set.
* @return This builder for chaining.
*/
public Builder setActiveOperationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
activeOperationId_ = value;
onChanged();
return this;
}
private java.lang.Object activeOperationPhase_ = "";
/**
* string active_operation_phase = 8;
* @return The activeOperationPhase.
*/
public java.lang.String getActiveOperationPhase() {
java.lang.Object ref = activeOperationPhase_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
activeOperationPhase_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string active_operation_phase = 8;
* @return The bytes for activeOperationPhase.
*/
public com.google.protobuf.ByteString
getActiveOperationPhaseBytes() {
java.lang.Object ref = activeOperationPhase_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
activeOperationPhase_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string active_operation_phase = 8;
* @param value The activeOperationPhase to set.
* @return This builder for chaining.
*/
public Builder setActiveOperationPhase(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
activeOperationPhase_ = value;
onChanged();
return this;
}
/**
* string active_operation_phase = 8;
* @return This builder for chaining.
*/
public Builder clearActiveOperationPhase() {
activeOperationPhase_ = getDefaultInstance().getActiveOperationPhase();
onChanged();
return this;
}
/**
* string active_operation_phase = 8;
* @param value The bytes for activeOperationPhase to set.
* @return This builder for chaining.
*/
public Builder setActiveOperationPhaseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
activeOperationPhase_ = value;
onChanged();
return this;
}
private long sampledAtUnixMs_ ;
/**
* uint64 sampled_at_unix_ms = 9;
* @return The sampledAtUnixMs.
*/
@java.lang.Override
public long getSampledAtUnixMs() {
return sampledAtUnixMs_;
}
/**
* uint64 sampled_at_unix_ms = 9;
* @param value The sampledAtUnixMs to set.
* @return This builder for chaining.
*/
public Builder setSampledAtUnixMs(long value) {
sampledAtUnixMs_ = value;
onChanged();
return this;
}
/**
* uint64 sampled_at_unix_ms = 9;
* @return This builder for chaining.
*/
public Builder clearSampledAtUnixMs() {
sampledAtUnixMs_ = 0L;
onChanged();
return this;
}
private java.util.List participants_ =
java.util.Collections.emptyList();
private void ensureParticipantsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
participants_ = new java.util.ArrayList(participants_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantStateInfo, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder> participantsBuilder_;
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public java.util.List getParticipantsList() {
if (participantsBuilder_ == null) {
return java.util.Collections.unmodifiableList(participants_);
} else {
return participantsBuilder_.getMessageList();
}
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public int getParticipantsCount() {
if (participantsBuilder_ == null) {
return participants_.size();
} else {
return participantsBuilder_.getCount();
}
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public cmvr.api.SafetyCommand.SafetyParticipantStateInfo getParticipants(int index) {
if (participantsBuilder_ == null) {
return participants_.get(index);
} else {
return participantsBuilder_.getMessage(index);
}
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public Builder setParticipants(
int index, cmvr.api.SafetyCommand.SafetyParticipantStateInfo value) {
if (participantsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParticipantsIsMutable();
participants_.set(index, value);
onChanged();
} else {
participantsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public Builder setParticipants(
int index, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder builderForValue) {
if (participantsBuilder_ == null) {
ensureParticipantsIsMutable();
participants_.set(index, builderForValue.build());
onChanged();
} else {
participantsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public Builder addParticipants(cmvr.api.SafetyCommand.SafetyParticipantStateInfo value) {
if (participantsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParticipantsIsMutable();
participants_.add(value);
onChanged();
} else {
participantsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public Builder addParticipants(
int index, cmvr.api.SafetyCommand.SafetyParticipantStateInfo value) {
if (participantsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParticipantsIsMutable();
participants_.add(index, value);
onChanged();
} else {
participantsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public Builder addParticipants(
cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder builderForValue) {
if (participantsBuilder_ == null) {
ensureParticipantsIsMutable();
participants_.add(builderForValue.build());
onChanged();
} else {
participantsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public Builder addParticipants(
int index, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder builderForValue) {
if (participantsBuilder_ == null) {
ensureParticipantsIsMutable();
participants_.add(index, builderForValue.build());
onChanged();
} else {
participantsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public Builder addAllParticipants(
java.lang.Iterable extends cmvr.api.SafetyCommand.SafetyParticipantStateInfo> values) {
if (participantsBuilder_ == null) {
ensureParticipantsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, participants_);
onChanged();
} else {
participantsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public Builder clearParticipants() {
if (participantsBuilder_ == null) {
participants_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
participantsBuilder_.clear();
}
return this;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public Builder removeParticipants(int index) {
if (participantsBuilder_ == null) {
ensureParticipantsIsMutable();
participants_.remove(index);
onChanged();
} else {
participantsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder getParticipantsBuilder(
int index) {
return getParticipantsFieldBuilder().getBuilder(index);
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder getParticipantsOrBuilder(
int index) {
if (participantsBuilder_ == null) {
return participants_.get(index); } else {
return participantsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public java.util.List extends cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder>
getParticipantsOrBuilderList() {
if (participantsBuilder_ != null) {
return participantsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(participants_);
}
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder addParticipantsBuilder() {
return getParticipantsFieldBuilder().addBuilder(
cmvr.api.SafetyCommand.SafetyParticipantStateInfo.getDefaultInstance());
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder addParticipantsBuilder(
int index) {
return getParticipantsFieldBuilder().addBuilder(
index, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.getDefaultInstance());
}
/**
* repeated .cmvr.api.SafetyParticipantStateInfo participants = 10;
*/
public java.util.List
getParticipantsBuilderList() {
return getParticipantsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantStateInfo, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder>
getParticipantsFieldBuilder() {
if (participantsBuilder_ == null) {
participantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyParticipantStateInfo, cmvr.api.SafetyCommand.SafetyParticipantStateInfo.Builder, cmvr.api.SafetyCommand.SafetyParticipantStateInfoOrBuilder>(
participants_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
participants_ = null;
}
return participantsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.GetSafetyStateCommand.Feedback)
}
// @@protoc_insertion_point(class_scope:cmvr.api.GetSafetyStateCommand.Feedback)
private static final cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback();
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Feedback parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.GetSafetyStateCommand other = (cmvr.api.SafetyCommand.GetSafetyStateCommand) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.GetSafetyStateCommand prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.GetSafetyStateCommand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.GetSafetyStateCommand)
cmvr.api.SafetyCommand.GetSafetyStateCommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.GetSafetyStateCommand.class, cmvr.api.SafetyCommand.GetSafetyStateCommand.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.GetSafetyStateCommand.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_GetSafetyStateCommand_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.GetSafetyStateCommand.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand build() {
cmvr.api.SafetyCommand.GetSafetyStateCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand buildPartial() {
cmvr.api.SafetyCommand.GetSafetyStateCommand result = new cmvr.api.SafetyCommand.GetSafetyStateCommand(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.GetSafetyStateCommand) {
return mergeFrom((cmvr.api.SafetyCommand.GetSafetyStateCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.GetSafetyStateCommand other) {
if (other == cmvr.api.SafetyCommand.GetSafetyStateCommand.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.GetSafetyStateCommand)
}
// @@protoc_insertion_point(class_scope:cmvr.api.GetSafetyStateCommand)
private static final cmvr.api.SafetyCommand.GetSafetyStateCommand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.GetSafetyStateCommand();
}
public static cmvr.api.SafetyCommand.GetSafetyStateCommand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetSafetyStateCommand parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.GetSafetyStateCommand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecoverSafetyStateCommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.RecoverSafetyStateCommand)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code cmvr.api.RecoverSafetyStateCommand}
*/
public static final class RecoverSafetyStateCommand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.RecoverSafetyStateCommand)
RecoverSafetyStateCommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use RecoverSafetyStateCommand.newBuilder() to construct.
private RecoverSafetyStateCommand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RecoverSafetyStateCommand() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RecoverSafetyStateCommand();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Builder.class);
}
/**
* Protobuf enum {@code cmvr.api.RecoverSafetyStateCommand.Mode}
*/
public enum Mode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* MODE_UNSPECIFIED = 0;
*/
MODE_UNSPECIFIED(0),
/**
* VERIFY_ONLY = 1;
*/
VERIFY_ONLY(1),
/**
* CLEAR_SOFTWARE_LATCH = 2;
*/
CLEAR_SOFTWARE_LATCH(2),
UNRECOGNIZED(-1),
;
/**
* MODE_UNSPECIFIED = 0;
*/
public static final int MODE_UNSPECIFIED_VALUE = 0;
/**
* VERIFY_ONLY = 1;
*/
public static final int VERIFY_ONLY_VALUE = 1;
/**
* CLEAR_SOFTWARE_LATCH = 2;
*/
public static final int CLEAR_SOFTWARE_LATCH_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Mode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Mode forNumber(int value) {
switch (value) {
case 0: return MODE_UNSPECIFIED;
case 1: return VERIFY_ONLY;
case 2: return CLEAR_SOFTWARE_LATCH;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Mode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Mode findValueByNumber(int number) {
return Mode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cmvr.api.SafetyCommand.RecoverSafetyStateCommand.getDescriptor().getEnumTypes().get(0);
}
private static final Mode[] VALUES = values();
public static Mode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Mode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.api.RecoverSafetyStateCommand.Mode)
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.RecoverSafetyStateCommand.Request)
com.google.protobuf.MessageOrBuilder {
/**
* string recovery_id = 1;
* @return The recoveryId.
*/
java.lang.String getRecoveryId();
/**
* string recovery_id = 1;
* @return The bytes for recoveryId.
*/
com.google.protobuf.ByteString
getRecoveryIdBytes();
/**
* .cmvr.api.SafetyScope scope = 2;
* @return Whether the scope field is set.
*/
boolean hasScope();
/**
* .cmvr.api.SafetyScope scope = 2;
* @return The scope.
*/
cmvr.api.SafetyCommand.SafetyScope getScope();
/**
* .cmvr.api.SafetyScope scope = 2;
*/
cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder();
/**
* uint64 expected_safety_epoch = 3;
* @return The expectedSafetyEpoch.
*/
long getExpectedSafetyEpoch();
/**
* .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4;
* @return The enum numeric value on the wire for mode.
*/
int getModeValue();
/**
* .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4;
* @return The mode.
*/
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode getMode();
/**
* string reason = 5;
* @return The reason.
*/
java.lang.String getReason();
/**
* string reason = 5;
* @return The bytes for reason.
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
* uint32 timeout_ms = 6;
* @return The timeoutMs.
*/
int getTimeoutMs();
}
/**
* Protobuf type {@code cmvr.api.RecoverSafetyStateCommand.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.RecoverSafetyStateCommand.Request)
RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Request() {
recoveryId_ = "";
mode_ = 0;
reason_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Request();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.Builder.class);
}
public static final int RECOVERY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object recoveryId_;
/**
* string recovery_id = 1;
* @return The recoveryId.
*/
@java.lang.Override
public java.lang.String getRecoveryId() {
java.lang.Object ref = recoveryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
recoveryId_ = s;
return s;
}
}
/**
* string recovery_id = 1;
* @return The bytes for recoveryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRecoveryIdBytes() {
java.lang.Object ref = recoveryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recoveryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCOPE_FIELD_NUMBER = 2;
private cmvr.api.SafetyCommand.SafetyScope scope_;
/**
* .cmvr.api.SafetyScope scope = 2;
* @return Whether the scope field is set.
*/
@java.lang.Override
public boolean hasScope() {
return scope_ != null;
}
/**
* .cmvr.api.SafetyScope scope = 2;
* @return The scope.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyScope getScope() {
return scope_ == null ? cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_;
}
/**
* .cmvr.api.SafetyScope scope = 2;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder() {
return getScope();
}
public static final int EXPECTED_SAFETY_EPOCH_FIELD_NUMBER = 3;
private long expectedSafetyEpoch_;
/**
* uint64 expected_safety_epoch = 3;
* @return The expectedSafetyEpoch.
*/
@java.lang.Override
public long getExpectedSafetyEpoch() {
return expectedSafetyEpoch_;
}
public static final int MODE_FIELD_NUMBER = 4;
private int mode_;
/**
* .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
* .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4;
* @return The mode.
*/
@java.lang.Override public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode getMode() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode result = cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.valueOf(mode_);
return result == null ? cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.UNRECOGNIZED : result;
}
public static final int REASON_FIELD_NUMBER = 5;
private volatile java.lang.Object reason_;
/**
* string reason = 5;
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
}
}
/**
* string reason = 5;
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMEOUT_MS_FIELD_NUMBER = 6;
private int timeoutMs_;
/**
* uint32 timeout_ms = 6;
* @return The timeoutMs.
*/
@java.lang.Override
public int getTimeoutMs() {
return timeoutMs_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recoveryId_);
}
if (scope_ != null) {
output.writeMessage(2, getScope());
}
if (expectedSafetyEpoch_ != 0L) {
output.writeUInt64(3, expectedSafetyEpoch_);
}
if (mode_ != cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, mode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_);
}
if (timeoutMs_ != 0) {
output.writeUInt32(6, timeoutMs_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, recoveryId_);
}
if (scope_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getScope());
}
if (expectedSafetyEpoch_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, expectedSafetyEpoch_);
}
if (mode_ != cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, mode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_);
}
if (timeoutMs_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, timeoutMs_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request other = (cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request) obj;
if (!getRecoveryId()
.equals(other.getRecoveryId())) return false;
if (hasScope() != other.hasScope()) return false;
if (hasScope()) {
if (!getScope()
.equals(other.getScope())) return false;
}
if (getExpectedSafetyEpoch()
!= other.getExpectedSafetyEpoch()) return false;
if (mode_ != other.mode_) return false;
if (!getReason()
.equals(other.getReason())) return false;
if (getTimeoutMs()
!= other.getTimeoutMs()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RECOVERY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRecoveryId().hashCode();
if (hasScope()) {
hash = (37 * hash) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + getScope().hashCode();
}
hash = (37 * hash) + EXPECTED_SAFETY_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExpectedSafetyEpoch());
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
hash = (37 * hash) + TIMEOUT_MS_FIELD_NUMBER;
hash = (53 * hash) + getTimeoutMs();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.RecoverSafetyStateCommand.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.RecoverSafetyStateCommand.Request)
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
recoveryId_ = "";
if (scopeBuilder_ == null) {
scope_ = null;
} else {
scope_ = null;
scopeBuilder_ = null;
}
expectedSafetyEpoch_ = 0L;
mode_ = 0;
reason_ = "";
timeoutMs_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request build() {
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request buildPartial() {
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request result = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request(this);
result.recoveryId_ = recoveryId_;
if (scopeBuilder_ == null) {
result.scope_ = scope_;
} else {
result.scope_ = scopeBuilder_.build();
}
result.expectedSafetyEpoch_ = expectedSafetyEpoch_;
result.mode_ = mode_;
result.reason_ = reason_;
result.timeoutMs_ = timeoutMs_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request) {
return mergeFrom((cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request other) {
if (other == cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.getDefaultInstance()) return this;
if (!other.getRecoveryId().isEmpty()) {
recoveryId_ = other.recoveryId_;
onChanged();
}
if (other.hasScope()) {
mergeScope(other.getScope());
}
if (other.getExpectedSafetyEpoch() != 0L) {
setExpectedSafetyEpoch(other.getExpectedSafetyEpoch());
}
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (!other.getReason().isEmpty()) {
reason_ = other.reason_;
onChanged();
}
if (other.getTimeoutMs() != 0) {
setTimeoutMs(other.getTimeoutMs());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
recoveryId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
input.readMessage(
getScopeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 24: {
expectedSafetyEpoch_ = input.readUInt64();
break;
} // case 24
case 32: {
mode_ = input.readEnum();
break;
} // case 32
case 42: {
reason_ = input.readStringRequireUtf8();
break;
} // case 42
case 48: {
timeoutMs_ = input.readUInt32();
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private java.lang.Object recoveryId_ = "";
/**
* string recovery_id = 1;
* @return The recoveryId.
*/
public java.lang.String getRecoveryId() {
java.lang.Object ref = recoveryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
recoveryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string recovery_id = 1;
* @return The bytes for recoveryId.
*/
public com.google.protobuf.ByteString
getRecoveryIdBytes() {
java.lang.Object ref = recoveryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recoveryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string recovery_id = 1;
* @param value The recoveryId to set.
* @return This builder for chaining.
*/
public Builder setRecoveryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
recoveryId_ = value;
onChanged();
return this;
}
/**
* string recovery_id = 1;
* @return This builder for chaining.
*/
public Builder clearRecoveryId() {
recoveryId_ = getDefaultInstance().getRecoveryId();
onChanged();
return this;
}
/**
* string recovery_id = 1;
* @param value The bytes for recoveryId to set.
* @return This builder for chaining.
*/
public Builder setRecoveryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
recoveryId_ = value;
onChanged();
return this;
}
private cmvr.api.SafetyCommand.SafetyScope scope_;
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder> scopeBuilder_;
/**
* .cmvr.api.SafetyScope scope = 2;
* @return Whether the scope field is set.
*/
public boolean hasScope() {
return scopeBuilder_ != null || scope_ != null;
}
/**
* .cmvr.api.SafetyScope scope = 2;
* @return The scope.
*/
public cmvr.api.SafetyCommand.SafetyScope getScope() {
if (scopeBuilder_ == null) {
return scope_ == null ? cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_;
} else {
return scopeBuilder_.getMessage();
}
}
/**
* .cmvr.api.SafetyScope scope = 2;
*/
public Builder setScope(cmvr.api.SafetyCommand.SafetyScope value) {
if (scopeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scope_ = value;
onChanged();
} else {
scopeBuilder_.setMessage(value);
}
return this;
}
/**
* .cmvr.api.SafetyScope scope = 2;
*/
public Builder setScope(
cmvr.api.SafetyCommand.SafetyScope.Builder builderForValue) {
if (scopeBuilder_ == null) {
scope_ = builderForValue.build();
onChanged();
} else {
scopeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cmvr.api.SafetyScope scope = 2;
*/
public Builder mergeScope(cmvr.api.SafetyCommand.SafetyScope value) {
if (scopeBuilder_ == null) {
if (scope_ != null) {
scope_ =
cmvr.api.SafetyCommand.SafetyScope.newBuilder(scope_).mergeFrom(value).buildPartial();
} else {
scope_ = value;
}
onChanged();
} else {
scopeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cmvr.api.SafetyScope scope = 2;
*/
public Builder clearScope() {
if (scopeBuilder_ == null) {
scope_ = null;
onChanged();
} else {
scope_ = null;
scopeBuilder_ = null;
}
return this;
}
/**
* .cmvr.api.SafetyScope scope = 2;
*/
public cmvr.api.SafetyCommand.SafetyScope.Builder getScopeBuilder() {
onChanged();
return getScopeFieldBuilder().getBuilder();
}
/**
* .cmvr.api.SafetyScope scope = 2;
*/
public cmvr.api.SafetyCommand.SafetyScopeOrBuilder getScopeOrBuilder() {
if (scopeBuilder_ != null) {
return scopeBuilder_.getMessageOrBuilder();
} else {
return scope_ == null ?
cmvr.api.SafetyCommand.SafetyScope.getDefaultInstance() : scope_;
}
}
/**
* .cmvr.api.SafetyScope scope = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder>
getScopeFieldBuilder() {
if (scopeBuilder_ == null) {
scopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyScope, cmvr.api.SafetyCommand.SafetyScope.Builder, cmvr.api.SafetyCommand.SafetyScopeOrBuilder>(
getScope(),
getParentForChildren(),
isClean());
scope_ = null;
}
return scopeBuilder_;
}
private long expectedSafetyEpoch_ ;
/**
* uint64 expected_safety_epoch = 3;
* @return The expectedSafetyEpoch.
*/
@java.lang.Override
public long getExpectedSafetyEpoch() {
return expectedSafetyEpoch_;
}
/**
* uint64 expected_safety_epoch = 3;
* @param value The expectedSafetyEpoch to set.
* @return This builder for chaining.
*/
public Builder setExpectedSafetyEpoch(long value) {
expectedSafetyEpoch_ = value;
onChanged();
return this;
}
/**
* uint64 expected_safety_epoch = 3;
* @return This builder for chaining.
*/
public Builder clearExpectedSafetyEpoch() {
expectedSafetyEpoch_ = 0L;
onChanged();
return this;
}
private int mode_ = 0;
/**
* .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
* .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4;
* @param value The enum numeric value on the wire for mode to set.
* @return This builder for chaining.
*/
public Builder setModeValue(int value) {
mode_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4;
* @return The mode.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode getMode() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode result = cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.valueOf(mode_);
return result == null ? cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode.UNRECOGNIZED : result;
}
/**
* .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Mode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.RecoverSafetyStateCommand.Mode mode = 4;
* @return This builder for chaining.
*/
public Builder clearMode() {
mode_ = 0;
onChanged();
return this;
}
private java.lang.Object reason_ = "";
/**
* string reason = 5;
* @return The reason.
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string reason = 5;
* @return The bytes for reason.
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string reason = 5;
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
reason_ = value;
onChanged();
return this;
}
/**
* string reason = 5;
* @return This builder for chaining.
*/
public Builder clearReason() {
reason_ = getDefaultInstance().getReason();
onChanged();
return this;
}
/**
* string reason = 5;
* @param value The bytes for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
reason_ = value;
onChanged();
return this;
}
private int timeoutMs_ ;
/**
* uint32 timeout_ms = 6;
* @return The timeoutMs.
*/
@java.lang.Override
public int getTimeoutMs() {
return timeoutMs_;
}
/**
* uint32 timeout_ms = 6;
* @param value The timeoutMs to set.
* @return This builder for chaining.
*/
public Builder setTimeoutMs(int value) {
timeoutMs_ = value;
onChanged();
return this;
}
/**
* uint32 timeout_ms = 6;
* @return This builder for chaining.
*/
public Builder clearTimeoutMs() {
timeoutMs_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.RecoverSafetyStateCommand.Request)
}
// @@protoc_insertion_point(class_scope:cmvr.api.RecoverSafetyStateCommand.Request)
private static final cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request();
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FeedbackOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.RecoverSafetyStateCommand.Feedback)
com.google.protobuf.MessageOrBuilder {
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return Whether the header field is set.
*/
boolean hasHeader();
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return The header.
*/
cmvr.api.Common.CommandHeader.Feedback getHeader();
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder();
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The enum numeric value on the wire for result.
*/
int getResultValue();
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The result.
*/
cmvr.api.SafetyCommand.SafetyOperationResult getResult();
/**
* uint64 previous_safety_epoch = 3;
* @return The previousSafetyEpoch.
*/
long getPreviousSafetyEpoch();
/**
* uint64 current_safety_epoch = 4;
* @return The currentSafetyEpoch.
*/
long getCurrentSafetyEpoch();
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The enum numeric value on the wire for systemState.
*/
int getSystemStateValue();
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The systemState.
*/
cmvr.api.SafetyCommand.SystemAdmissionState getSystemState();
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
java.util.List
getTargetsList();
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index);
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
int getTargetsCount();
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
java.util.List extends cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>
getTargetsOrBuilderList();
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder(
int index);
/**
* string recovery_id = 7;
* @return The recoveryId.
*/
java.lang.String getRecoveryId();
/**
* string recovery_id = 7;
* @return The bytes for recoveryId.
*/
com.google.protobuf.ByteString
getRecoveryIdBytes();
}
/**
* Protobuf type {@code cmvr.api.RecoverSafetyStateCommand.Feedback}
*/
public static final class Feedback extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.RecoverSafetyStateCommand.Feedback)
FeedbackOrBuilder {
private static final long serialVersionUID = 0L;
// Use Feedback.newBuilder() to construct.
private Feedback(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Feedback() {
result_ = 0;
systemState_ = 0;
targets_ = java.util.Collections.emptyList();
recoveryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Feedback();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.Builder.class);
}
public static final int HEADER_FIELD_NUMBER = 1;
private cmvr.api.Common.CommandHeader.Feedback header_;
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return header_ != null;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return The header.
*/
@java.lang.Override
public cmvr.api.Common.CommandHeader.Feedback getHeader() {
return header_ == null ? cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
@java.lang.Override
public cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int RESULT_FIELD_NUMBER = 2;
private int result_;
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The result.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyOperationResult getResult() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyOperationResult result = cmvr.api.SafetyCommand.SafetyOperationResult.valueOf(result_);
return result == null ? cmvr.api.SafetyCommand.SafetyOperationResult.UNRECOGNIZED : result;
}
public static final int PREVIOUS_SAFETY_EPOCH_FIELD_NUMBER = 3;
private long previousSafetyEpoch_;
/**
* uint64 previous_safety_epoch = 3;
* @return The previousSafetyEpoch.
*/
@java.lang.Override
public long getPreviousSafetyEpoch() {
return previousSafetyEpoch_;
}
public static final int CURRENT_SAFETY_EPOCH_FIELD_NUMBER = 4;
private long currentSafetyEpoch_;
/**
* uint64 current_safety_epoch = 4;
* @return The currentSafetyEpoch.
*/
@java.lang.Override
public long getCurrentSafetyEpoch() {
return currentSafetyEpoch_;
}
public static final int SYSTEM_STATE_FIELD_NUMBER = 5;
private int systemState_;
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The enum numeric value on the wire for systemState.
*/
@java.lang.Override public int getSystemStateValue() {
return systemState_;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The systemState.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_);
return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result;
}
public static final int TARGETS_FIELD_NUMBER = 6;
private java.util.List targets_;
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
@java.lang.Override
public java.util.List getTargetsList() {
return targets_;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
@java.lang.Override
public java.util.List extends cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>
getTargetsOrBuilderList() {
return targets_;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
@java.lang.Override
public int getTargetsCount() {
return targets_.size();
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index) {
return targets_.get(index);
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder(
int index) {
return targets_.get(index);
}
public static final int RECOVERY_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object recoveryId_;
/**
* string recovery_id = 7;
* @return The recoveryId.
*/
@java.lang.Override
public java.lang.String getRecoveryId() {
java.lang.Object ref = recoveryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
recoveryId_ = s;
return s;
}
}
/**
* string recovery_id = 7;
* @return The bytes for recoveryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRecoveryIdBytes() {
java.lang.Object ref = recoveryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recoveryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (header_ != null) {
output.writeMessage(1, getHeader());
}
if (result_ != cmvr.api.SafetyCommand.SafetyOperationResult.SAFETY_OPERATION_RESULT_UNSPECIFIED.getNumber()) {
output.writeEnum(2, result_);
}
if (previousSafetyEpoch_ != 0L) {
output.writeUInt64(3, previousSafetyEpoch_);
}
if (currentSafetyEpoch_ != 0L) {
output.writeUInt64(4, currentSafetyEpoch_);
}
if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, systemState_);
}
for (int i = 0; i < targets_.size(); i++) {
output.writeMessage(6, targets_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, recoveryId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (result_ != cmvr.api.SafetyCommand.SafetyOperationResult.SAFETY_OPERATION_RESULT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, result_);
}
if (previousSafetyEpoch_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, previousSafetyEpoch_);
}
if (currentSafetyEpoch_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, currentSafetyEpoch_);
}
if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, systemState_);
}
for (int i = 0; i < targets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, targets_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, recoveryId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback other = (cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (result_ != other.result_) return false;
if (getPreviousSafetyEpoch()
!= other.getPreviousSafetyEpoch()) return false;
if (getCurrentSafetyEpoch()
!= other.getCurrentSafetyEpoch()) return false;
if (systemState_ != other.systemState_) return false;
if (!getTargetsList()
.equals(other.getTargetsList())) return false;
if (!getRecoveryId()
.equals(other.getRecoveryId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
hash = (37 * hash) + PREVIOUS_SAFETY_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPreviousSafetyEpoch());
hash = (37 * hash) + CURRENT_SAFETY_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCurrentSafetyEpoch());
hash = (37 * hash) + SYSTEM_STATE_FIELD_NUMBER;
hash = (53 * hash) + systemState_;
if (getTargetsCount() > 0) {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargetsList().hashCode();
}
hash = (37 * hash) + RECOVERY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRecoveryId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.RecoverSafetyStateCommand.Feedback}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.RecoverSafetyStateCommand.Feedback)
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.FeedbackOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
result_ = 0;
previousSafetyEpoch_ = 0L;
currentSafetyEpoch_ = 0L;
systemState_ = 0;
if (targetsBuilder_ == null) {
targets_ = java.util.Collections.emptyList();
} else {
targets_ = null;
targetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
recoveryId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback build() {
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback buildPartial() {
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback result = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback(this);
int from_bitField0_ = bitField0_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
result.result_ = result_;
result.previousSafetyEpoch_ = previousSafetyEpoch_;
result.currentSafetyEpoch_ = currentSafetyEpoch_;
result.systemState_ = systemState_;
if (targetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
targets_ = java.util.Collections.unmodifiableList(targets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.targets_ = targets_;
} else {
result.targets_ = targetsBuilder_.build();
}
result.recoveryId_ = recoveryId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback) {
return mergeFrom((cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback other) {
if (other == cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
if (other.getPreviousSafetyEpoch() != 0L) {
setPreviousSafetyEpoch(other.getPreviousSafetyEpoch());
}
if (other.getCurrentSafetyEpoch() != 0L) {
setCurrentSafetyEpoch(other.getCurrentSafetyEpoch());
}
if (other.systemState_ != 0) {
setSystemStateValue(other.getSystemStateValue());
}
if (targetsBuilder_ == null) {
if (!other.targets_.isEmpty()) {
if (targets_.isEmpty()) {
targets_ = other.targets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTargetsIsMutable();
targets_.addAll(other.targets_);
}
onChanged();
}
} else {
if (!other.targets_.isEmpty()) {
if (targetsBuilder_.isEmpty()) {
targetsBuilder_.dispose();
targetsBuilder_ = null;
targets_ = other.targets_;
bitField0_ = (bitField0_ & ~0x00000001);
targetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTargetsFieldBuilder() : null;
} else {
targetsBuilder_.addAllMessages(other.targets_);
}
}
}
if (!other.getRecoveryId().isEmpty()) {
recoveryId_ = other.recoveryId_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getHeaderFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 16: {
result_ = input.readEnum();
break;
} // case 16
case 24: {
previousSafetyEpoch_ = input.readUInt64();
break;
} // case 24
case 32: {
currentSafetyEpoch_ = input.readUInt64();
break;
} // case 32
case 40: {
systemState_ = input.readEnum();
break;
} // case 40
case 50: {
cmvr.api.SafetyCommand.SafetyOperationTargetResult m =
input.readMessage(
cmvr.api.SafetyCommand.SafetyOperationTargetResult.parser(),
extensionRegistry);
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(m);
} else {
targetsBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
recoveryId_ = input.readStringRequireUtf8();
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private cmvr.api.Common.CommandHeader.Feedback header_;
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder> headerBuilder_;
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return The header.
*/
public cmvr.api.Common.CommandHeader.Feedback getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder setHeader(cmvr.api.Common.CommandHeader.Feedback value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder setHeader(
cmvr.api.Common.CommandHeader.Feedback.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder mergeHeader(cmvr.api.Common.CommandHeader.Feedback value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
cmvr.api.Common.CommandHeader.Feedback.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public cmvr.api.Common.CommandHeader.Feedback.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_;
}
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private int result_ = 0;
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @param value The enum numeric value on the wire for result to set.
* @return This builder for chaining.
*/
public Builder setResultValue(int value) {
result_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The result.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationResult getResult() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyOperationResult result = cmvr.api.SafetyCommand.SafetyOperationResult.valueOf(result_);
return result == null ? cmvr.api.SafetyCommand.SafetyOperationResult.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(cmvr.api.SafetyCommand.SafetyOperationResult value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return This builder for chaining.
*/
public Builder clearResult() {
result_ = 0;
onChanged();
return this;
}
private long previousSafetyEpoch_ ;
/**
* uint64 previous_safety_epoch = 3;
* @return The previousSafetyEpoch.
*/
@java.lang.Override
public long getPreviousSafetyEpoch() {
return previousSafetyEpoch_;
}
/**
* uint64 previous_safety_epoch = 3;
* @param value The previousSafetyEpoch to set.
* @return This builder for chaining.
*/
public Builder setPreviousSafetyEpoch(long value) {
previousSafetyEpoch_ = value;
onChanged();
return this;
}
/**
* uint64 previous_safety_epoch = 3;
* @return This builder for chaining.
*/
public Builder clearPreviousSafetyEpoch() {
previousSafetyEpoch_ = 0L;
onChanged();
return this;
}
private long currentSafetyEpoch_ ;
/**
* uint64 current_safety_epoch = 4;
* @return The currentSafetyEpoch.
*/
@java.lang.Override
public long getCurrentSafetyEpoch() {
return currentSafetyEpoch_;
}
/**
* uint64 current_safety_epoch = 4;
* @param value The currentSafetyEpoch to set.
* @return This builder for chaining.
*/
public Builder setCurrentSafetyEpoch(long value) {
currentSafetyEpoch_ = value;
onChanged();
return this;
}
/**
* uint64 current_safety_epoch = 4;
* @return This builder for chaining.
*/
public Builder clearCurrentSafetyEpoch() {
currentSafetyEpoch_ = 0L;
onChanged();
return this;
}
private int systemState_ = 0;
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The enum numeric value on the wire for systemState.
*/
@java.lang.Override public int getSystemStateValue() {
return systemState_;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @param value The enum numeric value on the wire for systemState to set.
* @return This builder for chaining.
*/
public Builder setSystemStateValue(int value) {
systemState_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The systemState.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_);
return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @param value The systemState to set.
* @return This builder for chaining.
*/
public Builder setSystemState(cmvr.api.SafetyCommand.SystemAdmissionState value) {
if (value == null) {
throw new NullPointerException();
}
systemState_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return This builder for chaining.
*/
public Builder clearSystemState() {
systemState_ = 0;
onChanged();
return this;
}
private java.util.List targets_ =
java.util.Collections.emptyList();
private void ensureTargetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
targets_ = new java.util.ArrayList(targets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder> targetsBuilder_;
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public java.util.List getTargetsList() {
if (targetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(targets_);
} else {
return targetsBuilder_.getMessageList();
}
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public int getTargetsCount() {
if (targetsBuilder_ == null) {
return targets_.size();
} else {
return targetsBuilder_.getCount();
}
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index) {
if (targetsBuilder_ == null) {
return targets_.get(index);
} else {
return targetsBuilder_.getMessage(index);
}
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder setTargets(
int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.set(index, value);
onChanged();
} else {
targetsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder setTargets(
int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.set(index, builderForValue.build());
onChanged();
} else {
targetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder addTargets(cmvr.api.SafetyCommand.SafetyOperationTargetResult value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.add(value);
onChanged();
} else {
targetsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder addTargets(
int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.add(index, value);
onChanged();
} else {
targetsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder addTargets(
cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(builderForValue.build());
onChanged();
} else {
targetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder addTargets(
int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(index, builderForValue.build());
onChanged();
} else {
targetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder addAllTargets(
java.lang.Iterable extends cmvr.api.SafetyCommand.SafetyOperationTargetResult> values) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, targets_);
onChanged();
} else {
targetsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder clearTargets() {
if (targetsBuilder_ == null) {
targets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
targetsBuilder_.clear();
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder removeTargets(int index) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.remove(index);
onChanged();
} else {
targetsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder getTargetsBuilder(
int index) {
return getTargetsFieldBuilder().getBuilder(index);
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder(
int index) {
if (targetsBuilder_ == null) {
return targets_.get(index); } else {
return targetsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public java.util.List extends cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>
getTargetsOrBuilderList() {
if (targetsBuilder_ != null) {
return targetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(targets_);
}
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder addTargetsBuilder() {
return getTargetsFieldBuilder().addBuilder(
cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance());
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder addTargetsBuilder(
int index) {
return getTargetsFieldBuilder().addBuilder(
index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance());
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public java.util.List
getTargetsBuilderList() {
return getTargetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>
getTargetsFieldBuilder() {
if (targetsBuilder_ == null) {
targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>(
targets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
targets_ = null;
}
return targetsBuilder_;
}
private java.lang.Object recoveryId_ = "";
/**
* string recovery_id = 7;
* @return The recoveryId.
*/
public java.lang.String getRecoveryId() {
java.lang.Object ref = recoveryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
recoveryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string recovery_id = 7;
* @return The bytes for recoveryId.
*/
public com.google.protobuf.ByteString
getRecoveryIdBytes() {
java.lang.Object ref = recoveryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recoveryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string recovery_id = 7;
* @param value The recoveryId to set.
* @return This builder for chaining.
*/
public Builder setRecoveryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
recoveryId_ = value;
onChanged();
return this;
}
/**
* string recovery_id = 7;
* @return This builder for chaining.
*/
public Builder clearRecoveryId() {
recoveryId_ = getDefaultInstance().getRecoveryId();
onChanged();
return this;
}
/**
* string recovery_id = 7;
* @param value The bytes for recoveryId to set.
* @return This builder for chaining.
*/
public Builder setRecoveryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
recoveryId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.RecoverSafetyStateCommand.Feedback)
}
// @@protoc_insertion_point(class_scope:cmvr.api.RecoverSafetyStateCommand.Feedback)
private static final cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback();
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Feedback parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.RecoverSafetyStateCommand other = (cmvr.api.SafetyCommand.RecoverSafetyStateCommand) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.RecoverSafetyStateCommand prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.RecoverSafetyStateCommand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.RecoverSafetyStateCommand)
cmvr.api.SafetyCommand.RecoverSafetyStateCommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.class, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.RecoverSafetyStateCommand.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.RecoverSafetyStateCommand.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand build() {
cmvr.api.SafetyCommand.RecoverSafetyStateCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand buildPartial() {
cmvr.api.SafetyCommand.RecoverSafetyStateCommand result = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.RecoverSafetyStateCommand) {
return mergeFrom((cmvr.api.SafetyCommand.RecoverSafetyStateCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.RecoverSafetyStateCommand other) {
if (other == cmvr.api.SafetyCommand.RecoverSafetyStateCommand.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.RecoverSafetyStateCommand)
}
// @@protoc_insertion_point(class_scope:cmvr.api.RecoverSafetyStateCommand)
private static final cmvr.api.SafetyCommand.RecoverSafetyStateCommand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.RecoverSafetyStateCommand();
}
public static cmvr.api.SafetyCommand.RecoverSafetyStateCommand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RecoverSafetyStateCommand parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RestoreOperationalStateCommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.RestoreOperationalStateCommand)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code cmvr.api.RestoreOperationalStateCommand}
*/
public static final class RestoreOperationalStateCommand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.RestoreOperationalStateCommand)
RestoreOperationalStateCommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use RestoreOperationalStateCommand.newBuilder() to construct.
private RestoreOperationalStateCommand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RestoreOperationalStateCommand() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RestoreOperationalStateCommand();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.class, cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Builder.class);
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.RestoreOperationalStateCommand.Request)
com.google.protobuf.MessageOrBuilder {
/**
* string recovery_id = 1;
* @return The recoveryId.
*/
java.lang.String getRecoveryId();
/**
* string recovery_id = 1;
* @return The bytes for recoveryId.
*/
com.google.protobuf.ByteString
getRecoveryIdBytes();
/**
* string reason = 2;
* @return The reason.
*/
java.lang.String getReason();
/**
* string reason = 2;
* @return The bytes for reason.
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
* uint32 timeout_ms = 3;
* @return The timeoutMs.
*/
int getTimeoutMs();
}
/**
* Protobuf type {@code cmvr.api.RestoreOperationalStateCommand.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.RestoreOperationalStateCommand.Request)
RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Request() {
recoveryId_ = "";
reason_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Request();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request.class, cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request.Builder.class);
}
public static final int RECOVERY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object recoveryId_;
/**
* string recovery_id = 1;
* @return The recoveryId.
*/
@java.lang.Override
public java.lang.String getRecoveryId() {
java.lang.Object ref = recoveryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
recoveryId_ = s;
return s;
}
}
/**
* string recovery_id = 1;
* @return The bytes for recoveryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRecoveryIdBytes() {
java.lang.Object ref = recoveryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recoveryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REASON_FIELD_NUMBER = 2;
private volatile java.lang.Object reason_;
/**
* string reason = 2;
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
}
}
/**
* string reason = 2;
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMEOUT_MS_FIELD_NUMBER = 3;
private int timeoutMs_;
/**
* uint32 timeout_ms = 3;
* @return The timeoutMs.
*/
@java.lang.Override
public int getTimeoutMs() {
return timeoutMs_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recoveryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reason_);
}
if (timeoutMs_ != 0) {
output.writeUInt32(3, timeoutMs_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, recoveryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_);
}
if (timeoutMs_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, timeoutMs_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request other = (cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request) obj;
if (!getRecoveryId()
.equals(other.getRecoveryId())) return false;
if (!getReason()
.equals(other.getReason())) return false;
if (getTimeoutMs()
!= other.getTimeoutMs()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RECOVERY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRecoveryId().hashCode();
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
hash = (37 * hash) + TIMEOUT_MS_FIELD_NUMBER;
hash = (53 * hash) + getTimeoutMs();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.RestoreOperationalStateCommand.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.RestoreOperationalStateCommand.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.RestoreOperationalStateCommand.Request)
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request.class, cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
recoveryId_ = "";
reason_ = "";
timeoutMs_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_Request_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request build() {
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request buildPartial() {
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request result = new cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request(this);
result.recoveryId_ = recoveryId_;
result.reason_ = reason_;
result.timeoutMs_ = timeoutMs_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request) {
return mergeFrom((cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request other) {
if (other == cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request.getDefaultInstance()) return this;
if (!other.getRecoveryId().isEmpty()) {
recoveryId_ = other.recoveryId_;
onChanged();
}
if (!other.getReason().isEmpty()) {
reason_ = other.reason_;
onChanged();
}
if (other.getTimeoutMs() != 0) {
setTimeoutMs(other.getTimeoutMs());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
recoveryId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
reason_ = input.readStringRequireUtf8();
break;
} // case 18
case 24: {
timeoutMs_ = input.readUInt32();
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private java.lang.Object recoveryId_ = "";
/**
* string recovery_id = 1;
* @return The recoveryId.
*/
public java.lang.String getRecoveryId() {
java.lang.Object ref = recoveryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
recoveryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string recovery_id = 1;
* @return The bytes for recoveryId.
*/
public com.google.protobuf.ByteString
getRecoveryIdBytes() {
java.lang.Object ref = recoveryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recoveryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string recovery_id = 1;
* @param value The recoveryId to set.
* @return This builder for chaining.
*/
public Builder setRecoveryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
recoveryId_ = value;
onChanged();
return this;
}
/**
* string recovery_id = 1;
* @return This builder for chaining.
*/
public Builder clearRecoveryId() {
recoveryId_ = getDefaultInstance().getRecoveryId();
onChanged();
return this;
}
/**
* string recovery_id = 1;
* @param value The bytes for recoveryId to set.
* @return This builder for chaining.
*/
public Builder setRecoveryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
recoveryId_ = value;
onChanged();
return this;
}
private java.lang.Object reason_ = "";
/**
* string reason = 2;
* @return The reason.
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string reason = 2;
* @return The bytes for reason.
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string reason = 2;
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
reason_ = value;
onChanged();
return this;
}
/**
* string reason = 2;
* @return This builder for chaining.
*/
public Builder clearReason() {
reason_ = getDefaultInstance().getReason();
onChanged();
return this;
}
/**
* string reason = 2;
* @param value The bytes for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
reason_ = value;
onChanged();
return this;
}
private int timeoutMs_ ;
/**
* uint32 timeout_ms = 3;
* @return The timeoutMs.
*/
@java.lang.Override
public int getTimeoutMs() {
return timeoutMs_;
}
/**
* uint32 timeout_ms = 3;
* @param value The timeoutMs to set.
* @return This builder for chaining.
*/
public Builder setTimeoutMs(int value) {
timeoutMs_ = value;
onChanged();
return this;
}
/**
* uint32 timeout_ms = 3;
* @return This builder for chaining.
*/
public Builder clearTimeoutMs() {
timeoutMs_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.RestoreOperationalStateCommand.Request)
}
// @@protoc_insertion_point(class_scope:cmvr.api.RestoreOperationalStateCommand.Request)
private static final cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request();
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FeedbackOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.RestoreOperationalStateCommand.Feedback)
com.google.protobuf.MessageOrBuilder {
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return Whether the header field is set.
*/
boolean hasHeader();
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return The header.
*/
cmvr.api.Common.CommandHeader.Feedback getHeader();
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder();
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The enum numeric value on the wire for result.
*/
int getResultValue();
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The result.
*/
cmvr.api.SafetyCommand.SafetyOperationResult getResult();
/**
* uint64 previous_safety_epoch = 3;
* @return The previousSafetyEpoch.
*/
long getPreviousSafetyEpoch();
/**
* uint64 current_safety_epoch = 4;
* @return The currentSafetyEpoch.
*/
long getCurrentSafetyEpoch();
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The enum numeric value on the wire for systemState.
*/
int getSystemStateValue();
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The systemState.
*/
cmvr.api.SafetyCommand.SystemAdmissionState getSystemState();
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
java.util.List
getTargetsList();
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index);
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
int getTargetsCount();
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
java.util.List extends cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>
getTargetsOrBuilderList();
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder(
int index);
/**
* string recovery_id = 7;
* @return The recoveryId.
*/
java.lang.String getRecoveryId();
/**
* string recovery_id = 7;
* @return The bytes for recoveryId.
*/
com.google.protobuf.ByteString
getRecoveryIdBytes();
}
/**
* Protobuf type {@code cmvr.api.RestoreOperationalStateCommand.Feedback}
*/
public static final class Feedback extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.RestoreOperationalStateCommand.Feedback)
FeedbackOrBuilder {
private static final long serialVersionUID = 0L;
// Use Feedback.newBuilder() to construct.
private Feedback(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Feedback() {
result_ = 0;
systemState_ = 0;
targets_ = java.util.Collections.emptyList();
recoveryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Feedback();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_Feedback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_Feedback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback.class, cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback.Builder.class);
}
public static final int HEADER_FIELD_NUMBER = 1;
private cmvr.api.Common.CommandHeader.Feedback header_;
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return header_ != null;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return The header.
*/
@java.lang.Override
public cmvr.api.Common.CommandHeader.Feedback getHeader() {
return header_ == null ? cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
@java.lang.Override
public cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int RESULT_FIELD_NUMBER = 2;
private int result_;
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The result.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SafetyOperationResult getResult() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyOperationResult result = cmvr.api.SafetyCommand.SafetyOperationResult.valueOf(result_);
return result == null ? cmvr.api.SafetyCommand.SafetyOperationResult.UNRECOGNIZED : result;
}
public static final int PREVIOUS_SAFETY_EPOCH_FIELD_NUMBER = 3;
private long previousSafetyEpoch_;
/**
* uint64 previous_safety_epoch = 3;
* @return The previousSafetyEpoch.
*/
@java.lang.Override
public long getPreviousSafetyEpoch() {
return previousSafetyEpoch_;
}
public static final int CURRENT_SAFETY_EPOCH_FIELD_NUMBER = 4;
private long currentSafetyEpoch_;
/**
* uint64 current_safety_epoch = 4;
* @return The currentSafetyEpoch.
*/
@java.lang.Override
public long getCurrentSafetyEpoch() {
return currentSafetyEpoch_;
}
public static final int SYSTEM_STATE_FIELD_NUMBER = 5;
private int systemState_;
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The enum numeric value on the wire for systemState.
*/
@java.lang.Override public int getSystemStateValue() {
return systemState_;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The systemState.
*/
@java.lang.Override public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_);
return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result;
}
public static final int TARGETS_FIELD_NUMBER = 6;
private java.util.List targets_;
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
@java.lang.Override
public java.util.List getTargetsList() {
return targets_;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
@java.lang.Override
public java.util.List extends cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>
getTargetsOrBuilderList() {
return targets_;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
@java.lang.Override
public int getTargetsCount() {
return targets_.size();
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index) {
return targets_.get(index);
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder(
int index) {
return targets_.get(index);
}
public static final int RECOVERY_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object recoveryId_;
/**
* string recovery_id = 7;
* @return The recoveryId.
*/
@java.lang.Override
public java.lang.String getRecoveryId() {
java.lang.Object ref = recoveryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
recoveryId_ = s;
return s;
}
}
/**
* string recovery_id = 7;
* @return The bytes for recoveryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRecoveryIdBytes() {
java.lang.Object ref = recoveryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recoveryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (header_ != null) {
output.writeMessage(1, getHeader());
}
if (result_ != cmvr.api.SafetyCommand.SafetyOperationResult.SAFETY_OPERATION_RESULT_UNSPECIFIED.getNumber()) {
output.writeEnum(2, result_);
}
if (previousSafetyEpoch_ != 0L) {
output.writeUInt64(3, previousSafetyEpoch_);
}
if (currentSafetyEpoch_ != 0L) {
output.writeUInt64(4, currentSafetyEpoch_);
}
if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, systemState_);
}
for (int i = 0; i < targets_.size(); i++) {
output.writeMessage(6, targets_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, recoveryId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (result_ != cmvr.api.SafetyCommand.SafetyOperationResult.SAFETY_OPERATION_RESULT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, result_);
}
if (previousSafetyEpoch_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, previousSafetyEpoch_);
}
if (currentSafetyEpoch_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, currentSafetyEpoch_);
}
if (systemState_ != cmvr.api.SafetyCommand.SystemAdmissionState.SYSTEM_ADMISSION_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, systemState_);
}
for (int i = 0; i < targets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, targets_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recoveryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, recoveryId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback other = (cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (result_ != other.result_) return false;
if (getPreviousSafetyEpoch()
!= other.getPreviousSafetyEpoch()) return false;
if (getCurrentSafetyEpoch()
!= other.getCurrentSafetyEpoch()) return false;
if (systemState_ != other.systemState_) return false;
if (!getTargetsList()
.equals(other.getTargetsList())) return false;
if (!getRecoveryId()
.equals(other.getRecoveryId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
hash = (37 * hash) + PREVIOUS_SAFETY_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPreviousSafetyEpoch());
hash = (37 * hash) + CURRENT_SAFETY_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCurrentSafetyEpoch());
hash = (37 * hash) + SYSTEM_STATE_FIELD_NUMBER;
hash = (53 * hash) + systemState_;
if (getTargetsCount() > 0) {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargetsList().hashCode();
}
hash = (37 * hash) + RECOVERY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRecoveryId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.RestoreOperationalStateCommand.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.RestoreOperationalStateCommand.Feedback}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.RestoreOperationalStateCommand.Feedback)
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.FeedbackOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_Feedback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_Feedback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback.class, cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
result_ = 0;
previousSafetyEpoch_ = 0L;
currentSafetyEpoch_ = 0L;
systemState_ = 0;
if (targetsBuilder_ == null) {
targets_ = java.util.Collections.emptyList();
} else {
targets_ = null;
targetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
recoveryId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_Feedback_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback build() {
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback buildPartial() {
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback result = new cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback(this);
int from_bitField0_ = bitField0_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
result.result_ = result_;
result.previousSafetyEpoch_ = previousSafetyEpoch_;
result.currentSafetyEpoch_ = currentSafetyEpoch_;
result.systemState_ = systemState_;
if (targetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
targets_ = java.util.Collections.unmodifiableList(targets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.targets_ = targets_;
} else {
result.targets_ = targetsBuilder_.build();
}
result.recoveryId_ = recoveryId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback) {
return mergeFrom((cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback other) {
if (other == cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
if (other.getPreviousSafetyEpoch() != 0L) {
setPreviousSafetyEpoch(other.getPreviousSafetyEpoch());
}
if (other.getCurrentSafetyEpoch() != 0L) {
setCurrentSafetyEpoch(other.getCurrentSafetyEpoch());
}
if (other.systemState_ != 0) {
setSystemStateValue(other.getSystemStateValue());
}
if (targetsBuilder_ == null) {
if (!other.targets_.isEmpty()) {
if (targets_.isEmpty()) {
targets_ = other.targets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTargetsIsMutable();
targets_.addAll(other.targets_);
}
onChanged();
}
} else {
if (!other.targets_.isEmpty()) {
if (targetsBuilder_.isEmpty()) {
targetsBuilder_.dispose();
targetsBuilder_ = null;
targets_ = other.targets_;
bitField0_ = (bitField0_ & ~0x00000001);
targetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTargetsFieldBuilder() : null;
} else {
targetsBuilder_.addAllMessages(other.targets_);
}
}
}
if (!other.getRecoveryId().isEmpty()) {
recoveryId_ = other.recoveryId_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getHeaderFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 16: {
result_ = input.readEnum();
break;
} // case 16
case 24: {
previousSafetyEpoch_ = input.readUInt64();
break;
} // case 24
case 32: {
currentSafetyEpoch_ = input.readUInt64();
break;
} // case 32
case 40: {
systemState_ = input.readEnum();
break;
} // case 40
case 50: {
cmvr.api.SafetyCommand.SafetyOperationTargetResult m =
input.readMessage(
cmvr.api.SafetyCommand.SafetyOperationTargetResult.parser(),
extensionRegistry);
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(m);
} else {
targetsBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
recoveryId_ = input.readStringRequireUtf8();
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private cmvr.api.Common.CommandHeader.Feedback header_;
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder> headerBuilder_;
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
* @return The header.
*/
public cmvr.api.Common.CommandHeader.Feedback getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder setHeader(cmvr.api.Common.CommandHeader.Feedback value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder setHeader(
cmvr.api.Common.CommandHeader.Feedback.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder mergeHeader(cmvr.api.Common.CommandHeader.Feedback value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
cmvr.api.Common.CommandHeader.Feedback.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public cmvr.api.Common.CommandHeader.Feedback.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
public cmvr.api.Common.CommandHeader.FeedbackOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance() : header_;
}
}
/**
* .cmvr.api.CommandHeader.Feedback header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cmvr.api.Common.CommandHeader.Feedback, cmvr.api.Common.CommandHeader.Feedback.Builder, cmvr.api.Common.CommandHeader.FeedbackOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private int result_ = 0;
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @param value The enum numeric value on the wire for result to set.
* @return This builder for chaining.
*/
public Builder setResultValue(int value) {
result_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return The result.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SafetyOperationResult getResult() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SafetyOperationResult result = cmvr.api.SafetyCommand.SafetyOperationResult.valueOf(result_);
return result == null ? cmvr.api.SafetyCommand.SafetyOperationResult.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(cmvr.api.SafetyCommand.SafetyOperationResult value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SafetyOperationResult result = 2;
* @return This builder for chaining.
*/
public Builder clearResult() {
result_ = 0;
onChanged();
return this;
}
private long previousSafetyEpoch_ ;
/**
* uint64 previous_safety_epoch = 3;
* @return The previousSafetyEpoch.
*/
@java.lang.Override
public long getPreviousSafetyEpoch() {
return previousSafetyEpoch_;
}
/**
* uint64 previous_safety_epoch = 3;
* @param value The previousSafetyEpoch to set.
* @return This builder for chaining.
*/
public Builder setPreviousSafetyEpoch(long value) {
previousSafetyEpoch_ = value;
onChanged();
return this;
}
/**
* uint64 previous_safety_epoch = 3;
* @return This builder for chaining.
*/
public Builder clearPreviousSafetyEpoch() {
previousSafetyEpoch_ = 0L;
onChanged();
return this;
}
private long currentSafetyEpoch_ ;
/**
* uint64 current_safety_epoch = 4;
* @return The currentSafetyEpoch.
*/
@java.lang.Override
public long getCurrentSafetyEpoch() {
return currentSafetyEpoch_;
}
/**
* uint64 current_safety_epoch = 4;
* @param value The currentSafetyEpoch to set.
* @return This builder for chaining.
*/
public Builder setCurrentSafetyEpoch(long value) {
currentSafetyEpoch_ = value;
onChanged();
return this;
}
/**
* uint64 current_safety_epoch = 4;
* @return This builder for chaining.
*/
public Builder clearCurrentSafetyEpoch() {
currentSafetyEpoch_ = 0L;
onChanged();
return this;
}
private int systemState_ = 0;
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The enum numeric value on the wire for systemState.
*/
@java.lang.Override public int getSystemStateValue() {
return systemState_;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @param value The enum numeric value on the wire for systemState to set.
* @return This builder for chaining.
*/
public Builder setSystemStateValue(int value) {
systemState_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return The systemState.
*/
@java.lang.Override
public cmvr.api.SafetyCommand.SystemAdmissionState getSystemState() {
@SuppressWarnings("deprecation")
cmvr.api.SafetyCommand.SystemAdmissionState result = cmvr.api.SafetyCommand.SystemAdmissionState.valueOf(systemState_);
return result == null ? cmvr.api.SafetyCommand.SystemAdmissionState.UNRECOGNIZED : result;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @param value The systemState to set.
* @return This builder for chaining.
*/
public Builder setSystemState(cmvr.api.SafetyCommand.SystemAdmissionState value) {
if (value == null) {
throw new NullPointerException();
}
systemState_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.SystemAdmissionState system_state = 5;
* @return This builder for chaining.
*/
public Builder clearSystemState() {
systemState_ = 0;
onChanged();
return this;
}
private java.util.List targets_ =
java.util.Collections.emptyList();
private void ensureTargetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
targets_ = new java.util.ArrayList(targets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder> targetsBuilder_;
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public java.util.List getTargetsList() {
if (targetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(targets_);
} else {
return targetsBuilder_.getMessageList();
}
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public int getTargetsCount() {
if (targetsBuilder_ == null) {
return targets_.size();
} else {
return targetsBuilder_.getCount();
}
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public cmvr.api.SafetyCommand.SafetyOperationTargetResult getTargets(int index) {
if (targetsBuilder_ == null) {
return targets_.get(index);
} else {
return targetsBuilder_.getMessage(index);
}
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder setTargets(
int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.set(index, value);
onChanged();
} else {
targetsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder setTargets(
int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.set(index, builderForValue.build());
onChanged();
} else {
targetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder addTargets(cmvr.api.SafetyCommand.SafetyOperationTargetResult value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.add(value);
onChanged();
} else {
targetsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder addTargets(
int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.add(index, value);
onChanged();
} else {
targetsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder addTargets(
cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(builderForValue.build());
onChanged();
} else {
targetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder addTargets(
int index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(index, builderForValue.build());
onChanged();
} else {
targetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder addAllTargets(
java.lang.Iterable extends cmvr.api.SafetyCommand.SafetyOperationTargetResult> values) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, targets_);
onChanged();
} else {
targetsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder clearTargets() {
if (targetsBuilder_ == null) {
targets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
targetsBuilder_.clear();
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public Builder removeTargets(int index) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.remove(index);
onChanged();
} else {
targetsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder getTargetsBuilder(
int index) {
return getTargetsFieldBuilder().getBuilder(index);
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder getTargetsOrBuilder(
int index) {
if (targetsBuilder_ == null) {
return targets_.get(index); } else {
return targetsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public java.util.List extends cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>
getTargetsOrBuilderList() {
if (targetsBuilder_ != null) {
return targetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(targets_);
}
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder addTargetsBuilder() {
return getTargetsFieldBuilder().addBuilder(
cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance());
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder addTargetsBuilder(
int index) {
return getTargetsFieldBuilder().addBuilder(
index, cmvr.api.SafetyCommand.SafetyOperationTargetResult.getDefaultInstance());
}
/**
* repeated .cmvr.api.SafetyOperationTargetResult targets = 6;
*/
public java.util.List
getTargetsBuilderList() {
return getTargetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>
getTargetsFieldBuilder() {
if (targetsBuilder_ == null) {
targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cmvr.api.SafetyCommand.SafetyOperationTargetResult, cmvr.api.SafetyCommand.SafetyOperationTargetResult.Builder, cmvr.api.SafetyCommand.SafetyOperationTargetResultOrBuilder>(
targets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
targets_ = null;
}
return targetsBuilder_;
}
private java.lang.Object recoveryId_ = "";
/**
* string recovery_id = 7;
* @return The recoveryId.
*/
public java.lang.String getRecoveryId() {
java.lang.Object ref = recoveryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
recoveryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string recovery_id = 7;
* @return The bytes for recoveryId.
*/
public com.google.protobuf.ByteString
getRecoveryIdBytes() {
java.lang.Object ref = recoveryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recoveryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string recovery_id = 7;
* @param value The recoveryId to set.
* @return This builder for chaining.
*/
public Builder setRecoveryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
recoveryId_ = value;
onChanged();
return this;
}
/**
* string recovery_id = 7;
* @return This builder for chaining.
*/
public Builder clearRecoveryId() {
recoveryId_ = getDefaultInstance().getRecoveryId();
onChanged();
return this;
}
/**
* string recovery_id = 7;
* @param value The bytes for recoveryId to set.
* @return This builder for chaining.
*/
public Builder setRecoveryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
recoveryId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.RestoreOperationalStateCommand.Feedback)
}
// @@protoc_insertion_point(class_scope:cmvr.api.RestoreOperationalStateCommand.Feedback)
private static final cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback();
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Feedback parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cmvr.api.SafetyCommand.RestoreOperationalStateCommand)) {
return super.equals(obj);
}
cmvr.api.SafetyCommand.RestoreOperationalStateCommand other = (cmvr.api.SafetyCommand.RestoreOperationalStateCommand) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.SafetyCommand.RestoreOperationalStateCommand 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.RestoreOperationalStateCommand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.RestoreOperationalStateCommand)
cmvr.api.SafetyCommand.RestoreOperationalStateCommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.class, cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Builder.class);
}
// Construct using cmvr.api.SafetyCommand.RestoreOperationalStateCommand.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.SafetyCommand.internal_static_cmvr_api_RestoreOperationalStateCommand_descriptor;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand getDefaultInstanceForType() {
return cmvr.api.SafetyCommand.RestoreOperationalStateCommand.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand build() {
cmvr.api.SafetyCommand.RestoreOperationalStateCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand buildPartial() {
cmvr.api.SafetyCommand.RestoreOperationalStateCommand result = new cmvr.api.SafetyCommand.RestoreOperationalStateCommand(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.SafetyCommand.RestoreOperationalStateCommand) {
return mergeFrom((cmvr.api.SafetyCommand.RestoreOperationalStateCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.SafetyCommand.RestoreOperationalStateCommand other) {
if (other == cmvr.api.SafetyCommand.RestoreOperationalStateCommand.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.RestoreOperationalStateCommand)
}
// @@protoc_insertion_point(class_scope:cmvr.api.RestoreOperationalStateCommand)
private static final cmvr.api.SafetyCommand.RestoreOperationalStateCommand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.SafetyCommand.RestoreOperationalStateCommand();
}
public static cmvr.api.SafetyCommand.RestoreOperationalStateCommand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RestoreOperationalStateCommand parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_DeviceIdList_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_DeviceIdList_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_SafetyScope_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_SafetyScope_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_SafetyBlockerInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_SafetyBlockerInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_DeviceSafetyStateInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_SafetyOperationTargetResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_SafetyOperationTargetResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_SafetyParticipantResultInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_SafetyParticipantStateInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_GetSafetyStateCommand_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_GetSafetyStateCommand_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_GetSafetyStateCommand_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_GetSafetyStateCommand_Feedback_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_RecoverSafetyStateCommand_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_RecoverSafetyStateCommand_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_RestoreOperationalStateCommand_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_RestoreOperationalStateCommand_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_RestoreOperationalStateCommand_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_RestoreOperationalStateCommand_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_RestoreOperationalStateCommand_Feedback_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_RestoreOperationalStateCommand_Feedback_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\035cmvr/api/safety_command.proto\022\010cmvr.ap" +
"i\032\025cmvr/api/common.proto\"\"\n\014DeviceIdList" +
"\022\022\n\ndevice_ids\030\001 \003(\t\"Y\n\013SafetyScope\022\025\n\013a" +
"ll_devices\030\001 \001(\010H\000\022)\n\007devices\030\002 \001(\0132\026.cm" +
"vr.api.DeviceIdListH\000B\010\n\006target\"\243\002\n\021Safe" +
"tyBlockerInfo\0220\n\013reason_code\030\001 \001(\0162\033.cmv" +
"r.api.CommandReasonCode\022+\n\005scope\030\002 \001(\0162\034" +
".cmvr.api.SafetyBlockerScope\022A\n\024recovery" +
"_requirement\030\003 \001(\0162#.cmvr.api.SafetyReco" +
"veryRequirement\022\021\n\tsource_id\030\004 \001(\t\022\024\n\014op" +
"eration_id\030\005 \001(\t\022!\n\031first_observed_at_un" +
"ix_ms\030\006 \001(\004\022 \n\030last_observed_at_unix_ms\030" +
"\007 \001(\004\"\306\006\n\025DeviceSafetyStateInfo\022\021\n\tdevic" +
"e_id\030\001 \001(\t\022\023\n\013device_kind\030\002 \001(\t\022\025\n\rpolic" +
"y_family\030\003 \001(\t\022\027\n\017lifecycle_state\030\004 \001(\t\022" +
"\024\n\014health_state\030\005 \001(\t\0227\n\017admission_state" +
"\030\006 \001(\0162\036.cmvr.api.DeviceAdmissionState\022," +
"\n\tcondition\030\007 \001(\0162\031.cmvr.api.SafetyCondi" +
"tion\022\022\n\nhas_sample\030\010 \001(\010\022\026\n\016snapshot_fre" +
"sh\030\t \001(\010\022\025\n\rsample_age_ms\030\n \001(\004\022\027\n\017sampl" +
"e_sequence\030\013 \001(\004\022\033\n\023observed_at_unix_ms\030" +
"\014 \001(\004\022\031\n\021device_generation\030\r \001(\004\022+\n\tconn" +
"ected\030\016 \001(\0162\030.cmvr.api.SafetyTriState\0223\n" +
"\021operational_ready\030\017 \001(\0162\030.cmvr.api.Safe" +
"tyTriState\022+\n\tquiescent\030\020 \001(\0162\030.cmvr.api" +
".SafetyTriState\022/\n\rmotion_active\030\021 \001(\0162\030" +
".cmvr.api.SafetyTriState\0222\n\020actuator_ena" +
"bled\030\022 \001(\0162\030.cmvr.api.SafetyTriState\0227\n\025" +
"emergency_stop_active\030\023 \001(\0162\030.cmvr.api.S" +
"afetyTriState\0228\n\026protective_stop_active\030" +
"\024 \001(\0162\030.cmvr.api.SafetyTriState\022.\n\014fault" +
"_active\030\025 \001(\0162\030.cmvr.api.SafetyTriState\022" +
"-\n\010blockers\030\026 \003(\0132\033.cmvr.api.SafetyBlock" +
"erInfo\"\216\002\n\033SafetyOperationTargetResult\022\021" +
"\n\ttarget_id\030\001 \001(\t\022/\n\006result\030\002 \001(\0162\037.cmvr" +
".api.SafetyOperationResult\0220\n\013reason_cod" +
"e\030\003 \001(\0162\033.cmvr.api.CommandReasonCode\022\016\n\006" +
"detail\030\004 \001(\t\0224\n\014before_state\030\005 \001(\0162\036.cmv" +
"r.api.DeviceAdmissionState\0223\n\013after_stat" +
"e\030\006 \001(\0162\036.cmvr.api.DeviceAdmissionState\"" +
"\202\001\n\033SafetyParticipantResultInfo\022\020\n\010recor" +
"ded\030\001 \001(\010\022\017\n\007success\030\002 \001(\010\0220\n\013reason_cod" +
"e\030\003 \001(\0162\033.cmvr.api.CommandReasonCode\022\016\n\006" +
"detail\030\004 \001(\t\"\375\002\n\032SafetyParticipantStateI" +
"nfo\022\026\n\016participant_id\030\001 \001(\t\022\r\n\005phase\030\002 \001" +
"(\t\022\020\n\010required\030\003 \001(\010\022\022\n\nregistered\030\004 \001(\010" +
"\022\026\n\016barrier_active\030\005 \001(\010\022\030\n\020barrier_reta" +
"ined\030\006 \001(\010\022\024\n\014operation_id\030\007 \001(\t\022\024\n\014safe" +
"ty_epoch\030\010 \001(\004\022;\n\014last_request\030\t \001(\0132%.c" +
"mvr.api.SafetyParticipantResultInfo\022:\n\013l" +
"ast_verify\030\n \001(\0132%.cmvr.api.SafetyPartic" +
"ipantResultInfo\022;\n\014last_release\030\013 \001(\0132%." +
"cmvr.api.SafetyParticipantResultInfo\"\331\003\n" +
"\025GetSafetyStateCommand\032/\n\007Request\022$\n\005sco" +
"pe\030\001 \001(\0132\025.cmvr.api.SafetyScope\032\216\003\n\010Feed" +
"back\0220\n\006header\030\001 \001(\0132 .cmvr.api.CommandH" +
"eader.Feedback\0224\n\014system_state\030\002 \001(\0162\036.c" +
"mvr.api.SystemAdmissionState\022\024\n\014safety_e" +
"poch\030\003 \001(\004\022#\n\033control_service_instance_i" +
"d\030\004 \001(\t\022\030\n\020enforcement_mode\030\005 \001(\t\0220\n\007dev" +
"ices\030\006 \003(\0132\037.cmvr.api.DeviceSafetyStateI" +
"nfo\022\033\n\023active_operation_id\030\007 \001(\t\022\036\n\026acti" +
"ve_operation_phase\030\010 \001(\t\022\032\n\022sampled_at_u" +
"nix_ms\030\t \001(\004\022:\n\014participants\030\n \003(\0132$.cmv" +
"r.api.SafetyParticipantStateInfo\"\326\004\n\031Rec" +
"overSafetyStateCommand\032\277\001\n\007Request\022\023\n\013re" +
"covery_id\030\001 \001(\t\022$\n\005scope\030\002 \001(\0132\025.cmvr.ap" +
"i.SafetyScope\022\035\n\025expected_safety_epoch\030\003" +
" \001(\004\0226\n\004mode\030\004 \001(\0162(.cmvr.api.RecoverSaf" +
"etyStateCommand.Mode\022\016\n\006reason\030\005 \001(\t\022\022\n\n" +
"timeout_ms\030\006 \001(\r\032\255\002\n\010Feedback\0220\n\006header\030" +
"\001 \001(\0132 .cmvr.api.CommandHeader.Feedback\022" +
"/\n\006result\030\002 \001(\0162\037.cmvr.api.SafetyOperati" +
"onResult\022\035\n\025previous_safety_epoch\030\003 \001(\004\022" +
"\034\n\024current_safety_epoch\030\004 \001(\004\0224\n\014system_" +
"state\030\005 \001(\0162\036.cmvr.api.SystemAdmissionSt" +
"ate\0226\n\007targets\030\006 \003(\0132%.cmvr.api.SafetyOp" +
"erationTargetResult\022\023\n\013recovery_id\030\007 \001(\t" +
"\"G\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\017\n\013VERIFY" +
"_ONLY\020\001\022\030\n\024CLEAR_SOFTWARE_LATCH\020\002\"\224\003\n\036Re" +
"storeOperationalStateCommand\032B\n\007Request\022" +
"\023\n\013recovery_id\030\001 \001(\t\022\016\n\006reason\030\002 \001(\t\022\022\n\n" +
"timeout_ms\030\003 \001(\r\032\255\002\n\010Feedback\0220\n\006header\030" +
"\001 \001(\0132 .cmvr.api.CommandHeader.Feedback\022" +
"/\n\006result\030\002 \001(\0162\037.cmvr.api.SafetyOperati" +
"onResult\022\035\n\025previous_safety_epoch\030\003 \001(\004\022" +
"\034\n\024current_safety_epoch\030\004 \001(\004\0224\n\014system_" +
"state\030\005 \001(\0162\036.cmvr.api.SystemAdmissionSt" +
"ate\0226\n\007targets\030\006 \003(\0132%.cmvr.api.SafetyOp" +
"erationTargetResult\022\023\n\013recovery_id\030\007 \001(\t" +
"*e\n\016SafetyTriState\022\034\n\030SAFETY_TRI_STATE_U" +
"NKNOWN\020\000\022\032\n\026SAFETY_TRI_STATE_FALSE\020\001\022\031\n\025" +
"SAFETY_TRI_STATE_TRUE\020\002*\213\001\n\017SafetyCondit" +
"ion\022\034\n\030SAFETY_CONDITION_UNKNOWN\020\000\022\034\n\030SAF" +
"ETY_CONDITION_NOMINAL\020\001\022\037\n\033SAFETY_CONDIT" +
"ION_RESTRICTED\020\002\022\033\n\027SAFETY_CONDITION_UNS" +
"AFE\020\003*\236\002\n\024SystemAdmissionState\022&\n\"SYSTEM" +
"_ADMISSION_STATE_UNSPECIFIED\020\000\022#\n\037SYSTEM" +
"_ADMISSION_STATE_STARTING\020\001\022\037\n\033SYSTEM_AD" +
"MISSION_STATE_OPEN\020\002\022#\n\037SYSTEM_ADMISSION" +
"_STATE_STOPPING\020\003\022\"\n\036SYSTEM_ADMISSION_ST" +
"ATE_LATCHED\020\004\022%\n!SYSTEM_ADMISSION_STATE_" +
"RECOVERING\020\005\022(\n$SYSTEM_ADMISSION_STATE_S" +
"HUTTING_DOWN\020\006*\234\002\n\024DeviceAdmissionState\022" +
"&\n\"DEVICE_ADMISSION_STATE_UNSPECIFIED\020\000\022" +
"$\n DEVICE_ADMISSION_STATE_OBSERVING\020\001\022\037\n" +
"\033DEVICE_ADMISSION_STATE_OPEN\020\002\022\"\n\036DEVICE" +
"_ADMISSION_STATE_BLOCKED\020\003\022&\n\"DEVICE_ADM" +
"ISSION_STATE_QUARANTINED\020\004\022%\n!DEVICE_ADM" +
"ISSION_STATE_RECOVERING\020\005\022\"\n\036DEVICE_ADMI" +
"SSION_STATE_REMOVED\020\006*|\n\022SafetyBlockerSc" +
"ope\022$\n SAFETY_BLOCKER_SCOPE_UNSPECIFIED\020" +
"\000\022\037\n\033SAFETY_BLOCKER_SCOPE_DEVICE\020\001\022\037\n\033SA" +
"FETY_BLOCKER_SCOPE_SYSTEM\020\002*\243\002\n\031SafetyRe" +
"coveryRequirement\022+\n\'SAFETY_RECOVERY_REQ" +
"UIREMENT_UNSPECIFIED\020\000\022,\n(SAFETY_RECOVER" +
"Y_REQUIREMENT_REFRESH_ONLY\020\001\0224\n0SAFETY_R" +
"ECOVERY_REQUIREMENT_CLEAR_SOFTWARE_LATCH" +
"\020\002\0229\n5SAFETY_RECOVERY_REQUIREMENT_HARDWA" +
"RE_RELEASE_REQUIRED\020\003\022:\n6SAFETY_RECOVERY" +
"_REQUIREMENT_MANUAL_INSPECTION_REQUIRED\020" +
"\004*\232\003\n\025SafetyOperationResult\022\'\n#SAFETY_OP" +
"ERATION_RESULT_UNSPECIFIED\020\000\022%\n!SAFETY_O" +
"PERATION_RESULT_SUCCEEDED\020\001\022%\n!SAFETY_OP" +
"ERATION_RESULT_RECOVERED\020\002\0226\n2SAFETY_OPE" +
"RATION_RESULT_VERIFIED_BUT_STILL_BLOCKED" +
"\020\003\022+\n\'SAFETY_OPERATION_RESULT_BLOCKER_RE" +
"MAINS\020\004\022*\n&SAFETY_OPERATION_RESULT_EPOCH" +
"_MISMATCH\020\005\022.\n*SAFETY_OPERATION_RESULT_N" +
"OTHING_TO_RECOVER\020\006\022%\n!SAFETY_OPERATION_" +
"RESULT_TIMED_OUT\020\007\022\"\n\036SAFETY_OPERATION_R" +
"ESULT_FAILED\020\010b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
cmvr.api.Common.getDescriptor(),
});
internal_static_cmvr_api_DeviceIdList_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cmvr_api_DeviceIdList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_DeviceIdList_descriptor,
new java.lang.String[] { "DeviceIds", });
internal_static_cmvr_api_SafetyScope_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cmvr_api_SafetyScope_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_SafetyScope_descriptor,
new java.lang.String[] { "AllDevices", "Devices", "Target", });
internal_static_cmvr_api_SafetyBlockerInfo_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cmvr_api_SafetyBlockerInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_SafetyBlockerInfo_descriptor,
new java.lang.String[] { "ReasonCode", "Scope", "RecoveryRequirement", "SourceId", "OperationId", "FirstObservedAtUnixMs", "LastObservedAtUnixMs", });
internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cmvr_api_DeviceSafetyStateInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_DeviceSafetyStateInfo_descriptor,
new java.lang.String[] { "DeviceId", "DeviceKind", "PolicyFamily", "LifecycleState", "HealthState", "AdmissionState", "Condition", "HasSample", "SnapshotFresh", "SampleAgeMs", "SampleSequence", "ObservedAtUnixMs", "DeviceGeneration", "Connected", "OperationalReady", "Quiescent", "MotionActive", "ActuatorEnabled", "EmergencyStopActive", "ProtectiveStopActive", "FaultActive", "Blockers", });
internal_static_cmvr_api_SafetyOperationTargetResult_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_cmvr_api_SafetyOperationTargetResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_SafetyOperationTargetResult_descriptor,
new java.lang.String[] { "TargetId", "Result", "ReasonCode", "Detail", "BeforeState", "AfterState", });
internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_cmvr_api_SafetyParticipantResultInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_SafetyParticipantResultInfo_descriptor,
new java.lang.String[] { "Recorded", "Success", "ReasonCode", "Detail", });
internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_cmvr_api_SafetyParticipantStateInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_SafetyParticipantStateInfo_descriptor,
new java.lang.String[] { "ParticipantId", "Phase", "Required", "Registered", "BarrierActive", "BarrierRetained", "OperationId", "SafetyEpoch", "LastRequest", "LastVerify", "LastRelease", });
internal_static_cmvr_api_GetSafetyStateCommand_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_cmvr_api_GetSafetyStateCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_GetSafetyStateCommand_descriptor,
new java.lang.String[] { });
internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor =
internal_static_cmvr_api_GetSafetyStateCommand_descriptor.getNestedTypes().get(0);
internal_static_cmvr_api_GetSafetyStateCommand_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_GetSafetyStateCommand_Request_descriptor,
new java.lang.String[] { "Scope", });
internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor =
internal_static_cmvr_api_GetSafetyStateCommand_descriptor.getNestedTypes().get(1);
internal_static_cmvr_api_GetSafetyStateCommand_Feedback_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_GetSafetyStateCommand_Feedback_descriptor,
new java.lang.String[] { "Header", "SystemState", "SafetyEpoch", "ControlServiceInstanceId", "EnforcementMode", "Devices", "ActiveOperationId", "ActiveOperationPhase", "SampledAtUnixMs", "Participants", });
internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_cmvr_api_RecoverSafetyStateCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor,
new java.lang.String[] { });
internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor =
internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor.getNestedTypes().get(0);
internal_static_cmvr_api_RecoverSafetyStateCommand_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_RecoverSafetyStateCommand_Request_descriptor,
new java.lang.String[] { "RecoveryId", "Scope", "ExpectedSafetyEpoch", "Mode", "Reason", "TimeoutMs", });
internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor =
internal_static_cmvr_api_RecoverSafetyStateCommand_descriptor.getNestedTypes().get(1);
internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_RecoverSafetyStateCommand_Feedback_descriptor,
new java.lang.String[] { "Header", "Result", "PreviousSafetyEpoch", "CurrentSafetyEpoch", "SystemState", "Targets", "RecoveryId", });
internal_static_cmvr_api_RestoreOperationalStateCommand_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_cmvr_api_RestoreOperationalStateCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_RestoreOperationalStateCommand_descriptor,
new java.lang.String[] { });
internal_static_cmvr_api_RestoreOperationalStateCommand_Request_descriptor =
internal_static_cmvr_api_RestoreOperationalStateCommand_descriptor.getNestedTypes().get(0);
internal_static_cmvr_api_RestoreOperationalStateCommand_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_RestoreOperationalStateCommand_Request_descriptor,
new java.lang.String[] { "RecoveryId", "Reason", "TimeoutMs", });
internal_static_cmvr_api_RestoreOperationalStateCommand_Feedback_descriptor =
internal_static_cmvr_api_RestoreOperationalStateCommand_descriptor.getNestedTypes().get(1);
internal_static_cmvr_api_RestoreOperationalStateCommand_Feedback_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_RestoreOperationalStateCommand_Feedback_descriptor,
new java.lang.String[] { "Header", "Result", "PreviousSafetyEpoch", "CurrentSafetyEpoch", "SystemState", "Targets", "RecoveryId", });
cmvr.api.Common.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}