// 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.L4CapabilityInfo} */ public final class L4CapabilityInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:acm.proto.intelliservices.rt.L4CapabilityInfo) L4CapabilityInfoOrBuilder { private static final long serialVersionUID = 0L; // Use L4CapabilityInfo.newBuilder() to construct. private L4CapabilityInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private L4CapabilityInfo() { vin_ = ""; l4Capabilities_ = java.util.Collections.emptyList(); mqttAccount_ = ""; } @Override @SuppressWarnings({"unused"}) protected Object newInstance( UnusedPrivateParameter unused) { return new L4CapabilityInfo(); } @Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private L4CapabilityInfo( 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 10: { String s = input.readStringRequireUtf8(); vin_ = s; break; } case 16: { userId_ = input.readInt64(); break; } case 24: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { l4Capabilities_ = new java.util.ArrayList
* 车辆ID ** *
string vin = 1;
* @return The vin.
*/
@Override
public String getVin() {
Object ref = vin_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
vin_ = s;
return s;
}
}
/**
* * 车辆ID ** *
string vin = 1;
* @return The bytes for vin.
*/
@Override
public com.google.protobuf.ByteString
getVinBytes() {
Object ref = vin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
vin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_ID_FIELD_NUMBER = 2;
private long userId_;
/**
* * 用户ID ** *
int64 user_id = 2;
* @return The userId.
*/
@Override
public long getUserId() {
return userId_;
}
public static final int L4_CAPABILITIES_FIELD_NUMBER = 3;
private java.util.List* L4功能能力 ** *
repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @return A list containing the l4Capabilities.
*/
@Override
public java.util.List* L4功能能力 ** *
repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @return The count of l4Capabilities.
*/
@Override
public int getL4CapabilitiesCount() {
return l4Capabilities_.size();
}
/**
* * L4功能能力 ** *
repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @param index The index of the element to return.
* @return The l4Capabilities at the given index.
*/
@Override
public L4CapabilityType getL4Capabilities(int index) {
return l4Capabilities_converter_.convert(l4Capabilities_.get(index));
}
/**
* * L4功能能力 ** *
repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @return A list containing the enum numeric values on the wire for l4Capabilities.
*/
@Override
public java.util.List* L4功能能力 ** *
repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of l4Capabilities at the given index.
*/
@Override
public int getL4CapabilitiesValue(int index) {
return l4Capabilities_.get(index);
}
private int l4CapabilitiesMemoizedSerializedSize;
public static final int MQTT_ACCOUNT_FIELD_NUMBER = 4;
private volatile Object mqttAccount_;
/**
* string mqtt_account = 4;
* @return The mqttAccount.
*/
@Override
public String getMqttAccount() {
Object ref = mqttAccount_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
mqttAccount_ = s;
return s;
}
}
/**
* string mqtt_account = 4;
* @return The bytes for mqttAccount.
*/
@Override
public com.google.protobuf.ByteString
getMqttAccountBytes() {
Object ref = mqttAccount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
mqttAccount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 5;
private long timestamp_;
/**
* * 更新时间 ** *
int64 timestamp = 5;
* @return The timestamp.
*/
@Override
public long getTimestamp() {
return timestamp_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vin_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vin_);
}
if (userId_ != 0L) {
output.writeInt64(2, userId_);
}
if (getL4CapabilitiesList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(l4CapabilitiesMemoizedSerializedSize);
}
for (int i = 0; i < l4Capabilities_.size(); i++) {
output.writeEnumNoTag(l4Capabilities_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mqttAccount_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mqttAccount_);
}
if (timestamp_ != 0L) {
output.writeInt64(5, timestamp_);
}
unknownFields.writeTo(output);
}
@Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vin_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vin_);
}
if (userId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, userId_);
}
{
int dataSize = 0;
for (int i = 0; i < l4Capabilities_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(l4Capabilities_.get(i));
}
size += dataSize;
if (!getL4CapabilitiesList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}l4CapabilitiesMemoizedSerializedSize = dataSize;
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mqttAccount_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mqttAccount_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, timestamp_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof L4CapabilityInfo)) {
return super.equals(obj);
}
L4CapabilityInfo other = (L4CapabilityInfo) obj;
if (!getVin()
.equals(other.getVin())) return false;
if (getUserId()
!= other.getUserId()) return false;
if (!l4Capabilities_.equals(other.l4Capabilities_)) return false;
if (!getMqttAccount()
.equals(other.getMqttAccount())) return false;
if (getTimestamp()
!= other.getTimestamp()) 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) + VIN_FIELD_NUMBER;
hash = (53 * hash) + getVin().hashCode();
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUserId());
if (getL4CapabilitiesCount() > 0) {
hash = (37 * hash) + L4_CAPABILITIES_FIELD_NUMBER;
hash = (53 * hash) + l4Capabilities_.hashCode();
}
hash = (37 * hash) + MQTT_ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getMqttAccount().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static L4CapabilityInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static L4CapabilityInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static L4CapabilityInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static L4CapabilityInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static L4CapabilityInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static L4CapabilityInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static L4CapabilityInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static L4CapabilityInfo 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 L4CapabilityInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static L4CapabilityInfo 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 L4CapabilityInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static L4CapabilityInfo 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(L4CapabilityInfo 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.L4CapabilityInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* 车辆ID
*
*
* string vin = 1;
* @return The vin.
*/
public String getVin() {
Object ref = vin_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
vin_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 车辆ID
*
*
* string vin = 1;
* @return The bytes for vin.
*/
public com.google.protobuf.ByteString
getVinBytes() {
Object ref = vin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
vin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 车辆ID
*
*
* string vin = 1;
* @param value The vin to set.
* @return This builder for chaining.
*/
public Builder setVin(
String value) {
if (value == null) {
throw new NullPointerException();
}
vin_ = value;
onChanged();
return this;
}
/**
*
* 车辆ID
*
*
* string vin = 1;
* @return This builder for chaining.
*/
public Builder clearVin() {
vin_ = getDefaultInstance().getVin();
onChanged();
return this;
}
/**
*
* 车辆ID
*
*
* string vin = 1;
* @param value The bytes for vin to set.
* @return This builder for chaining.
*/
public Builder setVinBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
vin_ = value;
onChanged();
return this;
}
private long userId_ ;
/**
*
* 用户ID
*
*
* int64 user_id = 2;
* @return The userId.
*/
@Override
public long getUserId() {
return userId_;
}
/**
*
* 用户ID
*
*
* int64 user_id = 2;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(long value) {
userId_ = value;
onChanged();
return this;
}
/**
*
* 用户ID
*
*
* int64 user_id = 2;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = 0L;
onChanged();
return this;
}
private java.util.List
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @return A list containing the l4Capabilities.
*/
public java.util.List
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @return The count of l4Capabilities.
*/
public int getL4CapabilitiesCount() {
return l4Capabilities_.size();
}
/**
*
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @param index The index of the element to return.
* @return The l4Capabilities at the given index.
*/
public L4CapabilityType getL4Capabilities(int index) {
return l4Capabilities_converter_.convert(l4Capabilities_.get(index));
}
/**
*
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @param index The index to set the value at.
* @param value The l4Capabilities to set.
* @return This builder for chaining.
*/
public Builder setL4Capabilities(
int index, L4CapabilityType value) {
if (value == null) {
throw new NullPointerException();
}
ensureL4CapabilitiesIsMutable();
l4Capabilities_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @param value The l4Capabilities to add.
* @return This builder for chaining.
*/
public Builder addL4Capabilities(L4CapabilityType value) {
if (value == null) {
throw new NullPointerException();
}
ensureL4CapabilitiesIsMutable();
l4Capabilities_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @param values The l4Capabilities to add.
* @return This builder for chaining.
*/
public Builder addAllL4Capabilities(
Iterable extends L4CapabilityType> values) {
ensureL4CapabilitiesIsMutable();
for (L4CapabilityType value : values) {
l4Capabilities_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @return This builder for chaining.
*/
public Builder clearL4Capabilities() {
l4Capabilities_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @return A list containing the enum numeric values on the wire for l4Capabilities.
*/
public java.util.List
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of l4Capabilities at the given index.
*/
public int getL4CapabilitiesValue(int index) {
return l4Capabilities_.get(index);
}
/**
*
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of l4Capabilities at the given index.
* @return This builder for chaining.
*/
public Builder setL4CapabilitiesValue(
int index, int value) {
ensureL4CapabilitiesIsMutable();
l4Capabilities_.set(index, value);
onChanged();
return this;
}
/**
*
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @param value The enum numeric value on the wire for l4Capabilities to add.
* @return This builder for chaining.
*/
public Builder addL4CapabilitiesValue(int value) {
ensureL4CapabilitiesIsMutable();
l4Capabilities_.add(value);
onChanged();
return this;
}
/**
*
* L4功能能力
*
*
* repeated .acm.proto.intelliservices.rt.L4CapabilityType l4_capabilities = 3;
* @param values The enum numeric values on the wire for l4Capabilities to add.
* @return This builder for chaining.
*/
public Builder addAllL4CapabilitiesValue(
Iterablestring mqtt_account = 4;
* @return The mqttAccount.
*/
public String getMqttAccount() {
Object ref = mqttAccount_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
mqttAccount_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* string mqtt_account = 4;
* @return The bytes for mqttAccount.
*/
public com.google.protobuf.ByteString
getMqttAccountBytes() {
Object ref = mqttAccount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
mqttAccount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string mqtt_account = 4;
* @param value The mqttAccount to set.
* @return This builder for chaining.
*/
public Builder setMqttAccount(
String value) {
if (value == null) {
throw new NullPointerException();
}
mqttAccount_ = value;
onChanged();
return this;
}
/**
* string mqtt_account = 4;
* @return This builder for chaining.
*/
public Builder clearMqttAccount() {
mqttAccount_ = getDefaultInstance().getMqttAccount();
onChanged();
return this;
}
/**
* string mqtt_account = 4;
* @param value The bytes for mqttAccount to set.
* @return This builder for chaining.
*/
public Builder setMqttAccountBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
mqttAccount_ = value;
onChanged();
return this;
}
private long timestamp_ ;
/**
*
* 更新时间
*
*
* int64 timestamp = 5;
* @return The timestamp.
*/
@Override
public long getTimestamp() {
return timestamp_;
}
/**
*
* 更新时间
*
*
* int64 timestamp = 5;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
*
* 更新时间
*
*
* int64 timestamp = 5;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
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.L4CapabilityInfo)
}
// @@protoc_insertion_point(class_scope:acm.proto.intelliservices.rt.L4CapabilityInfo)
private static final L4CapabilityInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new L4CapabilityInfo();
}
public static L4CapabilityInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser