// Generated by the protocol buffer compiler. DO NOT EDIT!
|
// source: rt_system.proto
|
|
package com.xiaopeng.api.vo.automaticPilot.protobuf;
|
|
/**
|
* Protobuf type {@code acm.proto.intelliservices.rt.SystemStatus}
|
*/
|
public final class SystemStatus extends
|
com.google.protobuf.GeneratedMessageV3 implements
|
// @@protoc_insertion_point(message_implements:acm.proto.intelliservices.rt.SystemStatus)
|
SystemStatusOrBuilder {
|
private static final long serialVersionUID = 0L;
|
// Use SystemStatus.newBuilder() to construct.
|
private SystemStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
super(builder);
|
}
|
private SystemStatus() {
|
phase_ = 0;
|
abnormalReason_ = 0;
|
availableServices_ = java.util.Collections.emptyList();
|
}
|
|
@Override
|
@SuppressWarnings({"unused"})
|
protected Object newInstance(
|
UnusedPrivateParameter unused) {
|
return new SystemStatus();
|
}
|
|
@Override
|
public final com.google.protobuf.UnknownFieldSet
|
getUnknownFields() {
|
return this.unknownFields;
|
}
|
private SystemStatus(
|
com.google.protobuf.CodedInputStream input,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
this();
|
if (extensionRegistry == null) {
|
throw new NullPointerException();
|
}
|
int mutable_bitField0_ = 0;
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
com.google.protobuf.UnknownFieldSet.newBuilder();
|
try {
|
boolean done = false;
|
while (!done) {
|
int tag = input.readTag();
|
switch (tag) {
|
case 0:
|
done = true;
|
break;
|
case 8: {
|
int rawValue = input.readEnum();
|
|
phase_ = rawValue;
|
break;
|
}
|
case 16: {
|
int rawValue = input.readEnum();
|
|
abnormalReason_ = rawValue;
|
break;
|
}
|
case 24: {
|
int rawValue = input.readEnum();
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
availableServices_ = new java.util.ArrayList<Integer>();
|
mutable_bitField0_ |= 0x00000001;
|
}
|
availableServices_.add(rawValue);
|
break;
|
}
|
case 26: {
|
int length = input.readRawVarint32();
|
int oldLimit = input.pushLimit(length);
|
while(input.getBytesUntilLimit() > 0) {
|
int rawValue = input.readEnum();
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
availableServices_ = new java.util.ArrayList<Integer>();
|
mutable_bitField0_ |= 0x00000001;
|
}
|
availableServices_.add(rawValue);
|
}
|
input.popLimit(oldLimit);
|
break;
|
}
|
case 32: {
|
|
isEmergency_ = input.readBool();
|
break;
|
}
|
default: {
|
if (!parseUnknownField(
|
input, unknownFields, extensionRegistry, tag)) {
|
done = true;
|
}
|
break;
|
}
|
}
|
}
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
throw e.setUnfinishedMessage(this);
|
} catch (java.io.IOException e) {
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
e).setUnfinishedMessage(this);
|
} finally {
|
if (((mutable_bitField0_ & 0x00000001) != 0)) {
|
availableServices_ = java.util.Collections.unmodifiableList(availableServices_);
|
}
|
this.unknownFields = unknownFields.build();
|
makeExtensionsImmutable();
|
}
|
}
|
public static final com.google.protobuf.Descriptors.Descriptor
|
getDescriptor() {
|
return RtSystem.internal_static_acm_proto_intelliservices_rt_SystemStatus_descriptor;
|
}
|
|
@Override
|
protected FieldAccessorTable
|
internalGetFieldAccessorTable() {
|
return RtSystem.internal_static_acm_proto_intelliservices_rt_SystemStatus_fieldAccessorTable
|
.ensureFieldAccessorsInitialized(
|
SystemStatus.class, Builder.class);
|
}
|
|
public static final int PHASE_FIELD_NUMBER = 1;
|
private int phase_;
|
/**
|
* <pre>
|
* 系统阶段
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.SystemPhase phase = 1;</code>
|
* @return The enum numeric value on the wire for phase.
|
*/
|
@Override public int getPhaseValue() {
|
return phase_;
|
}
|
/**
|
* <pre>
|
* 系统阶段
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.SystemPhase phase = 1;</code>
|
* @return The phase.
|
*/
|
@Override public SystemPhase getPhase() {
|
@SuppressWarnings("deprecation")
|
SystemPhase result = SystemPhase.valueOf(phase_);
|
return result == null ? SystemPhase.UNRECOGNIZED : result;
|
}
|
|
public static final int ABNORMAL_REASON_FIELD_NUMBER = 2;
|
private int abnormalReason_;
|
/**
|
* <pre>
|
* Abnormal状态时的原因
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.AbnormalReason abnormal_reason = 2;</code>
|
* @return The enum numeric value on the wire for abnormalReason.
|
*/
|
@Override public int getAbnormalReasonValue() {
|
return abnormalReason_;
|
}
|
/**
|
* <pre>
|
* Abnormal状态时的原因
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.AbnormalReason abnormal_reason = 2;</code>
|
* @return The abnormalReason.
|
*/
|
@Override public AbnormalReason getAbnormalReason() {
|
@SuppressWarnings("deprecation")
|
AbnormalReason result = AbnormalReason.valueOf(abnormalReason_);
|
return result == null ? AbnormalReason.UNRECOGNIZED : result;
|
}
|
|
public static final int AVAILABLE_SERVICES_FIELD_NUMBER = 3;
|
private java.util.List<Integer> availableServices_;
|
private static final com.google.protobuf.Internal.ListAdapter.Converter<
|
Integer, ServiceAvailability> availableServices_converter_ =
|
new com.google.protobuf.Internal.ListAdapter.Converter<
|
Integer, ServiceAvailability>() {
|
public ServiceAvailability convert(Integer from) {
|
@SuppressWarnings("deprecation")
|
ServiceAvailability result = ServiceAvailability.valueOf(from);
|
return result == null ? ServiceAvailability.UNRECOGNIZED : result;
|
}
|
};
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @return A list containing the availableServices.
|
*/
|
@Override
|
public java.util.List<ServiceAvailability> getAvailableServicesList() {
|
return new com.google.protobuf.Internal.ListAdapter<
|
Integer, ServiceAvailability>(availableServices_, availableServices_converter_);
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @return The count of availableServices.
|
*/
|
@Override
|
public int getAvailableServicesCount() {
|
return availableServices_.size();
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @param index The index of the element to return.
|
* @return The availableServices at the given index.
|
*/
|
@Override
|
public ServiceAvailability getAvailableServices(int index) {
|
return availableServices_converter_.convert(availableServices_.get(index));
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @return A list containing the enum numeric values on the wire for availableServices.
|
*/
|
@Override
|
public java.util.List<Integer>
|
getAvailableServicesValueList() {
|
return availableServices_;
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @param index The index of the value to return.
|
* @return The enum numeric value on the wire of availableServices at the given index.
|
*/
|
@Override
|
public int getAvailableServicesValue(int index) {
|
return availableServices_.get(index);
|
}
|
private int availableServicesMemoizedSerializedSize;
|
|
public static final int IS_EMERGENCY_FIELD_NUMBER = 4;
|
private boolean isEmergency_;
|
/**
|
* <pre>
|
* 是否紧急状态
|
* </pre>
|
*
|
* <code>bool is_emergency = 4;</code>
|
* @return The isEmergency.
|
*/
|
@Override
|
public boolean getIsEmergency() {
|
return isEmergency_;
|
}
|
|
private byte memoizedIsInitialized = -1;
|
@Override
|
public final boolean isInitialized() {
|
byte isInitialized = memoizedIsInitialized;
|
if (isInitialized == 1) return true;
|
if (isInitialized == 0) return false;
|
|
memoizedIsInitialized = 1;
|
return true;
|
}
|
|
@Override
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
throws java.io.IOException {
|
getSerializedSize();
|
if (phase_ != SystemPhase.SYSTEM_STATUS_UNSPECIFIED.getNumber()) {
|
output.writeEnum(1, phase_);
|
}
|
if (abnormalReason_ != AbnormalReason.ABNORMAL_REASON_UNSPECIFIED.getNumber()) {
|
output.writeEnum(2, abnormalReason_);
|
}
|
if (getAvailableServicesList().size() > 0) {
|
output.writeUInt32NoTag(26);
|
output.writeUInt32NoTag(availableServicesMemoizedSerializedSize);
|
}
|
for (int i = 0; i < availableServices_.size(); i++) {
|
output.writeEnumNoTag(availableServices_.get(i));
|
}
|
if (isEmergency_ != false) {
|
output.writeBool(4, isEmergency_);
|
}
|
unknownFields.writeTo(output);
|
}
|
|
@Override
|
public int getSerializedSize() {
|
int size = memoizedSize;
|
if (size != -1) return size;
|
|
size = 0;
|
if (phase_ != SystemPhase.SYSTEM_STATUS_UNSPECIFIED.getNumber()) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeEnumSize(1, phase_);
|
}
|
if (abnormalReason_ != AbnormalReason.ABNORMAL_REASON_UNSPECIFIED.getNumber()) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeEnumSize(2, abnormalReason_);
|
}
|
{
|
int dataSize = 0;
|
for (int i = 0; i < availableServices_.size(); i++) {
|
dataSize += com.google.protobuf.CodedOutputStream
|
.computeEnumSizeNoTag(availableServices_.get(i));
|
}
|
size += dataSize;
|
if (!getAvailableServicesList().isEmpty()) { size += 1;
|
size += com.google.protobuf.CodedOutputStream
|
.computeUInt32SizeNoTag(dataSize);
|
}availableServicesMemoizedSerializedSize = dataSize;
|
}
|
if (isEmergency_ != false) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeBoolSize(4, isEmergency_);
|
}
|
size += unknownFields.getSerializedSize();
|
memoizedSize = size;
|
return size;
|
}
|
|
@Override
|
public boolean equals(final Object obj) {
|
if (obj == this) {
|
return true;
|
}
|
if (!(obj instanceof SystemStatus)) {
|
return super.equals(obj);
|
}
|
SystemStatus other = (SystemStatus) obj;
|
|
if (phase_ != other.phase_) return false;
|
if (abnormalReason_ != other.abnormalReason_) return false;
|
if (!availableServices_.equals(other.availableServices_)) return false;
|
if (getIsEmergency()
|
!= other.getIsEmergency()) return false;
|
if (!unknownFields.equals(other.unknownFields)) return false;
|
return true;
|
}
|
|
@Override
|
public int hashCode() {
|
if (memoizedHashCode != 0) {
|
return memoizedHashCode;
|
}
|
int hash = 41;
|
hash = (19 * hash) + getDescriptor().hashCode();
|
hash = (37 * hash) + PHASE_FIELD_NUMBER;
|
hash = (53 * hash) + phase_;
|
hash = (37 * hash) + ABNORMAL_REASON_FIELD_NUMBER;
|
hash = (53 * hash) + abnormalReason_;
|
if (getAvailableServicesCount() > 0) {
|
hash = (37 * hash) + AVAILABLE_SERVICES_FIELD_NUMBER;
|
hash = (53 * hash) + availableServices_.hashCode();
|
}
|
hash = (37 * hash) + IS_EMERGENCY_FIELD_NUMBER;
|
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
getIsEmergency());
|
hash = (29 * hash) + unknownFields.hashCode();
|
memoizedHashCode = hash;
|
return hash;
|
}
|
|
public static SystemStatus parseFrom(
|
java.nio.ByteBuffer data)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data);
|
}
|
public static SystemStatus parseFrom(
|
java.nio.ByteBuffer data,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data, extensionRegistry);
|
}
|
public static SystemStatus parseFrom(
|
com.google.protobuf.ByteString data)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data);
|
}
|
public static SystemStatus parseFrom(
|
com.google.protobuf.ByteString data,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data, extensionRegistry);
|
}
|
public static SystemStatus parseFrom(byte[] data)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data);
|
}
|
public static SystemStatus parseFrom(
|
byte[] data,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data, extensionRegistry);
|
}
|
public static SystemStatus parseFrom(java.io.InputStream input)
|
throws java.io.IOException {
|
return com.google.protobuf.GeneratedMessageV3
|
.parseWithIOException(PARSER, input);
|
}
|
public static SystemStatus 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 SystemStatus parseDelimitedFrom(java.io.InputStream input)
|
throws java.io.IOException {
|
return com.google.protobuf.GeneratedMessageV3
|
.parseDelimitedWithIOException(PARSER, input);
|
}
|
public static SystemStatus 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 SystemStatus parseFrom(
|
com.google.protobuf.CodedInputStream input)
|
throws java.io.IOException {
|
return com.google.protobuf.GeneratedMessageV3
|
.parseWithIOException(PARSER, input);
|
}
|
public static SystemStatus parseFrom(
|
com.google.protobuf.CodedInputStream input,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws java.io.IOException {
|
return com.google.protobuf.GeneratedMessageV3
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
}
|
|
@Override
|
public Builder newBuilderForType() { return newBuilder(); }
|
public static Builder newBuilder() {
|
return DEFAULT_INSTANCE.toBuilder();
|
}
|
public static Builder newBuilder(SystemStatus prototype) {
|
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
}
|
@Override
|
public Builder toBuilder() {
|
return this == DEFAULT_INSTANCE
|
? new Builder() : new Builder().mergeFrom(this);
|
}
|
|
@Override
|
protected Builder newBuilderForType(
|
BuilderParent parent) {
|
Builder builder = new Builder(parent);
|
return builder;
|
}
|
/**
|
* Protobuf type {@code acm.proto.intelliservices.rt.SystemStatus}
|
*/
|
public static final class Builder extends
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
// @@protoc_insertion_point(builder_implements:acm.proto.intelliservices.rt.SystemStatus)
|
SystemStatusOrBuilder {
|
public static final com.google.protobuf.Descriptors.Descriptor
|
getDescriptor() {
|
return RtSystem.internal_static_acm_proto_intelliservices_rt_SystemStatus_descriptor;
|
}
|
|
@Override
|
protected FieldAccessorTable
|
internalGetFieldAccessorTable() {
|
return RtSystem.internal_static_acm_proto_intelliservices_rt_SystemStatus_fieldAccessorTable
|
.ensureFieldAccessorsInitialized(
|
SystemStatus.class, Builder.class);
|
}
|
|
// Construct using com.xiaopeng.api.vo.automaticPilot.protobuf.SystemStatus.newBuilder()
|
private Builder() {
|
maybeForceBuilderInitialization();
|
}
|
|
private Builder(
|
BuilderParent parent) {
|
super(parent);
|
maybeForceBuilderInitialization();
|
}
|
private void maybeForceBuilderInitialization() {
|
if (com.google.protobuf.GeneratedMessageV3
|
.alwaysUseFieldBuilders) {
|
}
|
}
|
@Override
|
public Builder clear() {
|
super.clear();
|
phase_ = 0;
|
|
abnormalReason_ = 0;
|
|
availableServices_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000001);
|
isEmergency_ = false;
|
|
return this;
|
}
|
|
@Override
|
public com.google.protobuf.Descriptors.Descriptor
|
getDescriptorForType() {
|
return RtSystem.internal_static_acm_proto_intelliservices_rt_SystemStatus_descriptor;
|
}
|
|
@Override
|
public SystemStatus getDefaultInstanceForType() {
|
return SystemStatus.getDefaultInstance();
|
}
|
|
@Override
|
public SystemStatus build() {
|
SystemStatus result = buildPartial();
|
if (!result.isInitialized()) {
|
throw newUninitializedMessageException(result);
|
}
|
return result;
|
}
|
|
@Override
|
public SystemStatus buildPartial() {
|
SystemStatus result = new SystemStatus(this);
|
int from_bitField0_ = bitField0_;
|
result.phase_ = phase_;
|
result.abnormalReason_ = abnormalReason_;
|
if (((bitField0_ & 0x00000001) != 0)) {
|
availableServices_ = java.util.Collections.unmodifiableList(availableServices_);
|
bitField0_ = (bitField0_ & ~0x00000001);
|
}
|
result.availableServices_ = availableServices_;
|
result.isEmergency_ = isEmergency_;
|
onBuilt();
|
return result;
|
}
|
|
@Override
|
public Builder clone() {
|
return super.clone();
|
}
|
@Override
|
public Builder setField(
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
Object value) {
|
return super.setField(field, value);
|
}
|
@Override
|
public Builder clearField(
|
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
return super.clearField(field);
|
}
|
@Override
|
public Builder clearOneof(
|
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
return super.clearOneof(oneof);
|
}
|
@Override
|
public Builder setRepeatedField(
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
int index, Object value) {
|
return super.setRepeatedField(field, index, value);
|
}
|
@Override
|
public Builder addRepeatedField(
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
Object value) {
|
return super.addRepeatedField(field, value);
|
}
|
@Override
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
if (other instanceof SystemStatus) {
|
return mergeFrom((SystemStatus)other);
|
} else {
|
super.mergeFrom(other);
|
return this;
|
}
|
}
|
|
public Builder mergeFrom(SystemStatus other) {
|
if (other == SystemStatus.getDefaultInstance()) return this;
|
if (other.phase_ != 0) {
|
setPhaseValue(other.getPhaseValue());
|
}
|
if (other.abnormalReason_ != 0) {
|
setAbnormalReasonValue(other.getAbnormalReasonValue());
|
}
|
if (!other.availableServices_.isEmpty()) {
|
if (availableServices_.isEmpty()) {
|
availableServices_ = other.availableServices_;
|
bitField0_ = (bitField0_ & ~0x00000001);
|
} else {
|
ensureAvailableServicesIsMutable();
|
availableServices_.addAll(other.availableServices_);
|
}
|
onChanged();
|
}
|
if (other.getIsEmergency() != false) {
|
setIsEmergency(other.getIsEmergency());
|
}
|
this.mergeUnknownFields(other.unknownFields);
|
onChanged();
|
return this;
|
}
|
|
@Override
|
public final boolean isInitialized() {
|
return true;
|
}
|
|
@Override
|
public Builder mergeFrom(
|
com.google.protobuf.CodedInputStream input,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws java.io.IOException {
|
SystemStatus parsedMessage = null;
|
try {
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
parsedMessage = (SystemStatus) e.getUnfinishedMessage();
|
throw e.unwrapIOException();
|
} finally {
|
if (parsedMessage != null) {
|
mergeFrom(parsedMessage);
|
}
|
}
|
return this;
|
}
|
private int bitField0_;
|
|
private int phase_ = 0;
|
/**
|
* <pre>
|
* 系统阶段
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.SystemPhase phase = 1;</code>
|
* @return The enum numeric value on the wire for phase.
|
*/
|
@Override public int getPhaseValue() {
|
return phase_;
|
}
|
/**
|
* <pre>
|
* 系统阶段
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.SystemPhase phase = 1;</code>
|
* @param value The enum numeric value on the wire for phase to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setPhaseValue(int value) {
|
|
phase_ = value;
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 系统阶段
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.SystemPhase phase = 1;</code>
|
* @return The phase.
|
*/
|
@Override
|
public SystemPhase getPhase() {
|
@SuppressWarnings("deprecation")
|
SystemPhase result = SystemPhase.valueOf(phase_);
|
return result == null ? SystemPhase.UNRECOGNIZED : result;
|
}
|
/**
|
* <pre>
|
* 系统阶段
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.SystemPhase phase = 1;</code>
|
* @param value The phase to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setPhase(SystemPhase value) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
|
phase_ = value.getNumber();
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 系统阶段
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.SystemPhase phase = 1;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearPhase() {
|
|
phase_ = 0;
|
onChanged();
|
return this;
|
}
|
|
private int abnormalReason_ = 0;
|
/**
|
* <pre>
|
* Abnormal状态时的原因
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.AbnormalReason abnormal_reason = 2;</code>
|
* @return The enum numeric value on the wire for abnormalReason.
|
*/
|
@Override public int getAbnormalReasonValue() {
|
return abnormalReason_;
|
}
|
/**
|
* <pre>
|
* Abnormal状态时的原因
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.AbnormalReason abnormal_reason = 2;</code>
|
* @param value The enum numeric value on the wire for abnormalReason to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setAbnormalReasonValue(int value) {
|
|
abnormalReason_ = value;
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* Abnormal状态时的原因
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.AbnormalReason abnormal_reason = 2;</code>
|
* @return The abnormalReason.
|
*/
|
@Override
|
public AbnormalReason getAbnormalReason() {
|
@SuppressWarnings("deprecation")
|
AbnormalReason result = AbnormalReason.valueOf(abnormalReason_);
|
return result == null ? AbnormalReason.UNRECOGNIZED : result;
|
}
|
/**
|
* <pre>
|
* Abnormal状态时的原因
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.AbnormalReason abnormal_reason = 2;</code>
|
* @param value The abnormalReason to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setAbnormalReason(AbnormalReason value) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
|
abnormalReason_ = value.getNumber();
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* Abnormal状态时的原因
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.AbnormalReason abnormal_reason = 2;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearAbnormalReason() {
|
|
abnormalReason_ = 0;
|
onChanged();
|
return this;
|
}
|
|
private java.util.List<Integer> availableServices_ =
|
java.util.Collections.emptyList();
|
private void ensureAvailableServicesIsMutable() {
|
if (!((bitField0_ & 0x00000001) != 0)) {
|
availableServices_ = new java.util.ArrayList<Integer>(availableServices_);
|
bitField0_ |= 0x00000001;
|
}
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @return A list containing the availableServices.
|
*/
|
public java.util.List<ServiceAvailability> getAvailableServicesList() {
|
return new com.google.protobuf.Internal.ListAdapter<
|
Integer, ServiceAvailability>(availableServices_, availableServices_converter_);
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @return The count of availableServices.
|
*/
|
public int getAvailableServicesCount() {
|
return availableServices_.size();
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @param index The index of the element to return.
|
* @return The availableServices at the given index.
|
*/
|
public ServiceAvailability getAvailableServices(int index) {
|
return availableServices_converter_.convert(availableServices_.get(index));
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @param index The index to set the value at.
|
* @param value The availableServices to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setAvailableServices(
|
int index, ServiceAvailability value) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensureAvailableServicesIsMutable();
|
availableServices_.set(index, value.getNumber());
|
onChanged();
|
return this;
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @param value The availableServices to add.
|
* @return This builder for chaining.
|
*/
|
public Builder addAvailableServices(ServiceAvailability value) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensureAvailableServicesIsMutable();
|
availableServices_.add(value.getNumber());
|
onChanged();
|
return this;
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @param values The availableServices to add.
|
* @return This builder for chaining.
|
*/
|
public Builder addAllAvailableServices(
|
Iterable<? extends ServiceAvailability> values) {
|
ensureAvailableServicesIsMutable();
|
for (ServiceAvailability value : values) {
|
availableServices_.add(value.getNumber());
|
}
|
onChanged();
|
return this;
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearAvailableServices() {
|
availableServices_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000001);
|
onChanged();
|
return this;
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @return A list containing the enum numeric values on the wire for availableServices.
|
*/
|
public java.util.List<Integer>
|
getAvailableServicesValueList() {
|
return java.util.Collections.unmodifiableList(availableServices_);
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @param index The index of the value to return.
|
* @return The enum numeric value on the wire of availableServices at the given index.
|
*/
|
public int getAvailableServicesValue(int index) {
|
return availableServices_.get(index);
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @param index The index of the value to return.
|
* @return The enum numeric value on the wire of availableServices at the given index.
|
* @return This builder for chaining.
|
*/
|
public Builder setAvailableServicesValue(
|
int index, int value) {
|
ensureAvailableServicesIsMutable();
|
availableServices_.set(index, value);
|
onChanged();
|
return this;
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @param value The enum numeric value on the wire for availableServices to add.
|
* @return This builder for chaining.
|
*/
|
public Builder addAvailableServicesValue(int value) {
|
ensureAvailableServicesIsMutable();
|
availableServices_.add(value);
|
onChanged();
|
return this;
|
}
|
/**
|
* <code>repeated .acm.proto.intelliservices.rt.ServiceAvailability available_services = 3;</code>
|
* @param values The enum numeric values on the wire for availableServices to add.
|
* @return This builder for chaining.
|
*/
|
public Builder addAllAvailableServicesValue(
|
Iterable<Integer> values) {
|
ensureAvailableServicesIsMutable();
|
for (int value : values) {
|
availableServices_.add(value);
|
}
|
onChanged();
|
return this;
|
}
|
|
private boolean isEmergency_ ;
|
/**
|
* <pre>
|
* 是否紧急状态
|
* </pre>
|
*
|
* <code>bool is_emergency = 4;</code>
|
* @return The isEmergency.
|
*/
|
@Override
|
public boolean getIsEmergency() {
|
return isEmergency_;
|
}
|
/**
|
* <pre>
|
* 是否紧急状态
|
* </pre>
|
*
|
* <code>bool is_emergency = 4;</code>
|
* @param value The isEmergency to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setIsEmergency(boolean value) {
|
|
isEmergency_ = value;
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 是否紧急状态
|
* </pre>
|
*
|
* <code>bool is_emergency = 4;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearIsEmergency() {
|
|
isEmergency_ = false;
|
onChanged();
|
return this;
|
}
|
@Override
|
public final Builder setUnknownFields(
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
return super.setUnknownFields(unknownFields);
|
}
|
|
@Override
|
public final Builder mergeUnknownFields(
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
return super.mergeUnknownFields(unknownFields);
|
}
|
|
|
// @@protoc_insertion_point(builder_scope:acm.proto.intelliservices.rt.SystemStatus)
|
}
|
|
// @@protoc_insertion_point(class_scope:acm.proto.intelliservices.rt.SystemStatus)
|
private static final SystemStatus DEFAULT_INSTANCE;
|
static {
|
DEFAULT_INSTANCE = new SystemStatus();
|
}
|
|
public static SystemStatus getDefaultInstance() {
|
return DEFAULT_INSTANCE;
|
}
|
|
private static final com.google.protobuf.Parser<SystemStatus>
|
PARSER = new com.google.protobuf.AbstractParser<SystemStatus>() {
|
@Override
|
public SystemStatus parsePartialFrom(
|
com.google.protobuf.CodedInputStream input,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return new SystemStatus(input, extensionRegistry);
|
}
|
};
|
|
public static com.google.protobuf.Parser<SystemStatus> parser() {
|
return PARSER;
|
}
|
|
@Override
|
public com.google.protobuf.Parser<SystemStatus> getParserForType() {
|
return PARSER;
|
}
|
|
@Override
|
public SystemStatus getDefaultInstanceForType() {
|
return DEFAULT_INSTANCE;
|
}
|
|
}
|