// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rt_event_common.proto
package com.xiaopeng.api.vo.automaticPilot.protobuf;
/**
* Protobuf type {@code acm.proto.intelliservices.rt.TaskRunningStateEvent}
*/
public final class TaskRunningStateEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:acm.proto.intelliservices.rt.TaskRunningStateEvent)
TaskRunningStateEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskRunningStateEvent.newBuilder() to construct.
private TaskRunningStateEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskRunningStateEvent() {
eventType_ = 0;
}
@Override
@SuppressWarnings({"unused"})
protected Object newInstance(
UnusedPrivateParameter unused) {
return new TaskRunningStateEvent();
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TaskRunningStateEvent(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new NullPointerException();
}
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();
eventType_ = rawValue;
break;
}
case 18: {
TaskRunningState.Builder subBuilder = null;
if (taskRunningState_ != null) {
subBuilder = taskRunningState_.toBuilder();
}
taskRunningState_ = input.readMessage(TaskRunningState.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(taskRunningState_);
taskRunningState_ = subBuilder.buildPartial();
}
break;
}
case 26: {
Waypoint.Builder subBuilder = null;
if (point_ != null) {
subBuilder = point_.toBuilder();
}
point_ = input.readMessage(Waypoint.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(point_);
point_ = subBuilder.buildPartial();
}
break;
}
case 32: {
timestamp_ = input.readInt64();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return RtEventCommon.internal_static_acm_proto_intelliservices_rt_TaskRunningStateEvent_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return RtEventCommon.internal_static_acm_proto_intelliservices_rt_TaskRunningStateEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
TaskRunningStateEvent.class, Builder.class);
}
public static final int EVENT_TYPE_FIELD_NUMBER = 1;
private int eventType_;
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @return The enum numeric value on the wire for eventType.
*/
@Override public int getEventTypeValue() {
return eventType_;
}
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @return The eventType.
*/
@Override public RtEventType getEventType() {
@SuppressWarnings("deprecation")
RtEventType result = RtEventType.valueOf(eventType_);
return result == null ? RtEventType.UNRECOGNIZED : result;
}
public static final int TASK_RUNNING_STATE_FIELD_NUMBER = 2;
private TaskRunningState taskRunningState_;
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
* @return Whether the taskRunningState field is set.
*/
@Override
public boolean hasTaskRunningState() {
return taskRunningState_ != null;
}
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
* @return The taskRunningState.
*/
@Override
public TaskRunningState getTaskRunningState() {
return taskRunningState_ == null ? TaskRunningState.getDefaultInstance() : taskRunningState_;
}
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
*/
@Override
public TaskRunningStateOrBuilder getTaskRunningStateOrBuilder() {
return getTaskRunningState();
}
public static final int POINT_FIELD_NUMBER = 3;
private Waypoint point_;
/**
*
*事件发生的点位 ** *
.acm.proto.intelliservices.rt.Waypoint point = 3;
* @return Whether the point field is set.
*/
@Override
public boolean hasPoint() {
return point_ != null;
}
/**
* *事件发生的点位 ** *
.acm.proto.intelliservices.rt.Waypoint point = 3;
* @return The point.
*/
@Override
public Waypoint getPoint() {
return point_ == null ? Waypoint.getDefaultInstance() : point_;
}
/**
* *事件发生的点位 ** *
.acm.proto.intelliservices.rt.Waypoint point = 3;
*/
@Override
public WaypointOrBuilder getPointOrBuilder() {
return getPoint();
}
public static final int TIMESTAMP_FIELD_NUMBER = 4;
private long timestamp_;
/**
* * 时间戳(毫秒) ** *
int64 timestamp = 4;
* @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 {
if (eventType_ != RtEventType.kEventUnspecified.getNumber()) {
output.writeEnum(1, eventType_);
}
if (taskRunningState_ != null) {
output.writeMessage(2, getTaskRunningState());
}
if (point_ != null) {
output.writeMessage(3, getPoint());
}
if (timestamp_ != 0L) {
output.writeInt64(4, timestamp_);
}
unknownFields.writeTo(output);
}
@Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (eventType_ != RtEventType.kEventUnspecified.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, eventType_);
}
if (taskRunningState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTaskRunningState());
}
if (point_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPoint());
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, timestamp_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof TaskRunningStateEvent)) {
return super.equals(obj);
}
TaskRunningStateEvent other = (TaskRunningStateEvent) obj;
if (eventType_ != other.eventType_) return false;
if (hasTaskRunningState() != other.hasTaskRunningState()) return false;
if (hasTaskRunningState()) {
if (!getTaskRunningState()
.equals(other.getTaskRunningState())) return false;
}
if (hasPoint() != other.hasPoint()) return false;
if (hasPoint()) {
if (!getPoint()
.equals(other.getPoint())) 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) + EVENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + eventType_;
if (hasTaskRunningState()) {
hash = (37 * hash) + TASK_RUNNING_STATE_FIELD_NUMBER;
hash = (53 * hash) + getTaskRunningState().hashCode();
}
if (hasPoint()) {
hash = (37 * hash) + POINT_FIELD_NUMBER;
hash = (53 * hash) + getPoint().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 TaskRunningStateEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static TaskRunningStateEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static TaskRunningStateEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static TaskRunningStateEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static TaskRunningStateEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static TaskRunningStateEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static TaskRunningStateEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static TaskRunningStateEvent 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 TaskRunningStateEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static TaskRunningStateEvent 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 TaskRunningStateEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static TaskRunningStateEvent 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(TaskRunningStateEvent 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.TaskRunningStateEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder.acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @return The enum numeric value on the wire for eventType.
*/
@Override public int getEventTypeValue() {
return eventType_;
}
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @param value The enum numeric value on the wire for eventType to set.
* @return This builder for chaining.
*/
public Builder setEventTypeValue(int value) {
eventType_ = value;
onChanged();
return this;
}
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @return The eventType.
*/
@Override
public RtEventType getEventType() {
@SuppressWarnings("deprecation")
RtEventType result = RtEventType.valueOf(eventType_);
return result == null ? RtEventType.UNRECOGNIZED : result;
}
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(RtEventType value) {
if (value == null) {
throw new NullPointerException();
}
eventType_ = value.getNumber();
onChanged();
return this;
}
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = 0;
onChanged();
return this;
}
private TaskRunningState taskRunningState_;
private com.google.protobuf.SingleFieldBuilderV3<
TaskRunningState, TaskRunningState.Builder, TaskRunningStateOrBuilder> taskRunningStateBuilder_;
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
* @return Whether the taskRunningState field is set.
*/
public boolean hasTaskRunningState() {
return taskRunningStateBuilder_ != null || taskRunningState_ != null;
}
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
* @return The taskRunningState.
*/
public TaskRunningState getTaskRunningState() {
if (taskRunningStateBuilder_ == null) {
return taskRunningState_ == null ? TaskRunningState.getDefaultInstance() : taskRunningState_;
} else {
return taskRunningStateBuilder_.getMessage();
}
}
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
*/
public Builder setTaskRunningState(TaskRunningState value) {
if (taskRunningStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskRunningState_ = value;
onChanged();
} else {
taskRunningStateBuilder_.setMessage(value);
}
return this;
}
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
*/
public Builder setTaskRunningState(
TaskRunningState.Builder builderForValue) {
if (taskRunningStateBuilder_ == null) {
taskRunningState_ = builderForValue.build();
onChanged();
} else {
taskRunningStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
*/
public Builder mergeTaskRunningState(TaskRunningState value) {
if (taskRunningStateBuilder_ == null) {
if (taskRunningState_ != null) {
taskRunningState_ =
TaskRunningState.newBuilder(taskRunningState_).mergeFrom(value).buildPartial();
} else {
taskRunningState_ = value;
}
onChanged();
} else {
taskRunningStateBuilder_.mergeFrom(value);
}
return this;
}
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
*/
public Builder clearTaskRunningState() {
if (taskRunningStateBuilder_ == null) {
taskRunningState_ = null;
onChanged();
} else {
taskRunningState_ = null;
taskRunningStateBuilder_ = null;
}
return this;
}
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
*/
public TaskRunningState.Builder getTaskRunningStateBuilder() {
onChanged();
return getTaskRunningStateFieldBuilder().getBuilder();
}
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
*/
public TaskRunningStateOrBuilder getTaskRunningStateOrBuilder() {
if (taskRunningStateBuilder_ != null) {
return taskRunningStateBuilder_.getMessageOrBuilder();
} else {
return taskRunningState_ == null ?
TaskRunningState.getDefaultInstance() : taskRunningState_;
}
}
/**
* .acm.proto.intelliservices.rt.TaskRunningState task_running_state = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
TaskRunningState, TaskRunningState.Builder, TaskRunningStateOrBuilder>
getTaskRunningStateFieldBuilder() {
if (taskRunningStateBuilder_ == null) {
taskRunningStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
TaskRunningState, TaskRunningState.Builder, TaskRunningStateOrBuilder>(
getTaskRunningState(),
getParentForChildren(),
isClean());
taskRunningState_ = null;
}
return taskRunningStateBuilder_;
}
private Waypoint point_;
private com.google.protobuf.SingleFieldBuilderV3<
Waypoint, Waypoint.Builder, WaypointOrBuilder> pointBuilder_;
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
* @return Whether the point field is set.
*/
public boolean hasPoint() {
return pointBuilder_ != null || point_ != null;
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
* @return The point.
*/
public Waypoint getPoint() {
if (pointBuilder_ == null) {
return point_ == null ? Waypoint.getDefaultInstance() : point_;
} else {
return pointBuilder_.getMessage();
}
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public Builder setPoint(Waypoint value) {
if (pointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
point_ = value;
onChanged();
} else {
pointBuilder_.setMessage(value);
}
return this;
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public Builder setPoint(
Waypoint.Builder builderForValue) {
if (pointBuilder_ == null) {
point_ = builderForValue.build();
onChanged();
} else {
pointBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public Builder mergePoint(Waypoint value) {
if (pointBuilder_ == null) {
if (point_ != null) {
point_ =
Waypoint.newBuilder(point_).mergeFrom(value).buildPartial();
} else {
point_ = value;
}
onChanged();
} else {
pointBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public Builder clearPoint() {
if (pointBuilder_ == null) {
point_ = null;
onChanged();
} else {
point_ = null;
pointBuilder_ = null;
}
return this;
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public Waypoint.Builder getPointBuilder() {
onChanged();
return getPointFieldBuilder().getBuilder();
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public WaypointOrBuilder getPointOrBuilder() {
if (pointBuilder_ != null) {
return pointBuilder_.getMessageOrBuilder();
} else {
return point_ == null ?
Waypoint.getDefaultInstance() : point_;
}
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
Waypoint, Waypoint.Builder, WaypointOrBuilder>
getPointFieldBuilder() {
if (pointBuilder_ == null) {
pointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
Waypoint, Waypoint.Builder, WaypointOrBuilder>(
getPoint(),
getParentForChildren(),
isClean());
point_ = null;
}
return pointBuilder_;
}
private long timestamp_ ;
/**
*
* 时间戳(毫秒)
*
*
* int64 timestamp = 4;
* @return The timestamp.
*/
@Override
public long getTimestamp() {
return timestamp_;
}
/**
*
* 时间戳(毫秒)
*
*
* int64 timestamp = 4;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
*
* 时间戳(毫秒)
*
*
* int64 timestamp = 4;
* @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.TaskRunningStateEvent)
}
// @@protoc_insertion_point(class_scope:acm.proto.intelliservices.rt.TaskRunningStateEvent)
private static final TaskRunningStateEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new TaskRunningStateEvent();
}
public static TaskRunningStateEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser