aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/main/java/com/vehicle/messages/MessageHeader.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/main/java/com/vehicle/messages/MessageHeader.java')
-rw-r--r--src/main/main/java/com/vehicle/messages/MessageHeader.java2100
1 files changed, 0 insertions, 2100 deletions
diff --git a/src/main/main/java/com/vehicle/messages/MessageHeader.java b/src/main/main/java/com/vehicle/messages/MessageHeader.java
deleted file mode 100644
index 025fa23..0000000
--- a/src/main/main/java/com/vehicle/messages/MessageHeader.java
+++ /dev/null
@@ -1,2100 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: messages/VehicleMessageHeader.proto
-
-package com.vehicle.messages;
-
-public final class MessageHeader {
- private MessageHeader() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- public interface VehicleMessageHeadingOrBuilder extends
- // @@protoc_insertion_point(interface_extends:messages.VehicleMessageHeading)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <pre>
- * Unique Application message_id. When initiated from channels like Mobile or API Gateways this should persist all the way to the vehilce, returning as a correlation id.
- * </pre>
- *
- * <code>int32 message_id = 1;</code>
- * @return The messageId.
- */
- int getMessageId();
-
- /**
- * <pre>
- * For request/response and other multi-message patterns this should be populated with the message_id of the first message in the chain.
- * </pre>
- *
- * <code>int32 correlation_id = 2;</code>
- * @return The correlationId.
- */
- int getCorrelationId();
-
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- * @return Whether the vehicleIdentity field is set.
- */
- boolean hasVehicleIdentity();
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- * @return The vehicleIdentity.
- */
- com.vehicle.vss.Vspec.VehicleVehicleIdentification getVehicleIdentity();
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- */
- com.vehicle.vss.Vspec.VehicleVehicleIdentificationOrBuilder getVehicleIdentityOrBuilder();
-
- /**
- * <pre>
- * this can be any unique identifier for the vehicle, we recommend using the fingerprint on the client's unique x.509 certificate.
- * </pre>
- *
- * <code>string vehicle_device_id = 7;</code>
- * @return The vehicleDeviceId.
- */
- java.lang.String getVehicleDeviceId();
- /**
- * <pre>
- * this can be any unique identifier for the vehicle, we recommend using the fingerprint on the client's unique x.509 certificate.
- * </pre>
- *
- * <code>string vehicle_device_id = 7;</code>
- * @return The bytes for vehicleDeviceId.
- */
- com.google.protobuf.ByteString
- getVehicleDeviceIdBytes();
-
- /**
- * <pre>
- * EPOCH timestamp when the message was created
- * </pre>
- *
- * <code>int64 message_timestamp = 4;</code>
- * @return The messageTimestamp.
- */
- long getMessageTimestamp();
-
- /**
- * <pre>
- * version of the protocol schema/data model being used.
- * </pre>
- *
- * <code>double protocol_version = 5;</code>
- * @return The protocolVersion.
- */
- double getProtocolVersion();
-
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- * @return Whether the location field is set.
- */
- boolean hasLocation();
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- * @return The location.
- */
- com.vehicle.messages.MessageHeader.lat_long getLocation();
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- */
- com.vehicle.messages.MessageHeader.lat_longOrBuilder getLocationOrBuilder();
- }
- /**
- * <pre>
- * # Vehicle Message Header
- *
- * This message defines an application message header for messages past across the system. This is useful because the standard MQTT message headers are typically local to the broker of the system, so while the MQTT headers
- * are useful for QoS assurances and message debugging they do not necessarily correlate the messages to the
- * services deeper in the vehicle or the cloud services.
- *
- * ## Message Orchestration
- * ![HeaderMessage.puml](build/resources/main/V2C/images/HeaderMessage.png)
- *
- * ## MQTT Topic Design
- * | Direction | Subscribe Topic | Publish Topic |
- * | ----------- | ----- | -------- |
- * | Vehicle to Cloud | No Topic | No Topic |
- * | ----------- | ----- | -------- |
- * | Cloud to Vehicle | No Topic | No Topic |
- * </pre>
- *
- * Protobuf type {@code messages.VehicleMessageHeading}
- */
- public static final class VehicleMessageHeading extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:messages.VehicleMessageHeading)
- VehicleMessageHeadingOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use VehicleMessageHeading.newBuilder() to construct.
- private VehicleMessageHeading(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private VehicleMessageHeading() {
- vehicleDeviceId_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new VehicleMessageHeading();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.vehicle.messages.MessageHeader.internal_static_messages_VehicleMessageHeading_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.vehicle.messages.MessageHeader.internal_static_messages_VehicleMessageHeading_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.vehicle.messages.MessageHeader.VehicleMessageHeading.class, com.vehicle.messages.MessageHeader.VehicleMessageHeading.Builder.class);
- }
-
- public static final int MESSAGE_ID_FIELD_NUMBER = 1;
- private int messageId_ = 0;
- /**
- * <pre>
- * Unique Application message_id. When initiated from channels like Mobile or API Gateways this should persist all the way to the vehilce, returning as a correlation id.
- * </pre>
- *
- * <code>int32 message_id = 1;</code>
- * @return The messageId.
- */
- @java.lang.Override
- public int getMessageId() {
- return messageId_;
- }
-
- public static final int CORRELATION_ID_FIELD_NUMBER = 2;
- private int correlationId_ = 0;
- /**
- * <pre>
- * For request/response and other multi-message patterns this should be populated with the message_id of the first message in the chain.
- * </pre>
- *
- * <code>int32 correlation_id = 2;</code>
- * @return The correlationId.
- */
- @java.lang.Override
- public int getCorrelationId() {
- return correlationId_;
- }
-
- public static final int VEHICLE_IDENTITY_FIELD_NUMBER = 3;
- private com.vehicle.vss.Vspec.VehicleVehicleIdentification vehicleIdentity_;
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- * @return Whether the vehicleIdentity field is set.
- */
- @java.lang.Override
- public boolean hasVehicleIdentity() {
- return vehicleIdentity_ != null;
- }
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- * @return The vehicleIdentity.
- */
- @java.lang.Override
- public com.vehicle.vss.Vspec.VehicleVehicleIdentification getVehicleIdentity() {
- return vehicleIdentity_ == null ? com.vehicle.vss.Vspec.VehicleVehicleIdentification.getDefaultInstance() : vehicleIdentity_;
- }
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- */
- @java.lang.Override
- public com.vehicle.vss.Vspec.VehicleVehicleIdentificationOrBuilder getVehicleIdentityOrBuilder() {
- return vehicleIdentity_ == null ? com.vehicle.vss.Vspec.VehicleVehicleIdentification.getDefaultInstance() : vehicleIdentity_;
- }
-
- public static final int VEHICLE_DEVICE_ID_FIELD_NUMBER = 7;
- @SuppressWarnings("serial")
- private volatile java.lang.Object vehicleDeviceId_ = "";
- /**
- * <pre>
- * this can be any unique identifier for the vehicle, we recommend using the fingerprint on the client's unique x.509 certificate.
- * </pre>
- *
- * <code>string vehicle_device_id = 7;</code>
- * @return The vehicleDeviceId.
- */
- @java.lang.Override
- public java.lang.String getVehicleDeviceId() {
- java.lang.Object ref = vehicleDeviceId_;
- 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();
- vehicleDeviceId_ = s;
- return s;
- }
- }
- /**
- * <pre>
- * this can be any unique identifier for the vehicle, we recommend using the fingerprint on the client's unique x.509 certificate.
- * </pre>
- *
- * <code>string vehicle_device_id = 7;</code>
- * @return The bytes for vehicleDeviceId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getVehicleDeviceIdBytes() {
- java.lang.Object ref = vehicleDeviceId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- vehicleDeviceId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int MESSAGE_TIMESTAMP_FIELD_NUMBER = 4;
- private long messageTimestamp_ = 0L;
- /**
- * <pre>
- * EPOCH timestamp when the message was created
- * </pre>
- *
- * <code>int64 message_timestamp = 4;</code>
- * @return The messageTimestamp.
- */
- @java.lang.Override
- public long getMessageTimestamp() {
- return messageTimestamp_;
- }
-
- public static final int PROTOCOL_VERSION_FIELD_NUMBER = 5;
- private double protocolVersion_ = 0D;
- /**
- * <pre>
- * version of the protocol schema/data model being used.
- * </pre>
- *
- * <code>double protocol_version = 5;</code>
- * @return The protocolVersion.
- */
- @java.lang.Override
- public double getProtocolVersion() {
- return protocolVersion_;
- }
-
- public static final int LOCATION_FIELD_NUMBER = 6;
- private com.vehicle.messages.MessageHeader.lat_long location_;
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- * @return Whether the location field is set.
- */
- @java.lang.Override
- public boolean hasLocation() {
- return location_ != null;
- }
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- * @return The location.
- */
- @java.lang.Override
- public com.vehicle.messages.MessageHeader.lat_long getLocation() {
- return location_ == null ? com.vehicle.messages.MessageHeader.lat_long.getDefaultInstance() : location_;
- }
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- */
- @java.lang.Override
- public com.vehicle.messages.MessageHeader.lat_longOrBuilder getLocationOrBuilder() {
- return location_ == null ? com.vehicle.messages.MessageHeader.lat_long.getDefaultInstance() : location_;
- }
-
- 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 (messageId_ != 0) {
- output.writeInt32(1, messageId_);
- }
- if (correlationId_ != 0) {
- output.writeInt32(2, correlationId_);
- }
- if (vehicleIdentity_ != null) {
- output.writeMessage(3, getVehicleIdentity());
- }
- if (messageTimestamp_ != 0L) {
- output.writeInt64(4, messageTimestamp_);
- }
- if (java.lang.Double.doubleToRawLongBits(protocolVersion_) != 0) {
- output.writeDouble(5, protocolVersion_);
- }
- if (location_ != null) {
- output.writeMessage(6, getLocation());
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vehicleDeviceId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 7, vehicleDeviceId_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (messageId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, messageId_);
- }
- if (correlationId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, correlationId_);
- }
- if (vehicleIdentity_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, getVehicleIdentity());
- }
- if (messageTimestamp_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(4, messageTimestamp_);
- }
- if (java.lang.Double.doubleToRawLongBits(protocolVersion_) != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(5, protocolVersion_);
- }
- if (location_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, getLocation());
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vehicleDeviceId_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vehicleDeviceId_);
- }
- 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 com.vehicle.messages.MessageHeader.VehicleMessageHeading)) {
- return super.equals(obj);
- }
- com.vehicle.messages.MessageHeader.VehicleMessageHeading other = (com.vehicle.messages.MessageHeader.VehicleMessageHeading) obj;
-
- if (getMessageId()
- != other.getMessageId()) return false;
- if (getCorrelationId()
- != other.getCorrelationId()) return false;
- if (hasVehicleIdentity() != other.hasVehicleIdentity()) return false;
- if (hasVehicleIdentity()) {
- if (!getVehicleIdentity()
- .equals(other.getVehicleIdentity())) return false;
- }
- if (!getVehicleDeviceId()
- .equals(other.getVehicleDeviceId())) return false;
- if (getMessageTimestamp()
- != other.getMessageTimestamp()) return false;
- if (java.lang.Double.doubleToLongBits(getProtocolVersion())
- != java.lang.Double.doubleToLongBits(
- other.getProtocolVersion())) return false;
- if (hasLocation() != other.hasLocation()) return false;
- if (hasLocation()) {
- if (!getLocation()
- .equals(other.getLocation())) 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) + MESSAGE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getMessageId();
- hash = (37 * hash) + CORRELATION_ID_FIELD_NUMBER;
- hash = (53 * hash) + getCorrelationId();
- if (hasVehicleIdentity()) {
- hash = (37 * hash) + VEHICLE_IDENTITY_FIELD_NUMBER;
- hash = (53 * hash) + getVehicleIdentity().hashCode();
- }
- hash = (37 * hash) + VEHICLE_DEVICE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getVehicleDeviceId().hashCode();
- hash = (37 * hash) + MESSAGE_TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getMessageTimestamp());
- hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getProtocolVersion()));
- if (hasLocation()) {
- hash = (37 * hash) + LOCATION_FIELD_NUMBER;
- hash = (53 * hash) + getLocation().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading 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 com.vehicle.messages.MessageHeader.VehicleMessageHeading parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading 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 com.vehicle.messages.MessageHeader.VehicleMessageHeading parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading 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(com.vehicle.messages.MessageHeader.VehicleMessageHeading 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;
- }
- /**
- * <pre>
- * # Vehicle Message Header
- *
- * This message defines an application message header for messages past across the system. This is useful because the standard MQTT message headers are typically local to the broker of the system, so while the MQTT headers
- * are useful for QoS assurances and message debugging they do not necessarily correlate the messages to the
- * services deeper in the vehicle or the cloud services.
- *
- * ## Message Orchestration
- * ![HeaderMessage.puml](build/resources/main/V2C/images/HeaderMessage.png)
- *
- * ## MQTT Topic Design
- * | Direction | Subscribe Topic | Publish Topic |
- * | ----------- | ----- | -------- |
- * | Vehicle to Cloud | No Topic | No Topic |
- * | ----------- | ----- | -------- |
- * | Cloud to Vehicle | No Topic | No Topic |
- * </pre>
- *
- * Protobuf type {@code messages.VehicleMessageHeading}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:messages.VehicleMessageHeading)
- com.vehicle.messages.MessageHeader.VehicleMessageHeadingOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.vehicle.messages.MessageHeader.internal_static_messages_VehicleMessageHeading_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.vehicle.messages.MessageHeader.internal_static_messages_VehicleMessageHeading_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.vehicle.messages.MessageHeader.VehicleMessageHeading.class, com.vehicle.messages.MessageHeader.VehicleMessageHeading.Builder.class);
- }
-
- // Construct using com.vehicle.messages.MessageHeader.VehicleMessageHeading.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- messageId_ = 0;
- correlationId_ = 0;
- vehicleIdentity_ = null;
- if (vehicleIdentityBuilder_ != null) {
- vehicleIdentityBuilder_.dispose();
- vehicleIdentityBuilder_ = null;
- }
- vehicleDeviceId_ = "";
- messageTimestamp_ = 0L;
- protocolVersion_ = 0D;
- location_ = null;
- if (locationBuilder_ != null) {
- locationBuilder_.dispose();
- locationBuilder_ = null;
- }
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.vehicle.messages.MessageHeader.internal_static_messages_VehicleMessageHeading_descriptor;
- }
-
- @java.lang.Override
- public com.vehicle.messages.MessageHeader.VehicleMessageHeading getDefaultInstanceForType() {
- return com.vehicle.messages.MessageHeader.VehicleMessageHeading.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.vehicle.messages.MessageHeader.VehicleMessageHeading build() {
- com.vehicle.messages.MessageHeader.VehicleMessageHeading result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.vehicle.messages.MessageHeader.VehicleMessageHeading buildPartial() {
- com.vehicle.messages.MessageHeader.VehicleMessageHeading result = new com.vehicle.messages.MessageHeader.VehicleMessageHeading(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.vehicle.messages.MessageHeader.VehicleMessageHeading result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.messageId_ = messageId_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.correlationId_ = correlationId_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.vehicleIdentity_ = vehicleIdentityBuilder_ == null
- ? vehicleIdentity_
- : vehicleIdentityBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.vehicleDeviceId_ = vehicleDeviceId_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.messageTimestamp_ = messageTimestamp_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.protocolVersion_ = protocolVersion_;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.location_ = locationBuilder_ == null
- ? location_
- : locationBuilder_.build();
- }
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.vehicle.messages.MessageHeader.VehicleMessageHeading) {
- return mergeFrom((com.vehicle.messages.MessageHeader.VehicleMessageHeading)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.vehicle.messages.MessageHeader.VehicleMessageHeading other) {
- if (other == com.vehicle.messages.MessageHeader.VehicleMessageHeading.getDefaultInstance()) return this;
- if (other.getMessageId() != 0) {
- setMessageId(other.getMessageId());
- }
- if (other.getCorrelationId() != 0) {
- setCorrelationId(other.getCorrelationId());
- }
- if (other.hasVehicleIdentity()) {
- mergeVehicleIdentity(other.getVehicleIdentity());
- }
- if (!other.getVehicleDeviceId().isEmpty()) {
- vehicleDeviceId_ = other.vehicleDeviceId_;
- bitField0_ |= 0x00000008;
- onChanged();
- }
- if (other.getMessageTimestamp() != 0L) {
- setMessageTimestamp(other.getMessageTimestamp());
- }
- if (other.getProtocolVersion() != 0D) {
- setProtocolVersion(other.getProtocolVersion());
- }
- if (other.hasLocation()) {
- mergeLocation(other.getLocation());
- }
- 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: {
- messageId_ = input.readInt32();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 16: {
- correlationId_ = input.readInt32();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 26: {
- input.readMessage(
- getVehicleIdentityFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 32: {
- messageTimestamp_ = input.readInt64();
- bitField0_ |= 0x00000010;
- break;
- } // case 32
- case 41: {
- protocolVersion_ = input.readDouble();
- bitField0_ |= 0x00000020;
- break;
- } // case 41
- case 50: {
- input.readMessage(
- getLocationFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000040;
- break;
- } // case 50
- case 58: {
- vehicleDeviceId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- 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 int messageId_ ;
- /**
- * <pre>
- * Unique Application message_id. When initiated from channels like Mobile or API Gateways this should persist all the way to the vehilce, returning as a correlation id.
- * </pre>
- *
- * <code>int32 message_id = 1;</code>
- * @return The messageId.
- */
- @java.lang.Override
- public int getMessageId() {
- return messageId_;
- }
- /**
- * <pre>
- * Unique Application message_id. When initiated from channels like Mobile or API Gateways this should persist all the way to the vehilce, returning as a correlation id.
- * </pre>
- *
- * <code>int32 message_id = 1;</code>
- * @param value The messageId to set.
- * @return This builder for chaining.
- */
- public Builder setMessageId(int value) {
-
- messageId_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * Unique Application message_id. When initiated from channels like Mobile or API Gateways this should persist all the way to the vehilce, returning as a correlation id.
- * </pre>
- *
- * <code>int32 message_id = 1;</code>
- * @return This builder for chaining.
- */
- public Builder clearMessageId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- messageId_ = 0;
- onChanged();
- return this;
- }
-
- private int correlationId_ ;
- /**
- * <pre>
- * For request/response and other multi-message patterns this should be populated with the message_id of the first message in the chain.
- * </pre>
- *
- * <code>int32 correlation_id = 2;</code>
- * @return The correlationId.
- */
- @java.lang.Override
- public int getCorrelationId() {
- return correlationId_;
- }
- /**
- * <pre>
- * For request/response and other multi-message patterns this should be populated with the message_id of the first message in the chain.
- * </pre>
- *
- * <code>int32 correlation_id = 2;</code>
- * @param value The correlationId to set.
- * @return This builder for chaining.
- */
- public Builder setCorrelationId(int value) {
-
- correlationId_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * For request/response and other multi-message patterns this should be populated with the message_id of the first message in the chain.
- * </pre>
- *
- * <code>int32 correlation_id = 2;</code>
- * @return This builder for chaining.
- */
- public Builder clearCorrelationId() {
- bitField0_ = (bitField0_ & ~0x00000002);
- correlationId_ = 0;
- onChanged();
- return this;
- }
-
- private com.vehicle.vss.Vspec.VehicleVehicleIdentification vehicleIdentity_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.vehicle.vss.Vspec.VehicleVehicleIdentification, com.vehicle.vss.Vspec.VehicleVehicleIdentification.Builder, com.vehicle.vss.Vspec.VehicleVehicleIdentificationOrBuilder> vehicleIdentityBuilder_;
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- * @return Whether the vehicleIdentity field is set.
- */
- public boolean hasVehicleIdentity() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- * @return The vehicleIdentity.
- */
- public com.vehicle.vss.Vspec.VehicleVehicleIdentification getVehicleIdentity() {
- if (vehicleIdentityBuilder_ == null) {
- return vehicleIdentity_ == null ? com.vehicle.vss.Vspec.VehicleVehicleIdentification.getDefaultInstance() : vehicleIdentity_;
- } else {
- return vehicleIdentityBuilder_.getMessage();
- }
- }
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- */
- public Builder setVehicleIdentity(com.vehicle.vss.Vspec.VehicleVehicleIdentification value) {
- if (vehicleIdentityBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- vehicleIdentity_ = value;
- } else {
- vehicleIdentityBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- */
- public Builder setVehicleIdentity(
- com.vehicle.vss.Vspec.VehicleVehicleIdentification.Builder builderForValue) {
- if (vehicleIdentityBuilder_ == null) {
- vehicleIdentity_ = builderForValue.build();
- } else {
- vehicleIdentityBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- */
- public Builder mergeVehicleIdentity(com.vehicle.vss.Vspec.VehicleVehicleIdentification value) {
- if (vehicleIdentityBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0) &&
- vehicleIdentity_ != null &&
- vehicleIdentity_ != com.vehicle.vss.Vspec.VehicleVehicleIdentification.getDefaultInstance()) {
- getVehicleIdentityBuilder().mergeFrom(value);
- } else {
- vehicleIdentity_ = value;
- }
- } else {
- vehicleIdentityBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- */
- public Builder clearVehicleIdentity() {
- bitField0_ = (bitField0_ & ~0x00000004);
- vehicleIdentity_ = null;
- if (vehicleIdentityBuilder_ != null) {
- vehicleIdentityBuilder_.dispose();
- vehicleIdentityBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- */
- public com.vehicle.vss.Vspec.VehicleVehicleIdentification.Builder getVehicleIdentityBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getVehicleIdentityFieldBuilder().getBuilder();
- }
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- */
- public com.vehicle.vss.Vspec.VehicleVehicleIdentificationOrBuilder getVehicleIdentityOrBuilder() {
- if (vehicleIdentityBuilder_ != null) {
- return vehicleIdentityBuilder_.getMessageOrBuilder();
- } else {
- return vehicleIdentity_ == null ?
- com.vehicle.vss.Vspec.VehicleVehicleIdentification.getDefaultInstance() : vehicleIdentity_;
- }
- }
- /**
- * <pre>
- * this should be salted and hashed version of the VIN or other Vehicle Identification.
- * </pre>
- *
- * <code>.vss.VehicleVehicleIdentification vehicle_identity = 3;</code>
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.vehicle.vss.Vspec.VehicleVehicleIdentification, com.vehicle.vss.Vspec.VehicleVehicleIdentification.Builder, com.vehicle.vss.Vspec.VehicleVehicleIdentificationOrBuilder>
- getVehicleIdentityFieldBuilder() {
- if (vehicleIdentityBuilder_ == null) {
- vehicleIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.vehicle.vss.Vspec.VehicleVehicleIdentification, com.vehicle.vss.Vspec.VehicleVehicleIdentification.Builder, com.vehicle.vss.Vspec.VehicleVehicleIdentificationOrBuilder>(
- getVehicleIdentity(),
- getParentForChildren(),
- isClean());
- vehicleIdentity_ = null;
- }
- return vehicleIdentityBuilder_;
- }
-
- private java.lang.Object vehicleDeviceId_ = "";
- /**
- * <pre>
- * this can be any unique identifier for the vehicle, we recommend using the fingerprint on the client's unique x.509 certificate.
- * </pre>
- *
- * <code>string vehicle_device_id = 7;</code>
- * @return The vehicleDeviceId.
- */
- public java.lang.String getVehicleDeviceId() {
- java.lang.Object ref = vehicleDeviceId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- vehicleDeviceId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <pre>
- * this can be any unique identifier for the vehicle, we recommend using the fingerprint on the client's unique x.509 certificate.
- * </pre>
- *
- * <code>string vehicle_device_id = 7;</code>
- * @return The bytes for vehicleDeviceId.
- */
- public com.google.protobuf.ByteString
- getVehicleDeviceIdBytes() {
- java.lang.Object ref = vehicleDeviceId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- vehicleDeviceId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <pre>
- * this can be any unique identifier for the vehicle, we recommend using the fingerprint on the client's unique x.509 certificate.
- * </pre>
- *
- * <code>string vehicle_device_id = 7;</code>
- * @param value The vehicleDeviceId to set.
- * @return This builder for chaining.
- */
- public Builder setVehicleDeviceId(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- vehicleDeviceId_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * this can be any unique identifier for the vehicle, we recommend using the fingerprint on the client's unique x.509 certificate.
- * </pre>
- *
- * <code>string vehicle_device_id = 7;</code>
- * @return This builder for chaining.
- */
- public Builder clearVehicleDeviceId() {
- vehicleDeviceId_ = getDefaultInstance().getVehicleDeviceId();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
- /**
- * <pre>
- * this can be any unique identifier for the vehicle, we recommend using the fingerprint on the client's unique x.509 certificate.
- * </pre>
- *
- * <code>string vehicle_device_id = 7;</code>
- * @param value The bytes for vehicleDeviceId to set.
- * @return This builder for chaining.
- */
- public Builder setVehicleDeviceIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
- vehicleDeviceId_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
-
- private long messageTimestamp_ ;
- /**
- * <pre>
- * EPOCH timestamp when the message was created
- * </pre>
- *
- * <code>int64 message_timestamp = 4;</code>
- * @return The messageTimestamp.
- */
- @java.lang.Override
- public long getMessageTimestamp() {
- return messageTimestamp_;
- }
- /**
- * <pre>
- * EPOCH timestamp when the message was created
- * </pre>
- *
- * <code>int64 message_timestamp = 4;</code>
- * @param value The messageTimestamp to set.
- * @return This builder for chaining.
- */
- public Builder setMessageTimestamp(long value) {
-
- messageTimestamp_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * EPOCH timestamp when the message was created
- * </pre>
- *
- * <code>int64 message_timestamp = 4;</code>
- * @return This builder for chaining.
- */
- public Builder clearMessageTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000010);
- messageTimestamp_ = 0L;
- onChanged();
- return this;
- }
-
- private double protocolVersion_ ;
- /**
- * <pre>
- * version of the protocol schema/data model being used.
- * </pre>
- *
- * <code>double protocol_version = 5;</code>
- * @return The protocolVersion.
- */
- @java.lang.Override
- public double getProtocolVersion() {
- return protocolVersion_;
- }
- /**
- * <pre>
- * version of the protocol schema/data model being used.
- * </pre>
- *
- * <code>double protocol_version = 5;</code>
- * @param value The protocolVersion to set.
- * @return This builder for chaining.
- */
- public Builder setProtocolVersion(double value) {
-
- protocolVersion_ = value;
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * version of the protocol schema/data model being used.
- * </pre>
- *
- * <code>double protocol_version = 5;</code>
- * @return This builder for chaining.
- */
- public Builder clearProtocolVersion() {
- bitField0_ = (bitField0_ & ~0x00000020);
- protocolVersion_ = 0D;
- onChanged();
- return this;
- }
-
- private com.vehicle.messages.MessageHeader.lat_long location_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.vehicle.messages.MessageHeader.lat_long, com.vehicle.messages.MessageHeader.lat_long.Builder, com.vehicle.messages.MessageHeader.lat_longOrBuilder> locationBuilder_;
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- * @return Whether the location field is set.
- */
- public boolean hasLocation() {
- return ((bitField0_ & 0x00000040) != 0);
- }
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- * @return The location.
- */
- public com.vehicle.messages.MessageHeader.lat_long getLocation() {
- if (locationBuilder_ == null) {
- return location_ == null ? com.vehicle.messages.MessageHeader.lat_long.getDefaultInstance() : location_;
- } else {
- return locationBuilder_.getMessage();
- }
- }
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- */
- public Builder setLocation(com.vehicle.messages.MessageHeader.lat_long value) {
- if (locationBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- location_ = value;
- } else {
- locationBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- */
- public Builder setLocation(
- com.vehicle.messages.MessageHeader.lat_long.Builder builderForValue) {
- if (locationBuilder_ == null) {
- location_ = builderForValue.build();
- } else {
- locationBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- */
- public Builder mergeLocation(com.vehicle.messages.MessageHeader.lat_long value) {
- if (locationBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0) &&
- location_ != null &&
- location_ != com.vehicle.messages.MessageHeader.lat_long.getDefaultInstance()) {
- getLocationBuilder().mergeFrom(value);
- } else {
- location_ = value;
- }
- } else {
- locationBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- */
- public Builder clearLocation() {
- bitField0_ = (bitField0_ & ~0x00000040);
- location_ = null;
- if (locationBuilder_ != null) {
- locationBuilder_.dispose();
- locationBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- */
- public com.vehicle.messages.MessageHeader.lat_long.Builder getLocationBuilder() {
- bitField0_ |= 0x00000040;
- onChanged();
- return getLocationFieldBuilder().getBuilder();
- }
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- */
- public com.vehicle.messages.MessageHeader.lat_longOrBuilder getLocationOrBuilder() {
- if (locationBuilder_ != null) {
- return locationBuilder_.getMessageOrBuilder();
- } else {
- return location_ == null ?
- com.vehicle.messages.MessageHeader.lat_long.getDefaultInstance() : location_;
- }
- }
- /**
- * <pre>
- * GNSS latitude and longtitude
- * </pre>
- *
- * <code>.messages.lat_long location = 6;</code>
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.vehicle.messages.MessageHeader.lat_long, com.vehicle.messages.MessageHeader.lat_long.Builder, com.vehicle.messages.MessageHeader.lat_longOrBuilder>
- getLocationFieldBuilder() {
- if (locationBuilder_ == null) {
- locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.vehicle.messages.MessageHeader.lat_long, com.vehicle.messages.MessageHeader.lat_long.Builder, com.vehicle.messages.MessageHeader.lat_longOrBuilder>(
- getLocation(),
- getParentForChildren(),
- isClean());
- location_ = null;
- }
- return locationBuilder_;
- }
- @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:messages.VehicleMessageHeading)
- }
-
- // @@protoc_insertion_point(class_scope:messages.VehicleMessageHeading)
- private static final com.vehicle.messages.MessageHeader.VehicleMessageHeading DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.vehicle.messages.MessageHeader.VehicleMessageHeading();
- }
-
- public static com.vehicle.messages.MessageHeader.VehicleMessageHeading getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<VehicleMessageHeading>
- PARSER = new com.google.protobuf.AbstractParser<VehicleMessageHeading>() {
- @java.lang.Override
- public VehicleMessageHeading 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<VehicleMessageHeading> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<VehicleMessageHeading> getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.vehicle.messages.MessageHeader.VehicleMessageHeading getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface lat_longOrBuilder extends
- // @@protoc_insertion_point(interface_extends:messages.lat_long)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <pre>
- * GNSS latitude
- * </pre>
- *
- * <code>double latitude = 1;</code>
- * @return The latitude.
- */
- double getLatitude();
-
- /**
- * <pre>
- * GNSS longitude
- * </pre>
- *
- * <code>double longitude = 2;</code>
- * @return The longitude.
- */
- double getLongitude();
- }
- /**
- * Protobuf type {@code messages.lat_long}
- */
- public static final class lat_long extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:messages.lat_long)
- lat_longOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use lat_long.newBuilder() to construct.
- private lat_long(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private lat_long() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new lat_long();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.vehicle.messages.MessageHeader.internal_static_messages_lat_long_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.vehicle.messages.MessageHeader.internal_static_messages_lat_long_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.vehicle.messages.MessageHeader.lat_long.class, com.vehicle.messages.MessageHeader.lat_long.Builder.class);
- }
-
- public static final int LATITUDE_FIELD_NUMBER = 1;
- private double latitude_ = 0D;
- /**
- * <pre>
- * GNSS latitude
- * </pre>
- *
- * <code>double latitude = 1;</code>
- * @return The latitude.
- */
- @java.lang.Override
- public double getLatitude() {
- return latitude_;
- }
-
- public static final int LONGITUDE_FIELD_NUMBER = 2;
- private double longitude_ = 0D;
- /**
- * <pre>
- * GNSS longitude
- * </pre>
- *
- * <code>double longitude = 2;</code>
- * @return The longitude.
- */
- @java.lang.Override
- public double getLongitude() {
- return longitude_;
- }
-
- 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 (java.lang.Double.doubleToRawLongBits(latitude_) != 0) {
- output.writeDouble(1, latitude_);
- }
- if (java.lang.Double.doubleToRawLongBits(longitude_) != 0) {
- output.writeDouble(2, longitude_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (java.lang.Double.doubleToRawLongBits(latitude_) != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(1, latitude_);
- }
- if (java.lang.Double.doubleToRawLongBits(longitude_) != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(2, longitude_);
- }
- 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 com.vehicle.messages.MessageHeader.lat_long)) {
- return super.equals(obj);
- }
- com.vehicle.messages.MessageHeader.lat_long other = (com.vehicle.messages.MessageHeader.lat_long) obj;
-
- if (java.lang.Double.doubleToLongBits(getLatitude())
- != java.lang.Double.doubleToLongBits(
- other.getLatitude())) return false;
- if (java.lang.Double.doubleToLongBits(getLongitude())
- != java.lang.Double.doubleToLongBits(
- other.getLongitude())) 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) + LATITUDE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getLatitude()));
- hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getLongitude()));
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.vehicle.messages.MessageHeader.lat_long parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.vehicle.messages.MessageHeader.lat_long parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.vehicle.messages.MessageHeader.lat_long parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.vehicle.messages.MessageHeader.lat_long parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.vehicle.messages.MessageHeader.lat_long parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.vehicle.messages.MessageHeader.lat_long parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.vehicle.messages.MessageHeader.lat_long parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.vehicle.messages.MessageHeader.lat_long 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 com.vehicle.messages.MessageHeader.lat_long parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.vehicle.messages.MessageHeader.lat_long 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 com.vehicle.messages.MessageHeader.lat_long parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.vehicle.messages.MessageHeader.lat_long 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(com.vehicle.messages.MessageHeader.lat_long 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 messages.lat_long}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:messages.lat_long)
- com.vehicle.messages.MessageHeader.lat_longOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.vehicle.messages.MessageHeader.internal_static_messages_lat_long_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.vehicle.messages.MessageHeader.internal_static_messages_lat_long_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.vehicle.messages.MessageHeader.lat_long.class, com.vehicle.messages.MessageHeader.lat_long.Builder.class);
- }
-
- // Construct using com.vehicle.messages.MessageHeader.lat_long.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- latitude_ = 0D;
- longitude_ = 0D;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.vehicle.messages.MessageHeader.internal_static_messages_lat_long_descriptor;
- }
-
- @java.lang.Override
- public com.vehicle.messages.MessageHeader.lat_long getDefaultInstanceForType() {
- return com.vehicle.messages.MessageHeader.lat_long.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.vehicle.messages.MessageHeader.lat_long build() {
- com.vehicle.messages.MessageHeader.lat_long result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.vehicle.messages.MessageHeader.lat_long buildPartial() {
- com.vehicle.messages.MessageHeader.lat_long result = new com.vehicle.messages.MessageHeader.lat_long(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.vehicle.messages.MessageHeader.lat_long result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.latitude_ = latitude_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.longitude_ = longitude_;
- }
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.vehicle.messages.MessageHeader.lat_long) {
- return mergeFrom((com.vehicle.messages.MessageHeader.lat_long)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.vehicle.messages.MessageHeader.lat_long other) {
- if (other == com.vehicle.messages.MessageHeader.lat_long.getDefaultInstance()) return this;
- if (other.getLatitude() != 0D) {
- setLatitude(other.getLatitude());
- }
- if (other.getLongitude() != 0D) {
- setLongitude(other.getLongitude());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 9: {
- latitude_ = input.readDouble();
- bitField0_ |= 0x00000001;
- break;
- } // case 9
- case 17: {
- longitude_ = input.readDouble();
- bitField0_ |= 0x00000002;
- break;
- } // case 17
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private double latitude_ ;
- /**
- * <pre>
- * GNSS latitude
- * </pre>
- *
- * <code>double latitude = 1;</code>
- * @return The latitude.
- */
- @java.lang.Override
- public double getLatitude() {
- return latitude_;
- }
- /**
- * <pre>
- * GNSS latitude
- * </pre>
- *
- * <code>double latitude = 1;</code>
- * @param value The latitude to set.
- * @return This builder for chaining.
- */
- public Builder setLatitude(double value) {
-
- latitude_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * GNSS latitude
- * </pre>
- *
- * <code>double latitude = 1;</code>
- * @return This builder for chaining.
- */
- public Builder clearLatitude() {
- bitField0_ = (bitField0_ & ~0x00000001);
- latitude_ = 0D;
- onChanged();
- return this;
- }
-
- private double longitude_ ;
- /**
- * <pre>
- * GNSS longitude
- * </pre>
- *
- * <code>double longitude = 2;</code>
- * @return The longitude.
- */
- @java.lang.Override
- public double getLongitude() {
- return longitude_;
- }
- /**
- * <pre>
- * GNSS longitude
- * </pre>
- *
- * <code>double longitude = 2;</code>
- * @param value The longitude to set.
- * @return This builder for chaining.
- */
- public Builder setLongitude(double value) {
-
- longitude_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * GNSS longitude
- * </pre>
- *
- * <code>double longitude = 2;</code>
- * @return This builder for chaining.
- */
- public Builder clearLongitude() {
- bitField0_ = (bitField0_ & ~0x00000002);
- longitude_ = 0D;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:messages.lat_long)
- }
-
- // @@protoc_insertion_point(class_scope:messages.lat_long)
- private static final com.vehicle.messages.MessageHeader.lat_long DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.vehicle.messages.MessageHeader.lat_long();
- }
-
- public static com.vehicle.messages.MessageHeader.lat_long getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<lat_long>
- PARSER = new com.google.protobuf.AbstractParser<lat_long>() {
- @java.lang.Override
- public lat_long 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<lat_long> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<lat_long> getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.vehicle.messages.MessageHeader.lat_long getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_messages_VehicleMessageHeading_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_messages_VehicleMessageHeading_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_messages_lat_long_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_messages_lat_long_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#messages/VehicleMessageHeader.proto\022\010m" +
- "essages\032\017vss/vspec.proto\"\366\001\n\025VehicleMess" +
- "ageHeading\022\022\n\nmessage_id\030\001 \001(\005\022\026\n\016correl" +
- "ation_id\030\002 \001(\005\022;\n\020vehicle_identity\030\003 \001(\013" +
- "2!.vss.VehicleVehicleIdentification\022\031\n\021v" +
- "ehicle_device_id\030\007 \001(\t\022\031\n\021message_timest" +
- "amp\030\004 \001(\003\022\030\n\020protocol_version\030\005 \001(\001\022$\n\010l" +
- "ocation\030\006 \001(\0132\022.messages.lat_long\"/\n\010lat" +
- "_long\022\020\n\010latitude\030\001 \001(\001\022\021\n\tlongitude\030\002 \001" +
- "(\001B%\n\024com.vehicle.messagesB\rMessageHeade" +
- "rb\006proto3"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.vehicle.vss.Vspec.getDescriptor(),
- });
- internal_static_messages_VehicleMessageHeading_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_messages_VehicleMessageHeading_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_messages_VehicleMessageHeading_descriptor,
- new java.lang.String[] { "MessageId", "CorrelationId", "VehicleIdentity", "VehicleDeviceId", "MessageTimestamp", "ProtocolVersion", "Location", });
- internal_static_messages_lat_long_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_messages_lat_long_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_messages_lat_long_descriptor,
- new java.lang.String[] { "Latitude", "Longitude", });
- com.vehicle.vss.Vspec.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}